Remove incorrect usage of :const: in documentation.
[python.git] / configure
bloba76c6fae3ddc975b3ddd8477d83539780ef3301b
1 #! /bin/sh
2 # From configure.in Revision: 60484 .
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 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4542 if test "${enable_universalsdk}"; then
4543 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4547 OSF*)
4548 BASECFLAGS="$BASECFLAGS -mieee"
4550 esac
4554 case $ac_sys_system in
4555 OpenUNIX*|UnixWare*)
4556 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4558 OSF*)
4559 BASECFLAGS="$BASECFLAGS -ieee -std"
4561 SCO_SV*)
4562 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4564 esac
4566 esac
4568 if test "$Py_DEBUG" = 'true'; then
4570 else
4571 OPT="-DNDEBUG $OPT"
4574 if test "$ac_arch_flags"
4575 then
4576 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4579 # disable check for icc since it seems to pass, but generates a warning
4580 if test "$CC" = icc
4581 then
4582 ac_cv_opt_olimit_ok=no
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4586 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4587 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 ac_save_cc="$CC"
4591 CC="$CC -OPT:Olimit=0"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_opt_olimit_ok=no
4594 else
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_opt_olimit_ok=yes
4624 else
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ( exit $ac_status )
4630 ac_cv_opt_olimit_ok=no
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 CC="$ac_save_cc"
4639 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4640 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4641 if test $ac_cv_opt_olimit_ok = yes; then
4642 case $ac_sys_system in
4643 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4644 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4645 # environment?
4646 Darwin*)
4649 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4651 esac
4652 else
4653 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4654 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4655 if test "${ac_cv_olimit_ok+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_save_cc="$CC"
4659 CC="$CC -Olimit 1500"
4660 if test "$cross_compiling" = yes; then
4661 ac_cv_olimit_ok=no
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 int main() { return 0; }
4670 _ACEOF
4671 rm -f conftest$ac_exeext
4672 if { (ac_try="$ac_link"
4673 case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_link") 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_olimit_ok=yes
4692 else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ( exit $ac_status )
4698 ac_cv_olimit_ok=no
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704 CC="$ac_save_cc"
4707 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4708 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4709 if test $ac_cv_olimit_ok = yes; then
4710 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4714 # Check whether GCC supports PyArg_ParseTuple format
4715 if test "$GCC" = "yes"
4716 then
4717 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4718 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4719 save_CFLAGS=$CFLAGS
4720 CFLAGS="$CFLAGS -Werror"
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4731 main ()
4735 return 0;
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4758 _ACEOF
4760 { echo "$as_me:$LINENO: result: yes" >&5
4761 echo "${ECHO_T}yes" >&6; }
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 CFLAGS=$save_CFLAGS
4775 # On some compilers, pthreads are available without further options
4776 # (e.g. MacOS X). On some of these systems, the compiler will not
4777 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4778 # So we have to see first whether pthreads are available without
4779 # options before we can check whether -Kpthread improves anything.
4780 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4781 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4782 if test "${ac_cv_pthread_is_default+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test "$cross_compiling" = yes; then
4786 ac_cv_pthread_is_default=no
4787 else
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 #include <pthread.h>
4797 void* routine(void* p){return NULL;}
4799 int main(){
4800 pthread_t p;
4801 if(pthread_create(&p,NULL,routine,NULL)!=0)
4802 return 1;
4803 (void)pthread_detach(p);
4804 return 0;
4807 _ACEOF
4808 rm -f conftest$ac_exeext
4809 if { (ac_try="$ac_link"
4810 case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_link") 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4819 { (case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_try") 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4829 ac_cv_pthread_is_default=yes
4830 ac_cv_kthread=no
4831 ac_cv_pthread=no
4833 else
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ( exit $ac_status )
4839 ac_cv_pthread_is_default=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4848 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4849 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4852 if test $ac_cv_pthread_is_default = yes
4853 then
4854 ac_cv_kpthread=no
4855 else
4856 # -Kpthread, if available, provides the right #defines
4857 # and linker options to make pthread_create available
4858 # Some compilers won't report that they do not support -Kpthread,
4859 # so we need to run a program to see whether it really made the
4860 # function available.
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4862 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4863 if test "${ac_cv_kpthread+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 ac_save_cc="$CC"
4867 CC="$CC -Kpthread"
4868 if test "$cross_compiling" = yes; then
4869 ac_cv_kpthread=no
4870 else
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 #include <pthread.h>
4880 void* routine(void* p){return NULL;}
4882 int main(){
4883 pthread_t p;
4884 if(pthread_create(&p,NULL,routine,NULL)!=0)
4885 return 1;
4886 (void)pthread_detach(p);
4887 return 0;
4890 _ACEOF
4891 rm -f conftest$ac_exeext
4892 if { (ac_try="$ac_link"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_link") 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4902 { (case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_try") 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 ac_cv_kpthread=yes
4912 else
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ( exit $ac_status )
4918 ac_cv_kpthread=no
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924 CC="$ac_save_cc"
4927 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4928 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4931 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4932 then
4933 # -Kthread, if available, provides the right #defines
4934 # and linker options to make pthread_create available
4935 # Some compilers won't report that they do not support -Kthread,
4936 # so we need to run a program to see whether it really made the
4937 # function available.
4938 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4939 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4940 if test "${ac_cv_kthread+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 ac_save_cc="$CC"
4944 CC="$CC -Kthread"
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_kthread=no
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4959 int main(){
4960 pthread_t p;
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4962 return 1;
4963 (void)pthread_detach(p);
4964 return 0;
4967 _ACEOF
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4970 case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_kthread=yes
4989 else
4990 echo "$as_me: program exited with status $ac_status" >&5
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ( exit $ac_status )
4995 ac_cv_kthread=no
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5001 CC="$ac_save_cc"
5004 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5005 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5008 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5009 then
5010 # -pthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -pthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_thread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_save_cc="$CC"
5021 CC="$CC -pthread"
5022 if test "$cross_compiling" = yes; then
5023 ac_cv_pthread=no
5024 else
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5036 int main(){
5037 pthread_t p;
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5039 return 1;
5040 (void)pthread_detach(p);
5041 return 0;
5044 _ACEOF
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_pthread=yes
5066 else
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ( exit $ac_status )
5072 ac_cv_pthread=no
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5078 CC="$ac_save_cc"
5081 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5082 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5085 # If we have set a CC compiler flag for thread support then
5086 # check if it works for CXX, too.
5087 ac_cv_cxx_thread=no
5088 if test ! -z "$CXX"
5089 then
5090 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5091 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5092 ac_save_cxx="$CXX"
5094 if test "$ac_cv_kpthread" = "yes"
5095 then
5096 CXX="$CXX -Kpthread"
5097 ac_cv_cxx_thread=yes
5098 elif test "$ac_cv_kthread" = "yes"
5099 then
5100 CXX="$CXX -Kthread"
5101 ac_cv_cxx_thread=yes
5102 elif test "$ac_cv_pthread" = "yes"
5103 then
5104 CXX="$CXX -pthread"
5105 ac_cv_cxx_thread=yes
5108 if test $ac_cv_cxx_thread = yes
5109 then
5110 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5111 $CXX -c conftest.$ac_ext 2>&5
5112 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5113 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5114 then
5115 ac_cv_cxx_thread=yes
5116 else
5117 ac_cv_cxx_thread=no
5119 rm -fr conftest*
5121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5122 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5124 CXX="$ac_save_cxx"
5127 # checks for header files
5128 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5130 if test "${ac_cv_header_stdc+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #include <stdlib.h>
5140 #include <stdarg.h>
5141 #include <string.h>
5142 #include <float.h>
5145 main ()
5149 return 0;
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_cv_header_stdc=yes
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ac_cv_header_stdc=no
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <string.h>
5189 _ACEOF
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev/null 2>&1; then
5193 else
5194 ac_cv_header_stdc=no
5196 rm -f conftest*
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <stdlib.h>
5210 _ACEOF
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212 $EGREP "free" >/dev/null 2>&1; then
5214 else
5215 ac_cv_header_stdc=no
5217 rm -f conftest*
5221 if test $ac_cv_header_stdc = yes; then
5222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223 if test "$cross_compiling" = yes; then
5225 else
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <ctype.h>
5233 #include <stdlib.h>
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5237 #else
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5243 #endif
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5247 main ()
5249 int i;
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5253 return 2;
5254 return 0;
5256 _ACEOF
5257 rm -f conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5278 else
5279 echo "$as_me: program exited with status $ac_status" >&5
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 ( exit $ac_status )
5284 ac_cv_header_stdc=no
5286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5294 if test $ac_cv_header_stdc = yes; then
5296 cat >>confdefs.h <<\_ACEOF
5297 #define STDC_HEADERS 1
5298 _ACEOF
5302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5313 inttypes.h stdint.h unistd.h
5315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 #include <$ac_header>
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 eval "$as_ac_Header=yes"
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359 { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5362 cat >>confdefs.h <<_ACEOF
5363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364 _ACEOF
5368 done
5421 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5422 fcntl.h grp.h \
5423 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5424 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5425 unistd.h utime.h \
5426 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5427 sys/modem.h \
5428 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5429 sys/time.h \
5430 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5431 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5432 bluetooth/bluetooth.h linux/tipc.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_res=`eval echo '${'$as_ac_Header'}'`
5442 { echo "$as_me:$LINENO: result: $ac_res" >&5
5443 echo "${ECHO_T}$ac_res" >&6; }
5444 else
5445 # Is the header compilable?
5446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5474 ac_header_compiler=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_header_compiler=no
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5484 echo "${ECHO_T}$ac_header_compiler" >&6; }
5486 # Is the header present?
5487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <$ac_header>
5496 _ACEOF
5497 if { (ac_try="$ac_cpp conftest.$ac_ext"
5498 case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null && {
5510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 }; then
5513 ac_header_preproc=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_header_preproc=no
5521 rm -f conftest.err conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5523 echo "${ECHO_T}$ac_header_preproc" >&6; }
5525 # So? What about this header?
5526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5527 yes:no: )
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5532 ac_header_preproc=yes
5534 no:yes:* )
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5547 ( cat <<\_ASBOX
5548 ## ------------------------------------------------ ##
5549 ## Report this to http://www.python.org/python-bugs ##
5550 ## ------------------------------------------------ ##
5551 _ASBOX
5552 ) | sed "s/^/$as_me: WARNING: /" >&2
5554 esac
5555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 eval "$as_ac_Header=\$ac_header_preproc"
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 _ACEOF
5574 done
5581 ac_header_dirent=no
5582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5583 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5596 #include <$ac_hdr>
5599 main ()
5601 if ((DIR *) 0)
5602 return 0;
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 eval "$as_ac_Header=yes"
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 eval "$as_ac_Header=no"
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_res=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5640 _ACEOF
5642 ac_header_dirent=$ac_hdr; break
5645 done
5646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5647 if test $ac_header_dirent = dirent.h; then
5648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5650 if test "${ac_cv_search_opendir+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 ac_func_search_save_LIBS=$LIBS
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664 #ifdef __cplusplus
5665 extern "C"
5666 #endif
5667 char opendir ();
5669 main ()
5671 return opendir ();
5673 return 0;
5675 _ACEOF
5676 for ac_lib in '' dir; do
5677 if test -z "$ac_lib"; then
5678 ac_res="none required"
5679 else
5680 ac_res=-l$ac_lib
5681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (ac_try="$ac_link"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest$ac_exeext &&
5700 $as_test_x conftest$ac_exeext; then
5701 ac_cv_search_opendir=$ac_res
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5710 conftest$ac_exeext
5711 if test "${ac_cv_search_opendir+set}" = set; then
5712 break
5714 done
5715 if test "${ac_cv_search_opendir+set}" = set; then
5717 else
5718 ac_cv_search_opendir=no
5720 rm conftest.$ac_ext
5721 LIBS=$ac_func_search_save_LIBS
5723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5725 ac_res=$ac_cv_search_opendir
5726 if test "$ac_res" != no; then
5727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5731 else
5732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5734 if test "${ac_cv_search_opendir+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_func_search_save_LIBS=$LIBS
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply. */
5748 #ifdef __cplusplus
5749 extern "C"
5750 #endif
5751 char opendir ();
5753 main ()
5755 return opendir ();
5757 return 0;
5759 _ACEOF
5760 for ac_lib in '' x; do
5761 if test -z "$ac_lib"; then
5762 ac_res="none required"
5763 else
5764 ac_res=-l$ac_lib
5765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_link") 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_c_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest$ac_exeext &&
5784 $as_test_x conftest$ac_exeext; then
5785 ac_cv_search_opendir=$ac_res
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794 conftest$ac_exeext
5795 if test "${ac_cv_search_opendir+set}" = set; then
5796 break
5798 done
5799 if test "${ac_cv_search_opendir+set}" = set; then
5801 else
5802 ac_cv_search_opendir=no
5804 rm conftest.$ac_ext
5805 LIBS=$ac_func_search_save_LIBS
5807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5809 ac_res=$ac_cv_search_opendir
5810 if test "$ac_res" != no; then
5811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5830 main ()
5832 return makedev(0, 0);
5834 return 0;
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (ac_try="$ac_link"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_link") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest$ac_exeext &&
5854 $as_test_x conftest$ac_exeext; then
5855 ac_cv_header_sys_types_h_makedev=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_header_sys_types_h_makedev=no
5863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5864 conftest$ac_exeext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5870 if test $ac_cv_header_sys_types_h_makedev = no; then
5871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5872 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5879 else
5880 # Is the header compilable?
5881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 $ac_includes_default
5890 #include <sys/mkdev.h>
5891 _ACEOF
5892 rm -f conftest.$ac_objext
5893 if { (ac_try="$ac_compile"
5894 case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897 esac
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_compile") 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest.$ac_objext; then
5909 ac_header_compiler=yes
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_header_compiler=no
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5919 echo "${ECHO_T}$ac_header_compiler" >&6; }
5921 # Is the header present?
5922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/mkdev.h>
5931 _ACEOF
5932 if { (ac_try="$ac_cpp conftest.$ac_ext"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 }; then
5948 ac_header_preproc=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5956 rm -f conftest.err conftest.$ac_ext
5957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5958 echo "${ECHO_T}$ac_header_preproc" >&6; }
5960 # So? What about this header?
5961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5962 yes:no: )
5963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5967 ac_header_preproc=yes
5969 no:yes:* )
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5982 ( cat <<\_ASBOX
5983 ## ------------------------------------------------ ##
5984 ## Report this to http://www.python.org/python-bugs ##
5985 ## ------------------------------------------------ ##
5986 _ASBOX
5987 ) | sed "s/^/$as_me: WARNING: /" >&2
5989 esac
5990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6001 if test $ac_cv_header_sys_mkdev_h = yes; then
6003 cat >>confdefs.h <<\_ACEOF
6004 #define MAJOR_IN_MKDEV 1
6005 _ACEOF
6011 if test $ac_cv_header_sys_mkdev_h = no; then
6012 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6013 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6020 else
6021 # Is the header compilable?
6022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 #include <sys/sysmacros.h>
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 ac_header_compiler=yes
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 ac_header_compiler=no
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6060 echo "${ECHO_T}$ac_header_compiler" >&6; }
6062 # Is the header present?
6063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <sys/sysmacros.h>
6072 _ACEOF
6073 if { (ac_try="$ac_cpp conftest.$ac_ext"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null && {
6086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 }; then
6089 ac_header_preproc=yes
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_header_preproc=no
6097 rm -f conftest.err conftest.$ac_ext
6098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6099 echo "${ECHO_T}$ac_header_preproc" >&6; }
6101 # So? What about this header?
6102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6103 yes:no: )
6104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6108 ac_header_preproc=yes
6110 no:yes:* )
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6123 ( cat <<\_ASBOX
6124 ## ------------------------------------------------ ##
6125 ## Report this to http://www.python.org/python-bugs ##
6126 ## ------------------------------------------------ ##
6127 _ASBOX
6128 ) | sed "s/^/$as_me: WARNING: /" >&2
6130 esac
6131 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6132 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6139 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6142 if test $ac_cv_header_sys_sysmacros_h = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define MAJOR_IN_SYSMACROS 1
6146 _ACEOF
6155 # On Solaris, term.h requires curses.h
6157 for ac_header in term.h
6159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 #ifdef HAVE_CURSES_H
6173 #include <curses.h>
6174 #endif
6177 #include <$ac_header>
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (ac_try="$ac_compile"
6181 case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.$ac_objext; then
6196 eval "$as_ac_Header=yes"
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 eval "$as_ac_Header=no"
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_res=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212 _ACEOF
6216 done
6219 # On Linux, netlink.h requires asm/types.h
6221 for ac_header in linux/netlink.h
6223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 #ifdef HAVE_ASM_TYPES_H
6237 #include <asm/types.h>
6238 #endif
6239 #ifdef HAVE_SYS_SOCKET_H
6240 #include <sys/socket.h>
6241 #endif
6244 #include <$ac_header>
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (ac_try="$ac_compile"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 eval "$as_ac_Header=yes"
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 eval "$as_ac_Header=no"
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6279 _ACEOF
6283 done
6286 # checks for typedefs
6287 was_it_defined=no
6288 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6289 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <time.h>
6298 _ACEOF
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "clock_t" >/dev/null 2>&1; then
6301 was_it_defined=yes
6302 else
6305 cat >>confdefs.h <<\_ACEOF
6306 #define clock_t long
6307 _ACEOF
6311 rm -f conftest*
6313 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6314 echo "${ECHO_T}$was_it_defined" >&6; }
6316 # Check whether using makedev requires defining _OSF_SOURCE
6317 { echo "$as_me:$LINENO: checking for makedev" >&5
6318 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6327 main ()
6329 makedev(0, 0)
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_c_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest$ac_exeext &&
6351 $as_test_x conftest$ac_exeext; then
6352 ac_cv_has_makedev=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_has_makedev=no
6360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6361 conftest$ac_exeext conftest.$ac_ext
6362 if test "$ac_cv_has_makedev" = "no"; then
6363 # we didn't link, try if _OSF_SOURCE will allow us to link
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6371 #define _OSF_SOURCE 1
6372 #include <sys/types.h>
6375 main ()
6377 makedev(0, 0)
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (ac_try="$ac_link"
6384 case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_link") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest$ac_exeext &&
6399 $as_test_x conftest$ac_exeext; then
6400 ac_cv_has_makedev=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_has_makedev=no
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_cv_has_makedev" = "yes"; then
6412 cat >>confdefs.h <<\_ACEOF
6413 #define _OSF_SOURCE 1
6414 _ACEOF
6418 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6419 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6420 if test "$ac_cv_has_makedev" = "yes"; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_MAKEDEV 1
6424 _ACEOF
6428 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6429 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6430 # defined, but the compiler does not support pragma redefine_extname,
6431 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6432 # structures (such as rlimit64) without declaring them. As a
6433 # work-around, disable LFS on such configurations
6435 use_lfs=yes
6436 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6437 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 #define _LARGEFILE_SOURCE 1
6446 #define _FILE_OFFSET_BITS 64
6447 #include <sys/resource.h>
6450 main ()
6452 struct rlimit foo;
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.$ac_objext; then
6474 sol_lfs_bug=no
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 sol_lfs_bug=yes
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6484 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6485 if test "$sol_lfs_bug" = "yes"; then
6486 use_lfs=no
6489 if test "$use_lfs" = "yes"; then
6490 # Two defines needed to enable largefile support on various platforms
6491 # These may affect some typedefs
6493 cat >>confdefs.h <<\_ACEOF
6494 #define _LARGEFILE_SOURCE 1
6495 _ACEOF
6498 cat >>confdefs.h <<\_ACEOF
6499 #define _FILE_OFFSET_BITS 64
6500 _ACEOF
6504 # Add some code to confdefs.h so that the test for off_t works on SCO
6505 cat >> confdefs.h <<\EOF
6506 #if defined(SCO_DS)
6507 #undef _OFF_T
6508 #endif
6511 # Type availability checks
6512 { echo "$as_me:$LINENO: checking for mode_t" >&5
6513 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6514 if test "${ac_cv_type_mode_t+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6524 typedef mode_t ac__type_new_;
6526 main ()
6528 if ((ac__type_new_ *) 0)
6529 return 0;
6530 if (sizeof (ac__type_new_))
6531 return 0;
6533 return 0;
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6538 case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_cv_type_mode_t=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_cv_type_mode_t=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6564 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6565 if test $ac_cv_type_mode_t = yes; then
6567 else
6569 cat >>confdefs.h <<_ACEOF
6570 #define mode_t int
6571 _ACEOF
6575 { echo "$as_me:$LINENO: checking for off_t" >&5
6576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6577 if test "${ac_cv_type_off_t+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 typedef off_t ac__type_new_;
6589 main ()
6591 if ((ac__type_new_ *) 0)
6592 return 0;
6593 if (sizeof (ac__type_new_))
6594 return 0;
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 ac_cv_type_off_t=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_type_off_t=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6627 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6628 if test $ac_cv_type_off_t = yes; then
6630 else
6632 cat >>confdefs.h <<_ACEOF
6633 #define off_t long int
6634 _ACEOF
6638 { echo "$as_me:$LINENO: checking for pid_t" >&5
6639 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6640 if test "${ac_cv_type_pid_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6650 typedef pid_t ac__type_new_;
6652 main ()
6654 if ((ac__type_new_ *) 0)
6655 return 0;
6656 if (sizeof (ac__type_new_))
6657 return 0;
6659 return 0;
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 ac_cv_type_pid_t=yes
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_type_pid_t=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6690 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6691 if test $ac_cv_type_pid_t = yes; then
6693 else
6695 cat >>confdefs.h <<_ACEOF
6696 #define pid_t int
6697 _ACEOF
6701 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6702 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6703 if test "${ac_cv_type_signal+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <signal.h>
6716 main ()
6718 return *(signal (0, 0)) (0) == 1;
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_cv_type_signal=int
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_type_signal=void
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6751 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6753 cat >>confdefs.h <<_ACEOF
6754 #define RETSIGTYPE $ac_cv_type_signal
6755 _ACEOF
6758 { echo "$as_me:$LINENO: checking for size_t" >&5
6759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6760 if test "${ac_cv_type_size_t+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 typedef size_t ac__type_new_;
6772 main ()
6774 if ((ac__type_new_ *) 0)
6775 return 0;
6776 if (sizeof (ac__type_new_))
6777 return 0;
6779 return 0;
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_c_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 ac_cv_type_size_t=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_type_size_t=no
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6811 if test $ac_cv_type_size_t = yes; then
6813 else
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6817 _ACEOF
6821 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6822 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6823 if test "${ac_cv_type_uid_t+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "uid_t" >/dev/null 2>&1; then
6837 ac_cv_type_uid_t=yes
6838 else
6839 ac_cv_type_uid_t=no
6841 rm -f conftest*
6844 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6845 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6846 if test $ac_cv_type_uid_t = no; then
6848 cat >>confdefs.h <<\_ACEOF
6849 #define uid_t int
6850 _ACEOF
6853 cat >>confdefs.h <<\_ACEOF
6854 #define gid_t int
6855 _ACEOF
6859 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6860 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_ssize_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef ssize_t ac__type_new_;
6873 main ()
6875 if ((ac__type_new_ *) 0)
6876 return 0;
6877 if (sizeof (ac__type_new_))
6878 return 0;
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_type_ssize_t=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_type_ssize_t=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6912 if test $ac_cv_type_ssize_t = yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define HAVE_SSIZE_T 1
6916 _ACEOF
6921 # Sizes of various common basic types
6922 # ANSI C requires sizeof(char) == 1, so no need to check it
6923 { echo "$as_me:$LINENO: checking for int" >&5
6924 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6925 if test "${ac_cv_type_int+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 typedef int ac__type_new_;
6937 main ()
6939 if ((ac__type_new_ *) 0)
6940 return 0;
6941 if (sizeof (ac__type_new_))
6942 return 0;
6944 return 0;
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (ac_try="$ac_compile"
6949 case "(($ac_try" in
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 ac_cv_type_int=yes
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_type_int=no
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6975 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6977 # The cast to long int works around a bug in the HP C Compiler
6978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6980 # This bug is HP SR number 8606223364.
6981 { echo "$as_me:$LINENO: checking size of int" >&5
6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6983 if test "${ac_cv_sizeof_int+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 if test "$cross_compiling" = yes; then
6987 # Depending upon the size, compute the lo and hi bounds.
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef int ac__type_sizeof_;
6997 main ()
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7000 test_array [0] = 0
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_lo=0 ac_mid=0
7024 while :; do
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 typedef int ac__type_sizeof_;
7034 main ()
7036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7037 test_array [0] = 0
7040 return 0;
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_hi=$ac_mid; break
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_lo=`expr $ac_mid + 1`
7066 if test $ac_lo -le $ac_mid; then
7067 ac_lo= ac_hi=
7068 break
7070 ac_mid=`expr 2 '*' $ac_mid + 1`
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 done
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef int ac__type_sizeof_;
7088 main ()
7090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7091 test_array [0] = 0
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_hi=-1 ac_mid=-1
7115 while :; do
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 typedef int ac__type_sizeof_;
7125 main ()
7127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7128 test_array [0] = 0
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 ac_lo=$ac_mid; break
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_hi=`expr '(' $ac_mid ')' - 1`
7157 if test $ac_mid -le $ac_hi; then
7158 ac_lo= ac_hi=
7159 break
7161 ac_mid=`expr 2 '*' $ac_mid`
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 done
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_lo= ac_hi=
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 # Binary search between lo and hi bounds.
7178 while test "x$ac_lo" != "x$ac_hi"; do
7179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 typedef int ac__type_sizeof_;
7189 main ()
7191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7192 test_array [0] = 0
7195 return 0;
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 ac_hi=$ac_mid
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_lo=`expr '(' $ac_mid ')' + 1`
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 done
7225 case $ac_lo in
7226 ?*) ac_cv_sizeof_int=$ac_lo;;
7227 '') if test "$ac_cv_type_int" = yes; then
7228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7229 See \`config.log' for more details." >&5
7230 echo "$as_me: error: cannot compute sizeof (int)
7231 See \`config.log' for more details." >&2;}
7232 { (exit 77); exit 77; }; }
7233 else
7234 ac_cv_sizeof_int=0
7235 fi ;;
7236 esac
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef int ac__type_sizeof_;
7246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7248 #include <stdio.h>
7249 #include <stdlib.h>
7251 main ()
7254 FILE *f = fopen ("conftest.val", "w");
7255 if (! f)
7256 return 1;
7257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7259 long int i = longval ();
7260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7261 return 1;
7262 fprintf (f, "%ld\n", i);
7264 else
7266 unsigned long int i = ulongval ();
7267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7268 return 1;
7269 fprintf (f, "%lu\n", i);
7271 return ferror (f) || fclose (f) != 0;
7274 return 0;
7276 _ACEOF
7277 rm -f conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7288 { (case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_try") 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_sizeof_int=`cat conftest.val`
7298 else
7299 echo "$as_me: program exited with status $ac_status" >&5
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ( exit $ac_status )
7304 if test "$ac_cv_type_int" = yes; then
7305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int)
7308 See \`config.log' for more details." >&2;}
7309 { (exit 77); exit 77; }; }
7310 else
7311 ac_cv_sizeof_int=0
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7316 rm -f conftest.val
7318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7319 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define SIZEOF_INT $ac_cv_sizeof_int
7325 _ACEOF
7328 { echo "$as_me:$LINENO: checking for long" >&5
7329 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7330 if test "${ac_cv_type_long+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 typedef long ac__type_new_;
7342 main ()
7344 if ((ac__type_new_ *) 0)
7345 return 0;
7346 if (sizeof (ac__type_new_))
7347 return 0;
7349 return 0;
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_cv_type_long=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_type_long=no
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7380 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7382 # The cast to long int works around a bug in the HP C Compiler
7383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7385 # This bug is HP SR number 8606223364.
7386 { echo "$as_me:$LINENO: checking size of long" >&5
7387 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7388 if test "${ac_cv_sizeof_long+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 if test "$cross_compiling" = yes; then
7392 # Depending upon the size, compute the lo and hi bounds.
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef long ac__type_sizeof_;
7402 main ()
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7405 test_array [0] = 0
7408 return 0;
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_lo=0 ac_mid=0
7429 while :; do
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7437 typedef long ac__type_sizeof_;
7439 main ()
7441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7442 test_array [0] = 0
7445 return 0;
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 ac_hi=$ac_mid; break
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_lo=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7472 ac_lo= ac_hi=
7473 break
7475 ac_mid=`expr 2 '*' $ac_mid + 1`
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 done
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef long ac__type_sizeof_;
7493 main ()
7495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7496 test_array [0] = 0
7499 return 0;
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_hi=-1 ac_mid=-1
7520 while :; do
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 typedef long ac__type_sizeof_;
7530 main ()
7532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7533 test_array [0] = 0
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ac_lo=$ac_mid; break
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_hi=`expr '(' $ac_mid ')' - 1`
7562 if test $ac_mid -le $ac_hi; then
7563 ac_lo= ac_hi=
7564 break
7566 ac_mid=`expr 2 '*' $ac_mid`
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 done
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_lo= ac_hi=
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 # Binary search between lo and hi bounds.
7583 while test "x$ac_lo" != "x$ac_hi"; do
7584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 typedef long ac__type_sizeof_;
7594 main ()
7596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7597 test_array [0] = 0
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7620 ac_hi=$ac_mid
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_lo=`expr '(' $ac_mid ')' + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 done
7630 case $ac_lo in
7631 ?*) ac_cv_sizeof_long=$ac_lo;;
7632 '') if test "$ac_cv_type_long" = yes; then
7633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7634 See \`config.log' for more details." >&5
7635 echo "$as_me: error: cannot compute sizeof (long)
7636 See \`config.log' for more details." >&2;}
7637 { (exit 77); exit 77; }; }
7638 else
7639 ac_cv_sizeof_long=0
7640 fi ;;
7641 esac
7642 else
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef long ac__type_sizeof_;
7651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7653 #include <stdio.h>
7654 #include <stdlib.h>
7656 main ()
7659 FILE *f = fopen ("conftest.val", "w");
7660 if (! f)
7661 return 1;
7662 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7664 long int i = longval ();
7665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7666 return 1;
7667 fprintf (f, "%ld\n", i);
7669 else
7671 unsigned long int i = ulongval ();
7672 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7673 return 1;
7674 fprintf (f, "%lu\n", i);
7676 return ferror (f) || fclose (f) != 0;
7679 return 0;
7681 _ACEOF
7682 rm -f conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7684 case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_long=`cat conftest.val`
7703 else
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ( exit $ac_status )
7709 if test "$ac_cv_type_long" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7711 See \`config.log' for more details." >&5
7712 echo "$as_me: error: cannot compute sizeof (long)
7713 See \`config.log' for more details." >&2;}
7714 { (exit 77); exit 77; }; }
7715 else
7716 ac_cv_sizeof_long=0
7719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7721 rm -f conftest.val
7723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7728 cat >>confdefs.h <<_ACEOF
7729 #define SIZEOF_LONG $ac_cv_sizeof_long
7730 _ACEOF
7733 { echo "$as_me:$LINENO: checking for void *" >&5
7734 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7735 if test "${ac_cv_type_void_p+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7745 typedef void * ac__type_new_;
7747 main ()
7749 if ((ac__type_new_ *) 0)
7750 return 0;
7751 if (sizeof (ac__type_new_))
7752 return 0;
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_type_void_p=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_type_void_p=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7785 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7787 # The cast to long int works around a bug in the HP C Compiler
7788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7790 # This bug is HP SR number 8606223364.
7791 { echo "$as_me:$LINENO: checking size of void *" >&5
7792 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7793 if test "${ac_cv_sizeof_void_p+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 if test "$cross_compiling" = yes; then
7797 # Depending upon the size, compute the lo and hi bounds.
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 $ac_includes_default
7805 typedef void * ac__type_sizeof_;
7807 main ()
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7810 test_array [0] = 0
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_lo=0 ac_mid=0
7834 while :; do
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 typedef void * ac__type_sizeof_;
7844 main ()
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7847 test_array [0] = 0
7850 return 0;
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.$ac_objext; then
7870 ac_hi=$ac_mid; break
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_lo=`expr $ac_mid + 1`
7876 if test $ac_lo -le $ac_mid; then
7877 ac_lo= ac_hi=
7878 break
7880 ac_mid=`expr 2 '*' $ac_mid + 1`
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 done
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void * ac__type_sizeof_;
7898 main ()
7900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7901 test_array [0] = 0
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_hi=-1 ac_mid=-1
7925 while :; do
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 $ac_includes_default
7933 typedef void * ac__type_sizeof_;
7935 main ()
7937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7938 test_array [0] = 0
7941 return 0;
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7946 case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 ac_lo=$ac_mid; break
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_hi=`expr '(' $ac_mid ')' - 1`
7967 if test $ac_mid -le $ac_hi; then
7968 ac_lo= ac_hi=
7969 break
7971 ac_mid=`expr 2 '*' $ac_mid`
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 done
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_lo= ac_hi=
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 # Binary search between lo and hi bounds.
7988 while test "x$ac_lo" != "x$ac_hi"; do
7989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 $ac_includes_default
7997 typedef void * ac__type_sizeof_;
7999 main ()
8001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8002 test_array [0] = 0
8005 return 0;
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (ac_try="$ac_compile"
8010 case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013 esac
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8025 ac_hi=$ac_mid
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_lo=`expr '(' $ac_mid ')' + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 done
8035 case $ac_lo in
8036 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8037 '') if test "$ac_cv_type_void_p" = yes; then
8038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8039 See \`config.log' for more details." >&5
8040 echo "$as_me: error: cannot compute sizeof (void *)
8041 See \`config.log' for more details." >&2;}
8042 { (exit 77); exit 77; }; }
8043 else
8044 ac_cv_sizeof_void_p=0
8045 fi ;;
8046 esac
8047 else
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 typedef void * ac__type_sizeof_;
8056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8058 #include <stdio.h>
8059 #include <stdlib.h>
8061 main ()
8064 FILE *f = fopen ("conftest.val", "w");
8065 if (! f)
8066 return 1;
8067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8069 long int i = longval ();
8070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8071 return 1;
8072 fprintf (f, "%ld\n", i);
8074 else
8076 unsigned long int i = ulongval ();
8077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8078 return 1;
8079 fprintf (f, "%lu\n", i);
8081 return ferror (f) || fclose (f) != 0;
8084 return 0;
8086 _ACEOF
8087 rm -f conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_sizeof_void_p=`cat conftest.val`
8108 else
8109 echo "$as_me: program exited with status $ac_status" >&5
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ( exit $ac_status )
8114 if test "$ac_cv_type_void_p" = yes; then
8115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8116 See \`config.log' for more details." >&5
8117 echo "$as_me: error: cannot compute sizeof (void *)
8118 See \`config.log' for more details." >&2;}
8119 { (exit 77); exit 77; }; }
8120 else
8121 ac_cv_sizeof_void_p=0
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 rm -f conftest.val
8128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8129 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8133 cat >>confdefs.h <<_ACEOF
8134 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8135 _ACEOF
8138 { echo "$as_me:$LINENO: checking for short" >&5
8139 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8140 if test "${ac_cv_type_short+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 typedef short ac__type_new_;
8152 main ()
8154 if ((ac__type_new_ *) 0)
8155 return 0;
8156 if (sizeof (ac__type_new_))
8157 return 0;
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_type_short=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_type_short=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8190 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8192 # The cast to long int works around a bug in the HP C Compiler
8193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195 # This bug is HP SR number 8606223364.
8196 { echo "$as_me:$LINENO: checking size of short" >&5
8197 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8198 if test "${ac_cv_sizeof_short+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 typedef short ac__type_sizeof_;
8212 main ()
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8215 test_array [0] = 0
8218 return 0;
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_lo=0 ac_mid=0
8239 while :; do
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 typedef short ac__type_sizeof_;
8249 main ()
8251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8252 test_array [0] = 0
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.$ac_objext; then
8275 ac_hi=$ac_mid; break
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 ac_lo=`expr $ac_mid + 1`
8281 if test $ac_lo -le $ac_mid; then
8282 ac_lo= ac_hi=
8283 break
8285 ac_mid=`expr 2 '*' $ac_mid + 1`
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 done
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8301 typedef short ac__type_sizeof_;
8303 main ()
8305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8306 test_array [0] = 0
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_hi=-1 ac_mid=-1
8330 while :; do
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef short ac__type_sizeof_;
8340 main ()
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8343 test_array [0] = 0
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_lo=$ac_mid; break
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_hi=`expr '(' $ac_mid ')' - 1`
8372 if test $ac_mid -le $ac_hi; then
8373 ac_lo= ac_hi=
8374 break
8376 ac_mid=`expr 2 '*' $ac_mid`
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 done
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_lo= ac_hi=
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 # Binary search between lo and hi bounds.
8393 while test "x$ac_lo" != "x$ac_hi"; do
8394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 typedef short ac__type_sizeof_;
8404 main ()
8406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8407 test_array [0] = 0
8410 return 0;
8412 _ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8415 case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_hi=$ac_mid
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_lo=`expr '(' $ac_mid ')' + 1`
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 done
8440 case $ac_lo in
8441 ?*) ac_cv_sizeof_short=$ac_lo;;
8442 '') if test "$ac_cv_type_short" = yes; then
8443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8444 See \`config.log' for more details." >&5
8445 echo "$as_me: error: cannot compute sizeof (short)
8446 See \`config.log' for more details." >&2;}
8447 { (exit 77); exit 77; }; }
8448 else
8449 ac_cv_sizeof_short=0
8450 fi ;;
8451 esac
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 typedef short ac__type_sizeof_;
8461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8463 #include <stdio.h>
8464 #include <stdlib.h>
8466 main ()
8469 FILE *f = fopen ("conftest.val", "w");
8470 if (! f)
8471 return 1;
8472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8474 long int i = longval ();
8475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8476 return 1;
8477 fprintf (f, "%ld\n", i);
8479 else
8481 unsigned long int i = ulongval ();
8482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8483 return 1;
8484 fprintf (f, "%lu\n", i);
8486 return ferror (f) || fclose (f) != 0;
8489 return 0;
8491 _ACEOF
8492 rm -f conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_sizeof_short=`cat conftest.val`
8513 else
8514 echo "$as_me: program exited with status $ac_status" >&5
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ( exit $ac_status )
8519 if test "$ac_cv_type_short" = yes; then
8520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8521 See \`config.log' for more details." >&5
8522 echo "$as_me: error: cannot compute sizeof (short)
8523 See \`config.log' for more details." >&2;}
8524 { (exit 77); exit 77; }; }
8525 else
8526 ac_cv_sizeof_short=0
8529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8531 rm -f conftest.val
8533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8534 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8538 cat >>confdefs.h <<_ACEOF
8539 #define SIZEOF_SHORT $ac_cv_sizeof_short
8540 _ACEOF
8543 { echo "$as_me:$LINENO: checking for float" >&5
8544 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8545 if test "${ac_cv_type_float+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 typedef float ac__type_new_;
8557 main ()
8559 if ((ac__type_new_ *) 0)
8560 return 0;
8561 if (sizeof (ac__type_new_))
8562 return 0;
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8584 ac_cv_type_float=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_type_float=no
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8595 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8597 # The cast to long int works around a bug in the HP C Compiler
8598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8600 # This bug is HP SR number 8606223364.
8601 { echo "$as_me:$LINENO: checking size of float" >&5
8602 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8603 if test "${ac_cv_sizeof_float+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 if test "$cross_compiling" = yes; then
8607 # Depending upon the size, compute the lo and hi bounds.
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 typedef float ac__type_sizeof_;
8617 main ()
8619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8620 test_array [0] = 0
8623 return 0;
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_lo=0 ac_mid=0
8644 while :; do
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 typedef float ac__type_sizeof_;
8654 main ()
8656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8657 test_array [0] = 0
8660 return 0;
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8665 case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.$ac_objext; then
8680 ac_hi=$ac_mid; break
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_lo=`expr $ac_mid + 1`
8686 if test $ac_lo -le $ac_mid; then
8687 ac_lo= ac_hi=
8688 break
8690 ac_mid=`expr 2 '*' $ac_mid + 1`
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 done
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 typedef float ac__type_sizeof_;
8708 main ()
8710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8711 test_array [0] = 0
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_hi=-1 ac_mid=-1
8735 while :; do
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 typedef float ac__type_sizeof_;
8745 main ()
8747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8748 test_array [0] = 0
8751 return 0;
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 ac_lo=$ac_mid; break
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_hi=`expr '(' $ac_mid ')' - 1`
8777 if test $ac_mid -le $ac_hi; then
8778 ac_lo= ac_hi=
8779 break
8781 ac_mid=`expr 2 '*' $ac_mid`
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 done
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_lo= ac_hi=
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 # Binary search between lo and hi bounds.
8798 while test "x$ac_lo" != "x$ac_hi"; do
8799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 typedef float ac__type_sizeof_;
8809 main ()
8811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8812 test_array [0] = 0
8815 return 0;
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_hi=$ac_mid
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_lo=`expr '(' $ac_mid ')' + 1`
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 done
8845 case $ac_lo in
8846 ?*) ac_cv_sizeof_float=$ac_lo;;
8847 '') if test "$ac_cv_type_float" = yes; then
8848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8849 See \`config.log' for more details." >&5
8850 echo "$as_me: error: cannot compute sizeof (float)
8851 See \`config.log' for more details." >&2;}
8852 { (exit 77); exit 77; }; }
8853 else
8854 ac_cv_sizeof_float=0
8855 fi ;;
8856 esac
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8865 typedef float ac__type_sizeof_;
8866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8868 #include <stdio.h>
8869 #include <stdlib.h>
8871 main ()
8874 FILE *f = fopen ("conftest.val", "w");
8875 if (! f)
8876 return 1;
8877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8879 long int i = longval ();
8880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8881 return 1;
8882 fprintf (f, "%ld\n", i);
8884 else
8886 unsigned long int i = ulongval ();
8887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8888 return 1;
8889 fprintf (f, "%lu\n", i);
8891 return ferror (f) || fclose (f) != 0;
8894 return 0;
8896 _ACEOF
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_sizeof_float=`cat conftest.val`
8918 else
8919 echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ( exit $ac_status )
8924 if test "$ac_cv_type_float" = yes; then
8925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8926 See \`config.log' for more details." >&5
8927 echo "$as_me: error: cannot compute sizeof (float)
8928 See \`config.log' for more details." >&2;}
8929 { (exit 77); exit 77; }; }
8930 else
8931 ac_cv_sizeof_float=0
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 rm -f conftest.val
8938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8939 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8945 _ACEOF
8948 { echo "$as_me:$LINENO: checking for double" >&5
8949 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8950 if test "${ac_cv_type_double+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 typedef double ac__type_new_;
8962 main ()
8964 if ((ac__type_new_ *) 0)
8965 return 0;
8966 if (sizeof (ac__type_new_))
8967 return 0;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8974 case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_cv_type_double=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_type_double=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9000 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9002 # The cast to long int works around a bug in the HP C Compiler
9003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9005 # This bug is HP SR number 8606223364.
9006 { echo "$as_me:$LINENO: checking size of double" >&5
9007 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9008 if test "${ac_cv_sizeof_double+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011 if test "$cross_compiling" = yes; then
9012 # Depending upon the size, compute the lo and hi bounds.
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9020 typedef double ac__type_sizeof_;
9022 main ()
9024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9025 test_array [0] = 0
9028 return 0;
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (ac_try="$ac_compile"
9033 case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9048 ac_lo=0 ac_mid=0
9049 while :; do
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 $ac_includes_default
9057 typedef double ac__type_sizeof_;
9059 main ()
9061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9062 test_array [0] = 0
9065 return 0;
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (ac_try="$ac_compile"
9070 case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_compile") 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest.$ac_objext; then
9085 ac_hi=$ac_mid; break
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_lo=`expr $ac_mid + 1`
9091 if test $ac_lo -le $ac_mid; then
9092 ac_lo= ac_hi=
9093 break
9095 ac_mid=`expr 2 '*' $ac_mid + 1`
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 done
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $ac_includes_default
9111 typedef double ac__type_sizeof_;
9113 main ()
9115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9116 test_array [0] = 0
9119 return 0;
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9139 ac_hi=-1 ac_mid=-1
9140 while :; do
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 $ac_includes_default
9148 typedef double ac__type_sizeof_;
9150 main ()
9152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9153 test_array [0] = 0
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.$ac_objext; then
9176 ac_lo=$ac_mid; break
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_hi=`expr '(' $ac_mid ')' - 1`
9182 if test $ac_mid -le $ac_hi; then
9183 ac_lo= ac_hi=
9184 break
9186 ac_mid=`expr 2 '*' $ac_mid`
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 done
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_lo= ac_hi=
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 # Binary search between lo and hi bounds.
9203 while test "x$ac_lo" != "x$ac_hi"; do
9204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 typedef double ac__type_sizeof_;
9214 main ()
9216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9217 test_array [0] = 0
9220 return 0;
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (ac_try="$ac_compile"
9225 case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9240 ac_hi=$ac_mid
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_lo=`expr '(' $ac_mid ')' + 1`
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 done
9250 case $ac_lo in
9251 ?*) ac_cv_sizeof_double=$ac_lo;;
9252 '') if test "$ac_cv_type_double" = yes; then
9253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9254 See \`config.log' for more details." >&5
9255 echo "$as_me: error: cannot compute sizeof (double)
9256 See \`config.log' for more details." >&2;}
9257 { (exit 77); exit 77; }; }
9258 else
9259 ac_cv_sizeof_double=0
9260 fi ;;
9261 esac
9262 else
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 typedef double ac__type_sizeof_;
9271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9273 #include <stdio.h>
9274 #include <stdlib.h>
9276 main ()
9279 FILE *f = fopen ("conftest.val", "w");
9280 if (! f)
9281 return 1;
9282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9284 long int i = longval ();
9285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9286 return 1;
9287 fprintf (f, "%ld\n", i);
9289 else
9291 unsigned long int i = ulongval ();
9292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9293 return 1;
9294 fprintf (f, "%lu\n", i);
9296 return ferror (f) || fclose (f) != 0;
9299 return 0;
9301 _ACEOF
9302 rm -f conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9304 case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_sizeof_double=`cat conftest.val`
9323 else
9324 echo "$as_me: program exited with status $ac_status" >&5
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ( exit $ac_status )
9329 if test "$ac_cv_type_double" = yes; then
9330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9331 See \`config.log' for more details." >&5
9332 echo "$as_me: error: cannot compute sizeof (double)
9333 See \`config.log' for more details." >&2;}
9334 { (exit 77); exit 77; }; }
9335 else
9336 ac_cv_sizeof_double=0
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9341 rm -f conftest.val
9343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9344 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9348 cat >>confdefs.h <<_ACEOF
9349 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9350 _ACEOF
9353 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9354 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9355 if test "${ac_cv_type_fpos_t+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 typedef fpos_t ac__type_new_;
9367 main ()
9369 if ((ac__type_new_ *) 0)
9370 return 0;
9371 if (sizeof (ac__type_new_))
9372 return 0;
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_compile") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest.$ac_objext; then
9394 ac_cv_type_fpos_t=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_cv_type_fpos_t=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9405 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9407 # The cast to long int works around a bug in the HP C Compiler
9408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9410 # This bug is HP SR number 8606223364.
9411 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9412 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9413 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 if test "$cross_compiling" = yes; then
9417 # Depending upon the size, compute the lo and hi bounds.
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9425 typedef fpos_t ac__type_sizeof_;
9427 main ()
9429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9430 test_array [0] = 0
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_lo=0 ac_mid=0
9454 while :; do
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 typedef fpos_t ac__type_sizeof_;
9464 main ()
9466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9467 test_array [0] = 0
9470 return 0;
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.$ac_objext; then
9490 ac_hi=$ac_mid; break
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_lo=`expr $ac_mid + 1`
9496 if test $ac_lo -le $ac_mid; then
9497 ac_lo= ac_hi=
9498 break
9500 ac_mid=`expr 2 '*' $ac_mid + 1`
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 done
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 typedef fpos_t ac__type_sizeof_;
9518 main ()
9520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9521 test_array [0] = 0
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_hi=-1 ac_mid=-1
9545 while :; do
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef fpos_t ac__type_sizeof_;
9555 main ()
9557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9558 test_array [0] = 0
9561 return 0;
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9566 case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.$ac_objext; then
9581 ac_lo=$ac_mid; break
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_hi=`expr '(' $ac_mid ')' - 1`
9587 if test $ac_mid -le $ac_hi; then
9588 ac_lo= ac_hi=
9589 break
9591 ac_mid=`expr 2 '*' $ac_mid`
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 done
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_lo= ac_hi=
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 # Binary search between lo and hi bounds.
9608 while test "x$ac_lo" != "x$ac_hi"; do
9609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 typedef fpos_t ac__type_sizeof_;
9619 main ()
9621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9622 test_array [0] = 0
9625 return 0;
9627 _ACEOF
9628 rm -f conftest.$ac_objext
9629 if { (ac_try="$ac_compile"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_hi=$ac_mid
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_lo=`expr '(' $ac_mid ')' + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 done
9655 case $ac_lo in
9656 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9657 '') if test "$ac_cv_type_fpos_t" = yes; then
9658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9659 See \`config.log' for more details." >&5
9660 echo "$as_me: error: cannot compute sizeof (fpos_t)
9661 See \`config.log' for more details." >&2;}
9662 { (exit 77); exit 77; }; }
9663 else
9664 ac_cv_sizeof_fpos_t=0
9665 fi ;;
9666 esac
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 typedef fpos_t ac__type_sizeof_;
9676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9678 #include <stdio.h>
9679 #include <stdlib.h>
9681 main ()
9684 FILE *f = fopen ("conftest.val", "w");
9685 if (! f)
9686 return 1;
9687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9689 long int i = longval ();
9690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9691 return 1;
9692 fprintf (f, "%ld\n", i);
9694 else
9696 unsigned long int i = ulongval ();
9697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9698 return 1;
9699 fprintf (f, "%lu\n", i);
9701 return ferror (f) || fclose (f) != 0;
9704 return 0;
9706 _ACEOF
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_sizeof_fpos_t=`cat conftest.val`
9728 else
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ( exit $ac_status )
9734 if test "$ac_cv_type_fpos_t" = yes; then
9735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9736 See \`config.log' for more details." >&5
9737 echo "$as_me: error: cannot compute sizeof (fpos_t)
9738 See \`config.log' for more details." >&2;}
9739 { (exit 77); exit 77; }; }
9740 else
9741 ac_cv_sizeof_fpos_t=0
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9746 rm -f conftest.val
9748 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9749 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9755 _ACEOF
9758 { echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 typedef size_t ac__type_new_;
9772 main ()
9774 if ((ac__type_new_ *) 0)
9775 return 0;
9776 if (sizeof (ac__type_new_))
9777 return 0;
9779 return 0;
9781 _ACEOF
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_cv_type_size_t=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_type_size_t=no
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9812 # The cast to long int works around a bug in the HP C Compiler
9813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9815 # This bug is HP SR number 8606223364.
9816 { echo "$as_me:$LINENO: checking size of size_t" >&5
9817 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9818 if test "${ac_cv_sizeof_size_t+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 if test "$cross_compiling" = yes; then
9822 # Depending upon the size, compute the lo and hi bounds.
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 typedef size_t ac__type_sizeof_;
9832 main ()
9834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9835 test_array [0] = 0
9838 return 0;
9840 _ACEOF
9841 rm -f conftest.$ac_objext
9842 if { (ac_try="$ac_compile"
9843 case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_compile") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest.$ac_objext; then
9858 ac_lo=0 ac_mid=0
9859 while :; do
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 $ac_includes_default
9867 typedef size_t ac__type_sizeof_;
9869 main ()
9871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9872 test_array [0] = 0
9875 return 0;
9877 _ACEOF
9878 rm -f conftest.$ac_objext
9879 if { (ac_try="$ac_compile"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.$ac_objext; then
9895 ac_hi=$ac_mid; break
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_lo=`expr $ac_mid + 1`
9901 if test $ac_lo -le $ac_mid; then
9902 ac_lo= ac_hi=
9903 break
9905 ac_mid=`expr 2 '*' $ac_mid + 1`
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 done
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 typedef size_t ac__type_sizeof_;
9923 main ()
9925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9926 test_array [0] = 0
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_hi=-1 ac_mid=-1
9950 while :; do
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 $ac_includes_default
9958 typedef size_t ac__type_sizeof_;
9960 main ()
9962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9963 test_array [0] = 0
9966 return 0;
9968 _ACEOF
9969 rm -f conftest.$ac_objext
9970 if { (ac_try="$ac_compile"
9971 case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 ac_lo=$ac_mid; break
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_hi=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9993 ac_lo= ac_hi=
9994 break
9996 ac_mid=`expr 2 '*' $ac_mid`
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000 done
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_lo= ac_hi=
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 # Binary search between lo and hi bounds.
10013 while test "x$ac_lo" != "x$ac_hi"; do
10014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 typedef size_t ac__type_sizeof_;
10024 main ()
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10027 test_array [0] = 0
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_compile") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest.$ac_objext; then
10050 ac_hi=$ac_mid
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_lo=`expr '(' $ac_mid ')' + 1`
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 done
10060 case $ac_lo in
10061 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10062 '') if test "$ac_cv_type_size_t" = yes; then
10063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10064 See \`config.log' for more details." >&5
10065 echo "$as_me: error: cannot compute sizeof (size_t)
10066 See \`config.log' for more details." >&2;}
10067 { (exit 77); exit 77; }; }
10068 else
10069 ac_cv_sizeof_size_t=0
10070 fi ;;
10071 esac
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 typedef size_t ac__type_sizeof_;
10081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10083 #include <stdio.h>
10084 #include <stdlib.h>
10086 main ()
10089 FILE *f = fopen ("conftest.val", "w");
10090 if (! f)
10091 return 1;
10092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10094 long int i = longval ();
10095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10096 return 1;
10097 fprintf (f, "%ld\n", i);
10099 else
10101 unsigned long int i = ulongval ();
10102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10103 return 1;
10104 fprintf (f, "%lu\n", i);
10106 return ferror (f) || fclose (f) != 0;
10109 return 0;
10111 _ACEOF
10112 rm -f conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_sizeof_size_t=`cat conftest.val`
10133 else
10134 echo "$as_me: program exited with status $ac_status" >&5
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ( exit $ac_status )
10139 if test "$ac_cv_type_size_t" = yes; then
10140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10141 See \`config.log' for more details." >&5
10142 echo "$as_me: error: cannot compute sizeof (size_t)
10143 See \`config.log' for more details." >&2;}
10144 { (exit 77); exit 77; }; }
10145 else
10146 ac_cv_sizeof_size_t=0
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10151 rm -f conftest.val
10153 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10154 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10160 _ACEOF
10163 { echo "$as_me:$LINENO: checking for pid_t" >&5
10164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10165 if test "${ac_cv_type_pid_t+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10175 typedef pid_t ac__type_new_;
10177 main ()
10179 if ((ac__type_new_ *) 0)
10180 return 0;
10181 if (sizeof (ac__type_new_))
10182 return 0;
10184 return 0;
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (ac_try="$ac_compile"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_compile") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
10204 ac_cv_type_pid_t=yes
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_cv_type_pid_t=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10215 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10217 # The cast to long int works around a bug in the HP C Compiler
10218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10220 # This bug is HP SR number 8606223364.
10221 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10222 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10223 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226 if test "$cross_compiling" = yes; then
10227 # Depending upon the size, compute the lo and hi bounds.
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h. */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 $ac_includes_default
10235 typedef pid_t ac__type_sizeof_;
10237 main ()
10239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10240 test_array [0] = 0
10243 return 0;
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_compile") 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest.$ac_objext; then
10263 ac_lo=0 ac_mid=0
10264 while :; do
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 typedef pid_t ac__type_sizeof_;
10274 main ()
10276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10277 test_array [0] = 0
10280 return 0;
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10300 ac_hi=$ac_mid; break
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_lo=`expr $ac_mid + 1`
10306 if test $ac_lo -le $ac_mid; then
10307 ac_lo= ac_hi=
10308 break
10310 ac_mid=`expr 2 '*' $ac_mid + 1`
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 done
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 $ac_includes_default
10326 typedef pid_t ac__type_sizeof_;
10328 main ()
10330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10331 test_array [0] = 0
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_hi=-1 ac_mid=-1
10355 while :; do
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 $ac_includes_default
10363 typedef pid_t ac__type_sizeof_;
10365 main ()
10367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10368 test_array [0] = 0
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest.$ac_objext; then
10391 ac_lo=$ac_mid; break
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_hi=`expr '(' $ac_mid ')' - 1`
10397 if test $ac_mid -le $ac_hi; then
10398 ac_lo= ac_hi=
10399 break
10401 ac_mid=`expr 2 '*' $ac_mid`
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405 done
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_lo= ac_hi=
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 typedef pid_t ac__type_sizeof_;
10429 main ()
10431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10432 test_array [0] = 0
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (ac_try="$ac_compile"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_compile") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest.$ac_objext; then
10455 ac_hi=$ac_mid
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_lo=`expr '(' $ac_mid ')' + 1`
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 done
10465 case $ac_lo in
10466 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10467 '') if test "$ac_cv_type_pid_t" = yes; then
10468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10469 See \`config.log' for more details." >&5
10470 echo "$as_me: error: cannot compute sizeof (pid_t)
10471 See \`config.log' for more details." >&2;}
10472 { (exit 77); exit 77; }; }
10473 else
10474 ac_cv_sizeof_pid_t=0
10475 fi ;;
10476 esac
10477 else
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 typedef pid_t ac__type_sizeof_;
10486 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10487 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10488 #include <stdio.h>
10489 #include <stdlib.h>
10491 main ()
10494 FILE *f = fopen ("conftest.val", "w");
10495 if (! f)
10496 return 1;
10497 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10499 long int i = longval ();
10500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10501 return 1;
10502 fprintf (f, "%ld\n", i);
10504 else
10506 unsigned long int i = ulongval ();
10507 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10508 return 1;
10509 fprintf (f, "%lu\n", i);
10511 return ferror (f) || fclose (f) != 0;
10514 return 0;
10516 _ACEOF
10517 rm -f conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_cv_sizeof_pid_t=`cat conftest.val`
10538 else
10539 echo "$as_me: program exited with status $ac_status" >&5
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ( exit $ac_status )
10544 if test "$ac_cv_type_pid_t" = yes; then
10545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10546 See \`config.log' for more details." >&5
10547 echo "$as_me: error: cannot compute sizeof (pid_t)
10548 See \`config.log' for more details." >&2;}
10549 { (exit 77); exit 77; }; }
10550 else
10551 ac_cv_sizeof_pid_t=0
10554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10556 rm -f conftest.val
10558 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10559 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10563 cat >>confdefs.h <<_ACEOF
10564 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10565 _ACEOF
10569 { echo "$as_me:$LINENO: checking for long long support" >&5
10570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10571 have_long_long=no
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10580 main ()
10582 long long x; x = (long long)0;
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest.$ac_objext; then
10606 cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_LONG_LONG 1
10608 _ACEOF
10610 have_long_long=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10621 echo "${ECHO_T}$have_long_long" >&6; }
10622 if test "$have_long_long" = yes ; then
10623 { echo "$as_me:$LINENO: checking for long long" >&5
10624 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10625 if test "${ac_cv_type_long_long+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef long long ac__type_new_;
10637 main ()
10639 if ((ac__type_new_ *) 0)
10640 return 0;
10641 if (sizeof (ac__type_new_))
10642 return 0;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_compile") 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest.$ac_objext; then
10664 ac_cv_type_long_long=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_type_long_long=no
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10675 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10677 # The cast to long int works around a bug in the HP C Compiler
10678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680 # This bug is HP SR number 8606223364.
10681 { echo "$as_me:$LINENO: checking size of long long" >&5
10682 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10683 if test "${ac_cv_sizeof_long_long+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 if test "$cross_compiling" = yes; then
10687 # Depending upon the size, compute the lo and hi bounds.
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 $ac_includes_default
10695 typedef long long ac__type_sizeof_;
10697 main ()
10699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10700 test_array [0] = 0
10703 return 0;
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 ac_lo=0 ac_mid=0
10724 while :; do
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 typedef long long ac__type_sizeof_;
10734 main ()
10736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10737 test_array [0] = 0
10740 return 0;
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest.$ac_objext; then
10760 ac_hi=$ac_mid; break
10761 else
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_lo=`expr $ac_mid + 1`
10766 if test $ac_lo -le $ac_mid; then
10767 ac_lo= ac_hi=
10768 break
10770 ac_mid=`expr 2 '*' $ac_mid + 1`
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 done
10775 else
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 typedef long long ac__type_sizeof_;
10788 main ()
10790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10791 test_array [0] = 0
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext
10798 if { (ac_try="$ac_compile"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10814 ac_hi=-1 ac_mid=-1
10815 while :; do
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 typedef long long ac__type_sizeof_;
10825 main ()
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10828 test_array [0] = 0
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839 esac
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
10851 ac_lo=$ac_mid; break
10852 else
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_hi=`expr '(' $ac_mid ')' - 1`
10857 if test $ac_mid -le $ac_hi; then
10858 ac_lo= ac_hi=
10859 break
10861 ac_mid=`expr 2 '*' $ac_mid`
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 done
10866 else
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_lo= ac_hi=
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 # Binary search between lo and hi bounds.
10878 while test "x$ac_lo" != "x$ac_hi"; do
10879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 $ac_includes_default
10887 typedef long long ac__type_sizeof_;
10889 main ()
10891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10892 test_array [0] = 0
10895 return 0;
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_compile") 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest.$ac_objext; then
10915 ac_hi=$ac_mid
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_lo=`expr '(' $ac_mid ')' + 1`
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 done
10925 case $ac_lo in
10926 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10927 '') if test "$ac_cv_type_long_long" = yes; then
10928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10929 See \`config.log' for more details." >&5
10930 echo "$as_me: error: cannot compute sizeof (long long)
10931 See \`config.log' for more details." >&2;}
10932 { (exit 77); exit 77; }; }
10933 else
10934 ac_cv_sizeof_long_long=0
10935 fi ;;
10936 esac
10937 else
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10945 typedef long long ac__type_sizeof_;
10946 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10947 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10948 #include <stdio.h>
10949 #include <stdlib.h>
10951 main ()
10954 FILE *f = fopen ("conftest.val", "w");
10955 if (! f)
10956 return 1;
10957 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10959 long int i = longval ();
10960 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10961 return 1;
10962 fprintf (f, "%ld\n", i);
10964 else
10966 unsigned long int i = ulongval ();
10967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10968 return 1;
10969 fprintf (f, "%lu\n", i);
10971 return ferror (f) || fclose (f) != 0;
10974 return 0;
10976 _ACEOF
10977 rm -f conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_sizeof_long_long=`cat conftest.val`
10998 else
10999 echo "$as_me: program exited with status $ac_status" >&5
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ( exit $ac_status )
11004 if test "$ac_cv_type_long_long" = yes; then
11005 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11006 See \`config.log' for more details." >&5
11007 echo "$as_me: error: cannot compute sizeof (long long)
11008 See \`config.log' for more details." >&2;}
11009 { (exit 77); exit 77; }; }
11010 else
11011 ac_cv_sizeof_long_long=0
11014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11016 rm -f conftest.val
11018 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11019 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11023 cat >>confdefs.h <<_ACEOF
11024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11025 _ACEOF
11030 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11031 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11032 have_c99_bool=no
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11041 main ()
11043 _Bool x; x = (_Bool)0;
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (ac_try="$ac_compile"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_compile") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest.$ac_objext; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_C99_BOOL 1
11069 _ACEOF
11071 have_c99_bool=yes
11073 else
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11082 echo "${ECHO_T}$have_c99_bool" >&6; }
11083 if test "$have_c99_bool" = yes ; then
11084 { echo "$as_me:$LINENO: checking for _Bool" >&5
11085 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11086 if test "${ac_cv_type__Bool+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 $ac_includes_default
11096 typedef _Bool ac__type_new_;
11098 main ()
11100 if ((ac__type_new_ *) 0)
11101 return 0;
11102 if (sizeof (ac__type_new_))
11103 return 0;
11105 return 0;
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest.$ac_objext; then
11125 ac_cv_type__Bool=yes
11126 else
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ac_cv_type__Bool=no
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11136 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11138 # The cast to long int works around a bug in the HP C Compiler
11139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11141 # This bug is HP SR number 8606223364.
11142 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11143 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11144 if test "${ac_cv_sizeof__Bool+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 if test "$cross_compiling" = yes; then
11148 # Depending upon the size, compute the lo and hi bounds.
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 $ac_includes_default
11156 typedef _Bool ac__type_sizeof_;
11158 main ()
11160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11161 test_array [0] = 0
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && {
11181 test -z "$ac_c_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest.$ac_objext; then
11184 ac_lo=0 ac_mid=0
11185 while :; do
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 typedef _Bool ac__type_sizeof_;
11195 main ()
11197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11198 test_array [0] = 0
11201 return 0;
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.$ac_objext; then
11221 ac_hi=$ac_mid; break
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ac_lo=`expr $ac_mid + 1`
11227 if test $ac_lo -le $ac_mid; then
11228 ac_lo= ac_hi=
11229 break
11231 ac_mid=`expr 2 '*' $ac_mid + 1`
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 done
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 typedef _Bool ac__type_sizeof_;
11249 main ()
11251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11252 test_array [0] = 0
11255 return 0;
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest.$ac_objext; then
11275 ac_hi=-1 ac_mid=-1
11276 while :; do
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11284 typedef _Bool ac__type_sizeof_;
11286 main ()
11288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11289 test_array [0] = 0
11292 return 0;
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 ac_lo=$ac_mid; break
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_hi=`expr '(' $ac_mid ')' - 1`
11318 if test $ac_mid -le $ac_hi; then
11319 ac_lo= ac_hi=
11320 break
11322 ac_mid=`expr 2 '*' $ac_mid`
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 done
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_lo= ac_hi=
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11338 # Binary search between lo and hi bounds.
11339 while test "x$ac_lo" != "x$ac_hi"; do
11340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 typedef _Bool ac__type_sizeof_;
11350 main ()
11352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11353 test_array [0] = 0
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (ac_try="$ac_compile"
11361 case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.$ac_objext; then
11376 ac_hi=$ac_mid
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_lo=`expr '(' $ac_mid ')' + 1`
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 done
11386 case $ac_lo in
11387 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11388 '') if test "$ac_cv_type__Bool" = yes; then
11389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11390 See \`config.log' for more details." >&5
11391 echo "$as_me: error: cannot compute sizeof (_Bool)
11392 See \`config.log' for more details." >&2;}
11393 { (exit 77); exit 77; }; }
11394 else
11395 ac_cv_sizeof__Bool=0
11396 fi ;;
11397 esac
11398 else
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 $ac_includes_default
11406 typedef _Bool ac__type_sizeof_;
11407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11409 #include <stdio.h>
11410 #include <stdlib.h>
11412 main ()
11415 FILE *f = fopen ("conftest.val", "w");
11416 if (! f)
11417 return 1;
11418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11420 long int i = longval ();
11421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11422 return 1;
11423 fprintf (f, "%ld\n", i);
11425 else
11427 unsigned long int i = ulongval ();
11428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11429 return 1;
11430 fprintf (f, "%lu\n", i);
11432 return ferror (f) || fclose (f) != 0;
11435 return 0;
11437 _ACEOF
11438 rm -f conftest$ac_exeext
11439 if { (ac_try="$ac_link"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_link") 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_sizeof__Bool=`cat conftest.val`
11459 else
11460 echo "$as_me: program exited with status $ac_status" >&5
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ( exit $ac_status )
11465 if test "$ac_cv_type__Bool" = yes; then
11466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11467 See \`config.log' for more details." >&5
11468 echo "$as_me: error: cannot compute sizeof (_Bool)
11469 See \`config.log' for more details." >&2;}
11470 { (exit 77); exit 77; }; }
11471 else
11472 ac_cv_sizeof__Bool=0
11475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11477 rm -f conftest.val
11479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11480 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11484 cat >>confdefs.h <<_ACEOF
11485 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11486 _ACEOF
11491 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11492 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11493 if test "${ac_cv_type_uintptr_t+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #ifdef HAVE_STDINT_H
11503 #include <stdint.h>
11504 #endif
11506 typedef uintptr_t ac__type_new_;
11508 main ()
11510 if ((ac__type_new_ *) 0)
11511 return 0;
11512 if (sizeof (ac__type_new_))
11513 return 0;
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_cv_type_uintptr_t=yes
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_cv_type_uintptr_t=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11547 if test $ac_cv_type_uintptr_t = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define HAVE_UINTPTR_T 1
11551 _ACEOF
11553 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11554 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11555 if test "${ac_cv_type_uintptr_t+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 $ac_includes_default
11565 typedef uintptr_t ac__type_new_;
11567 main ()
11569 if ((ac__type_new_ *) 0)
11570 return 0;
11571 if (sizeof (ac__type_new_))
11572 return 0;
11574 return 0;
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (ac_try="$ac_compile"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_compile") 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && {
11591 test -z "$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11593 } && test -s conftest.$ac_objext; then
11594 ac_cv_type_uintptr_t=yes
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_cv_type_uintptr_t=no
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11605 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11607 # The cast to long int works around a bug in the HP C Compiler
11608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11610 # This bug is HP SR number 8606223364.
11611 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11612 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11613 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 if test "$cross_compiling" = yes; then
11617 # Depending upon the size, compute the lo and hi bounds.
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11625 typedef uintptr_t ac__type_sizeof_;
11627 main ()
11629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11630 test_array [0] = 0
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext
11637 if { (ac_try="$ac_compile"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_compile") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest.$ac_objext; then
11653 ac_lo=0 ac_mid=0
11654 while :; do
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h. */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 $ac_includes_default
11662 typedef uintptr_t ac__type_sizeof_;
11664 main ()
11666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11667 test_array [0] = 0
11670 return 0;
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (ac_try="$ac_compile"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_compile") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest.$ac_objext; then
11690 ac_hi=$ac_mid; break
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_lo=`expr $ac_mid + 1`
11696 if test $ac_lo -le $ac_mid; then
11697 ac_lo= ac_hi=
11698 break
11700 ac_mid=`expr 2 '*' $ac_mid + 1`
11703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 done
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h. */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 $ac_includes_default
11716 typedef uintptr_t ac__type_sizeof_;
11718 main ()
11720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11721 test_array [0] = 0
11724 return 0;
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 ac_hi=-1 ac_mid=-1
11745 while :; do
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 $ac_includes_default
11753 typedef uintptr_t ac__type_sizeof_;
11755 main ()
11757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11758 test_array [0] = 0
11761 return 0;
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (ac_try="$ac_compile"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_compile") 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest.$ac_objext; then
11781 ac_lo=$ac_mid; break
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_hi=`expr '(' $ac_mid ')' - 1`
11787 if test $ac_mid -le $ac_hi; then
11788 ac_lo= ac_hi=
11789 break
11791 ac_mid=`expr 2 '*' $ac_mid`
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 done
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_lo= ac_hi=
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 # Binary search between lo and hi bounds.
11808 while test "x$ac_lo" != "x$ac_hi"; do
11809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11817 typedef uintptr_t ac__type_sizeof_;
11819 main ()
11821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11822 test_array [0] = 0
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11845 ac_hi=$ac_mid
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_lo=`expr '(' $ac_mid ')' + 1`
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 done
11855 case $ac_lo in
11856 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11857 '') if test "$ac_cv_type_uintptr_t" = yes; then
11858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11859 See \`config.log' for more details." >&5
11860 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11861 See \`config.log' for more details." >&2;}
11862 { (exit 77); exit 77; }; }
11863 else
11864 ac_cv_sizeof_uintptr_t=0
11865 fi ;;
11866 esac
11867 else
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h. */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 $ac_includes_default
11875 typedef uintptr_t ac__type_sizeof_;
11876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11878 #include <stdio.h>
11879 #include <stdlib.h>
11881 main ()
11884 FILE *f = fopen ("conftest.val", "w");
11885 if (! f)
11886 return 1;
11887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11889 long int i = longval ();
11890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11891 return 1;
11892 fprintf (f, "%ld\n", i);
11894 else
11896 unsigned long int i = ulongval ();
11897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11898 return 1;
11899 fprintf (f, "%lu\n", i);
11901 return ferror (f) || fclose (f) != 0;
11904 return 0;
11906 _ACEOF
11907 rm -f conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_link") 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11928 else
11929 echo "$as_me: program exited with status $ac_status" >&5
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ( exit $ac_status )
11934 if test "$ac_cv_type_uintptr_t" = yes; then
11935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11936 See \`config.log' for more details." >&5
11937 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11938 See \`config.log' for more details." >&2;}
11939 { (exit 77); exit 77; }; }
11940 else
11941 ac_cv_sizeof_uintptr_t=0
11944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11946 rm -f conftest.val
11948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11953 cat >>confdefs.h <<_ACEOF
11954 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11955 _ACEOF
11962 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11963 { echo "$as_me:$LINENO: checking size of off_t" >&5
11964 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11965 if test "${ac_cv_sizeof_off_t+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 if test "$cross_compiling" = yes; then
11969 ac_cv_sizeof_off_t=4
11970 else
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 #include <stdio.h>
11978 #include <sys/types.h>
11979 main()
11981 FILE *f=fopen("conftestval", "w");
11982 if (!f) exit(1);
11983 fprintf(f, "%d\n", sizeof(off_t));
11984 exit(0);
11986 _ACEOF
11987 rm -f conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11998 { (case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_try") 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_sizeof_off_t=`cat conftestval`
12008 else
12009 echo "$as_me: program exited with status $ac_status" >&5
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ( exit $ac_status )
12014 ac_cv_sizeof_off_t=0
12016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12024 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12026 cat >>confdefs.h <<_ACEOF
12027 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12028 _ACEOF
12031 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12032 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12033 if test "$have_long_long" = yes -a \
12034 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12035 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_LARGEFILE_SUPPORT 1
12039 _ACEOF
12041 { echo "$as_me:$LINENO: result: yes" >&5
12042 echo "${ECHO_T}yes" >&6; }
12043 else
12044 { echo "$as_me:$LINENO: result: no" >&5
12045 echo "${ECHO_T}no" >&6; }
12048 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12049 { echo "$as_me:$LINENO: checking size of time_t" >&5
12050 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12051 if test "${ac_cv_sizeof_time_t+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 if test "$cross_compiling" = yes; then
12055 ac_cv_sizeof_time_t=4
12056 else
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 #include <stdio.h>
12064 #include <time.h>
12065 main()
12067 FILE *f=fopen("conftestval", "w");
12068 if (!f) exit(1);
12069 fprintf(f, "%d\n", sizeof(time_t));
12070 exit(0);
12072 _ACEOF
12073 rm -f conftest$ac_exeext
12074 if { (ac_try="$ac_link"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_sizeof_time_t=`cat conftestval`
12094 else
12095 echo "$as_me: program exited with status $ac_status" >&5
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ( exit $ac_status )
12100 ac_cv_sizeof_time_t=0
12102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12110 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12112 cat >>confdefs.h <<_ACEOF
12113 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12114 _ACEOF
12118 # if have pthread_t then define SIZEOF_PTHREAD_T
12119 ac_save_cc="$CC"
12120 if test "$ac_cv_kpthread" = "yes"
12121 then CC="$CC -Kpthread"
12122 elif test "$ac_cv_kthread" = "yes"
12123 then CC="$CC -Kthread"
12124 elif test "$ac_cv_pthread" = "yes"
12125 then CC="$CC -pthread"
12127 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12128 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12129 have_pthread_t=no
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <pthread.h>
12138 main ()
12140 pthread_t x; x = *(pthread_t*)0;
12142 return 0;
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_compile") 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest.$ac_objext; then
12162 have_pthread_t=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12172 echo "${ECHO_T}$have_pthread_t" >&6; }
12173 if test "$have_pthread_t" = yes ; then
12174 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12175 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12176 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12177 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 if test "$cross_compiling" = yes; then
12181 ac_cv_sizeof_pthread_t=4
12182 else
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <stdio.h>
12190 #include <pthread.h>
12191 main()
12193 FILE *f=fopen("conftestval", "w");
12194 if (!f) exit(1);
12195 fprintf(f, "%d\n", sizeof(pthread_t));
12196 exit(0);
12198 _ACEOF
12199 rm -f conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_sizeof_pthread_t=`cat conftestval`
12220 else
12221 echo "$as_me: program exited with status $ac_status" >&5
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ( exit $ac_status )
12226 ac_cv_sizeof_pthread_t=0
12228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12236 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12238 cat >>confdefs.h <<_ACEOF
12239 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12240 _ACEOF
12243 CC="$ac_save_cc"
12245 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12246 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12247 # Check whether --enable-toolbox-glue was given.
12248 if test "${enable_toolbox_glue+set}" = set; then
12249 enableval=$enable_toolbox_glue;
12253 if test -z "$enable_toolbox_glue"
12254 then
12255 case $ac_sys_system/$ac_sys_release in
12256 Darwin/*)
12257 enable_toolbox_glue="yes";;
12259 enable_toolbox_glue="no";;
12260 esac
12262 case "$enable_toolbox_glue" in
12263 yes)
12264 extra_machdep_objs="Python/mactoolboxglue.o"
12265 extra_undefs="-u _PyMac_Error"
12267 cat >>confdefs.h <<\_ACEOF
12268 #define USE_TOOLBOX_OBJECT_GLUE 1
12269 _ACEOF
12273 extra_machdep_objs=""
12274 extra_undefs=""
12276 esac
12277 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12278 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12281 case $ac_sys_system/$ac_sys_release in
12282 Darwin/[01567]\..*)
12283 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12285 Darwin/*)
12286 OTHER_LIBTOOL_OPT=""
12288 esac
12291 case $ac_sys_system/$ac_sys_release in
12292 Darwin/[01567]\..*)
12293 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12294 if test "${enable_universalsdk}"; then
12296 else
12297 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
12299 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12300 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12301 Darwin/*)
12302 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
12303 if test ${gcc_version} '<' 4.0
12304 then
12305 LIBTOOL_CRUFT="-lcc_dynamic"
12306 else
12307 LIBTOOL_CRUFT=""
12309 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
12310 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12311 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12312 esac
12314 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12315 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12316 if test "$enable_framework"
12317 then
12318 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12319 # -F. is needed to allow linking to the framework while
12320 # in the build location.
12322 cat >>confdefs.h <<\_ACEOF
12323 #define WITH_NEXT_FRAMEWORK 1
12324 _ACEOF
12326 { echo "$as_me:$LINENO: result: yes" >&5
12327 echo "${ECHO_T}yes" >&6; }
12328 else
12329 { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12333 { echo "$as_me:$LINENO: checking for dyld" >&5
12334 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12335 case $ac_sys_system/$ac_sys_release in
12336 Darwin/*)
12338 cat >>confdefs.h <<\_ACEOF
12339 #define WITH_DYLD 1
12340 _ACEOF
12342 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12343 echo "${ECHO_T}always on for Darwin" >&6; }
12346 { echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6; }
12349 esac
12351 # Set info about shared libraries.
12357 # SO is the extension of shared libraries `(including the dot!)
12358 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12359 { echo "$as_me:$LINENO: checking SO" >&5
12360 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12361 if test -z "$SO"
12362 then
12363 case $ac_sys_system in
12364 hp*|HP*)
12365 case `uname -m` in
12366 ia64) SO=.so;;
12367 *) SO=.sl;;
12368 esac
12370 CYGWIN*) SO=.dll;;
12371 *) SO=.so;;
12372 esac
12373 else
12374 # this might also be a termcap variable, see #610332
12375 echo
12376 echo '====================================================================='
12377 echo '+ +'
12378 echo '+ WARNING: You have set SO in your environment. +'
12379 echo '+ Do you really mean to change the extension for shared libraries? +'
12380 echo '+ Continuing in 10 seconds to let you to ponder. +'
12381 echo '+ +'
12382 echo '====================================================================='
12383 sleep 10
12385 { echo "$as_me:$LINENO: result: $SO" >&5
12386 echo "${ECHO_T}$SO" >&6; }
12388 cat >>confdefs.h <<_ACEOF
12389 #define SHLIB_EXT "$SO"
12390 _ACEOF
12392 # LDSHARED is the ld *command* used to create shared library
12393 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12394 # (Shared libraries in this instance are shared modules to be loaded into
12395 # Python, as opposed to building Python itself as a shared library.)
12396 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12397 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12398 if test -z "$LDSHARED"
12399 then
12400 case $ac_sys_system/$ac_sys_release in
12401 AIX*)
12402 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12403 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12405 BeOS*)
12406 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12407 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12409 IRIX/5*) LDSHARED="ld -shared";;
12410 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12411 SunOS/5*)
12412 if test "$GCC" = "yes"
12413 then LDSHARED='$(CC) -shared'
12414 else LDSHARED='$(CC) -G';
12415 fi ;;
12416 hp*|HP*) LDSHARED="ld -b";;
12417 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12418 Darwin/1.3*)
12419 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12420 if test "$enable_framework" ; then
12421 # Link against the framework. All externals should be defined.
12422 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12423 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12424 else
12425 # No framework. Ignore undefined symbols, assuming they come from Python
12426 LDSHARED="$LDSHARED -undefined suppress"
12427 fi ;;
12428 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12429 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12430 if test "$enable_framework" ; then
12431 # Link against the framework. All externals should be defined.
12432 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12433 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12434 else
12435 # No framework, use the Python app as bundle-loader
12436 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12437 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12438 fi ;;
12439 Darwin/*)
12440 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12441 # This allows an extension to be used in any Python
12442 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12443 if test ${cur_target} '>' 10.2; then
12444 cur_target=10.3
12446 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12448 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12449 # environment with a value that is the same as what we'll use
12450 # in the Makefile to ensure that we'll get the same compiler
12451 # environment during configure and build time.
12452 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12453 export MACOSX_DEPLOYMENT_TARGET
12455 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12456 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12457 then
12458 if test "${enable_universalsdk}"; then
12459 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12461 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12462 BLDSHARED="$LDSHARED"
12463 else
12464 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12465 if test "$enable_framework" ; then
12466 # Link against the framework. All externals should be defined.
12467 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12468 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12469 else
12470 # No framework, use the Python app as bundle-loader
12471 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12472 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12476 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12477 BSD/OS*/4*) LDSHARED="gcc -shared";;
12478 FreeBSD*)
12479 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12480 then
12481 LDSHARED="$CC -shared ${LDFLAGS}"
12482 else
12483 LDSHARED="ld -Bshareable ${LDFLAGS}"
12484 fi;;
12485 OpenBSD*)
12486 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12487 then
12488 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12489 else
12490 case `uname -r` in
12491 [01].* | 2.[0-7] | 2.[0-7].*)
12492 LDSHARED="ld -Bshareable ${LDFLAGS}"
12495 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12497 esac
12498 fi;;
12499 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12500 OpenUNIX*|UnixWare*)
12501 if test "$GCC" = "yes"
12502 then LDSHARED='$(CC) -shared'
12503 else LDSHARED='$(CC) -G'
12504 fi;;
12505 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12506 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12507 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12508 atheos*) LDSHARED="gcc -shared";;
12509 *) LDSHARED="ld";;
12510 esac
12512 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12513 echo "${ECHO_T}$LDSHARED" >&6; }
12514 BLDSHARED=${BLDSHARED-$LDSHARED}
12515 # CCSHARED are the C *flags* used to create objects to go into a shared
12516 # library (module) -- this is only needed for a few systems
12517 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12518 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12519 if test -z "$CCSHARED"
12520 then
12521 case $ac_sys_system/$ac_sys_release in
12522 SunOS*) if test "$GCC" = yes;
12523 then CCSHARED="-fPIC";
12524 elif test `uname -p` = sparc;
12525 then CCSHARED="-xcode=pic32";
12526 else CCSHARED="-Kpic";
12527 fi;;
12528 hp*|HP*) if test "$GCC" = yes;
12529 then CCSHARED="-fPIC";
12530 else CCSHARED="+z";
12531 fi;;
12532 Linux*|GNU*) CCSHARED="-fPIC";;
12533 BSD/OS*/4*) CCSHARED="-fpic";;
12534 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12535 OpenUNIX*|UnixWare*)
12536 if test "$GCC" = "yes"
12537 then CCSHARED="-fPIC"
12538 else CCSHARED="-KPIC"
12539 fi;;
12540 SCO_SV*)
12541 if test "$GCC" = "yes"
12542 then CCSHARED="-fPIC"
12543 else CCSHARED="-Kpic -belf"
12544 fi;;
12545 Monterey*) CCSHARED="-G";;
12546 IRIX*/6*) case $CC in
12547 *gcc*) CCSHARED="-shared";;
12548 *) CCSHARED="";;
12549 esac;;
12550 atheos*) CCSHARED="-fPIC";;
12551 esac
12553 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12554 echo "${ECHO_T}$CCSHARED" >&6; }
12555 # LINKFORSHARED are the flags passed to the $(CC) command that links
12556 # the python executable -- this is only needed for a few systems
12557 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12558 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12559 if test -z "$LINKFORSHARED"
12560 then
12561 case $ac_sys_system/$ac_sys_release in
12562 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12563 hp*|HP*)
12564 LINKFORSHARED="-Wl,-E -Wl,+s";;
12565 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12566 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12567 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12568 # -u libsys_s pulls in all symbols in libsys
12569 Darwin/*)
12570 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12571 # which is
12572 # not used by the core itself but which needs to be in the core so
12573 # that dynamically loaded extension modules have access to it.
12574 # -prebind is no longer used, because it actually seems to give a
12575 # slowdown in stead of a speedup, maybe due to the large number of
12576 # dynamic loads Python does.
12578 LINKFORSHARED="$extra_undefs"
12579 if test "$enable_framework"
12580 then
12581 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12583 LINKFORSHARED="$LINKFORSHARED";;
12584 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12585 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12586 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12587 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12588 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12589 then
12590 LINKFORSHARED="-Wl,--export-dynamic"
12591 fi;;
12592 SunOS/5*) case $CC in
12593 *gcc*)
12594 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12595 then
12596 LINKFORSHARED="-Xlinker --export-dynamic"
12597 fi;;
12598 esac;;
12599 CYGWIN*)
12600 if test $enable_shared = "no"
12601 then
12602 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12603 fi;;
12604 esac
12606 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12607 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12610 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12611 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12612 if test ! "$LIBRARY" = "$LDLIBRARY"
12613 then
12614 case $ac_sys_system in
12615 CYGWIN*)
12616 # Cygwin needs CCSHARED when building extension DLLs
12617 # but not when building the interpreter DLL.
12618 CFLAGSFORSHARED='';;
12620 CFLAGSFORSHARED='$(CCSHARED)'
12621 esac
12623 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12624 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12626 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12627 # library (with --enable-shared).
12628 # For platforms on which shared libraries are not allowed to have unresolved
12629 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12630 # if it is not required, since it creates a dependency of the shared library
12631 # to LIBS. This, in turn, means that applications linking the shared libpython
12632 # don't need to link LIBS explicitly. The default should be only changed
12633 # on systems where this approach causes problems.
12635 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12636 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12637 case "$ac_sys_system" in
12639 SHLIBS='$(LIBS)';;
12640 esac
12641 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12642 echo "${ECHO_T}$SHLIBS" >&6; }
12645 # checks for libraries
12647 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 ac_check_lib_save_LIBS=$LIBS
12653 LIBS="-ldl $LIBS"
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12661 /* Override any GCC internal prototype to avoid an error.
12662 Use char because int might match the return type of a GCC
12663 builtin and then its argument prototype would still apply. */
12664 #ifdef __cplusplus
12665 extern "C"
12666 #endif
12667 char dlopen ();
12669 main ()
12671 return dlopen ();
12673 return 0;
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (ac_try="$ac_link"
12678 case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_link") 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest$ac_exeext &&
12693 $as_test_x conftest$ac_exeext; then
12694 ac_cv_lib_dl_dlopen=yes
12695 else
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_lib_dl_dlopen=no
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12708 if test $ac_cv_lib_dl_dlopen = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_LIBDL 1
12711 _ACEOF
12713 LIBS="-ldl $LIBS"
12716 # Dynamic linking for SunOS/Solaris and SYSV
12718 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12719 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12720 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723 ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-ldld $LIBS"
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12735 #ifdef __cplusplus
12736 extern "C"
12737 #endif
12738 char shl_load ();
12740 main ()
12742 return shl_load ();
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_link") 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest$ac_exeext &&
12764 $as_test_x conftest$ac_exeext; then
12765 ac_cv_lib_dld_shl_load=yes
12766 else
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 ac_cv_lib_dld_shl_load=no
12773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774 conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12777 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12778 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12779 if test $ac_cv_lib_dld_shl_load = yes; then
12780 cat >>confdefs.h <<_ACEOF
12781 #define HAVE_LIBDLD 1
12782 _ACEOF
12784 LIBS="-ldld $LIBS"
12787 # Dynamic linking for HP-UX
12789 # only check for sem_ini if thread support is requested
12790 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12791 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12792 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12793 if test "${ac_cv_search_sem_init+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796 ac_func_search_save_LIBS=$LIBS
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char sem_init ();
12812 main ()
12814 return sem_init ();
12816 return 0;
12818 _ACEOF
12819 for ac_lib in '' pthread rt posix4; do
12820 if test -z "$ac_lib"; then
12821 ac_res="none required"
12822 else
12823 ac_res=-l$ac_lib
12824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest$ac_exeext &&
12843 $as_test_x conftest$ac_exeext; then
12844 ac_cv_search_sem_init=$ac_res
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext
12854 if test "${ac_cv_search_sem_init+set}" = set; then
12855 break
12857 done
12858 if test "${ac_cv_search_sem_init+set}" = set; then
12860 else
12861 ac_cv_search_sem_init=no
12863 rm conftest.$ac_ext
12864 LIBS=$ac_func_search_save_LIBS
12866 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12867 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12868 ac_res=$ac_cv_search_sem_init
12869 if test "$ac_res" != no; then
12870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12873 # 'Real Time' functions on Solaris
12874 # posix4 on Solaris 2.6
12875 # pthread (first!) on Linux
12878 # check if we need libintl for locale functions
12879 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12880 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12881 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 ac_check_lib_save_LIBS=$LIBS
12885 LIBS="-lintl $LIBS"
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896 #ifdef __cplusplus
12897 extern "C"
12898 #endif
12899 char textdomain ();
12901 main ()
12903 return textdomain ();
12905 return 0;
12907 _ACEOF
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_link") 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && {
12922 test -z "$ac_c_werror_flag" ||
12923 test ! -s conftest.err
12924 } && test -s conftest$ac_exeext &&
12925 $as_test_x conftest$ac_exeext; then
12926 ac_cv_lib_intl_textdomain=yes
12927 else
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12931 ac_cv_lib_intl_textdomain=no
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935 conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12938 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12939 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12940 if test $ac_cv_lib_intl_textdomain = yes; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define WITH_LIBINTL 1
12944 _ACEOF
12949 # checks for system dependent C++ extensions support
12950 case "$ac_sys_system" in
12951 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12952 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include "/usr/lpp/xlC/include/load.h"
12961 main ()
12963 loadAndInit("", 0, "")
12965 return 0;
12967 _ACEOF
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (ac_try="$ac_link"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest$ac_exeext &&
12985 $as_test_x conftest$ac_exeext; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define AIX_GENUINE_CPLUSPLUS 1
12989 _ACEOF
12991 { echo "$as_me:$LINENO: result: yes" >&5
12992 echo "${ECHO_T}yes" >&6; }
12993 else
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 { echo "$as_me:$LINENO: result: no" >&5
12998 echo "${ECHO_T}no" >&6; }
13001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13002 conftest$ac_exeext conftest.$ac_ext;;
13003 *) ;;
13004 esac
13006 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13007 # BeOS' sockets are stashed in libnet.
13008 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13009 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13010 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lnsl $LIBS"
13015 cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h. */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 char t_open ();
13030 main ()
13032 return t_open ();
13034 return 0;
13036 _ACEOF
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (ac_try="$ac_link"
13039 case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13042 esac
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_link") 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } && {
13051 test -z "$ac_c_werror_flag" ||
13052 test ! -s conftest.err
13053 } && test -s conftest$ac_exeext &&
13054 $as_test_x conftest$ac_exeext; then
13055 ac_cv_lib_nsl_t_open=yes
13056 else
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_cv_lib_nsl_t_open=no
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13068 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13069 if test $ac_cv_lib_nsl_t_open = yes; then
13070 LIBS="-lnsl $LIBS"
13072 # SVR4
13073 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13074 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13075 if test "${ac_cv_lib_socket_socket+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078 ac_check_lib_save_LIBS=$LIBS
13079 LIBS="-lsocket $LIBS $LIBS"
13080 cat >conftest.$ac_ext <<_ACEOF
13081 /* confdefs.h. */
13082 _ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char socket ();
13095 main ()
13097 return socket ();
13099 return 0;
13101 _ACEOF
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (ac_try="$ac_link"
13104 case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_link") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest$ac_exeext &&
13119 $as_test_x conftest$ac_exeext; then
13120 ac_cv_lib_socket_socket=yes
13121 else
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 ac_cv_lib_socket_socket=no
13128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13133 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13134 if test $ac_cv_lib_socket_socket = yes; then
13135 LIBS="-lsocket $LIBS"
13137 # SVR4 sockets
13139 case "$ac_sys_system" in
13140 BeOS*)
13141 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13142 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13143 if test "${ac_cv_lib_net_socket+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 ac_check_lib_save_LIBS=$LIBS
13147 LIBS="-lnet $LIBS $LIBS"
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 char socket ();
13163 main ()
13165 return socket ();
13167 return 0;
13169 _ACEOF
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest$ac_exeext &&
13187 $as_test_x conftest$ac_exeext; then
13188 ac_cv_lib_net_socket=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_net_socket=no
13196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13201 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13202 if test $ac_cv_lib_net_socket = yes; then
13203 LIBS="-lnet $LIBS"
13205 # BeOS
13207 esac
13209 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13210 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13212 # Check whether --with-libs was given.
13213 if test "${with_libs+set}" = set; then
13214 withval=$with_libs;
13215 { echo "$as_me:$LINENO: result: $withval" >&5
13216 echo "${ECHO_T}$withval" >&6; }
13217 LIBS="$withval $LIBS"
13219 else
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13225 # Check for use of the system libffi library
13226 if test "${ac_cv_header_ffi_h+set}" = set; then
13227 { echo "$as_me:$LINENO: checking for ffi.h" >&5
13228 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
13229 if test "${ac_cv_header_ffi_h+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13233 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
13234 else
13235 # Is the header compilable?
13236 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
13237 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <ffi.h>
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_compile") 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest.$ac_objext; then
13264 ac_header_compiler=yes
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_header_compiler=no
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13274 echo "${ECHO_T}$ac_header_compiler" >&6; }
13276 # Is the header present?
13277 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
13278 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <ffi.h>
13286 _ACEOF
13287 if { (ac_try="$ac_cpp conftest.$ac_ext"
13288 case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev/null && {
13300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13302 }; then
13303 ac_header_preproc=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_header_preproc=no
13311 rm -f conftest.err conftest.$ac_ext
13312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13313 echo "${ECHO_T}$ac_header_preproc" >&6; }
13315 # So? What about this header?
13316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13317 yes:no: )
13318 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
13319 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
13321 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
13322 ac_header_preproc=yes
13324 no:yes:* )
13325 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
13326 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
13328 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
13330 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
13332 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
13334 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
13336 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
13337 ( cat <<\_ASBOX
13338 ## ------------------------------------------------ ##
13339 ## Report this to http://www.python.org/python-bugs ##
13340 ## ------------------------------------------------ ##
13341 _ASBOX
13342 ) | sed "s/^/$as_me: WARNING: /" >&2
13344 esac
13345 { echo "$as_me:$LINENO: checking for ffi.h" >&5
13346 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
13347 if test "${ac_cv_header_ffi_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350 ac_cv_header_ffi_h=$ac_header_preproc
13352 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13353 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
13358 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13359 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13361 # Check whether --with-system_ffi was given.
13362 if test "${with_system_ffi+set}" = set; then
13363 withval=$with_system_ffi;
13367 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
13368 case "$ac_sys_system/`uname -m`" in
13369 Linux/alpha*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
13370 Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
13371 Linux/ppc*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
13372 Linux/s390*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
13373 *) with_system_ffi="no"
13374 esac
13376 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13377 echo "${ECHO_T}$with_system_ffi" >&6; }
13379 # Determine if signalmodule should be used.
13382 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13383 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13385 # Check whether --with-signal-module was given.
13386 if test "${with_signal_module+set}" = set; then
13387 withval=$with_signal_module;
13391 if test -z "$with_signal_module"
13392 then with_signal_module="yes"
13394 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13395 echo "${ECHO_T}$with_signal_module" >&6; }
13397 if test "${with_signal_module}" = "yes"; then
13398 USE_SIGNAL_MODULE=""
13399 SIGNAL_OBJS=""
13400 else
13401 USE_SIGNAL_MODULE="#"
13402 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13405 # This is used to generate Setup.config
13407 USE_THREAD_MODULE=""
13409 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13410 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13413 # Check whether --with-dec-threads was given.
13414 if test "${with_dec_threads+set}" = set; then
13415 withval=$with_dec_threads;
13416 { echo "$as_me:$LINENO: result: $withval" >&5
13417 echo "${ECHO_T}$withval" >&6; }
13418 LDLAST=-threads
13419 if test "${with_thread+set}" != set; then
13420 with_thread="$withval";
13422 else
13423 { echo "$as_me:$LINENO: result: no" >&5
13424 echo "${ECHO_T}no" >&6; }
13428 # Templates for things AC_DEFINEd more than once.
13429 # For a single AC_DEFINE, no template is needed.
13437 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13438 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13440 # Check whether --with-threads was given.
13441 if test "${with_threads+set}" = set; then
13442 withval=$with_threads;
13446 # --with-thread is deprecated, but check for it anyway
13448 # Check whether --with-thread was given.
13449 if test "${with_thread+set}" = set; then
13450 withval=$with_thread; with_threads=$with_thread
13454 if test -z "$with_threads"
13455 then with_threads="yes"
13457 { echo "$as_me:$LINENO: result: $with_threads" >&5
13458 echo "${ECHO_T}$with_threads" >&6; }
13461 if test "$with_threads" = "no"
13462 then
13463 USE_THREAD_MODULE="#"
13464 elif test "$ac_cv_pthread_is_default" = yes
13465 then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define WITH_THREAD 1
13468 _ACEOF
13470 # Defining _REENTRANT on system with POSIX threads should not hurt.
13471 cat >>confdefs.h <<\_ACEOF
13472 #define _REENTRANT 1
13473 _ACEOF
13475 posix_threads=yes
13476 THREADOBJ="Python/thread.o"
13477 elif test "$ac_cv_kpthread" = "yes"
13478 then
13479 CC="$CC -Kpthread"
13480 if test "$ac_cv_cxx_thread" = "yes"; then
13481 CXX="$CXX -Kpthread"
13483 cat >>confdefs.h <<\_ACEOF
13484 #define WITH_THREAD 1
13485 _ACEOF
13487 posix_threads=yes
13488 THREADOBJ="Python/thread.o"
13489 elif test "$ac_cv_kthread" = "yes"
13490 then
13491 CC="$CC -Kthread"
13492 if test "$ac_cv_cxx_thread" = "yes"; then
13493 CXX="$CXX -Kthread"
13495 cat >>confdefs.h <<\_ACEOF
13496 #define WITH_THREAD 1
13497 _ACEOF
13499 posix_threads=yes
13500 THREADOBJ="Python/thread.o"
13501 elif test "$ac_cv_pthread" = "yes"
13502 then
13503 CC="$CC -pthread"
13504 if test "$ac_cv_cxx_thread" = "yes"; then
13505 CXX="$CXX -pthread"
13507 cat >>confdefs.h <<\_ACEOF
13508 #define WITH_THREAD 1
13509 _ACEOF
13511 posix_threads=yes
13512 THREADOBJ="Python/thread.o"
13513 else
13514 if test ! -z "$with_threads" -a -d "$with_threads"
13515 then LDFLAGS="$LDFLAGS -L$with_threads"
13517 if test ! -z "$withval" -a -d "$withval"
13518 then LDFLAGS="$LDFLAGS -L$withval"
13521 # According to the POSIX spec, a pthreads implementation must
13522 # define _POSIX_THREADS in unistd.h. Some apparently don't
13523 # (e.g. gnu pth with pthread emulation)
13524 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13525 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13533 #include <unistd.h>
13534 #ifdef _POSIX_THREADS
13536 #endif
13538 _ACEOF
13539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13540 $EGREP "yes" >/dev/null 2>&1; then
13541 unistd_defines_pthreads=yes
13542 else
13543 unistd_defines_pthreads=no
13545 rm -f conftest*
13547 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13548 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13550 cat >>confdefs.h <<\_ACEOF
13551 #define _REENTRANT 1
13552 _ACEOF
13554 if test "${ac_cv_header_cthreads_h+set}" = set; then
13555 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13556 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13557 if test "${ac_cv_header_cthreads_h+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13561 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13562 else
13563 # Is the header compilable?
13564 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13565 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h. */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13573 #include <cthreads.h>
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_compile") 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } && {
13589 test -z "$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 } && test -s conftest.$ac_objext; then
13592 ac_header_compiler=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_compiler=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602 echo "${ECHO_T}$ac_header_compiler" >&6; }
13604 # Is the header present?
13605 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13606 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h. */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <cthreads.h>
13614 _ACEOF
13615 if { (ac_try="$ac_cpp conftest.$ac_ext"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null && {
13628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 }; then
13631 ac_header_preproc=yes
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_header_preproc=no
13639 rm -f conftest.err conftest.$ac_ext
13640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 echo "${ECHO_T}$ac_header_preproc" >&6; }
13643 # So? What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13645 yes:no: )
13646 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13649 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc=yes
13652 no:yes:* )
13653 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13654 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13656 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13658 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13660 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13662 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13664 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13665 ( cat <<\_ASBOX
13666 ## ------------------------------------------------ ##
13667 ## Report this to http://www.python.org/python-bugs ##
13668 ## ------------------------------------------------ ##
13669 _ASBOX
13670 ) | sed "s/^/$as_me: WARNING: /" >&2
13672 esac
13673 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13674 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13675 if test "${ac_cv_header_cthreads_h+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 ac_cv_header_cthreads_h=$ac_header_preproc
13680 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13681 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13684 if test $ac_cv_header_cthreads_h = yes; then
13685 cat >>confdefs.h <<\_ACEOF
13686 #define WITH_THREAD 1
13687 _ACEOF
13689 cat >>confdefs.h <<\_ACEOF
13690 #define C_THREADS 1
13691 _ACEOF
13694 cat >>confdefs.h <<\_ACEOF
13695 #define HURD_C_THREADS 1
13696 _ACEOF
13698 LIBS="$LIBS -lthreads"
13699 THREADOBJ="Python/thread.o"
13700 else
13702 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13703 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13704 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13705 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13709 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13710 else
13711 # Is the header compilable?
13712 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13713 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13721 #include <mach/cthreads.h>
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compile") 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest.$ac_objext; then
13740 ac_header_compiler=yes
13741 else
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_header_compiler=no
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6; }
13752 # Is the header present?
13753 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13754 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <mach/cthreads.h>
13762 _ACEOF
13763 if { (ac_try="$ac_cpp conftest.$ac_ext"
13764 case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13770 ac_status=$?
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } >/dev/null && {
13776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13777 test ! -s conftest.err
13778 }; then
13779 ac_header_preproc=yes
13780 else
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 ac_header_preproc=no
13787 rm -f conftest.err conftest.$ac_ext
13788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6; }
13791 # So? What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13793 yes:no: )
13794 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13798 ac_header_preproc=yes
13800 no:yes:* )
13801 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13813 ( cat <<\_ASBOX
13814 ## ------------------------------------------------ ##
13815 ## Report this to http://www.python.org/python-bugs ##
13816 ## ------------------------------------------------ ##
13817 _ASBOX
13818 ) | sed "s/^/$as_me: WARNING: /" >&2
13820 esac
13821 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13822 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13823 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13828 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13829 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13832 if test $ac_cv_header_mach_cthreads_h = yes; then
13833 cat >>confdefs.h <<\_ACEOF
13834 #define WITH_THREAD 1
13835 _ACEOF
13837 cat >>confdefs.h <<\_ACEOF
13838 #define C_THREADS 1
13839 _ACEOF
13842 cat >>confdefs.h <<\_ACEOF
13843 #define MACH_C_THREADS 1
13844 _ACEOF
13846 THREADOBJ="Python/thread.o"
13847 else
13849 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13850 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13852 # Check whether --with-pth was given.
13853 if test "${with_pth+set}" = set; then
13854 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13855 echo "${ECHO_T}$withval" >&6; }
13856 cat >>confdefs.h <<\_ACEOF
13857 #define WITH_THREAD 1
13858 _ACEOF
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_PTH 1
13863 _ACEOF
13865 LIBS="-lpth $LIBS"
13866 THREADOBJ="Python/thread.o"
13867 else
13868 { echo "$as_me:$LINENO: result: no" >&5
13869 echo "${ECHO_T}no" >&6; }
13871 # Just looking for pthread_create in libpthread is not enough:
13872 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13873 # So we really have to include pthread.h, and then link.
13874 _libs=$LIBS
13875 LIBS="$LIBS -lpthread"
13876 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13877 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 #include <pthread.h>
13886 void * start_routine (void *arg) { exit (0); }
13888 main ()
13891 pthread_create (NULL, NULL, start_routine, NULL)
13893 return 0;
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (ac_try="$ac_link"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_link") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext &&
13913 $as_test_x conftest$ac_exeext; then
13915 { echo "$as_me:$LINENO: result: yes" >&5
13916 echo "${ECHO_T}yes" >&6; }
13917 cat >>confdefs.h <<\_ACEOF
13918 #define WITH_THREAD 1
13919 _ACEOF
13921 posix_threads=yes
13922 THREADOBJ="Python/thread.o"
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13928 LIBS=$_libs
13929 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13930 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13931 if test "${ac_cv_func_pthread_detach+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13942 #define pthread_detach innocuous_pthread_detach
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char pthread_detach (); below.
13946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13947 <limits.h> exists even on freestanding compilers. */
13949 #ifdef __STDC__
13950 # include <limits.h>
13951 #else
13952 # include <assert.h>
13953 #endif
13955 #undef pthread_detach
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13960 #ifdef __cplusplus
13961 extern "C"
13962 #endif
13963 char pthread_detach ();
13964 /* The GNU C library defines this for functions which it implements
13965 to always fail with ENOSYS. Some functions are actually named
13966 something starting with __ and the normal name is an alias. */
13967 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13968 choke me
13969 #endif
13972 main ()
13974 return pthread_detach ();
13976 return 0;
13978 _ACEOF
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest$ac_exeext &&
13996 $as_test_x conftest$ac_exeext; then
13997 ac_cv_func_pthread_detach=yes
13998 else
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_cv_func_pthread_detach=no
14005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14006 conftest$ac_exeext conftest.$ac_ext
14008 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14009 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14010 if test $ac_cv_func_pthread_detach = yes; then
14011 cat >>confdefs.h <<\_ACEOF
14012 #define WITH_THREAD 1
14013 _ACEOF
14015 posix_threads=yes
14016 THREADOBJ="Python/thread.o"
14017 else
14019 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14021 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14027 else
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14030 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <atheos/threads.h>
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14071 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <atheos/threads.h>
14079 _ACEOF
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev/null && {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 }; then
14096 ac_header_preproc=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110 yes:no: )
14111 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14117 no:yes:* )
14118 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14130 ( cat <<\_ASBOX
14131 ## ------------------------------------------------ ##
14132 ## Report this to http://www.python.org/python-bugs ##
14133 ## ------------------------------------------------ ##
14134 _ASBOX
14135 ) | sed "s/^/$as_me: WARNING: /" >&2
14137 esac
14138 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14139 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14140 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 ac_cv_header_atheos_threads_h=$ac_header_preproc
14145 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14146 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14149 if test $ac_cv_header_atheos_threads_h = yes; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define WITH_THREAD 1
14152 _ACEOF
14155 cat >>confdefs.h <<\_ACEOF
14156 #define ATHEOS_THREADS 1
14157 _ACEOF
14159 THREADOBJ="Python/thread.o"
14160 else
14162 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14163 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14164 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14165 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14169 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14170 else
14171 # Is the header compilable?
14172 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14173 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 $ac_includes_default
14181 #include <kernel/OS.h>
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (ac_try="$ac_compile"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_compile") 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest.$ac_objext; then
14200 ac_header_compiler=yes
14201 else
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_header_compiler=no
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14210 echo "${ECHO_T}$ac_header_compiler" >&6; }
14212 # Is the header present?
14213 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14214 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <kernel/OS.h>
14222 _ACEOF
14223 if { (ac_try="$ac_cpp conftest.$ac_ext"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } >/dev/null && {
14236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14237 test ! -s conftest.err
14238 }; then
14239 ac_header_preproc=yes
14240 else
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 ac_header_preproc=no
14247 rm -f conftest.err conftest.$ac_ext
14248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14249 echo "${ECHO_T}$ac_header_preproc" >&6; }
14251 # So? What about this header?
14252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14253 yes:no: )
14254 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14255 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14257 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14258 ac_header_preproc=yes
14260 no:yes:* )
14261 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14262 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14264 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14266 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14268 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14270 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14271 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14272 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14273 ( cat <<\_ASBOX
14274 ## ------------------------------------------------ ##
14275 ## Report this to http://www.python.org/python-bugs ##
14276 ## ------------------------------------------------ ##
14277 _ASBOX
14278 ) | sed "s/^/$as_me: WARNING: /" >&2
14280 esac
14281 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14282 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14283 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286 ac_cv_header_kernel_OS_h=$ac_header_preproc
14288 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14289 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14292 if test $ac_cv_header_kernel_OS_h = yes; then
14293 cat >>confdefs.h <<\_ACEOF
14294 #define WITH_THREAD 1
14295 _ACEOF
14298 cat >>confdefs.h <<\_ACEOF
14299 #define BEOS_THREADS 1
14300 _ACEOF
14302 THREADOBJ="Python/thread.o"
14303 else
14305 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14306 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14307 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310 ac_check_lib_save_LIBS=$LIBS
14311 LIBS="-lpthreads $LIBS"
14312 cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h. */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14319 /* Override any GCC internal prototype to avoid an error.
14320 Use char because int might match the return type of a GCC
14321 builtin and then its argument prototype would still apply. */
14322 #ifdef __cplusplus
14323 extern "C"
14324 #endif
14325 char pthread_create ();
14327 main ()
14329 return pthread_create ();
14331 return 0;
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_link") 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest$ac_exeext &&
14351 $as_test_x conftest$ac_exeext; then
14352 ac_cv_lib_pthreads_pthread_create=yes
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_cv_lib_pthreads_pthread_create=no
14360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS
14364 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14365 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14366 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14367 cat >>confdefs.h <<\_ACEOF
14368 #define WITH_THREAD 1
14369 _ACEOF
14371 posix_threads=yes
14372 LIBS="$LIBS -lpthreads"
14373 THREADOBJ="Python/thread.o"
14374 else
14376 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14377 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14378 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381 ac_check_lib_save_LIBS=$LIBS
14382 LIBS="-lc_r $LIBS"
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14390 /* Override any GCC internal prototype to avoid an error.
14391 Use char because int might match the return type of a GCC
14392 builtin and then its argument prototype would still apply. */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char pthread_create ();
14398 main ()
14400 return pthread_create ();
14402 return 0;
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 ac_cv_lib_c_r_pthread_create=yes
14424 else
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_cv_lib_c_r_pthread_create=no
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14435 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14436 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14437 if test $ac_cv_lib_c_r_pthread_create = yes; then
14438 cat >>confdefs.h <<\_ACEOF
14439 #define WITH_THREAD 1
14440 _ACEOF
14442 posix_threads=yes
14443 LIBS="$LIBS -lc_r"
14444 THREADOBJ="Python/thread.o"
14445 else
14447 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14448 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14449 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 ac_check_lib_save_LIBS=$LIBS
14453 LIBS="-lpthread $LIBS"
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h. */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14461 /* Override any GCC internal prototype to avoid an error.
14462 Use char because int might match the return type of a GCC
14463 builtin and then its argument prototype would still apply. */
14464 #ifdef __cplusplus
14465 extern "C"
14466 #endif
14467 char __pthread_create_system ();
14469 main ()
14471 return __pthread_create_system ();
14473 return 0;
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (ac_try="$ac_link"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_link") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && {
14490 test -z "$ac_c_werror_flag" ||
14491 test ! -s conftest.err
14492 } && test -s conftest$ac_exeext &&
14493 $as_test_x conftest$ac_exeext; then
14494 ac_cv_lib_pthread___pthread_create_system=yes
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_cv_lib_pthread___pthread_create_system=no
14502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14506 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14507 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14508 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14509 cat >>confdefs.h <<\_ACEOF
14510 #define WITH_THREAD 1
14511 _ACEOF
14513 posix_threads=yes
14514 LIBS="$LIBS -lpthread"
14515 THREADOBJ="Python/thread.o"
14516 else
14518 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14519 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14520 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 ac_check_lib_save_LIBS=$LIBS
14524 LIBS="-lcma $LIBS"
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14532 /* Override any GCC internal prototype to avoid an error.
14533 Use char because int might match the return type of a GCC
14534 builtin and then its argument prototype would still apply. */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 char pthread_create ();
14540 main ()
14542 return pthread_create ();
14544 return 0;
14546 _ACEOF
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (ac_try="$ac_link"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_link") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && {
14561 test -z "$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 } && test -s conftest$ac_exeext &&
14564 $as_test_x conftest$ac_exeext; then
14565 ac_cv_lib_cma_pthread_create=yes
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 ac_cv_lib_cma_pthread_create=no
14573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14574 conftest$ac_exeext conftest.$ac_ext
14575 LIBS=$ac_check_lib_save_LIBS
14577 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14578 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14579 if test $ac_cv_lib_cma_pthread_create = yes; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define WITH_THREAD 1
14582 _ACEOF
14584 posix_threads=yes
14585 LIBS="$LIBS -lcma"
14586 THREADOBJ="Python/thread.o"
14587 else
14589 USE_THREAD_MODULE="#"
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14620 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14621 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14622 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 ac_check_lib_save_LIBS=$LIBS
14626 LIBS="-lmpc $LIBS"
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14634 /* Override any GCC internal prototype to avoid an error.
14635 Use char because int might match the return type of a GCC
14636 builtin and then its argument prototype would still apply. */
14637 #ifdef __cplusplus
14638 extern "C"
14639 #endif
14640 char usconfig ();
14642 main ()
14644 return usconfig ();
14646 return 0;
14648 _ACEOF
14649 rm -f conftest.$ac_objext conftest$ac_exeext
14650 if { (ac_try="$ac_link"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_link") 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest$ac_exeext &&
14666 $as_test_x conftest$ac_exeext; then
14667 ac_cv_lib_mpc_usconfig=yes
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_cv_lib_mpc_usconfig=no
14675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676 conftest$ac_exeext conftest.$ac_ext
14677 LIBS=$ac_check_lib_save_LIBS
14679 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14680 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14681 if test $ac_cv_lib_mpc_usconfig = yes; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define WITH_THREAD 1
14684 _ACEOF
14686 LIBS="$LIBS -lmpc"
14687 THREADOBJ="Python/thread.o"
14688 USE_THREAD_MODULE=""
14692 if test "$posix_threads" != "yes"; then
14693 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14694 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14695 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 ac_check_lib_save_LIBS=$LIBS
14699 LIBS="-lthread $LIBS"
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h. */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14707 /* Override any GCC internal prototype to avoid an error.
14708 Use char because int might match the return type of a GCC
14709 builtin and then its argument prototype would still apply. */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 char thr_create ();
14715 main ()
14717 return thr_create ();
14719 return 0;
14721 _ACEOF
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && {
14736 test -z "$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14738 } && test -s conftest$ac_exeext &&
14739 $as_test_x conftest$ac_exeext; then
14740 ac_cv_lib_thread_thr_create=yes
14741 else
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ac_cv_lib_thread_thr_create=no
14748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14749 conftest$ac_exeext conftest.$ac_ext
14750 LIBS=$ac_check_lib_save_LIBS
14752 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14753 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14754 if test $ac_cv_lib_thread_thr_create = yes; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define WITH_THREAD 1
14757 _ACEOF
14759 LIBS="$LIBS -lthread"
14760 THREADOBJ="Python/thread.o"
14761 USE_THREAD_MODULE=""
14766 if test "$USE_THREAD_MODULE" != "#"
14767 then
14768 # If the above checks didn't disable threads, (at least) OSF1
14769 # needs this '-threads' argument during linking.
14770 case $ac_sys_system in
14771 OSF1) LDLAST=-threads;;
14772 esac
14776 if test "$posix_threads" = "yes"; then
14777 if test "$unistd_defines_pthreads" = "no"; then
14779 cat >>confdefs.h <<\_ACEOF
14780 #define _POSIX_THREADS 1
14781 _ACEOF
14785 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14786 case $ac_sys_system/$ac_sys_release in
14787 SunOS/5.6)
14788 cat >>confdefs.h <<\_ACEOF
14789 #define HAVE_PTHREAD_DESTRUCTOR 1
14790 _ACEOF
14793 SunOS/5.8)
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14796 _ACEOF
14799 AIX/5)
14800 cat >>confdefs.h <<\_ACEOF
14801 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14802 _ACEOF
14805 esac
14807 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14808 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14809 if test "${ac_cv_pthread_system_supported+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 if test "$cross_compiling" = yes; then
14813 ac_cv_pthread_system_supported=no
14814 else
14815 cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h. */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <pthread.h>
14822 void *foo(void *parm) {
14823 return NULL;
14825 main() {
14826 pthread_attr_t attr;
14827 pthread_t id;
14828 if (pthread_attr_init(&attr)) exit(-1);
14829 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14830 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14831 exit(0);
14833 _ACEOF
14834 rm -f conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_link") 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_pthread_system_supported=yes
14855 else
14856 echo "$as_me: program exited with status $ac_status" >&5
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ( exit $ac_status )
14861 ac_cv_pthread_system_supported=no
14863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14871 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14872 if test "$ac_cv_pthread_system_supported" = "yes"; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14876 _ACEOF
14880 for ac_func in pthread_sigmask
14882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h. */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14896 #define $ac_func innocuous_$ac_func
14898 /* System header to define __stub macros and hopefully few prototypes,
14899 which can conflict with char $ac_func (); below.
14900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14901 <limits.h> exists even on freestanding compilers. */
14903 #ifdef __STDC__
14904 # include <limits.h>
14905 #else
14906 # include <assert.h>
14907 #endif
14909 #undef $ac_func
14911 /* Override any GCC internal prototype to avoid an error.
14912 Use char because int might match the return type of a GCC
14913 builtin and then its argument prototype would still apply. */
14914 #ifdef __cplusplus
14915 extern "C"
14916 #endif
14917 char $ac_func ();
14918 /* The GNU C library defines this for functions which it implements
14919 to always fail with ENOSYS. Some functions are actually named
14920 something starting with __ and the normal name is an alias. */
14921 #if defined __stub_$ac_func || defined __stub___$ac_func
14922 choke me
14923 #endif
14926 main ()
14928 return $ac_func ();
14930 return 0;
14932 _ACEOF
14933 rm -f conftest.$ac_objext conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest$ac_exeext &&
14950 $as_test_x conftest$ac_exeext; then
14951 eval "$as_ac_var=yes"
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 eval "$as_ac_var=no"
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14962 ac_res=`eval echo '${'$as_ac_var'}'`
14963 { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14965 if test `eval echo '${'$as_ac_var'}'` = yes; then
14966 cat >>confdefs.h <<_ACEOF
14967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968 _ACEOF
14969 case $ac_sys_system in
14970 CYGWIN*)
14972 cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14974 _ACEOF
14977 esac
14979 done
14984 # Check for enable-ipv6
14987 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14988 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14989 # Check whether --enable-ipv6 was given.
14990 if test "${enable_ipv6+set}" = set; then
14991 enableval=$enable_ipv6; case "$enableval" in
14993 { echo "$as_me:$LINENO: result: no" >&5
14994 echo "${ECHO_T}no" >&6; }
14995 ipv6=no
14997 *) { echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6; }
14999 cat >>confdefs.h <<\_ACEOF
15000 #define ENABLE_IPV6 1
15001 _ACEOF
15003 ipv6=yes
15005 esac
15006 else
15008 if test "$cross_compiling" = yes; then
15009 { echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6; }
15011 ipv6=no
15013 else
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 /* AF_INET6 available check */
15021 #include <sys/types.h>
15022 #include <sys/socket.h>
15023 main()
15025 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15026 exit(1);
15027 else
15028 exit(0);
15031 _ACEOF
15032 rm -f conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043 { (case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_try") 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 { echo "$as_me:$LINENO: result: yes" >&5
15053 echo "${ECHO_T}yes" >&6; }
15054 ipv6=yes
15055 else
15056 echo "$as_me: program exited with status $ac_status" >&5
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ( exit $ac_status )
15061 { echo "$as_me:$LINENO: result: no" >&5
15062 echo "${ECHO_T}no" >&6; }
15063 ipv6=no
15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15070 if test "$ipv6" = "yes"; then
15071 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15072 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 #include <sys/types.h>
15080 #include <netinet/in.h>
15082 main ()
15084 struct sockaddr_in6 x;
15085 x.sin6_scope_id;
15087 return 0;
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (ac_try="$ac_compile"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.$ac_objext; then
15107 { echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6; }
15109 ipv6=yes
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 { echo "$as_me:$LINENO: result: no" >&5
15115 echo "${ECHO_T}no" >&6; }
15116 ipv6=no
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 if test "$ipv6" = "yes"; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define ENABLE_IPV6 1
15125 _ACEOF
15132 ipv6type=unknown
15133 ipv6lib=none
15134 ipv6trylibc=no
15136 if test "$ipv6" = "yes"; then
15137 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15138 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15139 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15141 case $i in
15142 inria)
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15150 #include <netinet/in.h>
15151 #ifdef IPV6_INRIA_VERSION
15153 #endif
15154 _ACEOF
15155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15156 $EGREP "yes" >/dev/null 2>&1; then
15157 ipv6type=$i
15159 rm -f conftest*
15162 kame)
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15170 #include <netinet/in.h>
15171 #ifdef __KAME__
15173 #endif
15174 _ACEOF
15175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15176 $EGREP "yes" >/dev/null 2>&1; then
15177 ipv6type=$i;
15178 ipv6lib=inet6
15179 ipv6libdir=/usr/local/v6/lib
15180 ipv6trylibc=yes
15182 rm -f conftest*
15185 linux-glibc)
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15193 #include <features.h>
15194 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15196 #endif
15197 _ACEOF
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "yes" >/dev/null 2>&1; then
15200 ipv6type=$i;
15201 ipv6trylibc=yes
15203 rm -f conftest*
15206 linux-inet6)
15207 if test -d /usr/inet6; then
15208 ipv6type=$i
15209 ipv6lib=inet6
15210 ipv6libdir=/usr/inet6/lib
15211 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15214 solaris)
15215 if test -f /etc/netconfig; then
15216 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15217 ipv6type=$i
15218 ipv6trylibc=yes
15222 toshiba)
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 #include <sys/param.h>
15231 #ifdef _TOSHIBA_INET6
15233 #endif
15234 _ACEOF
15235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15236 $EGREP "yes" >/dev/null 2>&1; then
15237 ipv6type=$i;
15238 ipv6lib=inet6;
15239 ipv6libdir=/usr/local/v6/lib
15241 rm -f conftest*
15244 v6d)
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 #include </usr/local/v6/include/sys/v6config.h>
15253 #ifdef __V6D__
15255 #endif
15256 _ACEOF
15257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15258 $EGREP "yes" >/dev/null 2>&1; then
15259 ipv6type=$i;
15260 ipv6lib=v6;
15261 ipv6libdir=/usr/local/v6/lib;
15262 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15264 rm -f conftest*
15267 zeta)
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h. */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 #include <sys/param.h>
15276 #ifdef _ZETA_MINAMI_INET6
15278 #endif
15279 _ACEOF
15280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15281 $EGREP "yes" >/dev/null 2>&1; then
15282 ipv6type=$i;
15283 ipv6lib=inet6;
15284 ipv6libdir=/usr/local/v6/lib
15286 rm -f conftest*
15289 esac
15290 if test "$ipv6type" != "unknown"; then
15291 break
15293 done
15294 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15295 echo "${ECHO_T}$ipv6type" >&6; }
15298 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15299 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15300 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15301 echo "using lib$ipv6lib"
15302 else
15303 if test $ipv6trylibc = "yes"; then
15304 echo "using libc"
15305 else
15306 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15307 echo "You need to fetch lib$ipv6lib.a from appropriate"
15308 echo 'ipv6 kit and compile beforehand.'
15309 exit 1
15314 # Check for --with-doc-strings
15315 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15316 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15318 # Check whether --with-doc-strings was given.
15319 if test "${with_doc_strings+set}" = set; then
15320 withval=$with_doc_strings;
15324 if test -z "$with_doc_strings"
15325 then with_doc_strings="yes"
15327 if test "$with_doc_strings" != "no"
15328 then
15330 cat >>confdefs.h <<\_ACEOF
15331 #define WITH_DOC_STRINGS 1
15332 _ACEOF
15335 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15336 echo "${ECHO_T}$with_doc_strings" >&6; }
15338 # Check for Python-specific malloc support
15339 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15340 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15342 # Check whether --with-tsc was given.
15343 if test "${with_tsc+set}" = set; then
15344 withval=$with_tsc;
15345 if test "$withval" != no
15346 then
15348 cat >>confdefs.h <<\_ACEOF
15349 #define WITH_TSC 1
15350 _ACEOF
15352 { echo "$as_me:$LINENO: result: yes" >&5
15353 echo "${ECHO_T}yes" >&6; }
15354 else { echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6; }
15357 else
15358 { echo "$as_me:$LINENO: result: no" >&5
15359 echo "${ECHO_T}no" >&6; }
15363 # Check for Python-specific malloc support
15364 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15365 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15367 # Check whether --with-pymalloc was given.
15368 if test "${with_pymalloc+set}" = set; then
15369 withval=$with_pymalloc;
15373 if test -z "$with_pymalloc"
15374 then with_pymalloc="yes"
15376 if test "$with_pymalloc" != "no"
15377 then
15379 cat >>confdefs.h <<\_ACEOF
15380 #define WITH_PYMALLOC 1
15381 _ACEOF
15384 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15385 echo "${ECHO_T}$with_pymalloc" >&6; }
15387 # Check for --with-wctype-functions
15388 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15389 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15391 # Check whether --with-wctype-functions was given.
15392 if test "${with_wctype_functions+set}" = set; then
15393 withval=$with_wctype_functions;
15394 if test "$withval" != no
15395 then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define WANT_WCTYPE_FUNCTIONS 1
15399 _ACEOF
15401 { echo "$as_me:$LINENO: result: yes" >&5
15402 echo "${ECHO_T}yes" >&6; }
15403 else { echo "$as_me:$LINENO: result: no" >&5
15404 echo "${ECHO_T}no" >&6; }
15406 else
15407 { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15412 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15414 DLINCLDIR=.
15416 # the dlopen() function means we might want to use dynload_shlib.o. some
15417 # platforms, such as AIX, have dlopen(), but don't want to use it.
15419 for ac_func in dlopen
15421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15435 #define $ac_func innocuous_$ac_func
15437 /* System header to define __stub macros and hopefully few prototypes,
15438 which can conflict with char $ac_func (); below.
15439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15440 <limits.h> exists even on freestanding compilers. */
15442 #ifdef __STDC__
15443 # include <limits.h>
15444 #else
15445 # include <assert.h>
15446 #endif
15448 #undef $ac_func
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char $ac_func ();
15457 /* The GNU C library defines this for functions which it implements
15458 to always fail with ENOSYS. Some functions are actually named
15459 something starting with __ and the normal name is an alias. */
15460 #if defined __stub_$ac_func || defined __stub___$ac_func
15461 choke me
15462 #endif
15465 main ()
15467 return $ac_func ();
15469 return 0;
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest$ac_exeext &&
15489 $as_test_x conftest$ac_exeext; then
15490 eval "$as_ac_var=yes"
15491 else
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 eval "$as_ac_var=no"
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
15501 ac_res=`eval echo '${'$as_ac_var'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 _ACEOF
15510 done
15513 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15514 # loading of modules.
15516 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15517 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15518 if test -z "$DYNLOADFILE"
15519 then
15520 case $ac_sys_system/$ac_sys_release in
15521 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15522 if test "$ac_cv_func_dlopen" = yes
15523 then DYNLOADFILE="dynload_shlib.o"
15524 else DYNLOADFILE="dynload_aix.o"
15527 BeOS*) DYNLOADFILE="dynload_beos.o";;
15528 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15529 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15530 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15531 atheos*) DYNLOADFILE="dynload_atheos.o";;
15533 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15534 # out any dynamic loading
15535 if test "$ac_cv_func_dlopen" = yes
15536 then DYNLOADFILE="dynload_shlib.o"
15537 else DYNLOADFILE="dynload_stub.o"
15540 esac
15542 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15543 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15544 if test "$DYNLOADFILE" != "dynload_stub.o"
15545 then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_DYNAMIC_LOADING 1
15549 _ACEOF
15553 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15556 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15557 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15558 if test -z "$MACHDEP_OBJS"
15559 then
15560 MACHDEP_OBJS=$extra_machdep_objs
15561 else
15562 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15564 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15565 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15567 # checks for library functions
15647 for ac_func in alarm bind_textdomain_codeset chown clock confstr \
15648 ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15649 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15650 getpriority getpwent getspnam getspent getsid getwd \
15651 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15652 mremap nice pathconf pause plock poll pthread_init \
15653 putenv readlink realpath \
15654 select setegid seteuid setgid \
15655 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15656 sigaction siginterrupt sigrelse strftime \
15657 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15658 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15674 #define $ac_func innocuous_$ac_func
15676 /* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15681 #ifdef __STDC__
15682 # include <limits.h>
15683 #else
15684 # include <assert.h>
15685 #endif
15687 #undef $ac_func
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15692 #ifdef __cplusplus
15693 extern "C"
15694 #endif
15695 char $ac_func ();
15696 /* The GNU C library defines this for functions which it implements
15697 to always fail with ENOSYS. Some functions are actually named
15698 something starting with __ and the normal name is an alias. */
15699 #if defined __stub_$ac_func || defined __stub___$ac_func
15700 choke me
15701 #endif
15704 main ()
15706 return $ac_func ();
15708 return 0;
15710 _ACEOF
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (ac_try="$ac_link"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_link") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest$ac_exeext &&
15728 $as_test_x conftest$ac_exeext; then
15729 eval "$as_ac_var=yes"
15730 else
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 eval "$as_ac_var=no"
15737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 conftest$ac_exeext conftest.$ac_ext
15740 ac_res=`eval echo '${'$as_ac_var'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15743 if test `eval echo '${'$as_ac_var'}'` = yes; then
15744 cat >>confdefs.h <<_ACEOF
15745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15746 _ACEOF
15749 done
15752 # For some functions, having a definition is not sufficient, since
15753 # we want to take their address.
15754 { echo "$as_me:$LINENO: checking for chroot" >&5
15755 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <unistd.h>
15764 main ()
15766 void *x=chroot
15768 return 0;
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (ac_try="$ac_compile"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_compile") 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest.$ac_objext; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_CHROOT 1
15791 _ACEOF
15793 { echo "$as_me:$LINENO: result: yes" >&5
15794 echo "${ECHO_T}yes" >&6; }
15795 else
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 { echo "$as_me:$LINENO: checking for link" >&5
15806 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h. */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 #include <unistd.h>
15815 main ()
15817 void *x=link
15819 return 0;
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_compile") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && {
15836 test -z "$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 } && test -s conftest.$ac_objext; then
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_LINK 1
15842 _ACEOF
15844 { echo "$as_me:$LINENO: result: yes" >&5
15845 echo "${ECHO_T}yes" >&6; }
15846 else
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 { echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6; }
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { echo "$as_me:$LINENO: checking for symlink" >&5
15857 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h. */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <unistd.h>
15866 main ()
15868 void *x=symlink
15870 return 0;
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_compile") 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest.$ac_objext; then
15891 cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_SYMLINK 1
15893 _ACEOF
15895 { echo "$as_me:$LINENO: result: yes" >&5
15896 echo "${ECHO_T}yes" >&6; }
15897 else
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 { echo "$as_me:$LINENO: result: no" >&5
15902 echo "${ECHO_T}no" >&6; }
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 { echo "$as_me:$LINENO: checking for fchdir" >&5
15908 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h. */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <unistd.h>
15917 main ()
15919 void *x=fchdir
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.$ac_objext; then
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_FCHDIR 1
15944 _ACEOF
15946 { echo "$as_me:$LINENO: result: yes" >&5
15947 echo "${ECHO_T}yes" >&6; }
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 { echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6; }
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958 { echo "$as_me:$LINENO: checking for fsync" >&5
15959 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <unistd.h>
15968 main ()
15970 void *x=fsync
15972 return 0;
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (ac_try="$ac_compile"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest.$ac_objext; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_FSYNC 1
15995 _ACEOF
15997 { echo "$as_me:$LINENO: result: yes" >&5
15998 echo "${ECHO_T}yes" >&6; }
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 { echo "$as_me:$LINENO: result: no" >&5
16004 echo "${ECHO_T}no" >&6; }
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16010 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <unistd.h>
16019 main ()
16021 void *x=fdatasync
16023 return 0;
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (ac_try="$ac_compile"
16028 case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_compile") 2>conftest.er1
16034 ac_status=$?
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } && {
16040 test -z "$ac_c_werror_flag" ||
16041 test ! -s conftest.err
16042 } && test -s conftest.$ac_objext; then
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE_FDATASYNC 1
16046 _ACEOF
16048 { echo "$as_me:$LINENO: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6; }
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 { echo "$as_me:$LINENO: result: no" >&5
16055 echo "${ECHO_T}no" >&6; }
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 # On some systems (eg. FreeBSD 5), we would find a definition of the
16062 # functions ctermid_r, setgroups in the library, but no prototype
16063 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16064 # address to avoid compiler warnings and potential miscompilations
16065 # because of the missing prototypes.
16067 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16068 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16076 #include "confdefs.h"
16077 #include <stdio.h>
16080 main ()
16082 void* p = ctermid_r
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (ac_try="$ac_compile"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_compile") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 } && test -s conftest.$ac_objext; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE_CTERMID_R 1
16107 _ACEOF
16109 { echo "$as_me:$LINENO: result: yes" >&5
16110 echo "${ECHO_T}yes" >&6; }
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 { echo "$as_me:$LINENO: result: no" >&5
16116 echo "${ECHO_T}no" >&6; }
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { echo "$as_me:$LINENO: checking for flock" >&5
16123 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h. */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16131 #include "confdefs.h"
16132 #include <sys/file.h>
16135 main ()
16137 void* p = flock
16139 return 0;
16141 _ACEOF
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_compile") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest.$ac_objext; then
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_FLOCK 1
16162 _ACEOF
16164 { echo "$as_me:$LINENO: result: yes" >&5
16165 echo "${ECHO_T}yes" >&6; }
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 { echo "$as_me:$LINENO: result: no" >&5
16171 echo "${ECHO_T}no" >&6; }
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16178 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16186 #include "confdefs.h"
16187 #include <unistd.h>
16190 main ()
16192 void* p = getpagesize
16194 return 0;
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_GETPAGESIZE 1
16217 _ACEOF
16219 { echo "$as_me:$LINENO: result: yes" >&5
16220 echo "${ECHO_T}yes" >&6; }
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 { echo "$as_me:$LINENO: result: no" >&5
16226 echo "${ECHO_T}no" >&6; }
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 for ac_prog in true
16234 # Extract the first word of "$ac_prog", so it can be a program name with args.
16235 set dummy $ac_prog; ac_word=$2
16236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16238 if test "${ac_cv_prog_TRUE+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 if test -n "$TRUE"; then
16242 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16243 else
16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16247 IFS=$as_save_IFS
16248 test -z "$as_dir" && as_dir=.
16249 for ac_exec_ext in '' $ac_executable_extensions; do
16250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16251 ac_cv_prog_TRUE="$ac_prog"
16252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16253 break 2
16255 done
16256 done
16257 IFS=$as_save_IFS
16261 TRUE=$ac_cv_prog_TRUE
16262 if test -n "$TRUE"; then
16263 { echo "$as_me:$LINENO: result: $TRUE" >&5
16264 echo "${ECHO_T}$TRUE" >&6; }
16265 else
16266 { echo "$as_me:$LINENO: result: no" >&5
16267 echo "${ECHO_T}no" >&6; }
16271 test -n "$TRUE" && break
16272 done
16273 test -n "$TRUE" || TRUE="/bin/true"
16276 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16277 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16278 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 ac_check_lib_save_LIBS=$LIBS
16282 LIBS="-lc $LIBS"
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 char inet_aton ();
16298 main ()
16300 return inet_aton ();
16302 return 0;
16304 _ACEOF
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest$ac_exeext &&
16322 $as_test_x conftest$ac_exeext; then
16323 ac_cv_lib_c_inet_aton=yes
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 ac_cv_lib_c_inet_aton=no
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16333 LIBS=$ac_check_lib_save_LIBS
16335 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16336 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16337 if test $ac_cv_lib_c_inet_aton = yes; then
16338 $ac_cv_prog_TRUE
16339 else
16341 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16342 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16343 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 ac_check_lib_save_LIBS=$LIBS
16347 LIBS="-lresolv $LIBS"
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h. */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16355 /* Override any GCC internal prototype to avoid an error.
16356 Use char because int might match the return type of a GCC
16357 builtin and then its argument prototype would still apply. */
16358 #ifdef __cplusplus
16359 extern "C"
16360 #endif
16361 char inet_aton ();
16363 main ()
16365 return inet_aton ();
16367 return 0;
16369 _ACEOF
16370 rm -f conftest.$ac_objext conftest$ac_exeext
16371 if { (ac_try="$ac_link"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 ac_cv_lib_resolv_inet_aton=yes
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_lib_resolv_inet_aton=no
16396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16397 conftest$ac_exeext conftest.$ac_ext
16398 LIBS=$ac_check_lib_save_LIBS
16400 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16401 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16402 if test $ac_cv_lib_resolv_inet_aton = yes; then
16403 cat >>confdefs.h <<_ACEOF
16404 #define HAVE_LIBRESOLV 1
16405 _ACEOF
16407 LIBS="-lresolv $LIBS"
16415 # On Tru64, chflags seems to be present, but calling it will
16416 # exit Python
16417 { echo "$as_me:$LINENO: checking for chflags" >&5
16418 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16419 if test "$cross_compiling" = yes; then
16420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16421 See \`config.log' for more details." >&5
16422 echo "$as_me: error: cannot run test program while cross compiling
16423 See \`config.log' for more details." >&2;}
16424 { (exit 1); exit 1; }; }
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16433 #include <sys/stat.h>
16434 #include <unistd.h>
16435 int main(int argc, char*argv[])
16437 if(chflags(argv[0], 0) != 0)
16438 return 1;
16439 return 0;
16442 _ACEOF
16443 rm -f conftest$ac_exeext
16444 if { (ac_try="$ac_link"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_link") 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16464 cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_CHFLAGS 1
16466 _ACEOF
16468 { echo "$as_me:$LINENO: result: yes" >&5
16469 echo "${ECHO_T}yes" >&6; }
16470 else
16471 echo "$as_me: program exited with status $ac_status" >&5
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ( exit $ac_status )
16476 { echo "$as_me:$LINENO: result: no" >&5
16477 echo "${ECHO_T}no" >&6; }
16480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 { echo "$as_me:$LINENO: checking for lchflags" >&5
16486 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16487 if test "$cross_compiling" = yes; then
16488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16489 See \`config.log' for more details." >&5
16490 echo "$as_me: error: cannot run test program while cross compiling
16491 See \`config.log' for more details." >&2;}
16492 { (exit 1); exit 1; }; }
16493 else
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 #include <sys/stat.h>
16502 #include <unistd.h>
16503 int main(int argc, char*argv[])
16505 if(lchflags(argv[0], 0) != 0)
16506 return 1;
16507 return 0;
16510 _ACEOF
16511 rm -f conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 cat >>confdefs.h <<\_ACEOF
16533 #define HAVE_LCHFLAGS 1
16534 _ACEOF
16536 { echo "$as_me:$LINENO: result: yes" >&5
16537 echo "${ECHO_T}yes" >&6; }
16538 else
16539 echo "$as_me: program exited with status $ac_status" >&5
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ( exit $ac_status )
16544 { echo "$as_me:$LINENO: result: no" >&5
16545 echo "${ECHO_T}no" >&6; }
16548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 case $ac_sys_system/$ac_sys_release in
16554 Darwin/*)
16555 _CUR_CFLAGS="${CFLAGS}"
16556 _CUR_LDFLAGS="${LDFLAGS}"
16557 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16558 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16560 esac
16562 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16563 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16564 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567 ac_check_lib_save_LIBS=$LIBS
16568 LIBS="-lz $LIBS"
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16576 /* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
16579 #ifdef __cplusplus
16580 extern "C"
16581 #endif
16582 char inflateCopy ();
16584 main ()
16586 return inflateCopy ();
16588 return 0;
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest$ac_exeext &&
16608 $as_test_x conftest$ac_exeext; then
16609 ac_cv_lib_z_inflateCopy=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_cv_lib_z_inflateCopy=no
16617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16618 conftest$ac_exeext conftest.$ac_ext
16619 LIBS=$ac_check_lib_save_LIBS
16621 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16622 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16623 if test $ac_cv_lib_z_inflateCopy = yes; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_ZLIB_COPY 1
16627 _ACEOF
16632 case $ac_sys_system/$ac_sys_release in
16633 Darwin/*)
16634 CFLAGS="${_CUR_CFLAGS}"
16635 LDFLAGS="${_CUR_LDFLAGS}"
16637 esac
16639 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16640 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16648 #include "confdefs.h"
16649 #include <netdb.h>
16652 main ()
16654 void* p = hstrerror; hstrerror(0)
16656 return 0;
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_link") 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest$ac_exeext &&
16676 $as_test_x conftest$ac_exeext; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE_HSTRERROR 1
16680 _ACEOF
16682 { echo "$as_me:$LINENO: result: yes" >&5
16683 echo "${ECHO_T}yes" >&6; }
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 { echo "$as_me:$LINENO: result: no" >&5
16689 echo "${ECHO_T}no" >&6; }
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16697 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16705 #include "confdefs.h"
16706 #include <sys/types.h>
16707 #include <sys/socket.h>
16708 #include <netinet/in.h>
16709 #include <arpa/inet.h>
16712 main ()
16714 void* p = inet_aton;inet_aton(0,0)
16716 return 0;
16718 _ACEOF
16719 rm -f conftest.$ac_objext conftest$ac_exeext
16720 if { (ac_try="$ac_link"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_link") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext &&
16736 $as_test_x conftest$ac_exeext; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_INET_ATON 1
16740 _ACEOF
16742 { echo "$as_me:$LINENO: result: yes" >&5
16743 echo "${ECHO_T}yes" >&6; }
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 { echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6; }
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16757 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 #include "confdefs.h"
16766 #include <sys/types.h>
16767 #include <sys/socket.h>
16768 #include <netinet/in.h>
16769 #include <arpa/inet.h>
16772 main ()
16774 void* p = inet_pton
16776 return 0;
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (ac_try="$ac_compile"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_compile") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest.$ac_objext; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE_INET_PTON 1
16799 _ACEOF
16801 { echo "$as_me:$LINENO: result: yes" >&5
16802 echo "${ECHO_T}yes" >&6; }
16803 else
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 { echo "$as_me:$LINENO: result: no" >&5
16808 echo "${ECHO_T}no" >&6; }
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 # On some systems, setgroups is in unistd.h, on others, in grp.h
16815 { echo "$as_me:$LINENO: checking for setgroups" >&5
16816 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16824 #include "confdefs.h"
16825 #include <unistd.h>
16826 #ifdef HAVE_GRP_H
16827 #include <grp.h>
16828 #endif
16831 main ()
16833 void* p = setgroups
16835 return 0;
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE_SETGROUPS 1
16858 _ACEOF
16860 { echo "$as_me:$LINENO: result: yes" >&5
16861 echo "${ECHO_T}yes" >&6; }
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 { echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6; }
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 # check for openpty and forkpty
16876 for ac_func in openpty
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16899 #ifdef __STDC__
16900 # include <limits.h>
16901 #else
16902 # include <assert.h>
16903 #endif
16905 #undef $ac_func
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char $ac_func ();
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16918 choke me
16919 #endif
16922 main ()
16924 return $ac_func ();
16926 return 0;
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext &&
16946 $as_test_x conftest$ac_exeext; then
16947 eval "$as_ac_var=yes"
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 eval "$as_ac_var=no"
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16958 ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960 echo "${ECHO_T}$ac_res" >&6; }
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 _ACEOF
16966 else
16967 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16968 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16969 if test "${ac_cv_lib_util_openpty+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 ac_check_lib_save_LIBS=$LIBS
16973 LIBS="-lutil $LIBS"
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h. */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16981 /* Override any GCC internal prototype to avoid an error.
16982 Use char because int might match the return type of a GCC
16983 builtin and then its argument prototype would still apply. */
16984 #ifdef __cplusplus
16985 extern "C"
16986 #endif
16987 char openpty ();
16989 main ()
16991 return openpty ();
16993 return 0;
16995 _ACEOF
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (ac_try="$ac_link"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_link") 2>conftest.er1
17004 ac_status=$?
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest$ac_exeext &&
17013 $as_test_x conftest$ac_exeext; then
17014 ac_cv_lib_util_openpty=yes
17015 else
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_cv_lib_util_openpty=no
17022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17023 conftest$ac_exeext conftest.$ac_ext
17024 LIBS=$ac_check_lib_save_LIBS
17026 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17027 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17028 if test $ac_cv_lib_util_openpty = yes; then
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_OPENPTY 1
17031 _ACEOF
17032 LIBS="$LIBS -lutil"
17033 else
17034 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17035 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17036 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 else
17039 ac_check_lib_save_LIBS=$LIBS
17040 LIBS="-lbsd $LIBS"
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 char openpty ();
17056 main ()
17058 return openpty ();
17060 return 0;
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest$ac_exeext &&
17080 $as_test_x conftest$ac_exeext; then
17081 ac_cv_lib_bsd_openpty=yes
17082 else
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_lib_bsd_openpty=no
17089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17091 LIBS=$ac_check_lib_save_LIBS
17093 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17094 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17095 if test $ac_cv_lib_bsd_openpty = yes; then
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_OPENPTY 1
17098 _ACEOF
17099 LIBS="$LIBS -lbsd"
17107 done
17110 for ac_func in forkpty
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126 #define $ac_func innocuous_$ac_func
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char $ac_func (); below.
17130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131 <limits.h> exists even on freestanding compilers. */
17133 #ifdef __STDC__
17134 # include <limits.h>
17135 #else
17136 # include <assert.h>
17137 #endif
17139 #undef $ac_func
17141 /* Override any GCC internal prototype to avoid an error.
17142 Use char because int might match the return type of a GCC
17143 builtin and then its argument prototype would still apply. */
17144 #ifdef __cplusplus
17145 extern "C"
17146 #endif
17147 char $ac_func ();
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined __stub_$ac_func || defined __stub___$ac_func
17152 choke me
17153 #endif
17156 main ()
17158 return $ac_func ();
17160 return 0;
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 eval "$as_ac_var=yes"
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 eval "$as_ac_var=no"
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17192 ac_res=`eval echo '${'$as_ac_var'}'`
17193 { echo "$as_me:$LINENO: result: $ac_res" >&5
17194 echo "${ECHO_T}$ac_res" >&6; }
17195 if test `eval echo '${'$as_ac_var'}'` = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17198 _ACEOF
17200 else
17201 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17202 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lutil $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char forkpty ();
17223 main ()
17225 return forkpty ();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_util_forkpty=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_lib_util_forkpty=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17261 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17262 if test $ac_cv_lib_util_forkpty = yes; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_FORKPTY 1
17265 _ACEOF
17266 LIBS="$LIBS -lutil"
17267 else
17268 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17269 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17270 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lbsd $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char forkpty ();
17290 main ()
17292 return forkpty ();
17294 return 0;
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_bsd_forkpty=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ac_cv_lib_bsd_forkpty=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17327 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17328 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17329 if test $ac_cv_lib_bsd_forkpty = yes; then
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_FORKPTY 1
17332 _ACEOF
17333 LIBS="$LIBS -lbsd"
17341 done
17344 # check for long file support functions
17351 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define $ac_func innocuous_$ac_func
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17374 #ifdef __STDC__
17375 # include <limits.h>
17376 #else
17377 # include <assert.h>
17378 #endif
17380 #undef $ac_func
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 char $ac_func ();
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17393 choke me
17394 #endif
17397 main ()
17399 return $ac_func ();
17401 return 0;
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest$ac_exeext &&
17421 $as_test_x conftest$ac_exeext; then
17422 eval "$as_ac_var=yes"
17423 else
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 eval "$as_ac_var=no"
17430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431 conftest$ac_exeext conftest.$ac_ext
17433 ac_res=`eval echo '${'$as_ac_var'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 if test `eval echo '${'$as_ac_var'}'` = yes; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17439 _ACEOF
17442 done
17450 for ac_func in dup2 getcwd strdup strerror memmove
17452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17466 #define $ac_func innocuous_$ac_func
17468 /* System header to define __stub macros and hopefully few prototypes,
17469 which can conflict with char $ac_func (); below.
17470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471 <limits.h> exists even on freestanding compilers. */
17473 #ifdef __STDC__
17474 # include <limits.h>
17475 #else
17476 # include <assert.h>
17477 #endif
17479 #undef $ac_func
17481 /* Override any GCC internal prototype to avoid an error.
17482 Use char because int might match the return type of a GCC
17483 builtin and then its argument prototype would still apply. */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char $ac_func ();
17488 /* The GNU C library defines this for functions which it implements
17489 to always fail with ENOSYS. Some functions are actually named
17490 something starting with __ and the normal name is an alias. */
17491 #if defined __stub_$ac_func || defined __stub___$ac_func
17492 choke me
17493 #endif
17496 main ()
17498 return $ac_func ();
17500 return 0;
17502 _ACEOF
17503 rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_link") 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && {
17517 test -z "$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 } && test -s conftest$ac_exeext &&
17520 $as_test_x conftest$ac_exeext; then
17521 eval "$as_ac_var=yes"
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 eval "$as_ac_var=no"
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530 conftest$ac_exeext conftest.$ac_ext
17532 ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 if test `eval echo '${'$as_ac_var'}'` = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17538 _ACEOF
17540 else
17541 case " $LIBOBJS " in
17542 *" $ac_func.$ac_objext "* ) ;;
17543 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17545 esac
17548 done
17552 for ac_func in getpgrp
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define $ac_func innocuous_$ac_func
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17581 #undef $ac_func
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char $ac_func ();
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17594 choke me
17595 #endif
17598 main ()
17600 return $ac_func ();
17602 return 0;
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext &&
17622 $as_test_x conftest$ac_exeext; then
17623 eval "$as_ac_var=yes"
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 eval "$as_ac_var=no"
17631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17632 conftest$ac_exeext conftest.$ac_ext
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h. */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <unistd.h>
17649 main ()
17651 getpgrp(0);
17653 return 0;
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
17674 cat >>confdefs.h <<\_ACEOF
17675 #define GETPGRP_HAVE_ARG 1
17676 _ACEOF
17679 else
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 done
17692 for ac_func in setpgrp
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h. */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708 #define $ac_func innocuous_$ac_func
17710 /* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17715 #ifdef __STDC__
17716 # include <limits.h>
17717 #else
17718 # include <assert.h>
17719 #endif
17721 #undef $ac_func
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17726 #ifdef __cplusplus
17727 extern "C"
17728 #endif
17729 char $ac_func ();
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17734 choke me
17735 #endif
17738 main ()
17740 return $ac_func ();
17742 return 0;
17744 _ACEOF
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_link") 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && {
17759 test -z "$ac_c_werror_flag" ||
17760 test ! -s conftest.err
17761 } && test -s conftest$ac_exeext &&
17762 $as_test_x conftest$ac_exeext; then
17763 eval "$as_ac_var=yes"
17764 else
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 eval "$as_ac_var=no"
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772 conftest$ac_exeext conftest.$ac_ext
17774 ac_res=`eval echo '${'$as_ac_var'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_var'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17780 _ACEOF
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 #include <unistd.h>
17789 main ()
17791 setpgrp(0,0);
17793 return 0;
17795 _ACEOF
17796 rm -f conftest.$ac_objext
17797 if { (ac_try="$ac_compile"
17798 case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_compile") 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest.$ac_objext; then
17814 cat >>confdefs.h <<\_ACEOF
17815 #define SETPGRP_HAVE_ARG 1
17816 _ACEOF
17819 else
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829 done
17832 for ac_func in gettimeofday
17834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17848 #define $ac_func innocuous_$ac_func
17850 /* System header to define __stub macros and hopefully few prototypes,
17851 which can conflict with char $ac_func (); below.
17852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853 <limits.h> exists even on freestanding compilers. */
17855 #ifdef __STDC__
17856 # include <limits.h>
17857 #else
17858 # include <assert.h>
17859 #endif
17861 #undef $ac_func
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 char $ac_func ();
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined __stub_$ac_func || defined __stub___$ac_func
17874 choke me
17875 #endif
17878 main ()
17880 return $ac_func ();
17882 return 0;
17884 _ACEOF
17885 rm -f conftest.$ac_objext conftest$ac_exeext
17886 if { (ac_try="$ac_link"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_link") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest$ac_exeext &&
17902 $as_test_x conftest$ac_exeext; then
17903 eval "$as_ac_var=yes"
17904 else
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 eval "$as_ac_var=no"
17911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17912 conftest$ac_exeext conftest.$ac_ext
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915 { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 _ACEOF
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 #include <sys/time.h>
17929 main ()
17931 gettimeofday((struct timeval*)0,(struct timezone*)0);
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest.$ac_objext; then
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17959 cat >>confdefs.h <<\_ACEOF
17960 #define GETTIMEOFDAY_NO_TZ 1
17961 _ACEOF
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 done
17972 { echo "$as_me:$LINENO: checking for major" >&5
17973 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17981 #if defined(MAJOR_IN_MKDEV)
17982 #include <sys/mkdev.h>
17983 #elif defined(MAJOR_IN_SYSMACROS)
17984 #include <sys/sysmacros.h>
17985 #else
17986 #include <sys/types.h>
17987 #endif
17990 main ()
17993 makedev(major(0),minor(0));
17996 return 0;
17998 _ACEOF
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE_DEVICE_MACROS 1
18021 _ACEOF
18023 { echo "$as_me:$LINENO: result: yes" >&5
18024 echo "${ECHO_T}yes" >&6; }
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18031 { echo "$as_me:$LINENO: result: no" >&5
18032 echo "${ECHO_T}no" >&6; }
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18039 # On OSF/1 V5.1, getaddrinfo is available, but a define
18040 # for [no]getaddrinfo in netdb.h.
18041 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18042 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 #include <sys/types.h>
18051 #include <sys/socket.h>
18052 #include <netdb.h>
18053 #include <stdio.h>
18056 main ()
18059 getaddrinfo(NULL, NULL, NULL, NULL);
18062 return 0;
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_link") 2>conftest.er1
18073 ac_status=$?
18074 grep -v '^ *+' conftest.er1 >conftest.err
18075 rm -f conftest.er1
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest$ac_exeext &&
18082 $as_test_x conftest$ac_exeext; then
18084 { echo "$as_me:$LINENO: result: yes" >&5
18085 echo "${ECHO_T}yes" >&6; }
18086 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18087 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18088 if test "$cross_compiling" = yes; then
18089 { echo "$as_me:$LINENO: result: buggy" >&5
18090 echo "${ECHO_T}buggy" >&6; }
18091 buggygetaddrinfo=yes
18092 else
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18100 #include <sys/types.h>
18101 #include <netdb.h>
18102 #include <string.h>
18103 #include <sys/socket.h>
18104 #include <netinet/in.h>
18106 main()
18108 int passive, gaierr, inet4 = 0, inet6 = 0;
18109 struct addrinfo hints, *ai, *aitop;
18110 char straddr[INET6_ADDRSTRLEN], strport[16];
18112 for (passive = 0; passive <= 1; passive++) {
18113 memset(&hints, 0, sizeof(hints));
18114 hints.ai_family = AF_UNSPEC;
18115 hints.ai_flags = passive ? AI_PASSIVE : 0;
18116 hints.ai_socktype = SOCK_STREAM;
18117 hints.ai_protocol = IPPROTO_TCP;
18118 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18119 (void)gai_strerror(gaierr);
18120 goto bad;
18122 for (ai = aitop; ai; ai = ai->ai_next) {
18123 if (ai->ai_addr == NULL ||
18124 ai->ai_addrlen == 0 ||
18125 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18126 straddr, sizeof(straddr), strport, sizeof(strport),
18127 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18128 goto bad;
18130 switch (ai->ai_family) {
18131 case AF_INET:
18132 if (strcmp(strport, "54321") != 0) {
18133 goto bad;
18135 if (passive) {
18136 if (strcmp(straddr, "0.0.0.0") != 0) {
18137 goto bad;
18139 } else {
18140 if (strcmp(straddr, "127.0.0.1") != 0) {
18141 goto bad;
18144 inet4++;
18145 break;
18146 case AF_INET6:
18147 if (strcmp(strport, "54321") != 0) {
18148 goto bad;
18150 if (passive) {
18151 if (strcmp(straddr, "::") != 0) {
18152 goto bad;
18154 } else {
18155 if (strcmp(straddr, "::1") != 0) {
18156 goto bad;
18159 inet6++;
18160 break;
18161 case AF_UNSPEC:
18162 goto bad;
18163 break;
18164 default:
18165 /* another family support? */
18166 break;
18171 if (!(inet4 == 0 || inet4 == 2))
18172 goto bad;
18173 if (!(inet6 == 0 || inet6 == 2))
18174 goto bad;
18176 if (aitop)
18177 freeaddrinfo(aitop);
18178 exit(0);
18180 bad:
18181 if (aitop)
18182 freeaddrinfo(aitop);
18183 exit(1);
18186 _ACEOF
18187 rm -f conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 { echo "$as_me:$LINENO: result: good" >&5
18208 echo "${ECHO_T}good" >&6; }
18209 buggygetaddrinfo=no
18210 else
18211 echo "$as_me: program exited with status $ac_status" >&5
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ( exit $ac_status )
18216 { echo "$as_me:$LINENO: result: buggy" >&5
18217 echo "${ECHO_T}buggy" >&6; }
18218 buggygetaddrinfo=yes
18220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18229 { echo "$as_me:$LINENO: result: no" >&5
18230 echo "${ECHO_T}no" >&6; }
18231 buggygetaddrinfo=yes
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236 conftest$ac_exeext conftest.$ac_ext
18238 if test "$buggygetaddrinfo" = "yes"; then
18239 if test "$ipv6" = "yes"; then
18240 echo 'Fatal: You must get working getaddrinfo() function.'
18241 echo ' or you can specify "--disable-ipv6"'.
18242 exit 1
18244 else
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_GETADDRINFO 1
18248 _ACEOF
18252 for ac_func in getnameinfo
18254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define $ac_func innocuous_$ac_func
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18281 #undef $ac_func
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18286 #ifdef __cplusplus
18287 extern "C"
18288 #endif
18289 char $ac_func ();
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18294 choke me
18295 #endif
18298 main ()
18300 return $ac_func ();
18302 return 0;
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && {
18319 test -z "$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 } && test -s conftest$ac_exeext &&
18322 $as_test_x conftest$ac_exeext; then
18323 eval "$as_ac_var=yes"
18324 else
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 eval "$as_ac_var=no"
18331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18332 conftest$ac_exeext conftest.$ac_ext
18334 ac_res=`eval echo '${'$as_ac_var'}'`
18335 { echo "$as_me:$LINENO: result: $ac_res" >&5
18336 echo "${ECHO_T}$ac_res" >&6; }
18337 if test `eval echo '${'$as_ac_var'}'` = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18340 _ACEOF
18343 done
18346 # checks for structures
18347 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18348 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18349 if test "${ac_cv_header_time+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h. */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 #include <sys/types.h>
18359 #include <sys/time.h>
18360 #include <time.h>
18363 main ()
18365 if ((struct tm *) 0)
18366 return 0;
18368 return 0;
18370 _ACEOF
18371 rm -f conftest.$ac_objext
18372 if { (ac_try="$ac_compile"
18373 case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_compile") 2>conftest.er1
18379 ac_status=$?
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest.$ac_objext; then
18388 ac_cv_header_time=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_header_time=no
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18399 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18400 if test $ac_cv_header_time = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define TIME_WITH_SYS_TIME 1
18404 _ACEOF
18408 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18409 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18410 if test "${ac_cv_struct_tm+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 #include <sys/types.h>
18420 #include <time.h>
18423 main ()
18425 struct tm tm;
18426 int *p = &tm.tm_sec;
18427 return !p;
18429 return 0;
18431 _ACEOF
18432 rm -f conftest.$ac_objext
18433 if { (ac_try="$ac_compile"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_compile") 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest.$ac_objext; then
18449 ac_cv_struct_tm=time.h
18450 else
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_cv_struct_tm=sys/time.h
18457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18460 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18461 if test $ac_cv_struct_tm = sys/time.h; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define TM_IN_SYS_TIME 1
18465 _ACEOF
18469 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18470 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18471 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474 cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h. */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <sys/types.h>
18481 #include <$ac_cv_struct_tm>
18485 main ()
18487 static struct tm ac_aggr;
18488 if (ac_aggr.tm_zone)
18489 return 0;
18491 return 0;
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (ac_try="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18511 ac_cv_member_struct_tm_tm_zone=yes
18512 else
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <sys/types.h>
18523 #include <$ac_cv_struct_tm>
18527 main ()
18529 static struct tm ac_aggr;
18530 if (sizeof ac_aggr.tm_zone)
18531 return 0;
18533 return 0;
18535 _ACEOF
18536 rm -f conftest.$ac_objext
18537 if { (ac_try="$ac_compile"
18538 case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_compile") 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && {
18550 test -z "$ac_c_werror_flag" ||
18551 test ! -s conftest.err
18552 } && test -s conftest.$ac_objext; then
18553 ac_cv_member_struct_tm_tm_zone=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_cv_member_struct_tm_tm_zone=no
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18567 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18568 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_STRUCT_TM_TM_ZONE 1
18572 _ACEOF
18577 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_TM_ZONE 1
18581 _ACEOF
18583 else
18584 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18585 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18586 if test "${ac_cv_have_decl_tzname+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 #include <time.h>
18598 main ()
18600 #ifndef tzname
18601 (void) tzname;
18602 #endif
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_have_decl_tzname=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_have_decl_tzname=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18636 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18637 if test $ac_cv_have_decl_tzname = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_DECL_TZNAME 1
18641 _ACEOF
18644 else
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_DECL_TZNAME 0
18647 _ACEOF
18653 { echo "$as_me:$LINENO: checking for tzname" >&5
18654 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18655 if test "${ac_cv_var_tzname+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <time.h>
18665 #if !HAVE_DECL_TZNAME
18666 extern char *tzname[];
18667 #endif
18670 main ()
18672 return tzname[0][0];
18674 return 0;
18676 _ACEOF
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_link") 2>conftest.er1
18685 ac_status=$?
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && {
18691 test -z "$ac_c_werror_flag" ||
18692 test ! -s conftest.err
18693 } && test -s conftest$ac_exeext &&
18694 $as_test_x conftest$ac_exeext; then
18695 ac_cv_var_tzname=yes
18696 else
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ac_cv_var_tzname=no
18703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18704 conftest$ac_exeext conftest.$ac_ext
18706 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18707 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18708 if test $ac_cv_var_tzname = yes; then
18710 cat >>confdefs.h <<\_ACEOF
18711 #define HAVE_TZNAME 1
18712 _ACEOF
18717 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18718 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18719 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 $ac_includes_default
18730 main ()
18732 static struct stat ac_aggr;
18733 if (ac_aggr.st_rdev)
18734 return 0;
18736 return 0;
18738 _ACEOF
18739 rm -f conftest.$ac_objext
18740 if { (ac_try="$ac_compile"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_compile") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest.$ac_objext; then
18756 ac_cv_member_struct_stat_st_rdev=yes
18757 else
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h. */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18767 $ac_includes_default
18769 main ()
18771 static struct stat ac_aggr;
18772 if (sizeof ac_aggr.st_rdev)
18773 return 0;
18775 return 0;
18777 _ACEOF
18778 rm -f conftest.$ac_objext
18779 if { (ac_try="$ac_compile"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_compile") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest.$ac_objext; then
18795 ac_cv_member_struct_stat_st_rdev=yes
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_cv_member_struct_stat_st_rdev=no
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18809 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18810 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18812 cat >>confdefs.h <<_ACEOF
18813 #define HAVE_STRUCT_STAT_ST_RDEV 1
18814 _ACEOF
18819 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18820 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18821 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
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 (ac_aggr.st_blksize)
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_blksize=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869 $ac_includes_default
18871 main ()
18873 static struct stat ac_aggr;
18874 if (sizeof ac_aggr.st_blksize)
18875 return 0;
18877 return 0;
18879 _ACEOF
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_compile") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest.$ac_objext; then
18897 ac_cv_member_struct_stat_st_blksize=yes
18898 else
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_cv_member_struct_stat_st_blksize=no
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18911 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18912 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18914 cat >>confdefs.h <<_ACEOF
18915 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18916 _ACEOF
18921 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18922 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18923 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
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 (ac_aggr.st_flags)
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_flags=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 $ac_includes_default
18973 main ()
18975 static struct stat ac_aggr;
18976 if (sizeof ac_aggr.st_flags)
18977 return 0;
18979 return 0;
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_cv_member_struct_stat_st_flags=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_member_struct_stat_st_flags=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19014 if test $ac_cv_member_struct_stat_st_flags = yes; then
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19018 _ACEOF
19023 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19024 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19025 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
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 (ac_aggr.st_gen)
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_gen=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19075 main ()
19077 static struct stat ac_aggr;
19078 if (sizeof ac_aggr.st_gen)
19079 return 0;
19081 return 0;
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (ac_try="$ac_compile"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_compile") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest.$ac_objext; then
19101 ac_cv_member_struct_stat_st_gen=yes
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_member_struct_stat_st_gen=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19116 if test $ac_cv_member_struct_stat_st_gen = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_STRUCT_STAT_ST_GEN 1
19120 _ACEOF
19125 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19126 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19127 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 else
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 (ac_aggr.st_birthtime)
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_birthtime=yes
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 $ac_includes_default
19177 main ()
19179 static struct stat ac_aggr;
19180 if (sizeof ac_aggr.st_birthtime)
19181 return 0;
19183 return 0;
19185 _ACEOF
19186 rm -f conftest.$ac_objext
19187 if { (ac_try="$ac_compile"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_compile") 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest.$ac_objext; then
19203 ac_cv_member_struct_stat_st_birthtime=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_member_struct_stat_st_birthtime=no
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19218 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19220 cat >>confdefs.h <<_ACEOF
19221 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19222 _ACEOF
19227 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19228 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19229 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
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 (ac_aggr.st_blocks)
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_blocks=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19279 main ()
19281 static struct stat ac_aggr;
19282 if (sizeof ac_aggr.st_blocks)
19283 return 0;
19285 return 0;
19287 _ACEOF
19288 rm -f conftest.$ac_objext
19289 if { (ac_try="$ac_compile"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_compile") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest.$ac_objext; then
19305 ac_cv_member_struct_stat_st_blocks=yes
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 ac_cv_member_struct_stat_st_blocks=no
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19320 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19324 _ACEOF
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_ST_BLOCKS 1
19329 _ACEOF
19331 else
19332 case " $LIBOBJS " in
19333 *" fileblocks.$ac_objext "* ) ;;
19334 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19336 esac
19342 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19343 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19344 if test "${ac_cv_header_time_altzone+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 #include <time.h>
19355 main ()
19357 return altzone;
19359 return 0;
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 ac_cv_header_time_altzone=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_header_time_altzone=no
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19391 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19392 if test $ac_cv_header_time_altzone = yes; then
19394 cat >>confdefs.h <<\_ACEOF
19395 #define HAVE_ALTZONE 1
19396 _ACEOF
19400 was_it_defined=no
19401 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19402 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19403 cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h. */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19410 #include <sys/types.h>
19411 #include <sys/select.h>
19412 #include <sys/time.h>
19415 main ()
19419 return 0;
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_compile") 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest.$ac_objext; then
19441 cat >>confdefs.h <<\_ACEOF
19442 #define SYS_SELECT_WITH_SYS_TIME 1
19443 _ACEOF
19445 was_it_defined=yes
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19456 echo "${ECHO_T}$was_it_defined" >&6; }
19458 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19459 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19460 if test "${ac_cv_struct_addrinfo+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463 cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h. */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19470 # include <netdb.h>
19472 main ()
19474 struct addrinfo a
19476 return 0;
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (ac_try="$ac_compile"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_cv_struct_addrinfo=yes
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_struct_addrinfo=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19508 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19509 if test $ac_cv_struct_addrinfo = yes; then
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_ADDRINFO 1
19513 _ACEOF
19517 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19518 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19519 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522 cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h. */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19529 # include <sys/types.h>
19530 # include <sys/socket.h>
19532 main ()
19534 struct sockaddr_storage s
19536 return 0;
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19556 ac_cv_struct_sockaddr_storage=yes
19557 else
19558 echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19561 ac_cv_struct_sockaddr_storage=no
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19568 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19569 if test $ac_cv_struct_sockaddr_storage = yes; then
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_SOCKADDR_STORAGE 1
19573 _ACEOF
19577 # checks for compiler characteristics
19580 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19581 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19582 if test "${ac_cv_c_char_unsigned+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. */
19591 $ac_includes_default
19593 main ()
19595 static int test_array [1 - 2 * !(((char) -1) < 0)];
19596 test_array [0] = 0
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_c_char_unsigned=no
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_cv_c_char_unsigned=yes
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19630 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19631 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19632 cat >>confdefs.h <<\_ACEOF
19633 #define __CHAR_UNSIGNED__ 1
19634 _ACEOF
19638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19640 if test "${ac_cv_c_const+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19651 main ()
19653 /* FIXME: Include the comments suggested by Paul. */
19654 #ifndef __cplusplus
19655 /* Ultrix mips cc rejects this. */
19656 typedef int charset[2];
19657 const charset cs;
19658 /* SunOS 4.1.1 cc rejects this. */
19659 char const *const *pcpcc;
19660 char **ppc;
19661 /* NEC SVR4.0.2 mips cc rejects this. */
19662 struct point {int x, y;};
19663 static struct point const zero = {0,0};
19664 /* AIX XL C 1.02.0.0 rejects this.
19665 It does not let you subtract one const X* pointer from another in
19666 an arm of an if-expression whose if-part is not a constant
19667 expression */
19668 const char *g = "string";
19669 pcpcc = &g + (g ? g-g : 0);
19670 /* HPUX 7.0 cc rejects these. */
19671 ++pcpcc;
19672 ppc = (char**) pcpcc;
19673 pcpcc = (char const *const *) ppc;
19674 { /* SCO 3.2v4 cc rejects this. */
19675 char *t;
19676 char const *s = 0 ? (char *) 0 : (char const *) 0;
19678 *t++ = 0;
19679 if (s) return 0;
19681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19682 int x[] = {25, 17};
19683 const int *foo = &x[0];
19684 ++foo;
19686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19687 typedef const int *iptr;
19688 iptr p = 0;
19689 ++p;
19691 { /* AIX XL C 1.02.0.0 rejects this saying
19692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19693 struct s { int j; const int *ap[3]; };
19694 struct s *b; b->j = 5;
19696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19697 const int foo = 10;
19698 if (!foo) return 0;
19700 return !cs[0] && !zero.x;
19701 #endif
19704 return 0;
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest.$ac_objext; then
19724 ac_cv_c_const=yes
19725 else
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_c_const=no
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19736 if test $ac_cv_c_const = no; then
19738 cat >>confdefs.h <<\_ACEOF
19739 #define const
19740 _ACEOF
19745 works=no
19746 { echo "$as_me:$LINENO: checking for working volatile" >&5
19747 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19756 main ()
19758 volatile int x; x = 0;
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19780 works=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19786 cat >>confdefs.h <<\_ACEOF
19787 #define volatile
19788 _ACEOF
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 { echo "$as_me:$LINENO: result: $works" >&5
19795 echo "${ECHO_T}$works" >&6; }
19797 works=no
19798 { echo "$as_me:$LINENO: checking for working signed char" >&5
19799 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h. */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19808 main ()
19810 signed char c;
19812 return 0;
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_compile") 2>conftest.er1
19823 ac_status=$?
19824 grep -v '^ *+' conftest.er1 >conftest.err
19825 rm -f conftest.er1
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && {
19829 test -z "$ac_c_werror_flag" ||
19830 test ! -s conftest.err
19831 } && test -s conftest.$ac_objext; then
19832 works=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19838 cat >>confdefs.h <<\_ACEOF
19839 #define signed
19840 _ACEOF
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846 { echo "$as_me:$LINENO: result: $works" >&5
19847 echo "${ECHO_T}$works" >&6; }
19849 have_prototypes=no
19850 { echo "$as_me:$LINENO: checking for prototypes" >&5
19851 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 int foo(int x) { return 0; }
19860 main ()
19862 return foo(10);
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_PROTOTYPES 1
19888 _ACEOF
19890 have_prototypes=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19901 echo "${ECHO_T}$have_prototypes" >&6; }
19903 works=no
19904 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19905 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19906 cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h. */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 #include <stdarg.h>
19914 int foo(int x, ...) {
19915 va_list va;
19916 va_start(va, x);
19917 va_arg(va, int);
19918 va_arg(va, char *);
19919 va_arg(va, double);
19920 return 0;
19924 main ()
19926 return foo(10, "", 3.14);
19928 return 0;
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19950 cat >>confdefs.h <<\_ACEOF
19951 #define HAVE_STDARG_PROTOTYPES 1
19952 _ACEOF
19954 works=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 { echo "$as_me:$LINENO: result: $works" >&5
19965 echo "${ECHO_T}$works" >&6; }
19967 # check for socketpair
19968 { echo "$as_me:$LINENO: checking for socketpair" >&5
19969 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h. */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 #include <sys/types.h>
19978 #include <sys/socket.h>
19981 main ()
19983 void *x=socketpair
19985 return 0;
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (ac_try="$ac_compile"
19990 case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE_SOCKETPAIR 1
20008 _ACEOF
20010 { echo "$as_me:$LINENO: result: yes" >&5
20011 echo "${ECHO_T}yes" >&6; }
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 { echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6; }
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 # check if sockaddr has sa_len member
20024 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20025 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <sys/types.h>
20033 #include <sys/socket.h>
20035 main ()
20037 struct sockaddr x;
20038 x.sa_len = 0;
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext
20044 if { (ac_try="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_compile") 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest.$ac_objext; then
20060 { echo "$as_me:$LINENO: result: yes" >&5
20061 echo "${ECHO_T}yes" >&6; }
20063 cat >>confdefs.h <<\_ACEOF
20064 #define HAVE_SOCKADDR_SA_LEN 1
20065 _ACEOF
20067 else
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 { echo "$as_me:$LINENO: result: no" >&5
20072 echo "${ECHO_T}no" >&6; }
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 va_list_is_array=no
20078 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20079 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 #ifdef HAVE_STDARG_PROTOTYPES
20088 #include <stdarg.h>
20089 #else
20090 #include <varargs.h>
20091 #endif
20094 main ()
20096 va_list list1, list2; list1 = list2;
20098 return 0;
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20125 cat >>confdefs.h <<\_ACEOF
20126 #define VA_LIST_IS_ARRAY 1
20127 _ACEOF
20129 va_list_is_array=yes
20133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20134 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20135 echo "${ECHO_T}$va_list_is_array" >&6; }
20137 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20141 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20142 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20154 #define gethostbyname_r innocuous_gethostbyname_r
20156 /* System header to define __stub macros and hopefully few prototypes,
20157 which can conflict with char gethostbyname_r (); below.
20158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159 <limits.h> exists even on freestanding compilers. */
20161 #ifdef __STDC__
20162 # include <limits.h>
20163 #else
20164 # include <assert.h>
20165 #endif
20167 #undef gethostbyname_r
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 char gethostbyname_r ();
20176 /* The GNU C library defines this for functions which it implements
20177 to always fail with ENOSYS. Some functions are actually named
20178 something starting with __ and the normal name is an alias. */
20179 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20180 choke me
20181 #endif
20184 main ()
20186 return gethostbyname_r ();
20188 return 0;
20190 _ACEOF
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20199 ac_status=$?
20200 grep -v '^ *+' conftest.er1 >conftest.err
20201 rm -f conftest.er1
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_func_gethostbyname_r=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_func_gethostbyname_r=no
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20221 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20222 if test $ac_cv_func_gethostbyname_r = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_GETHOSTBYNAME_R 1
20226 _ACEOF
20228 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20229 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20230 OLD_CFLAGS=$CFLAGS
20231 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 # include <netdb.h>
20242 main ()
20245 char *name;
20246 struct hostent *he, *res;
20247 char buffer[2048];
20248 int buflen = 2048;
20249 int h_errnop;
20251 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20254 return 0;
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest.$ac_objext; then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_GETHOSTBYNAME_R 1
20277 _ACEOF
20280 cat >>confdefs.h <<\_ACEOF
20281 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20282 _ACEOF
20284 { echo "$as_me:$LINENO: result: yes" >&5
20285 echo "${ECHO_T}yes" >&6; }
20287 else
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20292 { echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6; }
20294 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20295 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 # include <netdb.h>
20306 main ()
20309 char *name;
20310 struct hostent *he;
20311 char buffer[2048];
20312 int buflen = 2048;
20313 int h_errnop;
20315 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20318 return 0;
20320 _ACEOF
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest.$ac_objext; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_GETHOSTBYNAME_R 1
20341 _ACEOF
20344 cat >>confdefs.h <<\_ACEOF
20345 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20346 _ACEOF
20348 { echo "$as_me:$LINENO: result: yes" >&5
20349 echo "${ECHO_T}yes" >&6; }
20351 else
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20356 { echo "$as_me:$LINENO: result: no" >&5
20357 echo "${ECHO_T}no" >&6; }
20358 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20359 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20367 # include <netdb.h>
20370 main ()
20373 char *name;
20374 struct hostent *he;
20375 struct hostent_data data;
20377 (void) gethostbyname_r(name, he, &data);
20380 return 0;
20382 _ACEOF
20383 rm -f conftest.$ac_objext
20384 if { (ac_try="$ac_compile"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_compile") 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && {
20397 test -z "$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20399 } && test -s conftest.$ac_objext; then
20401 cat >>confdefs.h <<\_ACEOF
20402 #define HAVE_GETHOSTBYNAME_R 1
20403 _ACEOF
20406 cat >>confdefs.h <<\_ACEOF
20407 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20408 _ACEOF
20410 { echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6; }
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20418 { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 CFLAGS=$OLD_CFLAGS
20434 else
20437 for ac_func in gethostbyname
20439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define $ac_func innocuous_$ac_func
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20460 #ifdef __STDC__
20461 # include <limits.h>
20462 #else
20463 # include <assert.h>
20464 #endif
20466 #undef $ac_func
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char $ac_func ();
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined __stub_$ac_func || defined __stub___$ac_func
20479 choke me
20480 #endif
20483 main ()
20485 return $ac_func ();
20487 return 0;
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 eval "$as_ac_var=yes"
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 eval "$as_ac_var=no"
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20519 ac_res=`eval echo '${'$as_ac_var'}'`
20520 { echo "$as_me:$LINENO: result: $ac_res" >&5
20521 echo "${ECHO_T}$ac_res" >&6; }
20522 if test `eval echo '${'$as_ac_var'}'` = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20525 _ACEOF
20528 done
20539 # checks for system services
20540 # (none yet)
20542 # Linux requires this for correct f.p. operations
20543 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20544 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20545 if test "${ac_cv_func___fpu_control+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548 cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h. */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556 #define __fpu_control innocuous___fpu_control
20558 /* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char __fpu_control (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20563 #ifdef __STDC__
20564 # include <limits.h>
20565 #else
20566 # include <assert.h>
20567 #endif
20569 #undef __fpu_control
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20574 #ifdef __cplusplus
20575 extern "C"
20576 #endif
20577 char __fpu_control ();
20578 /* The GNU C library defines this for functions which it implements
20579 to always fail with ENOSYS. Some functions are actually named
20580 something starting with __ and the normal name is an alias. */
20581 #if defined __stub___fpu_control || defined __stub_____fpu_control
20582 choke me
20583 #endif
20586 main ()
20588 return __fpu_control ();
20590 return 0;
20592 _ACEOF
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_link") 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest$ac_exeext &&
20610 $as_test_x conftest$ac_exeext; then
20611 ac_cv_func___fpu_control=yes
20612 else
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_cv_func___fpu_control=no
20619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20620 conftest$ac_exeext conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20623 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20624 if test $ac_cv_func___fpu_control = yes; then
20626 else
20628 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20629 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20630 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633 ac_check_lib_save_LIBS=$LIBS
20634 LIBS="-lieee $LIBS"
20635 cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h. */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 /* Override any GCC internal prototype to avoid an error.
20643 Use char because int might match the return type of a GCC
20644 builtin and then its argument prototype would still apply. */
20645 #ifdef __cplusplus
20646 extern "C"
20647 #endif
20648 char __fpu_control ();
20650 main ()
20652 return __fpu_control ();
20654 return 0;
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_link") 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext &&
20674 $as_test_x conftest$ac_exeext; then
20675 ac_cv_lib_ieee___fpu_control=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_lib_ieee___fpu_control=no
20683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20688 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20689 if test $ac_cv_lib_ieee___fpu_control = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBIEEE 1
20692 _ACEOF
20694 LIBS="-lieee $LIBS"
20702 # Check for --with-fpectl
20703 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20704 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20706 # Check whether --with-fpectl was given.
20707 if test "${with_fpectl+set}" = set; then
20708 withval=$with_fpectl;
20709 if test "$withval" != no
20710 then
20712 cat >>confdefs.h <<\_ACEOF
20713 #define WANT_SIGFPE_HANDLER 1
20714 _ACEOF
20716 { echo "$as_me:$LINENO: result: yes" >&5
20717 echo "${ECHO_T}yes" >&6; }
20718 else { echo "$as_me:$LINENO: result: no" >&5
20719 echo "${ECHO_T}no" >&6; }
20721 else
20722 { echo "$as_me:$LINENO: result: no" >&5
20723 echo "${ECHO_T}no" >&6; }
20727 # check for --with-libm=...
20729 case $ac_sys_system in
20730 Darwin) ;;
20731 BeOS) ;;
20732 *) LIBM=-lm
20733 esac
20734 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20735 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20737 # Check whether --with-libm was given.
20738 if test "${with_libm+set}" = set; then
20739 withval=$with_libm;
20740 if test "$withval" = no
20741 then LIBM=
20742 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20743 echo "${ECHO_T}force LIBM empty" >&6; }
20744 elif test "$withval" != yes
20745 then LIBM=$withval
20746 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20747 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20748 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20749 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20750 { (exit 1); exit 1; }; }
20752 else
20753 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20754 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20758 # check for --with-libc=...
20760 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20761 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20763 # Check whether --with-libc was given.
20764 if test "${with_libc+set}" = set; then
20765 withval=$with_libc;
20766 if test "$withval" = no
20767 then LIBC=
20768 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20769 echo "${ECHO_T}force LIBC empty" >&6; }
20770 elif test "$withval" != yes
20771 then LIBC=$withval
20772 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20773 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20774 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20775 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20776 { (exit 1); exit 1; }; }
20778 else
20779 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20780 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20784 # ************************************
20785 # * Check for mathematical functions *
20786 # ************************************
20787 LIBS_SAVE=$LIBS
20788 LIBS="$LIBS $LIBM"
20790 for ac_func in hypot
20792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20806 #define $ac_func innocuous_$ac_func
20808 /* System header to define __stub macros and hopefully few prototypes,
20809 which can conflict with char $ac_func (); below.
20810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20811 <limits.h> exists even on freestanding compilers. */
20813 #ifdef __STDC__
20814 # include <limits.h>
20815 #else
20816 # include <assert.h>
20817 #endif
20819 #undef $ac_func
20821 /* Override any GCC internal prototype to avoid an error.
20822 Use char because int might match the return type of a GCC
20823 builtin and then its argument prototype would still apply. */
20824 #ifdef __cplusplus
20825 extern "C"
20826 #endif
20827 char $ac_func ();
20828 /* The GNU C library defines this for functions which it implements
20829 to always fail with ENOSYS. Some functions are actually named
20830 something starting with __ and the normal name is an alias. */
20831 #if defined __stub_$ac_func || defined __stub___$ac_func
20832 choke me
20833 #endif
20836 main ()
20838 return $ac_func ();
20840 return 0;
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 eval "$as_ac_var=yes"
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 eval "$as_ac_var=no"
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20872 ac_res=`eval echo '${'$as_ac_var'}'`
20873 { echo "$as_me:$LINENO: result: $ac_res" >&5
20874 echo "${ECHO_T}$ac_res" >&6; }
20875 if test `eval echo '${'$as_ac_var'}'` = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20878 _ACEOF
20880 else
20881 case " $LIBOBJS " in
20882 *" $ac_func.$ac_objext "* ) ;;
20883 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20885 esac
20888 done
20901 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
20903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20917 #define $ac_func innocuous_$ac_func
20919 /* System header to define __stub macros and hopefully few prototypes,
20920 which can conflict with char $ac_func (); below.
20921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20922 <limits.h> exists even on freestanding compilers. */
20924 #ifdef __STDC__
20925 # include <limits.h>
20926 #else
20927 # include <assert.h>
20928 #endif
20930 #undef $ac_func
20932 /* Override any GCC internal prototype to avoid an error.
20933 Use char because int might match the return type of a GCC
20934 builtin and then its argument prototype would still apply. */
20935 #ifdef __cplusplus
20936 extern "C"
20937 #endif
20938 char $ac_func ();
20939 /* The GNU C library defines this for functions which it implements
20940 to always fail with ENOSYS. Some functions are actually named
20941 something starting with __ and the normal name is an alias. */
20942 #if defined __stub_$ac_func || defined __stub___$ac_func
20943 choke me
20944 #endif
20947 main ()
20949 return $ac_func ();
20951 return 0;
20953 _ACEOF
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (ac_try="$ac_link"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_link") 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && {
20968 test -z "$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 } && test -s conftest$ac_exeext &&
20971 $as_test_x conftest$ac_exeext; then
20972 eval "$as_ac_var=yes"
20973 else
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 eval "$as_ac_var=no"
20980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20981 conftest$ac_exeext conftest.$ac_ext
20983 ac_res=`eval echo '${'$as_ac_var'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986 if test `eval echo '${'$as_ac_var'}'` = yes; then
20987 cat >>confdefs.h <<_ACEOF
20988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20989 _ACEOF
20992 done
20995 LIBS=$LIBS_SAVE
20997 # check for wchar.h
20998 if test "${ac_cv_header_wchar_h+set}" = set; then
20999 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21000 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21001 if test "${ac_cv_header_wchar_h+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21006 else
21007 # Is the header compilable?
21008 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21009 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h. */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 $ac_includes_default
21017 #include <wchar.h>
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_compile") 2>conftest.er1
21027 ac_status=$?
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest.$ac_objext; then
21036 ac_header_compiler=yes
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_header_compiler=no
21044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21046 echo "${ECHO_T}$ac_header_compiler" >&6; }
21048 # Is the header present?
21049 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21050 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21051 cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h. */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21057 #include <wchar.h>
21058 _ACEOF
21059 if { (ac_try="$ac_cpp conftest.$ac_ext"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } >/dev/null && {
21072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 }; then
21075 ac_header_preproc=yes
21076 else
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_header_preproc=no
21083 rm -f conftest.err conftest.$ac_ext
21084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21085 echo "${ECHO_T}$ac_header_preproc" >&6; }
21087 # So? What about this header?
21088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21089 yes:no: )
21090 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21091 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21093 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21094 ac_header_preproc=yes
21096 no:yes:* )
21097 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21098 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21100 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21102 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21104 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21106 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21108 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21109 ( cat <<\_ASBOX
21110 ## ------------------------------------------------ ##
21111 ## Report this to http://www.python.org/python-bugs ##
21112 ## ------------------------------------------------ ##
21113 _ASBOX
21114 ) | sed "s/^/$as_me: WARNING: /" >&2
21116 esac
21117 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21118 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21119 if test "${ac_cv_header_wchar_h+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122 ac_cv_header_wchar_h=$ac_header_preproc
21124 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21125 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21128 if test $ac_cv_header_wchar_h = yes; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_WCHAR_H 1
21133 _ACEOF
21135 wchar_h="yes"
21137 else
21138 wchar_h="no"
21144 # determine wchar_t size
21145 if test "$wchar_h" = yes
21146 then
21147 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21148 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21149 if test "${ac_cv_type_wchar_t+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <wchar.h>
21160 typedef wchar_t ac__type_new_;
21162 main ()
21164 if ((ac__type_new_ *) 0)
21165 return 0;
21166 if (sizeof (ac__type_new_))
21167 return 0;
21169 return 0;
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21189 ac_cv_type_wchar_t=yes
21190 else
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 ac_cv_type_wchar_t=no
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21200 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21202 # The cast to long int works around a bug in the HP C Compiler
21203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21205 # This bug is HP SR number 8606223364.
21206 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211 if test "$cross_compiling" = yes; then
21212 # Depending upon the size, compute the lo and hi bounds.
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 #include <wchar.h>
21221 typedef wchar_t ac__type_sizeof_;
21223 main ()
21225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21226 test_array [0] = 0
21229 return 0;
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_lo=0 ac_mid=0
21250 while :; do
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h. */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 #include <wchar.h>
21259 typedef wchar_t ac__type_sizeof_;
21261 main ()
21263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21264 test_array [0] = 0
21267 return 0;
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_compile") 2>conftest.er1
21278 ac_status=$?
21279 grep -v '^ *+' conftest.er1 >conftest.err
21280 rm -f conftest.er1
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest.$ac_objext; then
21287 ac_hi=$ac_mid; break
21288 else
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_lo=`expr $ac_mid + 1`
21293 if test $ac_lo -le $ac_mid; then
21294 ac_lo= ac_hi=
21295 break
21297 ac_mid=`expr 2 '*' $ac_mid + 1`
21300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 done
21302 else
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h. */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <wchar.h>
21314 typedef wchar_t ac__type_sizeof_;
21316 main ()
21318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21319 test_array [0] = 0
21322 return 0;
21324 _ACEOF
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_compile") 2>conftest.er1
21333 ac_status=$?
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && {
21339 test -z "$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 } && test -s conftest.$ac_objext; then
21342 ac_hi=-1 ac_mid=-1
21343 while :; do
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <wchar.h>
21352 typedef wchar_t ac__type_sizeof_;
21354 main ()
21356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21357 test_array [0] = 0
21360 return 0;
21362 _ACEOF
21363 rm -f conftest.$ac_objext
21364 if { (ac_try="$ac_compile"
21365 case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368 esac
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_compile") 2>conftest.er1
21371 ac_status=$?
21372 grep -v '^ *+' conftest.er1 >conftest.err
21373 rm -f conftest.er1
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && {
21377 test -z "$ac_c_werror_flag" ||
21378 test ! -s conftest.err
21379 } && test -s conftest.$ac_objext; then
21380 ac_lo=$ac_mid; break
21381 else
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ac_hi=`expr '(' $ac_mid ')' - 1`
21386 if test $ac_mid -le $ac_hi; then
21387 ac_lo= ac_hi=
21388 break
21390 ac_mid=`expr 2 '*' $ac_mid`
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 done
21395 else
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_lo= ac_hi=
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 # Binary search between lo and hi bounds.
21407 while test "x$ac_lo" != "x$ac_hi"; do
21408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <wchar.h>
21417 typedef wchar_t ac__type_sizeof_;
21419 main ()
21421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21422 test_array [0] = 0
21425 return 0;
21427 _ACEOF
21428 rm -f conftest.$ac_objext
21429 if { (ac_try="$ac_compile"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_compile") 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && {
21442 test -z "$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 } && test -s conftest.$ac_objext; then
21445 ac_hi=$ac_mid
21446 else
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_lo=`expr '(' $ac_mid ')' + 1`
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 done
21455 case $ac_lo in
21456 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21457 '') if test "$ac_cv_type_wchar_t" = yes; then
21458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21459 See \`config.log' for more details." >&5
21460 echo "$as_me: error: cannot compute sizeof (wchar_t)
21461 See \`config.log' for more details." >&2;}
21462 { (exit 77); exit 77; }; }
21463 else
21464 ac_cv_sizeof_wchar_t=0
21465 fi ;;
21466 esac
21467 else
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #include <wchar.h>
21476 typedef wchar_t ac__type_sizeof_;
21477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21479 #include <stdio.h>
21480 #include <stdlib.h>
21482 main ()
21485 FILE *f = fopen ("conftest.val", "w");
21486 if (! f)
21487 return 1;
21488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21490 long int i = longval ();
21491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21492 return 1;
21493 fprintf (f, "%ld\n", i);
21495 else
21497 unsigned long int i = ulongval ();
21498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21499 return 1;
21500 fprintf (f, "%lu\n", i);
21502 return ferror (f) || fclose (f) != 0;
21505 return 0;
21507 _ACEOF
21508 rm -f conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_link") 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21519 { (case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_try") 2>&5
21525 ac_status=$?
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; }; then
21528 ac_cv_sizeof_wchar_t=`cat conftest.val`
21529 else
21530 echo "$as_me: program exited with status $ac_status" >&5
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ( exit $ac_status )
21535 if test "$ac_cv_type_wchar_t" = yes; then
21536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21537 See \`config.log' for more details." >&5
21538 echo "$as_me: error: cannot compute sizeof (wchar_t)
21539 See \`config.log' for more details." >&2;}
21540 { (exit 77); exit 77; }; }
21541 else
21542 ac_cv_sizeof_wchar_t=0
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 rm -f conftest.val
21549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21550 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21554 cat >>confdefs.h <<_ACEOF
21555 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21556 _ACEOF
21561 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21562 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21563 have_ucs4_tcl=no
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21571 #include <tcl.h>
21572 #if TCL_UTF_MAX != 6
21573 # error "NOT UCS4_TCL"
21574 #endif
21576 main ()
21580 return 0;
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21602 cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_UCS4_TCL 1
21604 _ACEOF
21606 have_ucs4_tcl=yes
21608 else
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21617 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21619 # check whether wchar_t is signed or not
21620 if test "$wchar_h" = yes
21621 then
21622 # check whether wchar_t is signed or not
21623 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21624 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21625 if test "${ac_cv_wchar_t_signed+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21629 if test "$cross_compiling" = yes; then
21630 ac_cv_wchar_t_signed=yes
21631 else
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 #include <wchar.h>
21640 int main()
21642 /* Success: exit code 0 */
21643 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21646 _ACEOF
21647 rm -f conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_link") 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_wchar_t_signed=yes
21668 else
21669 echo "$as_me: program exited with status $ac_status" >&5
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ( exit $ac_status )
21674 ac_cv_wchar_t_signed=no
21676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21682 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21683 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21686 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21687 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21688 # Check whether --enable-unicode was given.
21689 if test "${enable_unicode+set}" = set; then
21690 enableval=$enable_unicode;
21691 else
21692 enable_unicode=yes
21696 if test $enable_unicode = yes
21697 then
21698 # Without any arguments, Py_UNICODE defaults to two-byte mode
21699 case "$have_ucs4_tcl" in
21700 yes) enable_unicode="ucs4"
21702 *) enable_unicode="ucs2"
21704 esac
21709 case "$enable_unicode" in
21710 ucs2) unicode_size="2"
21711 cat >>confdefs.h <<\_ACEOF
21712 #define Py_UNICODE_SIZE 2
21713 _ACEOF
21716 ucs4) unicode_size="4"
21717 cat >>confdefs.h <<\_ACEOF
21718 #define Py_UNICODE_SIZE 4
21719 _ACEOF
21722 esac
21728 if test "$enable_unicode" = "no"
21729 then
21730 UNICODE_OBJS=""
21731 { echo "$as_me:$LINENO: result: not used" >&5
21732 echo "${ECHO_T}not used" >&6; }
21733 else
21734 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21736 cat >>confdefs.h <<\_ACEOF
21737 #define Py_USING_UNICODE 1
21738 _ACEOF
21741 # wchar_t is only usable if it maps to an unsigned type
21742 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21743 -a "$ac_cv_wchar_t_signed" = "no"
21744 then
21745 PY_UNICODE_TYPE="wchar_t"
21747 cat >>confdefs.h <<\_ACEOF
21748 #define HAVE_USABLE_WCHAR_T 1
21749 _ACEOF
21751 cat >>confdefs.h <<\_ACEOF
21752 #define PY_UNICODE_TYPE wchar_t
21753 _ACEOF
21755 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21756 then
21757 PY_UNICODE_TYPE="unsigned short"
21758 cat >>confdefs.h <<\_ACEOF
21759 #define PY_UNICODE_TYPE unsigned short
21760 _ACEOF
21762 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21763 then
21764 PY_UNICODE_TYPE="unsigned long"
21765 cat >>confdefs.h <<\_ACEOF
21766 #define PY_UNICODE_TYPE unsigned long
21767 _ACEOF
21769 else
21770 PY_UNICODE_TYPE="no type found"
21772 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21773 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21776 # check for endianness
21777 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21778 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21779 if test "${ac_cv_c_bigendian+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 # See if sys/param.h defines the BYTE_ORDER macro.
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 #include <sys/types.h>
21790 #include <sys/param.h>
21793 main ()
21795 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21796 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21797 bogus endian macros
21798 #endif
21801 return 0;
21803 _ACEOF
21804 rm -f conftest.$ac_objext
21805 if { (ac_try="$ac_compile"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21809 esac
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811 (eval "$ac_compile") 2>conftest.er1
21812 ac_status=$?
21813 grep -v '^ *+' conftest.er1 >conftest.err
21814 rm -f conftest.er1
21815 cat conftest.err >&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest.$ac_objext; then
21821 # It does; now see whether it defined to BIG_ENDIAN or not.
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 #include <sys/types.h>
21829 #include <sys/param.h>
21832 main ()
21834 #if BYTE_ORDER != BIG_ENDIAN
21835 not big endian
21836 #endif
21839 return 0;
21841 _ACEOF
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_c_bigendian=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_c_bigendian=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 # It does not; compile a test program.
21873 if test "$cross_compiling" = yes; then
21874 # try to guess the endianness by grepping values into an object file
21875 ac_cv_c_bigendian=unknown
21876 cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h. */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21883 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21884 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21885 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21886 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21887 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21889 main ()
21891 _ascii (); _ebcdic ();
21893 return 0;
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (ac_try="$ac_compile"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_compile") 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } && {
21910 test -z "$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 } && test -s conftest.$ac_objext; then
21913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21914 ac_cv_c_bigendian=yes
21916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21917 if test "$ac_cv_c_bigendian" = unknown; then
21918 ac_cv_c_bigendian=no
21919 else
21920 # finding both strings is unlikely to happen, but who knows?
21921 ac_cv_c_bigendian=unknown
21924 else
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 else
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21941 main ()
21944 /* Are we little or big endian? From Harbison&Steele. */
21945 union
21947 long int l;
21948 char c[sizeof (long int)];
21949 } u;
21950 u.l = 1;
21951 return u.c[sizeof (long int) - 1] == 1;
21954 return 0;
21956 _ACEOF
21957 rm -f conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21968 { (case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_try") 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ac_cv_c_bigendian=no
21978 else
21979 echo "$as_me: program exited with status $ac_status" >&5
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ( exit $ac_status )
21984 ac_cv_c_bigendian=yes
21986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21995 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21996 case $ac_cv_c_bigendian in
21997 yes)
21999 cat >>confdefs.h <<\_ACEOF
22000 #define WORDS_BIGENDIAN 1
22001 _ACEOF
22006 { { echo "$as_me:$LINENO: error: unknown endianness
22007 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22008 echo "$as_me: error: unknown endianness
22009 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22010 { (exit 1); exit 1; }; } ;;
22011 esac
22016 # Check whether right shifting a negative integer extends the sign bit
22017 # or fills with zeros (like the Cray J90, according to Tim Peters).
22018 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22019 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22020 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22024 if test "$cross_compiling" = yes; then
22025 ac_cv_rshift_extends_sign=yes
22026 else
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22034 int main()
22036 exit(((-1)>>3 == -1) ? 0 : 1);
22039 _ACEOF
22040 rm -f conftest$ac_exeext
22041 if { (ac_try="$ac_link"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_link") 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22051 { (case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_try") 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_rshift_extends_sign=yes
22061 else
22062 echo "$as_me: program exited with status $ac_status" >&5
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ( exit $ac_status )
22067 ac_cv_rshift_extends_sign=no
22069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22076 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22077 if test "$ac_cv_rshift_extends_sign" = no
22078 then
22080 cat >>confdefs.h <<\_ACEOF
22081 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22082 _ACEOF
22086 # check for getc_unlocked and related locking functions
22087 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22088 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22089 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 #include <stdio.h>
22101 main ()
22104 FILE *f = fopen("/dev/null", "r");
22105 flockfile(f);
22106 getc_unlocked(f);
22107 funlockfile(f);
22110 return 0;
22112 _ACEOF
22113 rm -f conftest.$ac_objext conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_link") 2>conftest.er1
22121 ac_status=$?
22122 grep -v '^ *+' conftest.er1 >conftest.err
22123 rm -f conftest.er1
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest$ac_exeext &&
22130 $as_test_x conftest$ac_exeext; then
22131 ac_cv_have_getc_unlocked=yes
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_cv_have_getc_unlocked=no
22139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22140 conftest$ac_exeext conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22144 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22145 if test "$ac_cv_have_getc_unlocked" = yes
22146 then
22148 cat >>confdefs.h <<\_ACEOF
22149 #define HAVE_GETC_UNLOCKED 1
22150 _ACEOF
22154 # check where readline lives
22155 # save the value of LIBS so we don't actually link Python with readline
22156 LIBS_no_readline=$LIBS
22158 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22159 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22160 if test "${ac_cv_lib_readline_readline+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 else
22163 ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lreadline $LIBS"
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22175 #ifdef __cplusplus
22176 extern "C"
22177 #endif
22178 char readline ();
22180 main ()
22182 return readline ();
22184 return 0;
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 ac_cv_lib_readline_readline=yes
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_cv_lib_readline_readline=no
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22215 LIBS=$ac_check_lib_save_LIBS
22217 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22218 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22219 if test $ac_cv_lib_readline_readline = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_LIBREADLINE 1
22222 _ACEOF
22224 LIBS="-lreadline $LIBS"
22228 if test "$ac_cv_have_readline_readline" = no
22229 then
22231 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22232 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22233 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236 ac_check_lib_save_LIBS=$LIBS
22237 LIBS="-ltermcap $LIBS"
22238 cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h. */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22245 /* Override any GCC internal prototype to avoid an error.
22246 Use char because int might match the return type of a GCC
22247 builtin and then its argument prototype would still apply. */
22248 #ifdef __cplusplus
22249 extern "C"
22250 #endif
22251 char readline ();
22253 main ()
22255 return readline ();
22257 return 0;
22259 _ACEOF
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (ac_try="$ac_link"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_link") 2>conftest.er1
22268 ac_status=$?
22269 grep -v '^ *+' conftest.er1 >conftest.err
22270 rm -f conftest.er1
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest$ac_exeext &&
22277 $as_test_x conftest$ac_exeext; then
22278 ac_cv_lib_termcap_readline=yes
22279 else
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_lib_termcap_readline=no
22286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22287 conftest$ac_exeext conftest.$ac_ext
22288 LIBS=$ac_check_lib_save_LIBS
22290 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22291 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22292 if test $ac_cv_lib_termcap_readline = yes; then
22293 cat >>confdefs.h <<_ACEOF
22294 #define HAVE_LIBTERMCAP 1
22295 _ACEOF
22297 LIBS="-ltermcap $LIBS"
22303 # check for readline 2.1
22304 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22305 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22306 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309 ac_check_lib_save_LIBS=$LIBS
22310 LIBS="-lreadline $LIBS"
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22318 /* Override any GCC internal prototype to avoid an error.
22319 Use char because int might match the return type of a GCC
22320 builtin and then its argument prototype would still apply. */
22321 #ifdef __cplusplus
22322 extern "C"
22323 #endif
22324 char rl_callback_handler_install ();
22326 main ()
22328 return rl_callback_handler_install ();
22330 return 0;
22332 _ACEOF
22333 rm -f conftest.$ac_objext conftest$ac_exeext
22334 if { (ac_try="$ac_link"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_link") 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest$ac_exeext &&
22350 $as_test_x conftest$ac_exeext; then
22351 ac_cv_lib_readline_rl_callback_handler_install=yes
22352 else
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_cv_lib_readline_rl_callback_handler_install=no
22359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22360 conftest$ac_exeext conftest.$ac_ext
22361 LIBS=$ac_check_lib_save_LIBS
22363 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22364 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22365 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_RL_CALLBACK 1
22369 _ACEOF
22374 # check for readline 2.2
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h. */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 #include <readline/readline.h>
22382 _ACEOF
22383 if { (ac_try="$ac_cpp conftest.$ac_ext"
22384 case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } >/dev/null && {
22396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22398 }; then
22399 have_readline=yes
22400 else
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 have_readline=no
22407 rm -f conftest.err conftest.$ac_ext
22408 if test $have_readline = yes
22409 then
22410 cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h. */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 #include <readline/readline.h>
22418 _ACEOF
22419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22420 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22422 cat >>confdefs.h <<\_ACEOF
22423 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22424 _ACEOF
22427 rm -f conftest*
22431 # check for readline 4.0
22432 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22433 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22434 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437 ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-lreadline $LIBS"
22439 cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h. */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22446 /* Override any GCC internal prototype to avoid an error.
22447 Use char because int might match the return type of a GCC
22448 builtin and then its argument prototype would still apply. */
22449 #ifdef __cplusplus
22450 extern "C"
22451 #endif
22452 char rl_pre_input_hook ();
22454 main ()
22456 return rl_pre_input_hook ();
22458 return 0;
22460 _ACEOF
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (ac_try="$ac_link"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_link") 2>conftest.er1
22469 ac_status=$?
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext &&
22478 $as_test_x conftest$ac_exeext; then
22479 ac_cv_lib_readline_rl_pre_input_hook=yes
22480 else
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_lib_readline_rl_pre_input_hook=no
22487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22488 conftest$ac_exeext conftest.$ac_ext
22489 LIBS=$ac_check_lib_save_LIBS
22491 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22492 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22493 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22495 cat >>confdefs.h <<\_ACEOF
22496 #define HAVE_RL_PRE_INPUT_HOOK 1
22497 _ACEOF
22502 # also in 4.0
22503 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22504 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22505 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508 ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-lreadline $LIBS"
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h. */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22517 /* Override any GCC internal prototype to avoid an error.
22518 Use char because int might match the return type of a GCC
22519 builtin and then its argument prototype would still apply. */
22520 #ifdef __cplusplus
22521 extern "C"
22522 #endif
22523 char rl_completion_display_matches_hook ();
22525 main ()
22527 return rl_completion_display_matches_hook ();
22529 return 0;
22531 _ACEOF
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_link") 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest$ac_exeext &&
22549 $as_test_x conftest$ac_exeext; then
22550 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22559 conftest$ac_exeext conftest.$ac_ext
22560 LIBS=$ac_check_lib_save_LIBS
22562 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22563 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22564 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22568 _ACEOF
22573 # check for readline 4.2
22574 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22575 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22576 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579 ac_check_lib_save_LIBS=$LIBS
22580 LIBS="-lreadline $LIBS"
22581 cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h. */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22588 /* Override any GCC internal prototype to avoid an error.
22589 Use char because int might match the return type of a GCC
22590 builtin and then its argument prototype would still apply. */
22591 #ifdef __cplusplus
22592 extern "C"
22593 #endif
22594 char rl_completion_matches ();
22596 main ()
22598 return rl_completion_matches ();
22600 return 0;
22602 _ACEOF
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext &&
22620 $as_test_x conftest$ac_exeext; then
22621 ac_cv_lib_readline_rl_completion_matches=yes
22622 else
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_cv_lib_readline_rl_completion_matches=no
22629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22630 conftest$ac_exeext conftest.$ac_ext
22631 LIBS=$ac_check_lib_save_LIBS
22633 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22634 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22635 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_RL_COMPLETION_MATCHES 1
22639 _ACEOF
22644 # also in readline 4.2
22645 cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h. */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 #include <readline/readline.h>
22652 _ACEOF
22653 if { (ac_try="$ac_cpp conftest.$ac_ext"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } >/dev/null && {
22666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 }; then
22669 have_readline=yes
22670 else
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 have_readline=no
22677 rm -f conftest.err conftest.$ac_ext
22678 if test $have_readline = yes
22679 then
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h. */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 #include <readline/readline.h>
22688 _ACEOF
22689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22690 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_RL_CATCH_SIGNAL 1
22694 _ACEOF
22697 rm -f conftest*
22701 # End of readline checks: restore LIBS
22702 LIBS=$LIBS_no_readline
22704 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22705 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22706 if test "${ac_cv_broken_nice+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22710 if test "$cross_compiling" = yes; then
22711 ac_cv_broken_nice=no
22712 else
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h. */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22720 int main()
22722 int val1 = nice(1);
22723 if (val1 != -1 && val1 == nice(2))
22724 exit(0);
22725 exit(1);
22728 _ACEOF
22729 rm -f conftest$ac_exeext
22730 if { (ac_try="$ac_link"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22734 esac
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_link") 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22740 { (case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_try") 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 ac_cv_broken_nice=yes
22750 else
22751 echo "$as_me: program exited with status $ac_status" >&5
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22755 ( exit $ac_status )
22756 ac_cv_broken_nice=no
22758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22765 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22766 if test "$ac_cv_broken_nice" = yes
22767 then
22769 cat >>confdefs.h <<\_ACEOF
22770 #define HAVE_BROKEN_NICE 1
22771 _ACEOF
22775 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22776 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22777 if test "$cross_compiling" = yes; then
22778 ac_cv_broken_poll=no
22779 else
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22787 #include <poll.h>
22789 int main (void)
22791 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22793 close (42);
22795 int poll_test = poll (&poll_struct, 1, 0);
22797 if (poll_test < 0)
22799 exit(0);
22801 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22803 exit(0);
22805 else
22807 exit(1);
22811 _ACEOF
22812 rm -f conftest$ac_exeext
22813 if { (ac_try="$ac_link"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_link") 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22823 { (case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_try") 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_broken_poll=yes
22833 else
22834 echo "$as_me: program exited with status $ac_status" >&5
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ( exit $ac_status )
22839 ac_cv_broken_poll=no
22841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22846 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22847 if test "$ac_cv_broken_poll" = yes
22848 then
22850 cat >>confdefs.h <<\_ACEOF
22851 #define HAVE_BROKEN_POLL 1
22852 _ACEOF
22856 # Before we can test tzset, we need to check if struct tm has a tm_zone
22857 # (which is not required by ISO C or UNIX spec) and/or if we support
22858 # tzname[]
22859 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22860 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22861 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 else
22864 cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h. */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include <sys/types.h>
22871 #include <$ac_cv_struct_tm>
22875 main ()
22877 static struct tm ac_aggr;
22878 if (ac_aggr.tm_zone)
22879 return 0;
22881 return 0;
22883 _ACEOF
22884 rm -f conftest.$ac_objext
22885 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest.$ac_objext; then
22901 ac_cv_member_struct_tm_tm_zone=yes
22902 else
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h. */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 #include <sys/types.h>
22913 #include <$ac_cv_struct_tm>
22917 main ()
22919 static struct tm ac_aggr;
22920 if (sizeof ac_aggr.tm_zone)
22921 return 0;
22923 return 0;
22925 _ACEOF
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.$ac_objext; then
22943 ac_cv_member_struct_tm_tm_zone=yes
22944 else
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_cv_member_struct_tm_tm_zone=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22957 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22958 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22960 cat >>confdefs.h <<_ACEOF
22961 #define HAVE_STRUCT_TM_TM_ZONE 1
22962 _ACEOF
22967 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_TM_ZONE 1
22971 _ACEOF
22973 else
22974 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22975 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22976 if test "${ac_cv_have_decl_tzname+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979 cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h. */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 #include <time.h>
22988 main ()
22990 #ifndef tzname
22991 (void) tzname;
22992 #endif
22995 return 0;
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_have_decl_tzname=yes
23016 else
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 ac_cv_have_decl_tzname=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23026 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23027 if test $ac_cv_have_decl_tzname = yes; then
23029 cat >>confdefs.h <<_ACEOF
23030 #define HAVE_DECL_TZNAME 1
23031 _ACEOF
23034 else
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_DECL_TZNAME 0
23037 _ACEOF
23043 { echo "$as_me:$LINENO: checking for tzname" >&5
23044 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23045 if test "${ac_cv_var_tzname+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048 cat >conftest.$ac_ext <<_ACEOF
23049 /* confdefs.h. */
23050 _ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 #include <time.h>
23055 #if !HAVE_DECL_TZNAME
23056 extern char *tzname[];
23057 #endif
23060 main ()
23062 return tzname[0][0];
23064 return 0;
23066 _ACEOF
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_link") 2>conftest.er1
23075 ac_status=$?
23076 grep -v '^ *+' conftest.er1 >conftest.err
23077 rm -f conftest.er1
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest$ac_exeext &&
23084 $as_test_x conftest$ac_exeext; then
23085 ac_cv_var_tzname=yes
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 ac_cv_var_tzname=no
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23096 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23097 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23098 if test $ac_cv_var_tzname = yes; then
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_TZNAME 1
23102 _ACEOF
23108 # check tzset(3) exists and works like we expect it to
23109 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23110 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23111 if test "${ac_cv_working_tzset+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23115 if test "$cross_compiling" = yes; then
23116 ac_cv_working_tzset=no
23117 else
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h. */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23125 #include <stdlib.h>
23126 #include <time.h>
23127 #include <string.h>
23129 #if HAVE_TZNAME
23130 extern char *tzname[];
23131 #endif
23133 int main()
23135 /* Note that we need to ensure that not only does tzset(3)
23136 do 'something' with localtime, but it works as documented
23137 in the library reference and as expected by the test suite.
23138 This includes making sure that tzname is set properly if
23139 tm->tm_zone does not exist since it is the alternative way
23140 of getting timezone info.
23142 Red Hat 6.2 doesn't understand the southern hemisphere
23143 after New Year's Day.
23146 time_t groundhogday = 1044144000; /* GMT-based */
23147 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23149 putenv("TZ=UTC+0");
23150 tzset();
23151 if (localtime(&groundhogday)->tm_hour != 0)
23152 exit(1);
23153 #if HAVE_TZNAME
23154 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23155 if (strcmp(tzname[0], "UTC") ||
23156 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23157 exit(1);
23158 #endif
23160 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23161 tzset();
23162 if (localtime(&groundhogday)->tm_hour != 19)
23163 exit(1);
23164 #if HAVE_TZNAME
23165 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23166 exit(1);
23167 #endif
23169 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23170 tzset();
23171 if (localtime(&groundhogday)->tm_hour != 11)
23172 exit(1);
23173 #if HAVE_TZNAME
23174 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23175 exit(1);
23176 #endif
23178 #if HAVE_STRUCT_TM_TM_ZONE
23179 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23180 exit(1);
23181 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23182 exit(1);
23183 #endif
23185 exit(0);
23188 _ACEOF
23189 rm -f conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23200 { (case "(($ac_try" in
23201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202 *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_try") 2>&5
23206 ac_status=$?
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_working_tzset=yes
23210 else
23211 echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 ( exit $ac_status )
23216 ac_cv_working_tzset=no
23218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23224 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23225 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23226 if test "$ac_cv_working_tzset" = yes
23227 then
23229 cat >>confdefs.h <<\_ACEOF
23230 #define HAVE_WORKING_TZSET 1
23231 _ACEOF
23235 # Look for subsecond timestamps in struct stat
23236 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23237 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23238 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241 cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h. */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <sys/stat.h>
23249 main ()
23252 struct stat st;
23253 st.st_mtim.tv_nsec = 1;
23256 return 0;
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_cv_stat_tv_nsec=yes
23277 else
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_cv_stat_tv_nsec=no
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23288 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23289 if test "$ac_cv_stat_tv_nsec" = yes
23290 then
23292 cat >>confdefs.h <<\_ACEOF
23293 #define HAVE_STAT_TV_NSEC 1
23294 _ACEOF
23298 # Look for BSD style subsecond timestamps in struct stat
23299 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23300 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23301 if test "${ac_cv_stat_tv_nsec2+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_mtimespec.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_nsec2=yes
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_cv_stat_tv_nsec2=no
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23351 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23352 if test "$ac_cv_stat_tv_nsec2" = yes
23353 then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_STAT_TV_NSEC2 1
23357 _ACEOF
23361 # On HP/UX 11.0, mvwdelch is a block with a return statement
23362 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23363 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23364 if test "${ac_cv_mvwdelch_is_expression+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 <curses.h>
23375 main ()
23378 int rtn;
23379 rtn = mvwdelch(0,0,0);
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_mvwdelch_is_expression=yes
23403 else
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_cv_mvwdelch_is_expression=no
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23414 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23416 if test "$ac_cv_mvwdelch_is_expression" = yes
23417 then
23419 cat >>confdefs.h <<\_ACEOF
23420 #define MVWDELCH_IS_EXPRESSION 1
23421 _ACEOF
23425 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23426 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23427 if test "${ac_cv_window_has_flags+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 WINDOW *w;
23442 w->_flags = 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_window_has_flags=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_window_has_flags=no
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23477 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23480 if test "$ac_cv_window_has_flags" = yes
23481 then
23483 cat >>confdefs.h <<\_ACEOF
23484 #define WINDOW_HAS_FLAGS 1
23485 _ACEOF
23489 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23490 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 #include <curses.h>
23499 main ()
23501 void *x=is_term_resized
23503 return 0;
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23524 cat >>confdefs.h <<\_ACEOF
23525 #define HAVE_CURSES_IS_TERM_RESIZED 1
23526 _ACEOF
23528 { echo "$as_me:$LINENO: result: yes" >&5
23529 echo "${ECHO_T}yes" >&6; }
23530 else
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 { echo "$as_me:$LINENO: result: no" >&5
23535 echo "${ECHO_T}no" >&6; }
23539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 { echo "$as_me:$LINENO: checking for resize_term" >&5
23542 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23543 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h. */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 #include <curses.h>
23551 main ()
23553 void *x=resize_term
23555 return 0;
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_compile") 2>conftest.er1
23566 ac_status=$?
23567 grep -v '^ *+' conftest.er1 >conftest.err
23568 rm -f conftest.er1
23569 cat conftest.err >&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest.$ac_objext; then
23576 cat >>confdefs.h <<\_ACEOF
23577 #define HAVE_CURSES_RESIZE_TERM 1
23578 _ACEOF
23580 { echo "$as_me:$LINENO: result: yes" >&5
23581 echo "${ECHO_T}yes" >&6; }
23582 else
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 { echo "$as_me:$LINENO: result: no" >&5
23587 echo "${ECHO_T}no" >&6; }
23591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23594 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23595 cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h. */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23601 #include <curses.h>
23603 main ()
23605 void *x=resizeterm
23607 return 0;
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617 (eval "$ac_compile") 2>conftest.er1
23618 ac_status=$?
23619 grep -v '^ *+' conftest.er1 >conftest.err
23620 rm -f conftest.er1
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest.$ac_objext; then
23628 cat >>confdefs.h <<\_ACEOF
23629 #define HAVE_CURSES_RESIZETERM 1
23630 _ACEOF
23632 { echo "$as_me:$LINENO: result: yes" >&5
23633 echo "${ECHO_T}yes" >&6; }
23634 else
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 { echo "$as_me:$LINENO: result: no" >&5
23639 echo "${ECHO_T}no" >&6; }
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23646 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23648 if test -r /dev/ptmx
23649 then
23650 { echo "$as_me:$LINENO: result: yes" >&5
23651 echo "${ECHO_T}yes" >&6; }
23653 cat >>confdefs.h <<\_ACEOF
23654 #define HAVE_DEV_PTMX 1
23655 _ACEOF
23657 else
23658 { echo "$as_me:$LINENO: result: no" >&5
23659 echo "${ECHO_T}no" >&6; }
23662 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23663 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23665 if test -r /dev/ptc
23666 then
23667 { echo "$as_me:$LINENO: result: yes" >&5
23668 echo "${ECHO_T}yes" >&6; }
23670 cat >>confdefs.h <<\_ACEOF
23671 #define HAVE_DEV_PTC 1
23672 _ACEOF
23674 else
23675 { echo "$as_me:$LINENO: result: no" >&5
23676 echo "${ECHO_T}no" >&6; }
23679 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23680 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23681 if test "$cross_compiling" = yes; then
23682 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23683 See \`config.log' for more details." >&5
23684 echo "$as_me: error: cannot run test program while cross compiling
23685 See \`config.log' for more details." >&2;}
23686 { (exit 1); exit 1; }; }
23687 else
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h. */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 #include <stdio.h>
23695 #include <stddef.h>
23696 #include <string.h>
23698 #ifdef HAVE_SYS_TYPES_H
23699 #include <sys/types.h>
23700 #endif
23702 #ifdef HAVE_SSIZE_T
23703 typedef ssize_t Py_ssize_t;
23704 #elif SIZEOF_VOID_P == SIZEOF_LONG
23705 typedef long Py_ssize_t;
23706 #else
23707 typedef int Py_ssize_t;
23708 #endif
23710 int main()
23712 char buffer[256];
23714 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23715 return 1;
23717 if (strcmp(buffer, "123"))
23718 return 1;
23720 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23721 return 1;
23723 if (strcmp(buffer, "-123"))
23724 return 1;
23726 return 0;
23728 _ACEOF
23729 rm -f conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_link") 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23740 { (case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23743 esac
23744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745 (eval "$ac_try") 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 { echo "$as_me:$LINENO: result: yes" >&5
23750 echo "${ECHO_T}yes" >&6; }
23752 cat >>confdefs.h <<\_ACEOF
23753 #define PY_FORMAT_SIZE_T "z"
23754 _ACEOF
23756 else
23757 echo "$as_me: program exited with status $ac_status" >&5
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ( exit $ac_status )
23762 { echo "$as_me:$LINENO: result: no" >&5
23763 echo "${ECHO_T}no" >&6; }
23765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23770 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23771 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23772 if test "${ac_cv_type_socklen_t+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23774 else
23775 cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h. */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23782 #ifdef HAVE_SYS_TYPES_H
23783 #include <sys/types.h>
23784 #endif
23785 #ifdef HAVE_SYS_SOCKET_H
23786 #include <sys/socket.h>
23787 #endif
23790 typedef socklen_t ac__type_new_;
23792 main ()
23794 if ((ac__type_new_ *) 0)
23795 return 0;
23796 if (sizeof (ac__type_new_))
23797 return 0;
23799 return 0;
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_cv_type_socklen_t=yes
23820 else
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_cv_type_socklen_t=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23830 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23831 if test $ac_cv_type_socklen_t = yes; then
23833 else
23835 cat >>confdefs.h <<\_ACEOF
23836 #define socklen_t int
23837 _ACEOF
23844 for h in `(cd $srcdir;echo Python/thread_*.h)`
23846 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
23847 done
23850 SRCDIRS="Parser Grammar Objects Python Modules Mac"
23851 { echo "$as_me:$LINENO: checking for build directories" >&5
23852 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
23853 for dir in $SRCDIRS; do
23854 if test ! -d $dir; then
23855 mkdir $dir
23857 done
23858 { echo "$as_me:$LINENO: result: done" >&5
23859 echo "${ECHO_T}done" >&6; }
23861 # generate output files
23862 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
23864 cat >confcache <<\_ACEOF
23865 # This file is a shell script that caches the results of configure
23866 # tests run on this system so they can be shared between configure
23867 # scripts and configure runs, see configure's option --config-cache.
23868 # It is not useful on other systems. If it contains results you don't
23869 # want to keep, you may remove or edit it.
23871 # config.status only pays attention to the cache file if you give it
23872 # the --recheck option to rerun configure.
23874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23876 # following values.
23878 _ACEOF
23880 # The following way of writing the cache mishandles newlines in values,
23881 # but we know of no workaround that is simple, portable, and efficient.
23882 # So, we kill variables containing newlines.
23883 # Ultrix sh set writes to stderr and can't be redirected directly,
23884 # and sets the high bit in the cache file unless we assign to the vars.
23886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23887 eval ac_val=\$$ac_var
23888 case $ac_val in #(
23889 *${as_nl}*)
23890 case $ac_var in #(
23891 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23892 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23893 esac
23894 case $ac_var in #(
23895 _ | IFS | as_nl) ;; #(
23896 *) $as_unset $ac_var ;;
23897 esac ;;
23898 esac
23899 done
23901 (set) 2>&1 |
23902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23903 *${as_nl}ac_space=\ *)
23904 # `set' does not quote correctly, so add quotes (double-quote
23905 # substitution turns \\\\ into \\, and sed turns \\ into \).
23906 sed -n \
23907 "s/'/'\\\\''/g;
23908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23909 ;; #(
23911 # `set' quotes correctly as required by POSIX, so do not add quotes.
23912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23914 esac |
23915 sort
23917 sed '
23918 /^ac_cv_env_/b end
23919 t clear
23920 :clear
23921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23922 t end
23923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23924 :end' >>confcache
23925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23926 if test -w "$cache_file"; then
23927 test "x$cache_file" != "x/dev/null" &&
23928 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23929 echo "$as_me: updating cache $cache_file" >&6;}
23930 cat confcache >$cache_file
23931 else
23932 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23933 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23936 rm -f confcache
23938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23939 # Let make expand exec_prefix.
23940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23942 DEFS=-DHAVE_CONFIG_H
23944 ac_libobjs=
23945 ac_ltlibobjs=
23946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23947 # 1. Remove the extension, and $U if already installed.
23948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23949 ac_i=`echo "$ac_i" | sed "$ac_script"`
23950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23951 # will be set to the directory where LIBOBJS objects are built.
23952 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23953 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23954 done
23955 LIBOBJS=$ac_libobjs
23957 LTLIBOBJS=$ac_ltlibobjs
23961 : ${CONFIG_STATUS=./config.status}
23962 ac_clean_files_save=$ac_clean_files
23963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23964 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23965 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23966 cat >$CONFIG_STATUS <<_ACEOF
23967 #! $SHELL
23968 # Generated by $as_me.
23969 # Run this file to recreate the current configuration.
23970 # Compiler output produced by configure, useful for debugging
23971 # configure, is in config.log if it exists.
23973 debug=false
23974 ac_cs_recheck=false
23975 ac_cs_silent=false
23976 SHELL=\${CONFIG_SHELL-$SHELL}
23977 _ACEOF
23979 cat >>$CONFIG_STATUS <<\_ACEOF
23980 ## --------------------- ##
23981 ## M4sh Initialization. ##
23982 ## --------------------- ##
23984 # Be more Bourne compatible
23985 DUALCASE=1; export DUALCASE # for MKS sh
23986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23987 emulate sh
23988 NULLCMD=:
23989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23990 # is contrary to our usage. Disable this feature.
23991 alias -g '${1+"$@"}'='"$@"'
23992 setopt NO_GLOB_SUBST
23993 else
23994 case `(set -o) 2>/dev/null` in
23995 *posix*) set -o posix ;;
23996 esac
24003 # PATH needs CR
24004 # Avoid depending upon Character Ranges.
24005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24008 as_cr_digits='0123456789'
24009 as_cr_alnum=$as_cr_Letters$as_cr_digits
24011 # The user is always right.
24012 if test "${PATH_SEPARATOR+set}" != set; then
24013 echo "#! /bin/sh" >conf$$.sh
24014 echo "exit 0" >>conf$$.sh
24015 chmod +x conf$$.sh
24016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24017 PATH_SEPARATOR=';'
24018 else
24019 PATH_SEPARATOR=:
24021 rm -f conf$$.sh
24024 # Support unset when possible.
24025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24026 as_unset=unset
24027 else
24028 as_unset=false
24032 # IFS
24033 # We need space, tab and new line, in precisely that order. Quoting is
24034 # there to prevent editors from complaining about space-tab.
24035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24036 # splitting by setting IFS to empty value.)
24037 as_nl='
24039 IFS=" "" $as_nl"
24041 # Find who we are. Look in the path if we contain no directory separator.
24042 case $0 in
24043 *[\\/]* ) as_myself=$0 ;;
24044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24045 for as_dir in $PATH
24047 IFS=$as_save_IFS
24048 test -z "$as_dir" && as_dir=.
24049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24050 done
24051 IFS=$as_save_IFS
24054 esac
24055 # We did not find ourselves, most probably we were run as `sh COMMAND'
24056 # in which case we are not to be found in the path.
24057 if test "x$as_myself" = x; then
24058 as_myself=$0
24060 if test ! -f "$as_myself"; then
24061 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24062 { (exit 1); exit 1; }
24065 # Work around bugs in pre-3.0 UWIN ksh.
24066 for as_var in ENV MAIL MAILPATH
24067 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24068 done
24069 PS1='$ '
24070 PS2='> '
24071 PS4='+ '
24073 # NLS nuisances.
24074 for as_var in \
24075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24077 LC_TELEPHONE LC_TIME
24079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24080 eval $as_var=C; export $as_var
24081 else
24082 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24084 done
24086 # Required to use basename.
24087 if expr a : '\(a\)' >/dev/null 2>&1 &&
24088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24089 as_expr=expr
24090 else
24091 as_expr=false
24094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24095 as_basename=basename
24096 else
24097 as_basename=false
24101 # Name of the executable.
24102 as_me=`$as_basename -- "$0" ||
24103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24104 X"$0" : 'X\(//\)$' \| \
24105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24106 echo X/"$0" |
24107 sed '/^.*\/\([^/][^/]*\)\/*$/{
24108 s//\1/
24111 /^X\/\(\/\/\)$/{
24112 s//\1/
24115 /^X\/\(\/\).*/{
24116 s//\1/
24119 s/.*/./; q'`
24121 # CDPATH.
24122 $as_unset CDPATH
24126 as_lineno_1=$LINENO
24127 as_lineno_2=$LINENO
24128 test "x$as_lineno_1" != "x$as_lineno_2" &&
24129 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24132 # uniformly replaced by the line number. The first 'sed' inserts a
24133 # line-number line after each line using $LINENO; the second 'sed'
24134 # does the real work. The second script uses 'N' to pair each
24135 # line-number line with the line containing $LINENO, and appends
24136 # trailing '-' during substitution so that $LINENO is not a special
24137 # case at line end.
24138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24139 # scripts with optimization help from Paolo Bonzini. Blame Lee
24140 # E. McMahon (1931-1989) for sed's syntax. :-)
24141 sed -n '
24143 /[$]LINENO/=
24144 ' <$as_myself |
24145 sed '
24146 s/[$]LINENO.*/&-/
24147 t lineno
24149 :lineno
24151 :loop
24152 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24153 t loop
24154 s/-\n.*//
24155 ' >$as_me.lineno &&
24156 chmod +x "$as_me.lineno" ||
24157 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24158 { (exit 1); exit 1; }; }
24160 # Don't try to exec as it changes $[0], causing all sort of problems
24161 # (the dirname of $[0] is not the place where we might find the
24162 # original and so on. Autoconf is especially sensitive to this).
24163 . "./$as_me.lineno"
24164 # Exit status is that of the last command.
24165 exit
24169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24170 as_dirname=dirname
24171 else
24172 as_dirname=false
24175 ECHO_C= ECHO_N= ECHO_T=
24176 case `echo -n x` in
24177 -n*)
24178 case `echo 'x\c'` in
24179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24180 *) ECHO_C='\c';;
24181 esac;;
24183 ECHO_N='-n';;
24184 esac
24186 if expr a : '\(a\)' >/dev/null 2>&1 &&
24187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24188 as_expr=expr
24189 else
24190 as_expr=false
24193 rm -f conf$$ conf$$.exe conf$$.file
24194 if test -d conf$$.dir; then
24195 rm -f conf$$.dir/conf$$.file
24196 else
24197 rm -f conf$$.dir
24198 mkdir conf$$.dir
24200 echo >conf$$.file
24201 if ln -s conf$$.file conf$$ 2>/dev/null; then
24202 as_ln_s='ln -s'
24203 # ... but there are two gotchas:
24204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24206 # In both cases, we have to default to `cp -p'.
24207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24208 as_ln_s='cp -p'
24209 elif ln conf$$.file conf$$ 2>/dev/null; then
24210 as_ln_s=ln
24211 else
24212 as_ln_s='cp -p'
24214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24215 rmdir conf$$.dir 2>/dev/null
24217 if mkdir -p . 2>/dev/null; then
24218 as_mkdir_p=:
24219 else
24220 test -d ./-p && rmdir ./-p
24221 as_mkdir_p=false
24224 if test -x / >/dev/null 2>&1; then
24225 as_test_x='test -x'
24226 else
24227 if ls -dL / >/dev/null 2>&1; then
24228 as_ls_L_option=L
24229 else
24230 as_ls_L_option=
24232 as_test_x='
24233 eval sh -c '\''
24234 if test -d "$1"; then
24235 test -d "$1/.";
24236 else
24237 case $1 in
24238 -*)set "./$1";;
24239 esac;
24240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24241 ???[sx]*):;;*)false;;esac;fi
24242 '\'' sh
24245 as_executable_p=$as_test_x
24247 # Sed expression to map a string onto a valid CPP name.
24248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24250 # Sed expression to map a string onto a valid variable name.
24251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24254 exec 6>&1
24256 # Save the log message, to keep $[0] and so on meaningful, and to
24257 # report actual input values of CONFIG_FILES etc. instead of their
24258 # values after options handling.
24259 ac_log="
24260 This file was extended by python $as_me 2.6, which was
24261 generated by GNU Autoconf 2.61. Invocation command line was
24263 CONFIG_FILES = $CONFIG_FILES
24264 CONFIG_HEADERS = $CONFIG_HEADERS
24265 CONFIG_LINKS = $CONFIG_LINKS
24266 CONFIG_COMMANDS = $CONFIG_COMMANDS
24267 $ $0 $@
24269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24272 _ACEOF
24274 cat >>$CONFIG_STATUS <<_ACEOF
24275 # Files that config.status was made for.
24276 config_files="$ac_config_files"
24277 config_headers="$ac_config_headers"
24279 _ACEOF
24281 cat >>$CONFIG_STATUS <<\_ACEOF
24282 ac_cs_usage="\
24283 \`$as_me' instantiates files from templates according to the
24284 current configuration.
24286 Usage: $0 [OPTIONS] [FILE]...
24288 -h, --help print this help, then exit
24289 -V, --version print version number and configuration settings, then exit
24290 -q, --quiet do not print progress messages
24291 -d, --debug don't remove temporary files
24292 --recheck update $as_me by reconfiguring in the same conditions
24293 --file=FILE[:TEMPLATE]
24294 instantiate the configuration file FILE
24295 --header=FILE[:TEMPLATE]
24296 instantiate the configuration header FILE
24298 Configuration files:
24299 $config_files
24301 Configuration headers:
24302 $config_headers
24304 Report bugs to <bug-autoconf@gnu.org>."
24306 _ACEOF
24307 cat >>$CONFIG_STATUS <<_ACEOF
24308 ac_cs_version="\\
24309 python config.status 2.6
24310 configured by $0, generated by GNU Autoconf 2.61,
24311 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24313 Copyright (C) 2006 Free Software Foundation, Inc.
24314 This config.status script is free software; the Free Software Foundation
24315 gives unlimited permission to copy, distribute and modify it."
24317 ac_pwd='$ac_pwd'
24318 srcdir='$srcdir'
24319 INSTALL='$INSTALL'
24320 _ACEOF
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323 # If no file are specified by the user, then we need to provide default
24324 # value. By we need to know if files were specified by the user.
24325 ac_need_defaults=:
24326 while test $# != 0
24328 case $1 in
24329 --*=*)
24330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24332 ac_shift=:
24335 ac_option=$1
24336 ac_optarg=$2
24337 ac_shift=shift
24339 esac
24341 case $ac_option in
24342 # Handling of the options.
24343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24344 ac_cs_recheck=: ;;
24345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24346 echo "$ac_cs_version"; exit ;;
24347 --debug | --debu | --deb | --de | --d | -d )
24348 debug=: ;;
24349 --file | --fil | --fi | --f )
24350 $ac_shift
24351 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24352 ac_need_defaults=false;;
24353 --header | --heade | --head | --hea )
24354 $ac_shift
24355 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24356 ac_need_defaults=false;;
24357 --he | --h)
24358 # Conflict between --help and --header
24359 { echo "$as_me: error: ambiguous option: $1
24360 Try \`$0 --help' for more information." >&2
24361 { (exit 1); exit 1; }; };;
24362 --help | --hel | -h )
24363 echo "$ac_cs_usage"; exit ;;
24364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24366 ac_cs_silent=: ;;
24368 # This is an error.
24369 -*) { echo "$as_me: error: unrecognized option: $1
24370 Try \`$0 --help' for more information." >&2
24371 { (exit 1); exit 1; }; } ;;
24373 *) ac_config_targets="$ac_config_targets $1"
24374 ac_need_defaults=false ;;
24376 esac
24377 shift
24378 done
24380 ac_configure_extra_args=
24382 if $ac_cs_silent; then
24383 exec 6>/dev/null
24384 ac_configure_extra_args="$ac_configure_extra_args --silent"
24387 _ACEOF
24388 cat >>$CONFIG_STATUS <<_ACEOF
24389 if \$ac_cs_recheck; then
24390 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24391 CONFIG_SHELL=$SHELL
24392 export CONFIG_SHELL
24393 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24396 _ACEOF
24397 cat >>$CONFIG_STATUS <<\_ACEOF
24398 exec 5>>config.log
24400 echo
24401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24402 ## Running $as_me. ##
24403 _ASBOX
24404 echo "$ac_log"
24405 } >&5
24407 _ACEOF
24408 cat >>$CONFIG_STATUS <<_ACEOF
24409 _ACEOF
24411 cat >>$CONFIG_STATUS <<\_ACEOF
24413 # Handling of arguments.
24414 for ac_config_target in $ac_config_targets
24416 case $ac_config_target in
24417 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24418 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24419 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24420 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24421 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24422 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24426 { (exit 1); exit 1; }; };;
24427 esac
24428 done
24431 # If the user did not use the arguments to specify the items to instantiate,
24432 # then the envvar interface is used. Set only those that are not.
24433 # We use the long form for the default assignment because of an extremely
24434 # bizarre bug on SunOS 4.1.3.
24435 if $ac_need_defaults; then
24436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24440 # Have a temporary directory for convenience. Make it in the build tree
24441 # simply because there is no reason against having it here, and in addition,
24442 # creating and moving files from /tmp can sometimes cause problems.
24443 # Hook for its removal unless debugging.
24444 # Note that there is a small window in which the directory will not be cleaned:
24445 # after its creation but before its name has been assigned to `$tmp'.
24446 $debug ||
24448 tmp=
24449 trap 'exit_status=$?
24450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24452 trap '{ (exit 1); exit 1; }' 1 2 13 15
24454 # Create a (secure) tmp directory for tmp files.
24457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24458 test -n "$tmp" && test -d "$tmp"
24459 } ||
24461 tmp=./conf$$-$RANDOM
24462 (umask 077 && mkdir "$tmp")
24463 } ||
24465 echo "$me: cannot create a temporary directory in ." >&2
24466 { (exit 1); exit 1; }
24470 # Set up the sed scripts for CONFIG_FILES section.
24473 # No need to generate the scripts if there are no CONFIG_FILES.
24474 # This happens for instance when ./config.status config.h
24475 if test -n "$CONFIG_FILES"; then
24477 _ACEOF
24481 ac_delim='%!_!# '
24482 for ac_last_try in false false false false false :; do
24483 cat >conf$$subs.sed <<_ACEOF
24484 SHELL!$SHELL$ac_delim
24485 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24486 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24487 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24488 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24489 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24490 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24491 exec_prefix!$exec_prefix$ac_delim
24492 prefix!$prefix$ac_delim
24493 program_transform_name!$program_transform_name$ac_delim
24494 bindir!$bindir$ac_delim
24495 sbindir!$sbindir$ac_delim
24496 libexecdir!$libexecdir$ac_delim
24497 datarootdir!$datarootdir$ac_delim
24498 datadir!$datadir$ac_delim
24499 sysconfdir!$sysconfdir$ac_delim
24500 sharedstatedir!$sharedstatedir$ac_delim
24501 localstatedir!$localstatedir$ac_delim
24502 includedir!$includedir$ac_delim
24503 oldincludedir!$oldincludedir$ac_delim
24504 docdir!$docdir$ac_delim
24505 infodir!$infodir$ac_delim
24506 htmldir!$htmldir$ac_delim
24507 dvidir!$dvidir$ac_delim
24508 pdfdir!$pdfdir$ac_delim
24509 psdir!$psdir$ac_delim
24510 libdir!$libdir$ac_delim
24511 localedir!$localedir$ac_delim
24512 mandir!$mandir$ac_delim
24513 DEFS!$DEFS$ac_delim
24514 ECHO_C!$ECHO_C$ac_delim
24515 ECHO_N!$ECHO_N$ac_delim
24516 ECHO_T!$ECHO_T$ac_delim
24517 LIBS!$LIBS$ac_delim
24518 build_alias!$build_alias$ac_delim
24519 host_alias!$host_alias$ac_delim
24520 target_alias!$target_alias$ac_delim
24521 VERSION!$VERSION$ac_delim
24522 SOVERSION!$SOVERSION$ac_delim
24523 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24524 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24525 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24526 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24527 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24528 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24529 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24530 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24531 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24532 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24533 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24534 MACHDEP!$MACHDEP$ac_delim
24535 SGI_ABI!$SGI_ABI$ac_delim
24536 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24537 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24538 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24539 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24540 CC!$CC$ac_delim
24541 CFLAGS!$CFLAGS$ac_delim
24542 LDFLAGS!$LDFLAGS$ac_delim
24543 CPPFLAGS!$CPPFLAGS$ac_delim
24544 ac_ct_CC!$ac_ct_CC$ac_delim
24545 EXEEXT!$EXEEXT$ac_delim
24546 OBJEXT!$OBJEXT$ac_delim
24547 CXX!$CXX$ac_delim
24548 MAINCC!$MAINCC$ac_delim
24549 CPP!$CPP$ac_delim
24550 GREP!$GREP$ac_delim
24551 EGREP!$EGREP$ac_delim
24552 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24553 LIBRARY!$LIBRARY$ac_delim
24554 LDLIBRARY!$LDLIBRARY$ac_delim
24555 DLLLIBRARY!$DLLLIBRARY$ac_delim
24556 BLDLIBRARY!$BLDLIBRARY$ac_delim
24557 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24558 INSTSONAME!$INSTSONAME$ac_delim
24559 RUNSHARED!$RUNSHARED$ac_delim
24560 LINKCC!$LINKCC$ac_delim
24561 RANLIB!$RANLIB$ac_delim
24562 AR!$AR$ac_delim
24563 SVNVERSION!$SVNVERSION$ac_delim
24564 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24565 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24566 INSTALL_DATA!$INSTALL_DATA$ac_delim
24567 LN!$LN$ac_delim
24568 OPT!$OPT$ac_delim
24569 BASECFLAGS!$BASECFLAGS$ac_delim
24570 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24571 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24572 SO!$SO$ac_delim
24573 LDSHARED!$LDSHARED$ac_delim
24574 BLDSHARED!$BLDSHARED$ac_delim
24575 CCSHARED!$CCSHARED$ac_delim
24576 LINKFORSHARED!$LINKFORSHARED$ac_delim
24577 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24578 SHLIBS!$SHLIBS$ac_delim
24579 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24580 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24581 _ACEOF
24583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24584 break
24585 elif $ac_last_try; then
24586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24588 { (exit 1); exit 1; }; }
24589 else
24590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24592 done
24594 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24595 if test -n "$ac_eof"; then
24596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24597 ac_eof=`expr $ac_eof + 1`
24600 cat >>$CONFIG_STATUS <<_ACEOF
24601 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24603 _ACEOF
24604 sed '
24605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24606 s/^/s,@/; s/!/@,|#_!!_#|/
24609 s/'"$ac_delim"'$/,g/; t
24610 s/$/\\/; p
24611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24612 ' >>$CONFIG_STATUS <conf$$subs.sed
24613 rm -f conf$$subs.sed
24614 cat >>$CONFIG_STATUS <<_ACEOF
24615 CEOF$ac_eof
24616 _ACEOF
24619 ac_delim='%!_!# '
24620 for ac_last_try in false false false false false :; do
24621 cat >conf$$subs.sed <<_ACEOF
24622 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24623 LDLAST!$LDLAST$ac_delim
24624 THREADOBJ!$THREADOBJ$ac_delim
24625 DLINCLDIR!$DLINCLDIR$ac_delim
24626 DYNLOADFILE!$DYNLOADFILE$ac_delim
24627 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24628 TRUE!$TRUE$ac_delim
24629 LIBOBJS!$LIBOBJS$ac_delim
24630 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24631 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24632 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24633 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24634 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24635 LIBM!$LIBM$ac_delim
24636 LIBC!$LIBC$ac_delim
24637 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24638 THREADHEADERS!$THREADHEADERS$ac_delim
24639 SRCDIRS!$SRCDIRS$ac_delim
24640 LTLIBOBJS!$LTLIBOBJS$ac_delim
24641 _ACEOF
24643 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24644 break
24645 elif $ac_last_try; then
24646 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24647 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24648 { (exit 1); exit 1; }; }
24649 else
24650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24652 done
24654 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24655 if test -n "$ac_eof"; then
24656 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24657 ac_eof=`expr $ac_eof + 1`
24660 cat >>$CONFIG_STATUS <<_ACEOF
24661 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24663 _ACEOF
24664 sed '
24665 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24666 s/^/s,@/; s/!/@,|#_!!_#|/
24669 s/'"$ac_delim"'$/,g/; t
24670 s/$/\\/; p
24671 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24672 ' >>$CONFIG_STATUS <conf$$subs.sed
24673 rm -f conf$$subs.sed
24674 cat >>$CONFIG_STATUS <<_ACEOF
24675 :end
24676 s/|#_!!_#|//g
24677 CEOF$ac_eof
24678 _ACEOF
24681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24683 # trailing colons and then remove the whole line if VPATH becomes empty
24684 # (actually we leave an empty line to preserve line numbers).
24685 if test "x$srcdir" = x.; then
24686 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24687 s/:*\$(srcdir):*/:/
24688 s/:*\${srcdir}:*/:/
24689 s/:*@srcdir@:*/:/
24690 s/^\([^=]*=[ ]*\):*/\1/
24691 s/:*$//
24692 s/^[^=]*=[ ]*$//
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 fi # test -n "$CONFIG_FILES"
24700 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24702 case $ac_tag in
24703 :[FHLC]) ac_mode=$ac_tag; continue;;
24704 esac
24705 case $ac_mode$ac_tag in
24706 :[FHL]*:*);;
24707 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24708 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24709 { (exit 1); exit 1; }; };;
24710 :[FH]-) ac_tag=-:-;;
24711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24712 esac
24713 ac_save_IFS=$IFS
24714 IFS=:
24715 set x $ac_tag
24716 IFS=$ac_save_IFS
24717 shift
24718 ac_file=$1
24719 shift
24721 case $ac_mode in
24722 :L) ac_source=$1;;
24723 :[FH])
24724 ac_file_inputs=
24725 for ac_f
24727 case $ac_f in
24728 -) ac_f="$tmp/stdin";;
24729 *) # Look for the file first in the build tree, then in the source tree
24730 # (if the path is not absolute). The absolute path cannot be DOS-style,
24731 # because $ac_f cannot contain `:'.
24732 test -f "$ac_f" ||
24733 case $ac_f in
24734 [\\/$]*) false;;
24735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24736 esac ||
24737 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24738 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24739 { (exit 1); exit 1; }; };;
24740 esac
24741 ac_file_inputs="$ac_file_inputs $ac_f"
24742 done
24744 # Let's still pretend it is `configure' which instantiates (i.e., don't
24745 # use $as_me), people would be surprised to read:
24746 # /* config.h. Generated by config.status. */
24747 configure_input="Generated from "`IFS=:
24748 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24749 if test x"$ac_file" != x-; then
24750 configure_input="$ac_file. $configure_input"
24751 { echo "$as_me:$LINENO: creating $ac_file" >&5
24752 echo "$as_me: creating $ac_file" >&6;}
24755 case $ac_tag in
24756 *:-:* | *:-) cat >"$tmp/stdin";;
24757 esac
24759 esac
24761 ac_dir=`$as_dirname -- "$ac_file" ||
24762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24763 X"$ac_file" : 'X\(//\)[^/]' \| \
24764 X"$ac_file" : 'X\(//\)$' \| \
24765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24766 echo X"$ac_file" |
24767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24768 s//\1/
24771 /^X\(\/\/\)[^/].*/{
24772 s//\1/
24775 /^X\(\/\/\)$/{
24776 s//\1/
24779 /^X\(\/\).*/{
24780 s//\1/
24783 s/.*/./; q'`
24784 { as_dir="$ac_dir"
24785 case $as_dir in #(
24786 -*) as_dir=./$as_dir;;
24787 esac
24788 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24789 as_dirs=
24790 while :; do
24791 case $as_dir in #(
24792 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24793 *) as_qdir=$as_dir;;
24794 esac
24795 as_dirs="'$as_qdir' $as_dirs"
24796 as_dir=`$as_dirname -- "$as_dir" ||
24797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24798 X"$as_dir" : 'X\(//\)[^/]' \| \
24799 X"$as_dir" : 'X\(//\)$' \| \
24800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24801 echo X"$as_dir" |
24802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24803 s//\1/
24806 /^X\(\/\/\)[^/].*/{
24807 s//\1/
24810 /^X\(\/\/\)$/{
24811 s//\1/
24814 /^X\(\/\).*/{
24815 s//\1/
24818 s/.*/./; q'`
24819 test -d "$as_dir" && break
24820 done
24821 test -z "$as_dirs" || eval "mkdir $as_dirs"
24822 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24823 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24824 { (exit 1); exit 1; }; }; }
24825 ac_builddir=.
24827 case "$ac_dir" in
24828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24831 # A ".." for each directory in $ac_dir_suffix.
24832 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24833 case $ac_top_builddir_sub in
24834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24836 esac ;;
24837 esac
24838 ac_abs_top_builddir=$ac_pwd
24839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24840 # for backward compatibility:
24841 ac_top_builddir=$ac_top_build_prefix
24843 case $srcdir in
24844 .) # We are building in place.
24845 ac_srcdir=.
24846 ac_top_srcdir=$ac_top_builddir_sub
24847 ac_abs_top_srcdir=$ac_pwd ;;
24848 [\\/]* | ?:[\\/]* ) # Absolute name.
24849 ac_srcdir=$srcdir$ac_dir_suffix;
24850 ac_top_srcdir=$srcdir
24851 ac_abs_top_srcdir=$srcdir ;;
24852 *) # Relative name.
24853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24854 ac_top_srcdir=$ac_top_build_prefix$srcdir
24855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24856 esac
24857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24860 case $ac_mode in
24863 # CONFIG_FILE
24866 case $INSTALL in
24867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24868 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24869 esac
24870 _ACEOF
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24873 # If the template does not know about datarootdir, expand it.
24874 # FIXME: This hack should be removed a few years after 2.60.
24875 ac_datarootdir_hack=; ac_datarootdir_seen=
24877 case `sed -n '/datarootdir/ {
24881 /@datadir@/p
24882 /@docdir@/p
24883 /@infodir@/p
24884 /@localedir@/p
24885 /@mandir@/p
24886 ' $ac_file_inputs` in
24887 *datarootdir*) ac_datarootdir_seen=yes;;
24888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24889 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24890 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24891 _ACEOF
24892 cat >>$CONFIG_STATUS <<_ACEOF
24893 ac_datarootdir_hack='
24894 s&@datadir@&$datadir&g
24895 s&@docdir@&$docdir&g
24896 s&@infodir@&$infodir&g
24897 s&@localedir@&$localedir&g
24898 s&@mandir@&$mandir&g
24899 s&\\\${datarootdir}&$datarootdir&g' ;;
24900 esac
24901 _ACEOF
24903 # Neutralize VPATH when `$srcdir' = `.'.
24904 # Shell code in configure.ac might set extrasub.
24905 # FIXME: do we really want to maintain this feature?
24906 cat >>$CONFIG_STATUS <<_ACEOF
24907 sed "$ac_vpsub
24908 $extrasub
24909 _ACEOF
24910 cat >>$CONFIG_STATUS <<\_ACEOF
24912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24913 s&@configure_input@&$configure_input&;t t
24914 s&@top_builddir@&$ac_top_builddir_sub&;t t
24915 s&@srcdir@&$ac_srcdir&;t t
24916 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24917 s&@top_srcdir@&$ac_top_srcdir&;t t
24918 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24919 s&@builddir@&$ac_builddir&;t t
24920 s&@abs_builddir@&$ac_abs_builddir&;t t
24921 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24922 s&@INSTALL@&$ac_INSTALL&;t t
24923 $ac_datarootdir_hack
24924 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24929 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24930 which seems to be undefined. Please make sure it is defined." >&5
24931 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24932 which seems to be undefined. Please make sure it is defined." >&2;}
24934 rm -f "$tmp/stdin"
24935 case $ac_file in
24936 -) cat "$tmp/out"; rm -f "$tmp/out";;
24937 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24938 esac
24942 # CONFIG_HEADER
24944 _ACEOF
24946 # Transform confdefs.h into a sed script `conftest.defines', that
24947 # substitutes the proper values into config.h.in to produce config.h.
24948 rm -f conftest.defines conftest.tail
24949 # First, append a space to every undef/define line, to ease matching.
24950 echo 's/$/ /' >conftest.defines
24951 # Then, protect against being on the right side of a sed subst, or in
24952 # an unquoted here document, in config.status. If some macros were
24953 # called several times there might be several #defines for the same
24954 # symbol, which is useless. But do not sort them, since the last
24955 # AC_DEFINE must be honored.
24956 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24957 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24958 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24959 # PARAMS is the parameter list in the macro definition--in most cases, it's
24960 # just an empty string.
24961 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24962 ac_dB='\\)[ (].*,\\1define\\2'
24963 ac_dC=' '
24964 ac_dD=' ,'
24966 uniq confdefs.h |
24967 sed -n '
24968 t rset
24969 :rset
24970 s/^[ ]*#[ ]*define[ ][ ]*//
24971 t ok
24974 s/[\\&,]/\\&/g
24975 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24976 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24977 ' >>conftest.defines
24979 # Remove the space that was appended to ease matching.
24980 # Then replace #undef with comments. This is necessary, for
24981 # example, in the case of _POSIX_SOURCE, which is predefined and required
24982 # on some systems where configure will not decide to define it.
24983 # (The regexp can be short, since the line contains either #define or #undef.)
24984 echo 's/ $//
24985 s,^[ #]*u.*,/* & */,' >>conftest.defines
24987 # Break up conftest.defines:
24988 ac_max_sed_lines=50
24990 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24991 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24992 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24993 # et cetera.
24994 ac_in='$ac_file_inputs'
24995 ac_out='"$tmp/out1"'
24996 ac_nxt='"$tmp/out2"'
24998 while :
25000 # Write a here document:
25001 cat >>$CONFIG_STATUS <<_ACEOF
25002 # First, check the format of the line:
25003 cat >"\$tmp/defines.sed" <<\\CEOF
25004 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25005 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25007 :def
25008 _ACEOF
25009 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25010 echo 'CEOF
25011 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25012 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25013 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25014 grep . conftest.tail >/dev/null || break
25015 rm -f conftest.defines
25016 mv conftest.tail conftest.defines
25017 done
25018 rm -f conftest.defines conftest.tail
25020 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25021 cat >>$CONFIG_STATUS <<\_ACEOF
25022 if test x"$ac_file" != x-; then
25023 echo "/* $configure_input */" >"$tmp/config.h"
25024 cat "$ac_result" >>"$tmp/config.h"
25025 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25026 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25027 echo "$as_me: $ac_file is unchanged" >&6;}
25028 else
25029 rm -f $ac_file
25030 mv "$tmp/config.h" $ac_file
25032 else
25033 echo "/* $configure_input */"
25034 cat "$ac_result"
25036 rm -f "$tmp/out12"
25040 esac
25042 done # for ac_tag
25045 { (exit 0); exit 0; }
25046 _ACEOF
25047 chmod +x $CONFIG_STATUS
25048 ac_clean_files=$ac_clean_files_save
25051 # configure is writing to config.log, and then calls config.status.
25052 # config.status does its own redirection, appending to config.log.
25053 # Unfortunately, on DOS this fails, as config.log is still kept open
25054 # by configure, so config.status won't be able to write to it; its
25055 # output is simply discarded. So we exec the FD to /dev/null,
25056 # effectively closing config.log, so it can be properly (re)opened and
25057 # appended to by config.status. When coming back to configure, we
25058 # need to make the FD available again.
25059 if test "$no_create" != yes; then
25060 ac_cs_success=:
25061 ac_config_status_args=
25062 test "$silent" = yes &&
25063 ac_config_status_args="$ac_config_status_args --quiet"
25064 exec 5>/dev/null
25065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25066 exec 5>>config.log
25067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25068 # would make configure fail if this is the last instruction.
25069 $ac_cs_success || { (exit 1); exit 1; }
25073 echo "creating Modules/Setup"
25074 if test ! -f Modules/Setup
25075 then
25076 cp $srcdir/Modules/Setup.dist Modules/Setup
25079 echo "creating Modules/Setup.local"
25080 if test ! -f Modules/Setup.local
25081 then
25082 echo "# Edit this file for local setup changes" >Modules/Setup.local
25085 echo "creating Makefile"
25086 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
25087 -s Modules Modules/Setup.config \
25088 Modules/Setup.local Modules/Setup
25090 case $ac_sys_system in
25091 BeOS)
25092 { echo "$as_me:$LINENO: WARNING:
25094 Support for BeOS is deprecated as of Python 2.6.
25095 See PEP 11 for the gory details.
25096 " >&5
25097 echo "$as_me: WARNING:
25099 Support for BeOS is deprecated as of Python 2.6.
25100 See PEP 11 for the gory details.
25101 " >&2;}
25103 *) ;;
25104 esac
25106 mv config.c Modules