Merged revisions 79352 via svnmerge from
[python/dscho.git] / configure
blob891ed9cc047e8a988863b97d14884545d4e8fa22
1 #! /bin/sh
2 # From configure.in Revision: 79117 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='3.1'
579 PACKAGE_STRING='python 3.1'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 LIPO_32BIT_FLAGS
662 LIPO_64BIT_FLAGS
663 PYTHONFRAMEWORK
664 PYTHONFRAMEWORKIDENTIFIER
665 PYTHONFRAMEWORKDIR
666 PYTHONFRAMEWORKPREFIX
667 PYTHONFRAMEWORKINSTALLDIR
668 FRAMEWORKINSTALLFIRST
669 FRAMEWORKINSTALLLAST
670 FRAMEWORKALTINSTALLFIRST
671 FRAMEWORKALTINSTALLLAST
672 FRAMEWORKUNIXTOOLSPREFIX
673 MACHDEP
674 SGI_ABI
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 THREADHEADERS
737 SRCDIRS
738 LTLIBOBJS'
739 ac_subst_files=''
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures python 3.1 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of python 3.1:";;
1313 esac
1314 cat <<\_ACEOF
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-universalsdk[=SDKDIR]
1320 Build against Mac OS X 10.4u SDK (ppc/i386)
1321 --enable-framework[=INSTALLDIR]
1322 Build (MacOSX|Darwin) framework
1323 --enable-shared disable/enable building shared python library
1324 --enable-profiling enable C-level code profiling
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-universal-archs=ARCH
1334 select architectures for universal build ("32-bit",
1335 "64-bit", "3-way", "intel" or "all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with --enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler>
1341 compile main() and link python executable with C++
1342 compiler
1343 --with-suffix=.exe set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-dbmliborder=db1:db2:...
1348 order to check db backends for dbm. Valid value is a
1349 colon separated string with the backend names
1350 `ndbm', `gdbm' and `bdb'.
1351 --with-signal-module disable/enable signal module
1352 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1353 --with(out)-threads[=DIRECTORY]
1354 disable/enable thread support
1355 --with(out)-thread[=DIRECTORY]
1356 deprecated; use --with(out)-threads
1357 --with-pth use GNU pth threading libraries
1358 --with(out)-doc-strings disable/enable documentation strings
1359 --with(out)-tsc enable/disable timestamp counter profile
1360 --with(out)-pymalloc disable/enable specialized mallocs
1361 --with-wctype-functions use wctype.h functions
1362 --with-fpectl enable SIGFPE catching
1363 --with-libm=STRING math library
1364 --with-libc=STRING C library
1365 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1366 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1367 loop (not available on all compilers)
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to <http://bugs.python.org/>.
1383 _ACEOF
1384 ac_status=$?
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1393 case "$ac_dir" in
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403 esac
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1409 case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 esac
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1442 cat <<\_ACEOF
1443 python configure 3.1
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1450 _ACEOF
1451 exit
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by python $as_me 3.1, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1460 $ $0 $@
1462 _ACEOF
1463 exec 5>>config.log
1465 cat <<_ASUNAME
1466 ## --------- ##
1467 ## Platform. ##
1468 ## --------- ##
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487 _ASUNAME
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495 done
1496 IFS=$as_save_IFS
1498 } >&5
1500 cat >&5 <<_ACEOF
1503 ## ----------- ##
1504 ## Core tests. ##
1505 ## ----------- ##
1507 _ACEOF
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_configure_args=
1516 ac_configure_args0=
1517 ac_configure_args1=
1518 ac_must_keep_next=false
1519 for ac_pass in 1 2
1521 for ac_arg
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1552 esac
1553 done
1554 done
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1566 echo
1568 cat <<\_ASBOX
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1572 _ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 esac |
1601 sort
1603 echo
1605 cat <<\_ASBOX
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1626 _ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641 ## ----------- ##
1642 ## confdefs.h. ##
1643 ## ----------- ##
1644 _ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659 done
1660 ac_signal=0
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689 _ACEOF
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698 else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1702 shift
1703 for ac_site_file
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1711 done
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1724 else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1730 # Check that the precious variables saved in the cache have kept the same
1731 # value.
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1770 done
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 ac_config_headers="$ac_config_headers pyconfig.h"
1815 if test "$prefix" != "/"; then
1816 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1824 # We don't use PACKAGE_ variables, and they cause conflicts
1825 # with other autoconf-based packages that include Python.h
1826 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1827 rm confdefs.h
1828 mv confdefs.h.new confdefs.h
1831 VERSION=3.1
1834 SOVERSION=1.0
1836 # The later defininition of _XOPEN_SOURCE disables certain features
1837 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1839 cat >>confdefs.h <<\_ACEOF
1840 #define _GNU_SOURCE 1
1841 _ACEOF
1844 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1845 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1846 # them.
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _NETBSD_SOURCE 1
1850 _ACEOF
1853 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1854 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1855 # them.
1857 cat >>confdefs.h <<\_ACEOF
1858 #define __BSD_VISIBLE 1
1859 _ACEOF
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1865 cat >>confdefs.h <<\_ACEOF
1866 #define _BSD_TYPES 1
1867 _ACEOF
1870 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1871 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1872 # them.
1874 cat >>confdefs.h <<\_ACEOF
1875 #define _DARWIN_C_SOURCE 1
1876 _ACEOF
1880 define_xopen_source=yes
1882 # Arguments passed to configure.
1884 CONFIG_ARGS="$ac_configure_args"
1886 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1887 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1891 case $enableval in
1892 yes)
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 if test ! -d "${enableval}"
1895 then
1896 enableval=/
1899 esac
1900 case $enableval in
1902 UNIVERSALSDK=
1903 enable_universalsdk=
1906 UNIVERSALSDK=$enableval
1907 if test ! -d "${UNIVERSALSDK}"
1908 then
1909 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1910 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1911 { (exit 1); exit 1; }; }
1914 esac
1917 else
1919 UNIVERSALSDK=
1920 enable_universalsdk=
1924 if test -n "${UNIVERSALSDK}"
1925 then
1926 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1927 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1928 else
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1936 UNIVERSAL_ARCHS="32-bit"
1939 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1940 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1942 # Check whether --with-universal-archs was given.
1943 if test "${with_universal_archs+set}" = set; then
1944 withval=$with_universal_archs;
1945 { echo "$as_me:$LINENO: result: $withval" >&5
1946 echo "${ECHO_T}$withval" >&6; }
1947 UNIVERSAL_ARCHS="$withval"
1949 else
1951 { echo "$as_me:$LINENO: result: 32-bit" >&5
1952 echo "${ECHO_T}32-bit" >&6; }
1960 # Check whether --with-framework-name was given.
1961 if test "${with_framework_name+set}" = set; then
1962 withval=$with_framework_name;
1963 PYTHONFRAMEWORK=${withval}
1964 PYTHONFRAMEWORKDIR=${withval}.framework
1965 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1967 else
1969 PYTHONFRAMEWORK=Python
1970 PYTHONFRAMEWORKDIR=Python.framework
1971 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1975 # Check whether --enable-framework was given.
1976 if test "${enable_framework+set}" = set; then
1977 enableval=$enable_framework;
1978 case $enableval in
1979 yes)
1980 enableval=/Library/Frameworks
1981 esac
1982 case $enableval in
1984 PYTHONFRAMEWORK=
1985 PYTHONFRAMEWORKDIR=no-framework
1986 PYTHONFRAMEWORKPREFIX=
1987 PYTHONFRAMEWORKINSTALLDIR=
1988 FRAMEWORKINSTALLFIRST=
1989 FRAMEWORKINSTALLLAST=
1990 FRAMEWORKALTINSTALLFIRST=
1991 FRAMEWORKALTINSTALLLAST=
1992 if test "x${prefix}" = "xNONE"; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 else
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 enable_framework=
2000 PYTHONFRAMEWORKPREFIX=$enableval
2001 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2002 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2003 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2004 case "${UNIVERSAL_ARCHS}" in
2005 all|3-way|intel)
2006 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2007 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2010 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2011 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2013 esac
2015 if test "x${prefix}" = "xNONE" ; then
2016 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2017 else
2018 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2020 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2022 # Add files for Mac specific code to the list of output
2023 # files:
2024 ac_config_files="$ac_config_files Mac/Makefile"
2026 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2028 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2030 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2032 esac
2034 else
2036 PYTHONFRAMEWORK=
2037 PYTHONFRAMEWORKDIR=no-framework
2038 PYTHONFRAMEWORKPREFIX=
2039 PYTHONFRAMEWORKINSTALLDIR=
2040 FRAMEWORKINSTALLFIRST=
2041 FRAMEWORKINSTALLLAST=
2042 FRAMEWORKALTINSTALLFIRST=
2043 FRAMEWORKALTINSTALLLAST=
2044 if test "x${prefix}" = "xNONE" ; then
2045 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2046 else
2047 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2049 enable_framework=
2051 if test "$UNIVERSAL_ARCHS" = "all"
2052 then
2053 FRAMEWORKINSTALLLAST=update4wayuniversal
2054 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2070 ##AC_ARG_WITH(dyld,
2071 ## AC_HELP_STRING(--with-dyld,
2072 ## Use (OpenStep|Rhapsody) dynamic linker))
2074 # Set name for machine-dependent library files
2076 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2077 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2078 if test -z "$MACHDEP"
2079 then
2080 ac_sys_system=`uname -s`
2081 if test "$ac_sys_system" = "AIX" \
2082 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2083 ac_sys_release=`uname -v`
2084 else
2085 ac_sys_release=`uname -r`
2087 ac_md_system=`echo $ac_sys_system |
2088 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2089 ac_md_release=`echo $ac_sys_release |
2090 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2091 MACHDEP="$ac_md_system$ac_md_release"
2093 case $MACHDEP in
2094 cygwin*) MACHDEP="cygwin";;
2095 darwin*) MACHDEP="darwin";;
2096 atheos*) MACHDEP="atheos";;
2097 irix646) MACHDEP="irix6";;
2098 '') MACHDEP="unknown";;
2099 esac
2102 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2103 # disable features if it is defined, without any means to access these
2104 # features as extensions. For these systems, we skip the definition of
2105 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2106 # some feature, make sure there is no alternative way to access this
2107 # feature. Also, when using wildcards, make sure you have verified the
2108 # need for not defining _XOPEN_SOURCE on all systems matching the
2109 # wildcard, and that the wildcard does not include future systems
2110 # (which may remove their limitations).
2111 case $ac_sys_system/$ac_sys_release in
2112 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2113 # even though select is a POSIX function. Reported by J. Ribbens.
2114 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2115 # In addition, Stefan Krah confirms that issue #1244610 exists through
2116 # OpenBSD 4.6, but is fixed in 4.7.
2117 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2118 define_xopen_source=no
2119 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2120 # also defined. This can be overridden by defining _BSD_SOURCE
2121 # As this has a different meaning on Linux, only define it on OpenBSD
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _BSD_SOURCE 1
2125 _ACEOF
2128 OpenBSD/4.[789])
2129 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2130 # also defined. This can be overridden by defining _BSD_SOURCE
2131 # As this has a different meaning on Linux, only define it on OpenBSD
2133 cat >>confdefs.h <<\_ACEOF
2134 #define _BSD_SOURCE 1
2135 _ACEOF
2138 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2139 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2140 # Marc Recht
2141 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2142 define_xopen_source=no;;
2143 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2144 # of union __?sigval. Reported by Stuart Bishop.
2145 SunOS/5.6)
2146 define_xopen_source=no;;
2147 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2148 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2149 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2150 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2151 define_xopen_source=no;;
2152 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2153 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2154 SCO_SV/3.2)
2155 define_xopen_source=no;;
2156 # On FreeBSD 4, the math functions C89 does not cover are never defined
2157 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2158 FreeBSD/4.*)
2159 define_xopen_source=no;;
2160 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2161 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2162 # identifies itself as Darwin/7.*
2163 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2164 # disables platform specific features beyond repair.
2165 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2166 # has no effect, don't bother defining them
2167 Darwin/[6789].*)
2168 define_xopen_source=no;;
2169 Darwin/1[0-9].*)
2170 define_xopen_source=no;;
2171 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2172 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2173 # or has another value. By not (re)defining it, the defaults come in place.
2174 AIX/4)
2175 define_xopen_source=no;;
2176 AIX/5)
2177 if test `uname -r` -eq 1; then
2178 define_xopen_source=no
2181 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2182 # defining NI_NUMERICHOST.
2183 QNX/6.3.2)
2184 define_xopen_source=no
2187 esac
2189 if test $define_xopen_source = yes
2190 then
2191 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2192 # defined precisely as g++ defines it
2193 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2194 # compiler
2195 case $ac_sys_system/$ac_sys_release in
2196 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2198 cat >>confdefs.h <<\_ACEOF
2199 #define _XOPEN_SOURCE 500
2200 _ACEOF
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _XOPEN_SOURCE 600
2207 _ACEOF
2210 esac
2212 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2213 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2214 # several APIs are not declared. Since this is also needed in some
2215 # cases for HP-UX, we define it globally.
2216 # except for Solaris 10, where it must not be defined,
2217 # as it implies XPG4.2
2218 case $ac_sys_system/$ac_sys_release in
2219 SunOS/5.10)
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _XOPEN_SOURCE_EXTENDED 1
2225 _ACEOF
2228 esac
2231 cat >>confdefs.h <<\_ACEOF
2232 #define _POSIX_C_SOURCE 200112L
2233 _ACEOF
2239 # SGI compilers allow the specification of the both the ABI and the
2240 # ISA on the command line. Depending on the values of these switches,
2241 # different and often incompatable code will be generated.
2243 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2244 # thus supply support for various ABI/ISA combinations. The MACHDEP
2245 # variable is also adjusted.
2248 if test ! -z "$SGI_ABI"
2249 then
2250 CC="cc $SGI_ABI"
2251 LDFLAGS="$SGI_ABI $LDFLAGS"
2252 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2254 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2255 echo "${ECHO_T}$MACHDEP" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2259 # needs to check it
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname -m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2286 withval=$with_gcc;
2287 case $withval in
2288 no) CC=${CC:-cc}
2289 without_gcc=yes;;
2290 yes) CC=gcc
2291 without_gcc=no;;
2292 *) CC=$withval
2293 without_gcc=$withval;;
2294 esac
2295 else
2297 case $ac_sys_system in
2298 AIX*) CC=cc_r
2299 without_gcc=;;
2300 *) without_gcc=no;;
2301 esac
2304 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2305 echo "${ECHO_T}$without_gcc" >&6; }
2307 # If the user switches compilers, we can't believe the cache
2308 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2309 then
2310 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2311 (it is also a good idea to do 'make clean' before compiling)" >&5
2312 echo "$as_me: error: cached CC is different -- throw away $cache_file
2313 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2314 { (exit 1); exit 1; }; }
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2344 done
2345 done
2346 IFS=$as_save_IFS
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2361 if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2399 if test "x$ac_ct_CC" = x; then
2400 CC=""
2401 else
2402 case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412 CC=$ac_ct_CC
2414 else
2415 CC="$ac_cv_prog_CC"
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}cc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2443 IFS=$as_save_IFS
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 ac_prog_rejected=no
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2480 continue
2482 ac_cv_prog_CC="cc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2486 done
2487 done
2488 IFS=$as_save_IFS
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2493 shift
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2498 shift
2499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 for ac_prog in cl.exe
2519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2540 done
2541 done
2542 IFS=$as_save_IFS
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2556 test -n "$CC" && break
2557 done
2559 if test -z "$CC"; then
2560 ac_ct_CC=$CC
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$ac_ct_CC" && break
2601 done
2603 if test "x$ac_ct_CC" = x; then
2604 CC=""
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616 CC=$ac_ct_CC
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking for C compiler version" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compiler --version >&5") 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2682 # of exeext.
2683 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2684 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort. b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions. Remove them first so a
2694 # subsequent execution test works.
2695 ac_rmfiles=
2696 for ac_file in $ac_files
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2701 esac
2702 done
2703 rm -f $ac_rmfiles
2705 if { (ac_try="$ac_link_default"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_link_default") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; then
2715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2719 # Autoconf.
2720 for ac_file in $ac_files ''
2722 test -f "$ac_file" || continue
2723 case $ac_file in
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2726 [ab].out )
2727 # We found the default executable, but exeext='' is most
2728 # certainly right.
2729 break;;
2730 *.* )
2731 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732 then :; else
2733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 # We set ac_cv_exeext here because the later test for it is not
2736 # safe: cross compilers may not add the suffix if given an `-o'
2737 # argument, so we may need to know it at that point already.
2738 # Even if this section looks crufty: it has the advantage of
2739 # actually working.
2740 break;;
2742 break;;
2743 esac
2744 done
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2747 else
2748 ac_file=''
2751 { echo "$as_me:$LINENO: result: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log' for more details." >&2;}
2761 { (exit 77); exit 77; }; }
2764 ac_exeext=$ac_cv_exeext
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='./$ac_file'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 cross_compiling=no
2784 else
2785 if test "$cross_compiling" = maybe; then
2786 cross_compiling=yes
2787 else
2788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2810 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 # `rm'.
2826 for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831 break;;
2832 * ) break;;
2833 esac
2834 done
2835 else
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2849 ac_exeext=$EXEEXT
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2863 main ()
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 for ac_file in conftest.o conftest.obj conftest.*; do
2882 test -f "$ac_file" || continue;
2883 case $ac_file in
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2886 break;;
2887 esac
2888 done
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2905 ac_objext=$OBJEXT
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2919 main ()
2921 #ifndef __GNUC__
2922 choke me
2923 #endif
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2946 ac_compiler_gnu=yes
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_compiler_gnu=no
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 ac_save_c_werror_flag=$ac_c_werror_flag
2969 ac_c_werror_flag=yes
2970 ac_cv_prog_cc_g=no
2971 CFLAGS="-g"
2972 cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h. */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2980 main ()
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3004 ac_cv_prog_cc_g=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 CFLAGS=""
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3018 main ()
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3048 CFLAGS="-g"
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_cv_prog_cc_g=yes
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_c_werror_flag=$ac_save_c_werror_flag
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101 CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103 if test "$GCC" = yes; then
3104 CFLAGS="-g -O2"
3105 else
3106 CFLAGS="-g"
3108 else
3109 if test "$GCC" = yes; then
3110 CFLAGS="-O2"
3111 else
3112 CFLAGS=
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 ac_cv_prog_cc_c89=no
3121 ac_save_CC=$CC
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <stdarg.h>
3129 #include <stdio.h>
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3136 char **p;
3137 int i;
3139 return p[i];
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3143 char *s;
3144 va_list v;
3145 va_start (v,p);
3146 s = g (p, va_arg (v,int));
3147 va_end (v);
3148 return s;
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3162 #define FOO(x) 'x'
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169 int argc;
3170 char **argv;
3172 main ()
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3176 return 0;
3178 _ACEOF
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3200 ac_cv_prog_cc_c89=$ac_arg
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 done
3211 rm -f conftest.$ac_ext
3212 CC=$ac_save_CC
3215 # AC_CACHE_VAL
3216 case "x$ac_cv_prog_cc_c89" in
3218 { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3220 xno)
3221 { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3224 CC="$CC $ac_cv_prog_cc_c89"
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3227 esac
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3240 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3242 # Check whether --with-cxx_main was given.
3243 if test "${with_cxx_main+set}" = set; then
3244 withval=$with_cxx_main;
3246 case $withval in
3247 no) with_cxx_main=no
3248 MAINCC='$(CC)';;
3249 yes) with_cxx_main=yes
3250 MAINCC='$(CXX)';;
3251 *) with_cxx_main=yes
3252 MAINCC=$withval
3253 if test -z "$CXX"
3254 then
3255 CXX=$withval
3256 fi;;
3257 esac
3258 else
3260 with_cxx_main=no
3261 MAINCC='$(CC)'
3265 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3266 echo "${ECHO_T}$with_cxx_main" >&6; }
3268 preset_cxx="$CXX"
3269 if test -z "$CXX"
3270 then
3271 case "$CC" in
3272 gcc) # Extract the first word of "g++", so it can be a program name with args.
3273 set dummy g++; ac_word=$2
3274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_CXX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 case $CXX in
3280 [\\/]* | ?:[\\/]*)
3281 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in notfound
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3299 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3301 esac
3303 CXX=$ac_cv_path_CXX
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3307 else
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3313 cc) # Extract the first word of "c++", so it can be a program name with args.
3314 set dummy c++; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_path_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 case $CXX in
3321 [\\/]* | ?:[\\/]*)
3322 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in notfound
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3340 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3342 esac
3344 CXX=$ac_cv_path_CXX
3345 if test -n "$CXX"; then
3346 { echo "$as_me:$LINENO: result: $CXX" >&5
3347 echo "${ECHO_T}$CXX" >&6; }
3348 else
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3354 esac
3355 if test "$CXX" = "notfound"
3356 then
3357 CXX=""
3360 if test -z "$CXX"
3361 then
3362 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CXX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$CXX"; then
3372 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CXX="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CXX=$ac_cv_prog_CXX
3392 if test -n "$CXX"; then
3393 { echo "$as_me:$LINENO: result: $CXX" >&5
3394 echo "${ECHO_T}$CXX" >&6; }
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CXX" && break
3402 done
3403 test -n "$CXX" || CXX="notfound"
3405 if test "$CXX" = "notfound"
3406 then
3407 CXX=""
3410 if test "$preset_cxx" != "$CXX"
3411 then
3412 { echo "$as_me:$LINENO: WARNING:
3414 By default, distutils will build C++ extension modules with \"$CXX\".
3415 If this is not intended, then set CXX on the configure command line.
3416 " >&5
3417 echo "$as_me: WARNING:
3419 By default, distutils will build C++ extension modules with \"$CXX\".
3420 If this is not intended, then set CXX on the configure command line.
3421 " >&2;}
3425 # checks for UNIX variants that set C preprocessor variables
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3436 CPP=
3438 if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 # Double quotes because CPP needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 }; then
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3489 continue
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3503 _ACEOF
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3531 rm -f conftest.err conftest.$ac_ext
3533 done
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3537 break
3540 done
3541 ac_cv_prog_CPP=$CPP
3544 CPP=$ac_cv_prog_CPP
3545 else
3546 ac_cv_prog_CPP=$CPP
3548 { echo "$as_me:$LINENO: result: $CPP" >&5
3549 echo "${ECHO_T}$CPP" >&6; }
3550 ac_preproc_ok=false
3551 for ac_c_preproc_warn_flag in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #ifdef __STDC__
3566 # include <limits.h>
3567 #else
3568 # include <assert.h>
3569 #endif
3570 Syntax error
3571 _ACEOF
3572 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 }; then
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3594 continue
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null && {
3622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 }; then
3625 # Broken: success on invalid input.
3626 continue
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3636 rm -f conftest.err conftest.$ac_ext
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3643 else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3683 *GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3709 $ac_path_GREP_found && break 3
3710 done
3711 done
3713 done
3714 IFS=$as_save_IFS
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3726 else
3727 ac_cv_path_GREP=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3765 *GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788 esac
3791 $ac_path_EGREP_found && break 3
3792 done
3793 done
3795 done
3796 IFS=$as_save_IFS
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3808 else
3809 ac_cv_path_EGREP=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3821 { echo "$as_me:$LINENO: checking for AIX" >&5
3822 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #ifdef _AIX
3831 #endif
3833 _ACEOF
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "yes" >/dev/null 2>&1; then
3836 { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838 cat >>confdefs.h <<\_ACEOF
3839 #define _ALL_SOURCE 1
3840 _ACEOF
3842 else
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3846 rm -f conftest*
3850 # Check for unsupported systems
3851 case $ac_sys_system/$ac_sys_release in
3852 atheos*|Linux*/1*)
3853 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3854 echo See README for details.
3855 exit 1;;
3856 esac
3859 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3860 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3862 # Check whether --with-suffix was given.
3863 if test "${with_suffix+set}" = set; then
3864 withval=$with_suffix;
3865 case $withval in
3866 no) EXEEXT=;;
3867 yes) EXEEXT=.exe;;
3868 *) EXEEXT=$withval;;
3869 esac
3872 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3873 echo "${ECHO_T}$EXEEXT" >&6; }
3875 # Test whether we're running on a non-case-sensitive system, in which
3876 # case we give a warning if no ext is given
3878 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3879 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3880 if test ! -d CaseSensitiveTestDir; then
3881 mkdir CaseSensitiveTestDir
3884 if test -d casesensitivetestdir
3885 then
3886 { echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6; }
3888 BUILDEXEEXT=.exe
3889 else
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3892 BUILDEXEEXT=$EXEEXT
3894 rmdir CaseSensitiveTestDir
3896 case $MACHDEP in
3897 bsdos*)
3898 case $CC in
3899 gcc) CC="$CC -D_HAVE_BSDI";;
3900 esac;;
3901 esac
3903 case $ac_sys_system in
3904 hp*|HP*)
3905 case $CC in
3906 cc|*/cc) CC="$CC -Ae";;
3907 esac;;
3908 SunOS*)
3909 # Some functions have a prototype only with that define, e.g. confstr
3911 cat >>confdefs.h <<\_ACEOF
3912 #define __EXTENSIONS__ 1
3913 _ACEOF
3916 esac
3920 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3921 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3922 if test -z "$LIBRARY"
3923 then
3924 LIBRARY='libpython$(VERSION).a'
3926 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3927 echo "${ECHO_T}$LIBRARY" >&6; }
3929 # LDLIBRARY is the name of the library to link against (as opposed to the
3930 # name of the library into which to insert object files). BLDLIBRARY is also
3931 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3932 # is blank as the main program is not linked directly against LDLIBRARY.
3933 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3934 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3935 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3936 # DLLLIBRARY is the shared (i.e., DLL) library.
3938 # RUNSHARED is used to run shared python without installed libraries
3940 # INSTSONAME is the name of the shared library that will be use to install
3941 # on the system - some systems like version suffix, others don't
3948 LDLIBRARY="$LIBRARY"
3949 BLDLIBRARY='$(LDLIBRARY)'
3950 INSTSONAME='$(LDLIBRARY)'
3951 DLLLIBRARY=''
3952 LDLIBRARYDIR=''
3953 RUNSHARED=''
3955 # LINKCC is the command that links the python executable -- default is $(CC).
3956 # If CXX is set, and if it is needed to link a main function that was
3957 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3958 # python might then depend on the C++ runtime
3959 # This is altered for AIX in order to build the export list before
3960 # linking.
3962 { echo "$as_me:$LINENO: checking LINKCC" >&5
3963 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3964 if test -z "$LINKCC"
3965 then
3966 LINKCC='$(PURIFY) $(MAINCC)'
3967 case $ac_sys_system in
3968 AIX*)
3969 exp_extra="\"\""
3970 if test $ac_sys_release -ge 5 -o \
3971 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3972 exp_extra="."
3974 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3975 QNX*)
3976 # qcc must be used because the other compilers do not
3977 # support -N.
3978 LINKCC=qcc;;
3979 esac
3981 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3982 echo "${ECHO_T}$LINKCC" >&6; }
3984 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3985 # make sure we default having it set to "no": this is used by
3986 # distutils.unixccompiler to know if it should add --enable-new-dtags
3987 # to linker command lines, and failing to detect GNU ld simply results
3988 # in the same bahaviour as before.
3990 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3992 ac_prog=ld
3993 if test "$GCC" = yes; then
3994 ac_prog=`$CC -print-prog-name=ld`
3996 case `"$ac_prog" -V 2>&1 < /dev/null` in
3997 *GNU*)
3998 GNULD=yes;;
4000 GNULD=no;;
4001 esac
4002 { echo "$as_me:$LINENO: result: $GNULD" >&5
4003 echo "${ECHO_T}$GNULD" >&6; }
4005 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4006 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4007 # Check whether --enable-shared was given.
4008 if test "${enable_shared+set}" = set; then
4009 enableval=$enable_shared;
4013 if test -z "$enable_shared"
4014 then
4015 case $ac_sys_system in
4016 CYGWIN* | atheos*)
4017 enable_shared="yes";;
4019 enable_shared="no";;
4020 esac
4022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4023 echo "${ECHO_T}$enable_shared" >&6; }
4025 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4026 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4027 # Check whether --enable-profiling was given.
4028 if test "${enable_profiling+set}" = set; then
4029 enableval=$enable_profiling; ac_save_cc="$CC"
4030 CC="$CC -pg"
4031 if test "$cross_compiling" = yes; then
4032 ac_enable_profiling="no"
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 int main() { return 0; }
4041 _ACEOF
4042 rm -f conftest$ac_exeext
4043 if { (ac_try="$ac_link"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_enable_profiling="yes"
4063 else
4064 echo "$as_me: program exited with status $ac_status" >&5
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 ( exit $ac_status )
4069 ac_enable_profiling="no"
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075 CC="$ac_save_cc"
4078 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4079 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4081 case "$ac_enable_profiling" in
4082 "yes")
4083 BASECFLAGS="-pg $BASECFLAGS"
4084 LDFLAGS="-pg $LDFLAGS"
4086 esac
4088 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4089 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4091 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4092 # library that we build, but we do not want to link against it (we
4093 # will find it with a -framework option). For this reason there is an
4094 # extra variable BLDLIBRARY against which Python and the extension
4095 # modules are linked, BLDLIBRARY. This is normally the same as
4096 # LDLIBRARY, but empty for MacOSX framework builds.
4097 if test "$enable_framework"
4098 then
4099 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4100 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4101 BLDLIBRARY=''
4102 else
4103 BLDLIBRARY='$(LDLIBRARY)'
4106 # Other platforms follow
4107 if test $enable_shared = "yes"; then
4109 cat >>confdefs.h <<\_ACEOF
4110 #define Py_ENABLE_SHARED 1
4111 _ACEOF
4113 case $ac_sys_system in
4114 CYGWIN*)
4115 LDLIBRARY='libpython$(VERSION).dll.a'
4116 DLLLIBRARY='libpython$(VERSION).dll'
4118 SunOS*)
4119 LDLIBRARY='libpython$(VERSION).so'
4120 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4121 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4122 INSTSONAME="$LDLIBRARY".$SOVERSION
4124 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4125 LDLIBRARY='libpython$(VERSION).so'
4126 BLDLIBRARY='-L. -lpython$(VERSION)'
4127 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4128 case $ac_sys_system in
4129 FreeBSD*)
4130 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4132 esac
4133 INSTSONAME="$LDLIBRARY".$SOVERSION
4135 hp*|HP*)
4136 case `uname -m` in
4137 ia64)
4138 LDLIBRARY='libpython$(VERSION).so'
4141 LDLIBRARY='libpython$(VERSION).sl'
4143 esac
4144 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4145 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4147 OSF*)
4148 LDLIBRARY='libpython$(VERSION).so'
4149 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4150 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4152 atheos*)
4153 LDLIBRARY='libpython$(VERSION).so'
4154 BLDLIBRARY='-L. -lpython$(VERSION)'
4155 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4157 Darwin*)
4158 LDLIBRARY='libpython$(VERSION).dylib'
4159 BLDLIBRARY='-L. -lpython$(VERSION)'
4160 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4163 esac
4164 else # shared is disabled
4165 case $ac_sys_system in
4166 CYGWIN*)
4167 BLDLIBRARY='$(LIBRARY)'
4168 LDLIBRARY='libpython$(VERSION).dll.a'
4170 esac
4173 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4174 echo "${ECHO_T}$LDLIBRARY" >&6; }
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_RANLIB+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 if test -n "$RANLIB"; then
4185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 RANLIB=$ac_cv_prog_RANLIB
4205 if test -n "$RANLIB"; then
4206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4207 echo "${ECHO_T}$RANLIB" >&6; }
4208 else
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4215 if test -z "$ac_cv_prog_RANLIB"; then
4216 ac_ct_RANLIB=$RANLIB
4217 # Extract the first word of "ranlib", so it can be a program name with args.
4218 set dummy ranlib; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test -n "$ac_ct_RANLIB"; then
4225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_ac_ct_RANLIB="ranlib"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4245 if test -n "$ac_ct_RANLIB"; then
4246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4248 else
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4253 if test "x$ac_ct_RANLIB" = x; then
4254 RANLIB=":"
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257 yes:)
4258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&5
4261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4262 whose name does not start with the host triplet. If you think this
4263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4264 ac_tool_warned=yes ;;
4265 esac
4266 RANLIB=$ac_ct_RANLIB
4268 else
4269 RANLIB="$ac_cv_prog_RANLIB"
4273 for ac_prog in ar aal
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 set dummy $ac_prog; ac_word=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_prog_AR+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 if test -n "$AR"; then
4283 ac_cv_prog_AR="$AR" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_AR="$ac_prog"
4293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4296 done
4297 done
4298 IFS=$as_save_IFS
4302 AR=$ac_cv_prog_AR
4303 if test -n "$AR"; then
4304 { echo "$as_me:$LINENO: result: $AR" >&5
4305 echo "${ECHO_T}$AR" >&6; }
4306 else
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 test -n "$AR" && break
4313 done
4314 test -n "$AR" || AR="ar"
4317 # tweak ARFLAGS only if the user didn't set it on the command line
4319 if test -z "$ARFLAGS"
4320 then
4321 ARFLAGS="rc"
4325 # Extract the first word of "svnversion", so it can be a program name with args.
4326 set dummy svnversion; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$SVNVERSION"; then
4333 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_SVNVERSION="found"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4350 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4353 SVNVERSION=$ac_cv_prog_SVNVERSION
4354 if test -n "$SVNVERSION"; then
4355 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4356 echo "${ECHO_T}$SVNVERSION" >&6; }
4357 else
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 if test $SVNVERSION = found
4364 then
4365 SVNVERSION="svnversion \$(srcdir)"
4366 else
4367 SVNVERSION="echo Unversioned directory"
4370 case $MACHDEP in
4371 bsdos*|hp*|HP*)
4372 # install -d does not work on BSDI or HP-UX
4373 if test -z "$INSTALL"
4374 then
4375 INSTALL="${srcdir}/install-sh -c"
4377 esac
4378 ac_aux_dir=
4379 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4380 if test -f "$ac_dir/install-sh"; then
4381 ac_aux_dir=$ac_dir
4382 ac_install_sh="$ac_aux_dir/install-sh -c"
4383 break
4384 elif test -f "$ac_dir/install.sh"; then
4385 ac_aux_dir=$ac_dir
4386 ac_install_sh="$ac_aux_dir/install.sh -c"
4387 break
4388 elif test -f "$ac_dir/shtool"; then
4389 ac_aux_dir=$ac_dir
4390 ac_install_sh="$ac_aux_dir/shtool install -c"
4391 break
4393 done
4394 if test -z "$ac_aux_dir"; then
4395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4396 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4397 { (exit 1); exit 1; }; }
4400 # These three variables are undocumented and unsupported,
4401 # and are intended to be withdrawn in a future Autoconf release.
4402 # They can cause serious problems if a builder's source tree is in a directory
4403 # whose full name contains unusual characters.
4404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4409 # Find a good install program. We prefer a C program (faster),
4410 # so one script is as good as another. But avoid the broken or
4411 # incompatible versions:
4412 # SysV /etc/install, /usr/sbin/install
4413 # SunOS /usr/etc/install
4414 # IRIX /sbin/install
4415 # AIX /bin/install
4416 # AmigaOS /C/install, which installs bootblocks on floppy discs
4417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4420 # OS/2's system install, which has a completely different semantic
4421 # ./install, which can be erroneously created by make from ./install.sh.
4422 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4424 if test -z "$INSTALL"; then
4425 if test "${ac_cv_path_install+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 # Account for people who put trailing slashes in PATH elements.
4434 case $as_dir/ in
4435 ./ | .// | /cC/* | \
4436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4437 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4438 /usr/ucb/* ) ;;
4440 # OSF1 and SCO ODT 3.0 have their own names for install.
4441 # Don't use installbsd from OSF since it installs stuff as root
4442 # by default.
4443 for ac_prog in ginstall scoinst install; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4446 if test $ac_prog = install &&
4447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4448 # AIX install. It has an incompatible calling convention.
4450 elif test $ac_prog = install &&
4451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # program-specific install script used by HP pwplus--don't use.
4454 else
4455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4456 break 3
4459 done
4460 done
4462 esac
4463 done
4464 IFS=$as_save_IFS
4468 if test "${ac_cv_path_install+set}" = set; then
4469 INSTALL=$ac_cv_path_install
4470 else
4471 # As a last resort, use the slow shell script. Don't cache a
4472 # value for INSTALL within a source directory, because that will
4473 # break other packages using the cache if that directory is
4474 # removed, or if the value is a relative name.
4475 INSTALL=$ac_install_sh
4478 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4479 echo "${ECHO_T}$INSTALL" >&6; }
4481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4482 # It thinks the first close brace ends the variable substitution.
4483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4490 # Not every filesystem supports hard links
4492 if test -z "$LN" ; then
4493 case $ac_sys_system in
4494 CYGWIN*) LN="ln -s";;
4495 atheos*) LN="ln -s";;
4496 *) LN=ln;;
4497 esac
4500 # Check for --with-pydebug
4501 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4502 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4504 # Check whether --with-pydebug was given.
4505 if test "${with_pydebug+set}" = set; then
4506 withval=$with_pydebug;
4507 if test "$withval" != no
4508 then
4510 cat >>confdefs.h <<\_ACEOF
4511 #define Py_DEBUG 1
4512 _ACEOF
4514 { echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6; };
4516 Py_DEBUG='true'
4517 else { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4520 else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4527 # merged with this chunk of code?
4529 # Optimizer/debugger flags
4530 # ------------------------
4531 # (The following bit of code is complicated enough - please keep things
4532 # indented properly. Just pretend you're editing Python code. ;-)
4534 # There are two parallel sets of case statements below, one that checks to
4535 # see if OPT was set and one that does BASECFLAGS setting based upon
4536 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4537 # user set OPT.
4539 # tweak OPT based on compiler and platform, only if the user didn't set
4540 # it on the command line
4542 if test "${OPT-unset}" = "unset"
4543 then
4544 case $GCC in
4545 yes)
4546 if test "$CC" != 'g++' ; then
4547 STRICT_PROTO="-Wstrict-prototypes"
4549 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4550 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4551 WRAP="-fwrapv"
4553 case $ac_cv_prog_cc_g in
4554 yes)
4555 if test "$Py_DEBUG" = 'true' ; then
4556 # Optimization messes up debuggers, so turn it off for
4557 # debug builds.
4558 OPT="-g -Wall $STRICT_PROTO"
4559 else
4560 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4564 OPT="-O3 -Wall $STRICT_PROTO"
4566 esac
4567 case $ac_sys_system in
4568 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4570 esac
4574 OPT="-O"
4576 esac
4581 # The -arch flags for universal builds on OSX
4582 UNIVERSAL_ARCH_FLAGS=
4585 # tweak BASECFLAGS based on compiler and platform
4586 case $GCC in
4587 yes)
4588 # Python violates C99 rules, by casting between incompatible
4589 # pointer types. GCC may generate bad code as a result of that,
4590 # so use -fno-strict-aliasing if supported.
4591 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4592 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4593 ac_save_cc="$CC"
4594 CC="$CC -fno-strict-aliasing"
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_no_strict_aliasing_ok=no
4597 else
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 int main() { return 0; }
4605 _ACEOF
4606 rm -f conftest$ac_exeext
4607 if { (ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_no_strict_aliasing_ok=yes
4627 else
4628 echo "$as_me: program exited with status $ac_status" >&5
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ( exit $ac_status )
4633 ac_cv_no_strict_aliasing_ok=no
4635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 CC="$ac_save_cc"
4640 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4641 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4642 if test $ac_cv_no_strict_aliasing_ok = yes
4643 then
4644 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4647 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4648 # support. Without this, treatment of subnormals doesn't follow
4649 # the standard.
4650 case $ac_sys_machine in
4651 alpha*)
4652 BASECFLAGS="$BASECFLAGS -mieee"
4654 esac
4656 case $ac_sys_system in
4657 SCO_SV*)
4658 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4660 # is there any other compiler on Darwin besides gcc?
4661 Darwin*)
4662 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4663 # used to be here, but non-Apple gcc doesn't accept them.
4666 if test "${enable_universalsdk}"; then
4667 UNIVERSAL_ARCH_FLAGS=""
4668 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4669 ARCH_RUN_32BIT=""
4670 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4672 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4673 ARCH_RUN_32BIT="true"
4674 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4676 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4677 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4678 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4679 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4680 LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
4682 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4683 ARCH_RUN_32BIT="/usr/bin/arch -i386"
4684 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4685 LIPO_32BIT_FLAGS="-extract i386"
4686 LIPO_64BIT_FLAGS="-extract x86_64"
4688 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4689 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4690 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4691 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4692 LIPO_64BIT_FLAGS="-extract x86_64"
4694 else
4695 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4696 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4697 { (exit 1); exit 1; }; }
4702 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4703 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4704 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4705 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4709 # Calculate the right deployment target for this build.
4711 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4712 if test ${cur_target} '>' 10.2; then
4713 cur_target=10.3
4714 if test ${enable_universalsdk}; then
4715 if test "${UNIVERSAL_ARCHS}" = "all"; then
4716 # Ensure that the default platform for a
4717 # 4-way universal build is OSX 10.5,
4718 # that's the first OS release where
4719 # 4-way builds make sense.
4720 cur_target='10.5'
4722 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4723 cur_target='10.5'
4725 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4726 cur_target='10.5'
4728 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4729 cur_target='10.5'
4731 else
4732 if test `/usr/bin/arch` = "i386"; then
4733 # On Intel macs default to a deployment
4734 # target of 10.4, that's the first OSX
4735 # release with Intel support.
4736 cur_target="10.4"
4740 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4742 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4743 # environment with a value that is the same as what we'll use
4744 # in the Makefile to ensure that we'll get the same compiler
4745 # environment during configure and build time.
4746 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4747 export MACOSX_DEPLOYMENT_TARGET
4748 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4751 OSF*)
4752 BASECFLAGS="$BASECFLAGS -mieee"
4754 esac
4758 case $ac_sys_system in
4759 OpenUNIX*|UnixWare*)
4760 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4762 OSF*)
4763 BASECFLAGS="$BASECFLAGS -ieee -std"
4765 SCO_SV*)
4766 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4768 esac
4770 esac
4772 if test "$Py_DEBUG" = 'true'; then
4774 else
4775 OPT="-DNDEBUG $OPT"
4778 if test "$ac_arch_flags"
4779 then
4780 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4783 # disable check for icc since it seems to pass, but generates a warning
4784 if test "$CC" = icc
4785 then
4786 ac_cv_opt_olimit_ok=no
4789 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4790 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4791 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 ac_save_cc="$CC"
4795 CC="$CC -OPT:Olimit=0"
4796 if test "$cross_compiling" = yes; then
4797 ac_cv_opt_olimit_ok=no
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 int main() { return 0; }
4806 _ACEOF
4807 rm -f conftest$ac_exeext
4808 if { (ac_try="$ac_link"
4809 case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_link") 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_opt_olimit_ok=yes
4828 else
4829 echo "$as_me: program exited with status $ac_status" >&5
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ( exit $ac_status )
4834 ac_cv_opt_olimit_ok=no
4836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 CC="$ac_save_cc"
4843 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4844 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4845 if test $ac_cv_opt_olimit_ok = yes; then
4846 case $ac_sys_system in
4847 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4848 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4849 # environment?
4850 Darwin*)
4853 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4855 esac
4856 else
4857 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4858 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4859 if test "${ac_cv_olimit_ok+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 ac_save_cc="$CC"
4863 CC="$CC -Olimit 1500"
4864 if test "$cross_compiling" = yes; then
4865 ac_cv_olimit_ok=no
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 int main() { return 0; }
4874 _ACEOF
4875 rm -f conftest$ac_exeext
4876 if { (ac_try="$ac_link"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_link") 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4886 { (case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_try") 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_olimit_ok=yes
4896 else
4897 echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 ( exit $ac_status )
4902 ac_cv_olimit_ok=no
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4908 CC="$ac_save_cc"
4911 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4912 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4913 if test $ac_cv_olimit_ok = yes; then
4914 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4918 # Check whether GCC supports PyArg_ParseTuple format
4919 if test "$GCC" = "yes"
4920 then
4921 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4922 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4923 save_CFLAGS=$CFLAGS
4924 CFLAGS="$CFLAGS -Werror"
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4932 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4935 main ()
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (ac_try="$ac_compile"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4962 _ACEOF
4964 { echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6; }
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 CFLAGS=$save_CFLAGS
4979 # On some compilers, pthreads are available without further options
4980 # (e.g. MacOS X). On some of these systems, the compiler will not
4981 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4982 # So we have to see first whether pthreads are available without
4983 # options before we can check whether -Kpthread improves anything.
4984 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4985 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4986 if test "${ac_cv_pthread_is_default+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_pthread_is_default=no
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4999 #include <pthread.h>
5001 void* routine(void* p){return NULL;}
5003 int main(){
5004 pthread_t p;
5005 if(pthread_create(&p,NULL,routine,NULL)!=0)
5006 return 1;
5007 (void)pthread_detach(p);
5008 return 0;
5011 _ACEOF
5012 rm -f conftest$ac_exeext
5013 if { (ac_try="$ac_link"
5014 case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_link") 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023 { (case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_try") 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5033 ac_cv_pthread_is_default=yes
5034 ac_cv_kthread=no
5035 ac_cv_pthread=no
5037 else
5038 echo "$as_me: program exited with status $ac_status" >&5
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 ( exit $ac_status )
5043 ac_cv_pthread_is_default=no
5045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5053 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5056 if test $ac_cv_pthread_is_default = yes
5057 then
5058 ac_cv_kpthread=no
5059 else
5060 # -Kpthread, if available, provides the right #defines
5061 # and linker options to make pthread_create available
5062 # Some compilers won't report that they do not support -Kpthread,
5063 # so we need to run a program to see whether it really made the
5064 # function available.
5065 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5066 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5067 if test "${ac_cv_kpthread+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 ac_save_cc="$CC"
5071 CC="$CC -Kpthread"
5072 if test "$cross_compiling" = yes; then
5073 ac_cv_kpthread=no
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5082 #include <pthread.h>
5084 void* routine(void* p){return NULL;}
5086 int main(){
5087 pthread_t p;
5088 if(pthread_create(&p,NULL,routine,NULL)!=0)
5089 return 1;
5090 (void)pthread_detach(p);
5091 return 0;
5094 _ACEOF
5095 rm -f conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_link") 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5106 { (case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_kpthread=yes
5116 else
5117 echo "$as_me: program exited with status $ac_status" >&5
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ( exit $ac_status )
5122 ac_cv_kpthread=no
5124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5128 CC="$ac_save_cc"
5131 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5132 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5135 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5136 then
5137 # -Kthread, if available, provides the right #defines
5138 # and linker options to make pthread_create available
5139 # Some compilers won't report that they do not support -Kthread,
5140 # so we need to run a program to see whether it really made the
5141 # function available.
5142 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5143 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5144 if test "${ac_cv_kthread+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 ac_save_cc="$CC"
5148 CC="$CC -Kthread"
5149 if test "$cross_compiling" = yes; then
5150 ac_cv_kthread=no
5151 else
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5159 #include <pthread.h>
5161 void* routine(void* p){return NULL;}
5163 int main(){
5164 pthread_t p;
5165 if(pthread_create(&p,NULL,routine,NULL)!=0)
5166 return 1;
5167 (void)pthread_detach(p);
5168 return 0;
5171 _ACEOF
5172 rm -f conftest$ac_exeext
5173 if { (ac_try="$ac_link"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_link") 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5183 { (case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_try") 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 ac_cv_kthread=yes
5193 else
5194 echo "$as_me: program exited with status $ac_status" >&5
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ( exit $ac_status )
5199 ac_cv_kthread=no
5201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5205 CC="$ac_save_cc"
5208 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5209 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5212 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5213 then
5214 # -pthread, if available, provides the right #defines
5215 # and linker options to make pthread_create available
5216 # Some compilers won't report that they do not support -pthread,
5217 # so we need to run a program to see whether it really made the
5218 # function available.
5219 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5220 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5221 if test "${ac_cv_thread+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 ac_save_cc="$CC"
5225 CC="$CC -pthread"
5226 if test "$cross_compiling" = yes; then
5227 ac_cv_pthread=no
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 #include <pthread.h>
5238 void* routine(void* p){return NULL;}
5240 int main(){
5241 pthread_t p;
5242 if(pthread_create(&p,NULL,routine,NULL)!=0)
5243 return 1;
5244 (void)pthread_detach(p);
5245 return 0;
5248 _ACEOF
5249 rm -f conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260 { (case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_try") 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_pthread=yes
5270 else
5271 echo "$as_me: program exited with status $ac_status" >&5
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ( exit $ac_status )
5276 ac_cv_pthread=no
5278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5282 CC="$ac_save_cc"
5285 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5286 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5289 # If we have set a CC compiler flag for thread support then
5290 # check if it works for CXX, too.
5291 ac_cv_cxx_thread=no
5292 if test ! -z "$CXX"
5293 then
5294 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5295 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5296 ac_save_cxx="$CXX"
5298 if test "$ac_cv_kpthread" = "yes"
5299 then
5300 CXX="$CXX -Kpthread"
5301 ac_cv_cxx_thread=yes
5302 elif test "$ac_cv_kthread" = "yes"
5303 then
5304 CXX="$CXX -Kthread"
5305 ac_cv_cxx_thread=yes
5306 elif test "$ac_cv_pthread" = "yes"
5307 then
5308 CXX="$CXX -pthread"
5309 ac_cv_cxx_thread=yes
5312 if test $ac_cv_cxx_thread = yes
5313 then
5314 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5315 $CXX -c conftest.$ac_ext 2>&5
5316 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5317 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5318 then
5319 ac_cv_cxx_thread=yes
5320 else
5321 ac_cv_cxx_thread=no
5323 rm -fr conftest*
5325 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5326 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5328 CXX="$ac_save_cxx"
5331 # checks for header files
5332 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5334 if test "${ac_cv_header_stdc+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <stdlib.h>
5344 #include <stdarg.h>
5345 #include <string.h>
5346 #include <float.h>
5349 main ()
5353 return 0;
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 ac_cv_header_stdc=yes
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ac_cv_header_stdc=no
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 if test $ac_cv_header_stdc = yes; then
5384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #include <string.h>
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "memchr" >/dev/null 2>&1; then
5397 else
5398 ac_cv_header_stdc=no
5400 rm -f conftest*
5404 if test $ac_cv_header_stdc = yes; then
5405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <stdlib.h>
5414 _ACEOF
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev/null 2>&1; then
5418 else
5419 ac_cv_header_stdc=no
5421 rm -f conftest*
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then
5429 else
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 #include <ctype.h>
5437 #include <stdlib.h>
5438 #if ((' ' & 0x0FF) == 0x020)
5439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5441 #else
5442 # define ISLOWER(c) \
5443 (('a' <= (c) && (c) <= 'i') \
5444 || ('j' <= (c) && (c) <= 'r') \
5445 || ('s' <= (c) && (c) <= 'z'))
5446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5447 #endif
5449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5451 main ()
5453 int i;
5454 for (i = 0; i < 256; i++)
5455 if (XOR (islower (i), ISLOWER (i))
5456 || toupper (i) != TOUPPER (i))
5457 return 2;
5458 return 0;
5460 _ACEOF
5461 rm -f conftest$ac_exeext
5462 if { (ac_try="$ac_link"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_link") 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472 { (case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_try") 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5482 else
5483 echo "$as_me: program exited with status $ac_status" >&5
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 ( exit $ac_status )
5488 ac_cv_header_stdc=no
5490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5496 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5498 if test $ac_cv_header_stdc = yes; then
5500 cat >>confdefs.h <<\_ACEOF
5501 #define STDC_HEADERS 1
5502 _ACEOF
5506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5516 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5517 inttypes.h stdint.h unistd.h
5519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h. */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5531 $ac_includes_default
5533 #include <$ac_header>
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 eval "$as_ac_Header=yes"
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 eval "$as_ac_Header=no"
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566 cat >>confdefs.h <<_ACEOF
5567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 _ACEOF
5572 done
5629 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5630 fcntl.h grp.h \
5631 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5632 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5633 unistd.h utime.h \
5634 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5635 sys/lock.h sys/mkdev.h sys/modem.h \
5636 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5637 sys/termio.h sys/time.h \
5638 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5639 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5640 bluetooth/bluetooth.h linux/tipc.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5652 else
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_header_compiler=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_header_compiler=no
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
5721 ac_header_preproc=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5735 yes:no: )
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5740 ac_header_preproc=yes
5742 no:yes:* )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5755 ( cat <<\_ASBOX
5756 ## -------------------------------------- ##
5757 ## Report this to http://bugs.python.org/ ##
5758 ## -------------------------------------- ##
5759 _ASBOX
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5762 esac
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 _ACEOF
5782 done
5789 ac_header_dirent=no
5790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5791 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5792 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <sys/types.h>
5804 #include <$ac_hdr>
5807 main ()
5809 if ((DIR *) 0)
5810 return 0;
5812 return 0;
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 eval "$as_ac_Header=yes"
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 eval "$as_ac_Header=no"
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ac_res=`eval echo '${'$as_ac_Header'}'`
5843 { echo "$as_me:$LINENO: result: $ac_res" >&5
5844 echo "${ECHO_T}$ac_res" >&6; }
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846 cat >>confdefs.h <<_ACEOF
5847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5848 _ACEOF
5850 ac_header_dirent=$ac_hdr; break
5853 done
5854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5855 if test $ac_header_dirent = dirent.h; then
5856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5858 if test "${ac_cv_search_opendir+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 ac_func_search_save_LIBS=$LIBS
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char opendir ();
5877 main ()
5879 return opendir ();
5881 return 0;
5883 _ACEOF
5884 for ac_lib in '' dir; do
5885 if test -z "$ac_lib"; then
5886 ac_res="none required"
5887 else
5888 ac_res=-l$ac_lib
5889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest$ac_exeext &&
5908 $as_test_x conftest$ac_exeext; then
5909 ac_cv_search_opendir=$ac_res
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5918 conftest$ac_exeext
5919 if test "${ac_cv_search_opendir+set}" = set; then
5920 break
5922 done
5923 if test "${ac_cv_search_opendir+set}" = set; then
5925 else
5926 ac_cv_search_opendir=no
5928 rm conftest.$ac_ext
5929 LIBS=$ac_func_search_save_LIBS
5931 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5932 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5933 ac_res=$ac_cv_search_opendir
5934 if test "$ac_res" != no; then
5935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5939 else
5940 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5942 if test "${ac_cv_search_opendir+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 ac_func_search_save_LIBS=$LIBS
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5956 #ifdef __cplusplus
5957 extern "C"
5958 #endif
5959 char opendir ();
5961 main ()
5963 return opendir ();
5965 return 0;
5967 _ACEOF
5968 for ac_lib in '' x; do
5969 if test -z "$ac_lib"; then
5970 ac_res="none required"
5971 else
5972 ac_res=-l$ac_lib
5973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest$ac_exeext &&
5992 $as_test_x conftest$ac_exeext; then
5993 ac_cv_search_opendir=$ac_res
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002 conftest$ac_exeext
6003 if test "${ac_cv_search_opendir+set}" = set; then
6004 break
6006 done
6007 if test "${ac_cv_search_opendir+set}" = set; then
6009 else
6010 ac_cv_search_opendir=no
6012 rm conftest.$ac_ext
6013 LIBS=$ac_func_search_save_LIBS
6015 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6016 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6017 ac_res=$ac_cv_search_opendir
6018 if test "$ac_res" != no; then
6019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6025 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6026 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6027 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #include <sys/types.h>
6038 main ()
6040 return makedev(0, 0);
6042 return 0;
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext &&
6062 $as_test_x conftest$ac_exeext; then
6063 ac_cv_header_sys_types_h_makedev=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_header_sys_types_h_makedev=no
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6076 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6078 if test $ac_cv_header_sys_types_h_makedev = no; then
6079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6080 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6081 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6082 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6086 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6087 else
6088 # Is the header compilable?
6089 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6090 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <sys/mkdev.h>
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest.$ac_objext; then
6117 ac_header_compiler=yes
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6122 ac_header_compiler=no
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6127 echo "${ECHO_T}$ac_header_compiler" >&6; }
6129 # Is the header present?
6130 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6131 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <sys/mkdev.h>
6139 _ACEOF
6140 if { (ac_try="$ac_cpp conftest.$ac_ext"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null && {
6153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 }; then
6156 ac_header_preproc=yes
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_header_preproc=no
6164 rm -f conftest.err conftest.$ac_ext
6165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6166 echo "${ECHO_T}$ac_header_preproc" >&6; }
6168 # So? What about this header?
6169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6170 yes:no: )
6171 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6172 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6174 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6175 ac_header_preproc=yes
6177 no:yes:* )
6178 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6179 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6181 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6190 ( cat <<\_ASBOX
6191 ## -------------------------------------- ##
6192 ## Report this to http://bugs.python.org/ ##
6193 ## -------------------------------------- ##
6194 _ASBOX
6195 ) | sed "s/^/$as_me: WARNING: /" >&2
6197 esac
6198 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6199 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6200 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6205 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6206 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6209 if test $ac_cv_header_sys_mkdev_h = yes; then
6211 cat >>confdefs.h <<\_ACEOF
6212 #define MAJOR_IN_MKDEV 1
6213 _ACEOF
6219 if test $ac_cv_header_sys_mkdev_h = no; then
6220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6221 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6222 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6223 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6227 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6228 else
6229 # Is the header compilable?
6230 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6231 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6239 #include <sys/sysmacros.h>
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6243 case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
6258 ac_header_compiler=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_header_compiler=no
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6268 echo "${ECHO_T}$ac_header_compiler" >&6; }
6270 # Is the header present?
6271 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6272 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <sys/sysmacros.h>
6280 _ACEOF
6281 if { (ac_try="$ac_cpp conftest.$ac_ext"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null && {
6294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 }; then
6297 ac_header_preproc=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_header_preproc=no
6305 rm -f conftest.err conftest.$ac_ext
6306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6307 echo "${ECHO_T}$ac_header_preproc" >&6; }
6309 # So? What about this header?
6310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6311 yes:no: )
6312 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6313 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6315 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6316 ac_header_preproc=yes
6318 no:yes:* )
6319 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6320 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6322 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6331 ( cat <<\_ASBOX
6332 ## -------------------------------------- ##
6333 ## Report this to http://bugs.python.org/ ##
6334 ## -------------------------------------- ##
6335 _ASBOX
6336 ) | sed "s/^/$as_me: WARNING: /" >&2
6338 esac
6339 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6340 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6341 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6346 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6350 if test $ac_cv_header_sys_sysmacros_h = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define MAJOR_IN_SYSMACROS 1
6354 _ACEOF
6363 # On Solaris, term.h requires curses.h
6365 for ac_header in term.h
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6380 #ifdef HAVE_CURSES_H
6381 #include <curses.h>
6382 #endif
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 eval "$as_ac_Header=yes"
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 eval "$as_ac_Header=no"
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_res=`eval echo '${'$as_ac_Header'}'`
6415 { echo "$as_me:$LINENO: result: $ac_res" >&5
6416 echo "${ECHO_T}$ac_res" >&6; }
6417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6420 _ACEOF
6424 done
6427 # On Linux, netlink.h requires asm/types.h
6429 for ac_header in linux/netlink.h
6431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 #ifdef HAVE_ASM_TYPES_H
6445 #include <asm/types.h>
6446 #endif
6447 #ifdef HAVE_SYS_SOCKET_H
6448 #include <sys/socket.h>
6449 #endif
6452 #include <$ac_header>
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6471 eval "$as_ac_Header=yes"
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 eval "$as_ac_Header=no"
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 ac_res=`eval echo '${'$as_ac_Header'}'`
6482 { echo "$as_me:$LINENO: result: $ac_res" >&5
6483 echo "${ECHO_T}$ac_res" >&6; }
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487 _ACEOF
6491 done
6494 # checks for typedefs
6495 was_it_defined=no
6496 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6497 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 #include <time.h>
6506 _ACEOF
6507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508 $EGREP "clock_t" >/dev/null 2>&1; then
6509 was_it_defined=yes
6510 else
6513 cat >>confdefs.h <<\_ACEOF
6514 #define clock_t long
6515 _ACEOF
6519 rm -f conftest*
6521 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6522 echo "${ECHO_T}$was_it_defined" >&6; }
6524 # Check whether using makedev requires defining _OSF_SOURCE
6525 { echo "$as_me:$LINENO: checking for makedev" >&5
6526 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <sys/types.h>
6535 main ()
6537 makedev(0, 0)
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (ac_try="$ac_link"
6544 case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_link") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest$ac_exeext &&
6559 $as_test_x conftest$ac_exeext; then
6560 ac_cv_has_makedev=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_cv_has_makedev=no
6568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6569 conftest$ac_exeext conftest.$ac_ext
6570 if test "$ac_cv_has_makedev" = "no"; then
6571 # we didn't link, try if _OSF_SOURCE will allow us to link
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 #define _OSF_SOURCE 1
6580 #include <sys/types.h>
6583 main ()
6585 makedev(0, 0)
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (ac_try="$ac_link"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_link") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest$ac_exeext &&
6607 $as_test_x conftest$ac_exeext; then
6608 ac_cv_has_makedev=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_cv_has_makedev=no
6616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6617 conftest$ac_exeext conftest.$ac_ext
6618 if test "$ac_cv_has_makedev" = "yes"; then
6620 cat >>confdefs.h <<\_ACEOF
6621 #define _OSF_SOURCE 1
6622 _ACEOF
6626 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6627 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6628 if test "$ac_cv_has_makedev" = "yes"; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_MAKEDEV 1
6632 _ACEOF
6636 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6637 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6638 # defined, but the compiler does not support pragma redefine_extname,
6639 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6640 # structures (such as rlimit64) without declaring them. As a
6641 # work-around, disable LFS on such configurations
6643 use_lfs=yes
6644 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6645 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 #define _LARGEFILE_SOURCE 1
6654 #define _FILE_OFFSET_BITS 64
6655 #include <sys/resource.h>
6658 main ()
6660 struct rlimit foo;
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.$ac_objext; then
6682 sol_lfs_bug=no
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 sol_lfs_bug=yes
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6692 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6693 if test "$sol_lfs_bug" = "yes"; then
6694 use_lfs=no
6697 if test "$use_lfs" = "yes"; then
6698 # Two defines needed to enable largefile support on various platforms
6699 # These may affect some typedefs
6701 cat >>confdefs.h <<\_ACEOF
6702 #define _LARGEFILE_SOURCE 1
6703 _ACEOF
6706 cat >>confdefs.h <<\_ACEOF
6707 #define _FILE_OFFSET_BITS 64
6708 _ACEOF
6712 # Add some code to confdefs.h so that the test for off_t works on SCO
6713 cat >> confdefs.h <<\EOF
6714 #if defined(SCO_DS)
6715 #undef _OFF_T
6716 #endif
6719 # Type availability checks
6720 { echo "$as_me:$LINENO: checking for mode_t" >&5
6721 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6722 if test "${ac_cv_type_mode_t+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 $ac_includes_default
6732 typedef mode_t ac__type_new_;
6734 main ()
6736 if ((ac__type_new_ *) 0)
6737 return 0;
6738 if (sizeof (ac__type_new_))
6739 return 0;
6741 return 0;
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (ac_try="$ac_compile"
6746 case "(($ac_try" in
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6749 esac
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_compile") 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && {
6758 test -z "$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6760 } && test -s conftest.$ac_objext; then
6761 ac_cv_type_mode_t=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cv_type_mode_t=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6772 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6773 if test $ac_cv_type_mode_t = yes; then
6775 else
6777 cat >>confdefs.h <<_ACEOF
6778 #define mode_t int
6779 _ACEOF
6783 { echo "$as_me:$LINENO: checking for off_t" >&5
6784 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6785 if test "${ac_cv_type_off_t+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 typedef off_t ac__type_new_;
6797 main ()
6799 if ((ac__type_new_ *) 0)
6800 return 0;
6801 if (sizeof (ac__type_new_))
6802 return 0;
6804 return 0;
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6809 case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_type_off_t=yes
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_type_off_t=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6835 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6836 if test $ac_cv_type_off_t = yes; then
6838 else
6840 cat >>confdefs.h <<_ACEOF
6841 #define off_t long int
6842 _ACEOF
6846 { echo "$as_me:$LINENO: checking for pid_t" >&5
6847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6848 if test "${ac_cv_type_pid_t+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 typedef pid_t ac__type_new_;
6860 main ()
6862 if ((ac__type_new_ *) 0)
6863 return 0;
6864 if (sizeof (ac__type_new_))
6865 return 0;
6867 return 0;
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6887 ac_cv_type_pid_t=yes
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6892 ac_cv_type_pid_t=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6898 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6899 if test $ac_cv_type_pid_t = yes; then
6901 else
6903 cat >>confdefs.h <<_ACEOF
6904 #define pid_t int
6905 _ACEOF
6909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6911 if test "${ac_cv_type_signal+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <signal.h>
6924 main ()
6926 return *(signal (0, 0)) (0) == 1;
6928 return 0;
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 ac_cv_type_signal=int
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_cv_type_signal=void
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6961 cat >>confdefs.h <<_ACEOF
6962 #define RETSIGTYPE $ac_cv_type_signal
6963 _ACEOF
6966 { echo "$as_me:$LINENO: checking for size_t" >&5
6967 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6968 if test "${ac_cv_type_size_t+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 typedef size_t ac__type_new_;
6980 main ()
6982 if ((ac__type_new_ *) 0)
6983 return 0;
6984 if (sizeof (ac__type_new_))
6985 return 0;
6987 return 0;
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 ac_cv_type_size_t=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_type_size_t=no
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7018 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7019 if test $ac_cv_type_size_t = yes; then
7021 else
7023 cat >>confdefs.h <<_ACEOF
7024 #define size_t unsigned int
7025 _ACEOF
7029 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7030 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7031 if test "${ac_cv_type_uid_t+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <sys/types.h>
7042 _ACEOF
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "uid_t" >/dev/null 2>&1; then
7045 ac_cv_type_uid_t=yes
7046 else
7047 ac_cv_type_uid_t=no
7049 rm -f conftest*
7052 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7053 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7054 if test $ac_cv_type_uid_t = no; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define uid_t int
7058 _ACEOF
7061 cat >>confdefs.h <<\_ACEOF
7062 #define gid_t int
7063 _ACEOF
7068 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7069 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7070 if test "${ac_cv_c_uint32_t+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 ac_cv_c_uint32_t=no
7074 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7075 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 main ()
7086 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7087 test_array [0] = 0
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7095 case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_compile") 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest.$ac_objext; then
7110 case $ac_type in
7111 uint32_t) ac_cv_c_uint32_t=yes ;;
7112 *) ac_cv_c_uint32_t=$ac_type ;;
7113 esac
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 test "$ac_cv_c_uint32_t" != no && break
7124 done
7126 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7127 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7128 case $ac_cv_c_uint32_t in #(
7129 no|yes) ;; #(
7132 cat >>confdefs.h <<\_ACEOF
7133 #define _UINT32_T 1
7134 _ACEOF
7137 cat >>confdefs.h <<_ACEOF
7138 #define uint32_t $ac_cv_c_uint32_t
7139 _ACEOF
7141 esac
7144 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7145 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7146 if test "${ac_cv_c_uint64_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 ac_cv_c_uint64_t=no
7150 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7151 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7160 main ()
7162 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7163 test_array [0] = 0
7166 return 0;
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 case $ac_type in
7187 uint64_t) ac_cv_c_uint64_t=yes ;;
7188 *) ac_cv_c_uint64_t=$ac_type ;;
7189 esac
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 test "$ac_cv_c_uint64_t" != no && break
7200 done
7202 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7203 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7204 case $ac_cv_c_uint64_t in #(
7205 no|yes) ;; #(
7208 cat >>confdefs.h <<\_ACEOF
7209 #define _UINT64_T 1
7210 _ACEOF
7213 cat >>confdefs.h <<_ACEOF
7214 #define uint64_t $ac_cv_c_uint64_t
7215 _ACEOF
7217 esac
7220 { echo "$as_me:$LINENO: checking for int32_t" >&5
7221 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7222 if test "${ac_cv_c_int32_t+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 ac_cv_c_int32_t=no
7226 for ac_type in 'int32_t' 'int' 'long int' \
7227 'long long int' 'short int' 'signed char'; do
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7236 main ()
7238 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7239 test_array [0] = 0
7242 return 0;
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7247 case "(($ac_try" in
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7250 esac
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7270 main ()
7272 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7273 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7274 test_array [0] = 0
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.$ac_objext; then
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 case $ac_type in
7303 int32_t) ac_cv_c_int32_t=yes ;;
7304 *) ac_cv_c_int32_t=$ac_type ;;
7305 esac
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 test "$ac_cv_c_int32_t" != no && break
7319 done
7321 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7322 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7323 case $ac_cv_c_int32_t in #(
7324 no|yes) ;; #(
7327 cat >>confdefs.h <<_ACEOF
7328 #define int32_t $ac_cv_c_int32_t
7329 _ACEOF
7331 esac
7334 { echo "$as_me:$LINENO: checking for int64_t" >&5
7335 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7336 if test "${ac_cv_c_int64_t+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 ac_cv_c_int64_t=no
7340 for ac_type in 'int64_t' 'int' 'long int' \
7341 'long long int' 'short int' 'signed char'; do
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h. */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7350 main ()
7352 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7353 test_array [0] = 0
7356 return 0;
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7361 case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364 esac
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.$ac_objext; then
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7384 main ()
7386 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7387 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7388 test_array [0] = 0
7391 return 0;
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 case $ac_type in
7417 int64_t) ac_cv_c_int64_t=yes ;;
7418 *) ac_cv_c_int64_t=$ac_type ;;
7419 esac
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 test "$ac_cv_c_int64_t" != no && break
7433 done
7435 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7436 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7437 case $ac_cv_c_int64_t in #(
7438 no|yes) ;; #(
7441 cat >>confdefs.h <<_ACEOF
7442 #define int64_t $ac_cv_c_int64_t
7443 _ACEOF
7445 esac
7447 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7448 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7449 if test "${ac_cv_type_ssize_t+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 typedef ssize_t ac__type_new_;
7461 main ()
7463 if ((ac__type_new_ *) 0)
7464 return 0;
7465 if (sizeof (ac__type_new_))
7466 return 0;
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (ac_try="$ac_compile"
7473 case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476 esac
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_compile") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest.$ac_objext; then
7488 ac_cv_type_ssize_t=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_cv_type_ssize_t=no
7496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7500 if test $ac_cv_type_ssize_t = yes; then
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_SSIZE_T 1
7504 _ACEOF
7509 # Sizes of various common basic types
7510 # ANSI C requires sizeof(char) == 1, so no need to check it
7511 { echo "$as_me:$LINENO: checking for int" >&5
7512 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7513 if test "${ac_cv_type_int+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h. */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7523 typedef int ac__type_new_;
7525 main ()
7527 if ((ac__type_new_ *) 0)
7528 return 0;
7529 if (sizeof (ac__type_new_))
7530 return 0;
7532 return 0;
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7552 ac_cv_type_int=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 ac_cv_type_int=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7563 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7565 # The cast to long int works around a bug in the HP C Compiler
7566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7568 # This bug is HP SR number 8606223364.
7569 { echo "$as_me:$LINENO: checking size of int" >&5
7570 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7571 if test "${ac_cv_sizeof_int+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 if test "$cross_compiling" = yes; then
7575 # Depending upon the size, compute the lo and hi bounds.
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef int ac__type_sizeof_;
7585 main ()
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7588 test_array [0] = 0
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_lo=0 ac_mid=0
7612 while :; do
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7620 typedef int ac__type_sizeof_;
7622 main ()
7624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7625 test_array [0] = 0
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 ac_hi=$ac_mid; break
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 ac_lo=`expr $ac_mid + 1`
7654 if test $ac_lo -le $ac_mid; then
7655 ac_lo= ac_hi=
7656 break
7658 ac_mid=`expr 2 '*' $ac_mid + 1`
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 done
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef int ac__type_sizeof_;
7676 main ()
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7679 test_array [0] = 0
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_hi=-1 ac_mid=-1
7703 while :; do
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 $ac_includes_default
7711 typedef int ac__type_sizeof_;
7713 main ()
7715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7716 test_array [0] = 0
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_compile") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest.$ac_objext; then
7739 ac_lo=$ac_mid; break
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_hi=`expr '(' $ac_mid ')' - 1`
7745 if test $ac_mid -le $ac_hi; then
7746 ac_lo= ac_hi=
7747 break
7749 ac_mid=`expr 2 '*' $ac_mid`
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 done
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_lo= ac_hi=
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 # Binary search between lo and hi bounds.
7766 while test "x$ac_lo" != "x$ac_hi"; do
7767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 typedef int ac__type_sizeof_;
7777 main ()
7779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7780 test_array [0] = 0
7783 return 0;
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7803 ac_hi=$ac_mid
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_lo=`expr '(' $ac_mid ')' + 1`
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 done
7813 case $ac_lo in
7814 ?*) ac_cv_sizeof_int=$ac_lo;;
7815 '') if test "$ac_cv_type_int" = yes; then
7816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7817 See \`config.log' for more details." >&5
7818 echo "$as_me: error: cannot compute sizeof (int)
7819 See \`config.log' for more details." >&2;}
7820 { (exit 77); exit 77; }; }
7821 else
7822 ac_cv_sizeof_int=0
7823 fi ;;
7824 esac
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 typedef int ac__type_sizeof_;
7834 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7835 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7836 #include <stdio.h>
7837 #include <stdlib.h>
7839 main ()
7842 FILE *f = fopen ("conftest.val", "w");
7843 if (! f)
7844 return 1;
7845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7847 long int i = longval ();
7848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7849 return 1;
7850 fprintf (f, "%ld\n", i);
7852 else
7854 unsigned long int i = ulongval ();
7855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7856 return 1;
7857 fprintf (f, "%lu\n", i);
7859 return ferror (f) || fclose (f) != 0;
7862 return 0;
7864 _ACEOF
7865 rm -f conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_link") 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_sizeof_int=`cat conftest.val`
7886 else
7887 echo "$as_me: program exited with status $ac_status" >&5
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ( exit $ac_status )
7892 if test "$ac_cv_type_int" = yes; then
7893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7894 See \`config.log' for more details." >&5
7895 echo "$as_me: error: cannot compute sizeof (int)
7896 See \`config.log' for more details." >&2;}
7897 { (exit 77); exit 77; }; }
7898 else
7899 ac_cv_sizeof_int=0
7902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7904 rm -f conftest.val
7906 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7907 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7911 cat >>confdefs.h <<_ACEOF
7912 #define SIZEOF_INT $ac_cv_sizeof_int
7913 _ACEOF
7916 { echo "$as_me:$LINENO: checking for long" >&5
7917 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7918 if test "${ac_cv_type_long+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 typedef long ac__type_new_;
7930 main ()
7932 if ((ac__type_new_ *) 0)
7933 return 0;
7934 if (sizeof (ac__type_new_))
7935 return 0;
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_type_long=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_type_long=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7968 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7970 # The cast to long int works around a bug in the HP C Compiler
7971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7973 # This bug is HP SR number 8606223364.
7974 { echo "$as_me:$LINENO: checking size of long" >&5
7975 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7976 if test "${ac_cv_sizeof_long+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7988 typedef long ac__type_sizeof_;
7990 main ()
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7993 test_array [0] = 0
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_lo=0 ac_mid=0
8017 while :; do
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8025 typedef long ac__type_sizeof_;
8027 main ()
8029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8030 test_array [0] = 0
8033 return 0;
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_compile") 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && {
8050 test -z "$ac_c_werror_flag" ||
8051 test ! -s conftest.err
8052 } && test -s conftest.$ac_objext; then
8053 ac_hi=$ac_mid; break
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_lo=`expr $ac_mid + 1`
8059 if test $ac_lo -le $ac_mid; then
8060 ac_lo= ac_hi=
8061 break
8063 ac_mid=`expr 2 '*' $ac_mid + 1`
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 done
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef long ac__type_sizeof_;
8081 main ()
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8084 test_array [0] = 0
8087 return 0;
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_hi=-1 ac_mid=-1
8108 while :; do
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 typedef long ac__type_sizeof_;
8118 main ()
8120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8121 test_array [0] = 0
8124 return 0;
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_lo=$ac_mid; break
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_hi=`expr '(' $ac_mid ')' - 1`
8150 if test $ac_mid -le $ac_hi; then
8151 ac_lo= ac_hi=
8152 break
8154 ac_mid=`expr 2 '*' $ac_mid`
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 done
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8163 ac_lo= ac_hi=
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 # Binary search between lo and hi bounds.
8171 while test "x$ac_lo" != "x$ac_hi"; do
8172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8180 typedef long ac__type_sizeof_;
8182 main ()
8184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8185 test_array [0] = 0
8188 return 0;
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_hi=$ac_mid
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_lo=`expr '(' $ac_mid ')' + 1`
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 done
8218 case $ac_lo in
8219 ?*) ac_cv_sizeof_long=$ac_lo;;
8220 '') if test "$ac_cv_type_long" = yes; then
8221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8222 See \`config.log' for more details." >&5
8223 echo "$as_me: error: cannot compute sizeof (long)
8224 See \`config.log' for more details." >&2;}
8225 { (exit 77); exit 77; }; }
8226 else
8227 ac_cv_sizeof_long=0
8228 fi ;;
8229 esac
8230 else
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 typedef long ac__type_sizeof_;
8239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8241 #include <stdio.h>
8242 #include <stdlib.h>
8244 main ()
8247 FILE *f = fopen ("conftest.val", "w");
8248 if (! f)
8249 return 1;
8250 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8252 long int i = longval ();
8253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8254 return 1;
8255 fprintf (f, "%ld\n", i);
8257 else
8259 unsigned long int i = ulongval ();
8260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8261 return 1;
8262 fprintf (f, "%lu\n", i);
8264 return ferror (f) || fclose (f) != 0;
8267 return 0;
8269 _ACEOF
8270 rm -f conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8272 case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_sizeof_long=`cat conftest.val`
8291 else
8292 echo "$as_me: program exited with status $ac_status" >&5
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ( exit $ac_status )
8297 if test "$ac_cv_type_long" = yes; then
8298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8299 See \`config.log' for more details." >&5
8300 echo "$as_me: error: cannot compute sizeof (long)
8301 See \`config.log' for more details." >&2;}
8302 { (exit 77); exit 77; }; }
8303 else
8304 ac_cv_sizeof_long=0
8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8309 rm -f conftest.val
8311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8312 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8316 cat >>confdefs.h <<_ACEOF
8317 #define SIZEOF_LONG $ac_cv_sizeof_long
8318 _ACEOF
8321 { echo "$as_me:$LINENO: checking for void *" >&5
8322 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8323 if test "${ac_cv_type_void_p+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef void * ac__type_new_;
8335 main ()
8337 if ((ac__type_new_ *) 0)
8338 return 0;
8339 if (sizeof (ac__type_new_))
8340 return 0;
8342 return 0;
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8347 case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.$ac_objext; then
8362 ac_cv_type_void_p=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_type_void_p=no
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8373 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8375 # The cast to long int works around a bug in the HP C Compiler
8376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8378 # This bug is HP SR number 8606223364.
8379 { echo "$as_me:$LINENO: checking size of void *" >&5
8380 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8381 if test "${ac_cv_sizeof_void_p+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384 if test "$cross_compiling" = yes; then
8385 # Depending upon the size, compute the lo and hi bounds.
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 typedef void * ac__type_sizeof_;
8395 main ()
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8398 test_array [0] = 0
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_lo=0 ac_mid=0
8422 while :; do
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 typedef void * ac__type_sizeof_;
8432 main ()
8434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8435 test_array [0] = 0
8438 return 0;
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_hi=$ac_mid; break
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_lo=`expr $ac_mid + 1`
8464 if test $ac_lo -le $ac_mid; then
8465 ac_lo= ac_hi=
8466 break
8468 ac_mid=`expr 2 '*' $ac_mid + 1`
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 done
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef void * ac__type_sizeof_;
8486 main ()
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8489 test_array [0] = 0
8492 return 0;
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8497 case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_hi=-1 ac_mid=-1
8513 while :; do
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 typedef void * ac__type_sizeof_;
8523 main ()
8525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8526 test_array [0] = 0
8529 return 0;
8531 _ACEOF
8532 rm -f conftest.$ac_objext
8533 if { (ac_try="$ac_compile"
8534 case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_compile") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && {
8546 test -z "$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 } && test -s conftest.$ac_objext; then
8549 ac_lo=$ac_mid; break
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_hi=`expr '(' $ac_mid ')' - 1`
8555 if test $ac_mid -le $ac_hi; then
8556 ac_lo= ac_hi=
8557 break
8559 ac_mid=`expr 2 '*' $ac_mid`
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 done
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_lo= ac_hi=
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 # Binary search between lo and hi bounds.
8576 while test "x$ac_lo" != "x$ac_hi"; do
8577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8585 typedef void * ac__type_sizeof_;
8587 main ()
8589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8590 test_array [0] = 0
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_hi=$ac_mid
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_lo=`expr '(' $ac_mid ')' + 1`
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 done
8623 case $ac_lo in
8624 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8625 '') if test "$ac_cv_type_void_p" = yes; then
8626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8627 See \`config.log' for more details." >&5
8628 echo "$as_me: error: cannot compute sizeof (void *)
8629 See \`config.log' for more details." >&2;}
8630 { (exit 77); exit 77; }; }
8631 else
8632 ac_cv_sizeof_void_p=0
8633 fi ;;
8634 esac
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 typedef void * ac__type_sizeof_;
8644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8646 #include <stdio.h>
8647 #include <stdlib.h>
8649 main ()
8652 FILE *f = fopen ("conftest.val", "w");
8653 if (! f)
8654 return 1;
8655 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8657 long int i = longval ();
8658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8659 return 1;
8660 fprintf (f, "%ld\n", i);
8662 else
8664 unsigned long int i = ulongval ();
8665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8666 return 1;
8667 fprintf (f, "%lu\n", i);
8669 return ferror (f) || fclose (f) != 0;
8672 return 0;
8674 _ACEOF
8675 rm -f conftest$ac_exeext
8676 if { (ac_try="$ac_link"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_sizeof_void_p=`cat conftest.val`
8696 else
8697 echo "$as_me: program exited with status $ac_status" >&5
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ( exit $ac_status )
8702 if test "$ac_cv_type_void_p" = yes; then
8703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8704 See \`config.log' for more details." >&5
8705 echo "$as_me: error: cannot compute sizeof (void *)
8706 See \`config.log' for more details." >&2;}
8707 { (exit 77); exit 77; }; }
8708 else
8709 ac_cv_sizeof_void_p=0
8712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8714 rm -f conftest.val
8716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8717 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8721 cat >>confdefs.h <<_ACEOF
8722 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8723 _ACEOF
8726 { echo "$as_me:$LINENO: checking for short" >&5
8727 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8728 if test "${ac_cv_type_short+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 typedef short ac__type_new_;
8740 main ()
8742 if ((ac__type_new_ *) 0)
8743 return 0;
8744 if (sizeof (ac__type_new_))
8745 return 0;
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_type_short=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 ac_cv_type_short=no
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8778 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8780 # The cast to long int works around a bug in the HP C Compiler
8781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8783 # This bug is HP SR number 8606223364.
8784 { echo "$as_me:$LINENO: checking size of short" >&5
8785 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8786 if test "${ac_cv_sizeof_short+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 if test "$cross_compiling" = yes; then
8790 # Depending upon the size, compute the lo and hi bounds.
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 typedef short ac__type_sizeof_;
8800 main ()
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8803 test_array [0] = 0
8806 return 0;
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 ac_lo=0 ac_mid=0
8827 while :; do
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 $ac_includes_default
8835 typedef short ac__type_sizeof_;
8837 main ()
8839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8840 test_array [0] = 0
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_hi=$ac_mid; break
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_lo=`expr $ac_mid + 1`
8869 if test $ac_lo -le $ac_mid; then
8870 ac_lo= ac_hi=
8871 break
8873 ac_mid=`expr 2 '*' $ac_mid + 1`
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 done
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef short ac__type_sizeof_;
8891 main ()
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8894 test_array [0] = 0
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8902 case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_hi=-1 ac_mid=-1
8918 while :; do
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 $ac_includes_default
8926 typedef short ac__type_sizeof_;
8928 main ()
8930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8931 test_array [0] = 0
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_lo=$ac_mid; break
8955 else
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_hi=`expr '(' $ac_mid ')' - 1`
8960 if test $ac_mid -le $ac_hi; then
8961 ac_lo= ac_hi=
8962 break
8964 ac_mid=`expr 2 '*' $ac_mid`
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 done
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_lo= ac_hi=
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 # Binary search between lo and hi bounds.
8981 while test "x$ac_lo" != "x$ac_hi"; do
8982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 typedef short ac__type_sizeof_;
8992 main ()
8994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8995 test_array [0] = 0
8998 return 0;
9000 _ACEOF
9001 rm -f conftest.$ac_objext
9002 if { (ac_try="$ac_compile"
9003 case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9006 esac
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_hi=$ac_mid
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_lo=`expr '(' $ac_mid ')' + 1`
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 done
9028 case $ac_lo in
9029 ?*) ac_cv_sizeof_short=$ac_lo;;
9030 '') if test "$ac_cv_type_short" = yes; then
9031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9032 See \`config.log' for more details." >&5
9033 echo "$as_me: error: cannot compute sizeof (short)
9034 See \`config.log' for more details." >&2;}
9035 { (exit 77); exit 77; }; }
9036 else
9037 ac_cv_sizeof_short=0
9038 fi ;;
9039 esac
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 typedef short ac__type_sizeof_;
9049 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9050 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9051 #include <stdio.h>
9052 #include <stdlib.h>
9054 main ()
9057 FILE *f = fopen ("conftest.val", "w");
9058 if (! f)
9059 return 1;
9060 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9062 long int i = longval ();
9063 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9064 return 1;
9065 fprintf (f, "%ld\n", i);
9067 else
9069 unsigned long int i = ulongval ();
9070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9071 return 1;
9072 fprintf (f, "%lu\n", i);
9074 return ferror (f) || fclose (f) != 0;
9077 return 0;
9079 _ACEOF
9080 rm -f conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9082 case "(($ac_try" in
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9085 esac
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_link") 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_sizeof_short=`cat conftest.val`
9101 else
9102 echo "$as_me: program exited with status $ac_status" >&5
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ( exit $ac_status )
9107 if test "$ac_cv_type_short" = yes; then
9108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9109 See \`config.log' for more details." >&5
9110 echo "$as_me: error: cannot compute sizeof (short)
9111 See \`config.log' for more details." >&2;}
9112 { (exit 77); exit 77; }; }
9113 else
9114 ac_cv_sizeof_short=0
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9119 rm -f conftest.val
9121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9122 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9126 cat >>confdefs.h <<_ACEOF
9127 #define SIZEOF_SHORT $ac_cv_sizeof_short
9128 _ACEOF
9131 { echo "$as_me:$LINENO: checking for float" >&5
9132 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9133 if test "${ac_cv_type_float+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9143 typedef float ac__type_new_;
9145 main ()
9147 if ((ac__type_new_ *) 0)
9148 return 0;
9149 if (sizeof (ac__type_new_))
9150 return 0;
9152 return 0;
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (ac_try="$ac_compile"
9157 case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest.$ac_objext; then
9172 ac_cv_type_float=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_type_float=no
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9183 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9185 # The cast to long int works around a bug in the HP C Compiler
9186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9188 # This bug is HP SR number 8606223364.
9189 { echo "$as_me:$LINENO: checking size of float" >&5
9190 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9191 if test "${ac_cv_sizeof_float+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 if test "$cross_compiling" = yes; then
9195 # Depending upon the size, compute the lo and hi bounds.
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 typedef float ac__type_sizeof_;
9205 main ()
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9208 test_array [0] = 0
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 ac_lo=0 ac_mid=0
9232 while :; do
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 $ac_includes_default
9240 typedef float ac__type_sizeof_;
9242 main ()
9244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9245 test_array [0] = 0
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (ac_try="$ac_compile"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_compile") 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest.$ac_objext; then
9268 ac_hi=$ac_mid; break
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_lo=`expr $ac_mid + 1`
9274 if test $ac_lo -le $ac_mid; then
9275 ac_lo= ac_hi=
9276 break
9278 ac_mid=`expr 2 '*' $ac_mid + 1`
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 done
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 typedef float ac__type_sizeof_;
9296 main ()
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9299 test_array [0] = 0
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_hi=-1 ac_mid=-1
9323 while :; do
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 $ac_includes_default
9331 typedef float ac__type_sizeof_;
9333 main ()
9335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9336 test_array [0] = 0
9339 return 0;
9341 _ACEOF
9342 rm -f conftest.$ac_objext
9343 if { (ac_try="$ac_compile"
9344 case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_compile") 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest.$ac_objext; then
9359 ac_lo=$ac_mid; break
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_hi=`expr '(' $ac_mid ')' - 1`
9365 if test $ac_mid -le $ac_hi; then
9366 ac_lo= ac_hi=
9367 break
9369 ac_mid=`expr 2 '*' $ac_mid`
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 done
9374 else
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9378 ac_lo= ac_hi=
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 # Binary search between lo and hi bounds.
9386 while test "x$ac_lo" != "x$ac_hi"; do
9387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 $ac_includes_default
9395 typedef float ac__type_sizeof_;
9397 main ()
9399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9400 test_array [0] = 0
9403 return 0;
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9408 case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9423 ac_hi=$ac_mid
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_lo=`expr '(' $ac_mid ')' + 1`
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 done
9433 case $ac_lo in
9434 ?*) ac_cv_sizeof_float=$ac_lo;;
9435 '') if test "$ac_cv_type_float" = yes; then
9436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9437 See \`config.log' for more details." >&5
9438 echo "$as_me: error: cannot compute sizeof (float)
9439 See \`config.log' for more details." >&2;}
9440 { (exit 77); exit 77; }; }
9441 else
9442 ac_cv_sizeof_float=0
9443 fi ;;
9444 esac
9445 else
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 typedef float ac__type_sizeof_;
9454 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9455 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9456 #include <stdio.h>
9457 #include <stdlib.h>
9459 main ()
9462 FILE *f = fopen ("conftest.val", "w");
9463 if (! f)
9464 return 1;
9465 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9467 long int i = longval ();
9468 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9469 return 1;
9470 fprintf (f, "%ld\n", i);
9472 else
9474 unsigned long int i = ulongval ();
9475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9476 return 1;
9477 fprintf (f, "%lu\n", i);
9479 return ferror (f) || fclose (f) != 0;
9482 return 0;
9484 _ACEOF
9485 rm -f conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_sizeof_float=`cat conftest.val`
9506 else
9507 echo "$as_me: program exited with status $ac_status" >&5
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ( exit $ac_status )
9512 if test "$ac_cv_type_float" = yes; then
9513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9514 See \`config.log' for more details." >&5
9515 echo "$as_me: error: cannot compute sizeof (float)
9516 See \`config.log' for more details." >&2;}
9517 { (exit 77); exit 77; }; }
9518 else
9519 ac_cv_sizeof_float=0
9522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9524 rm -f conftest.val
9526 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9527 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9531 cat >>confdefs.h <<_ACEOF
9532 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9533 _ACEOF
9536 { echo "$as_me:$LINENO: checking for double" >&5
9537 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9538 if test "${ac_cv_type_double+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 typedef double ac__type_new_;
9550 main ()
9552 if ((ac__type_new_ *) 0)
9553 return 0;
9554 if (sizeof (ac__type_new_))
9555 return 0;
9557 return 0;
9559 _ACEOF
9560 rm -f conftest.$ac_objext
9561 if { (ac_try="$ac_compile"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_compile") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest.$ac_objext; then
9577 ac_cv_type_double=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_type_double=no
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9588 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9590 # The cast to long int works around a bug in the HP C Compiler
9591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9593 # This bug is HP SR number 8606223364.
9594 { echo "$as_me:$LINENO: checking size of double" >&5
9595 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9596 if test "${ac_cv_sizeof_double+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 if test "$cross_compiling" = yes; then
9600 # Depending upon the size, compute the lo and hi bounds.
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 typedef double ac__type_sizeof_;
9610 main ()
9612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9613 test_array [0] = 0
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_lo=0 ac_mid=0
9637 while :; do
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 $ac_includes_default
9645 typedef double ac__type_sizeof_;
9647 main ()
9649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9650 test_array [0] = 0
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (ac_try="$ac_compile"
9658 case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_compile") 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest.$ac_objext; then
9673 ac_hi=$ac_mid; break
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 ac_lo=`expr $ac_mid + 1`
9679 if test $ac_lo -le $ac_mid; then
9680 ac_lo= ac_hi=
9681 break
9683 ac_mid=`expr 2 '*' $ac_mid + 1`
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 done
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 $ac_includes_default
9699 typedef double ac__type_sizeof_;
9701 main ()
9703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9704 test_array [0] = 0
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.$ac_objext; then
9727 ac_hi=-1 ac_mid=-1
9728 while :; do
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9736 typedef double ac__type_sizeof_;
9738 main ()
9740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9741 test_array [0] = 0
9744 return 0;
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 ac_lo=$ac_mid; break
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_hi=`expr '(' $ac_mid ')' - 1`
9770 if test $ac_mid -le $ac_hi; then
9771 ac_lo= ac_hi=
9772 break
9774 ac_mid=`expr 2 '*' $ac_mid`
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 done
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_lo= ac_hi=
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 # Binary search between lo and hi bounds.
9791 while test "x$ac_lo" != "x$ac_hi"; do
9792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9800 typedef double ac__type_sizeof_;
9802 main ()
9804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9805 test_array [0] = 0
9808 return 0;
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (ac_try="$ac_compile"
9813 case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_compile") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest.$ac_objext; then
9828 ac_hi=$ac_mid
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_lo=`expr '(' $ac_mid ')' + 1`
9836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837 done
9838 case $ac_lo in
9839 ?*) ac_cv_sizeof_double=$ac_lo;;
9840 '') if test "$ac_cv_type_double" = yes; then
9841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9842 See \`config.log' for more details." >&5
9843 echo "$as_me: error: cannot compute sizeof (double)
9844 See \`config.log' for more details." >&2;}
9845 { (exit 77); exit 77; }; }
9846 else
9847 ac_cv_sizeof_double=0
9848 fi ;;
9849 esac
9850 else
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 typedef double ac__type_sizeof_;
9859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9861 #include <stdio.h>
9862 #include <stdlib.h>
9864 main ()
9867 FILE *f = fopen ("conftest.val", "w");
9868 if (! f)
9869 return 1;
9870 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9872 long int i = longval ();
9873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9874 return 1;
9875 fprintf (f, "%ld\n", i);
9877 else
9879 unsigned long int i = ulongval ();
9880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9881 return 1;
9882 fprintf (f, "%lu\n", i);
9884 return ferror (f) || fclose (f) != 0;
9887 return 0;
9889 _ACEOF
9890 rm -f conftest$ac_exeext
9891 if { (ac_try="$ac_link"
9892 case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_link") 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_sizeof_double=`cat conftest.val`
9911 else
9912 echo "$as_me: program exited with status $ac_status" >&5
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ( exit $ac_status )
9917 if test "$ac_cv_type_double" = yes; then
9918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9919 See \`config.log' for more details." >&5
9920 echo "$as_me: error: cannot compute sizeof (double)
9921 See \`config.log' for more details." >&2;}
9922 { (exit 77); exit 77; }; }
9923 else
9924 ac_cv_sizeof_double=0
9927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9929 rm -f conftest.val
9931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9932 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9936 cat >>confdefs.h <<_ACEOF
9937 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9938 _ACEOF
9941 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9942 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9943 if test "${ac_cv_type_fpos_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9953 typedef fpos_t ac__type_new_;
9955 main ()
9957 if ((ac__type_new_ *) 0)
9958 return 0;
9959 if (sizeof (ac__type_new_))
9960 return 0;
9962 return 0;
9964 _ACEOF
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_cv_type_fpos_t=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_type_fpos_t=no
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9993 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9995 # The cast to long int works around a bug in the HP C Compiler
9996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9998 # This bug is HP SR number 8606223364.
9999 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10000 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10001 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 if test "$cross_compiling" = yes; then
10005 # Depending upon the size, compute the lo and hi bounds.
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 typedef fpos_t ac__type_sizeof_;
10015 main ()
10017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10018 test_array [0] = 0
10021 return 0;
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (ac_try="$ac_compile"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_compile") 2>conftest.er1
10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest.$ac_objext; then
10041 ac_lo=0 ac_mid=0
10042 while :; do
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 $ac_includes_default
10050 typedef fpos_t ac__type_sizeof_;
10052 main ()
10054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10055 test_array [0] = 0
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.$ac_objext; then
10078 ac_hi=$ac_mid; break
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_lo=`expr $ac_mid + 1`
10084 if test $ac_lo -le $ac_mid; then
10085 ac_lo= ac_hi=
10086 break
10088 ac_mid=`expr 2 '*' $ac_mid + 1`
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 done
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10104 typedef fpos_t ac__type_sizeof_;
10106 main ()
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10109 test_array [0] = 0
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.$ac_objext; then
10132 ac_hi=-1 ac_mid=-1
10133 while :; do
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 $ac_includes_default
10141 typedef fpos_t ac__type_sizeof_;
10143 main ()
10145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10146 test_array [0] = 0
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (ac_try="$ac_compile"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_compile") 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest.$ac_objext; then
10169 ac_lo=$ac_mid; break
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_hi=`expr '(' $ac_mid ')' - 1`
10175 if test $ac_mid -le $ac_hi; then
10176 ac_lo= ac_hi=
10177 break
10179 ac_mid=`expr 2 '*' $ac_mid`
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 done
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_lo= ac_hi=
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 # Binary search between lo and hi bounds.
10196 while test "x$ac_lo" != "x$ac_hi"; do
10197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 $ac_includes_default
10205 typedef fpos_t ac__type_sizeof_;
10207 main ()
10209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10210 test_array [0] = 0
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (ac_try="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_compile") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest.$ac_objext; then
10233 ac_hi=$ac_mid
10234 else
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_lo=`expr '(' $ac_mid ')' + 1`
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 done
10243 case $ac_lo in
10244 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10245 '') if test "$ac_cv_type_fpos_t" = yes; then
10246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10247 See \`config.log' for more details." >&5
10248 echo "$as_me: error: cannot compute sizeof (fpos_t)
10249 See \`config.log' for more details." >&2;}
10250 { (exit 77); exit 77; }; }
10251 else
10252 ac_cv_sizeof_fpos_t=0
10253 fi ;;
10254 esac
10255 else
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 typedef fpos_t ac__type_sizeof_;
10264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10266 #include <stdio.h>
10267 #include <stdlib.h>
10269 main ()
10272 FILE *f = fopen ("conftest.val", "w");
10273 if (! f)
10274 return 1;
10275 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10277 long int i = longval ();
10278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10279 return 1;
10280 fprintf (f, "%ld\n", i);
10282 else
10284 unsigned long int i = ulongval ();
10285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10286 return 1;
10287 fprintf (f, "%lu\n", i);
10289 return ferror (f) || fclose (f) != 0;
10292 return 0;
10294 _ACEOF
10295 rm -f conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_sizeof_fpos_t=`cat conftest.val`
10316 else
10317 echo "$as_me: program exited with status $ac_status" >&5
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ( exit $ac_status )
10322 if test "$ac_cv_type_fpos_t" = yes; then
10323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10324 See \`config.log' for more details." >&5
10325 echo "$as_me: error: cannot compute sizeof (fpos_t)
10326 See \`config.log' for more details." >&2;}
10327 { (exit 77); exit 77; }; }
10328 else
10329 ac_cv_sizeof_fpos_t=0
10332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10334 rm -f conftest.val
10336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10337 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10341 cat >>confdefs.h <<_ACEOF
10342 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10343 _ACEOF
10346 { echo "$as_me:$LINENO: checking for size_t" >&5
10347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10348 if test "${ac_cv_type_size_t+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef size_t ac__type_new_;
10360 main ()
10362 if ((ac__type_new_ *) 0)
10363 return 0;
10364 if (sizeof (ac__type_new_))
10365 return 0;
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type_size_t=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_type_size_t=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10398 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10400 # The cast to long int works around a bug in the HP C Compiler
10401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10403 # This bug is HP SR number 8606223364.
10404 { echo "$as_me:$LINENO: checking size of size_t" >&5
10405 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10406 if test "${ac_cv_sizeof_size_t+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 if test "$cross_compiling" = yes; then
10410 # Depending upon the size, compute the lo and hi bounds.
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef size_t ac__type_sizeof_;
10420 main ()
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10423 test_array [0] = 0
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10446 ac_lo=0 ac_mid=0
10447 while :; do
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 $ac_includes_default
10455 typedef size_t ac__type_sizeof_;
10457 main ()
10459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10460 test_array [0] = 0
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_compile") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest.$ac_objext; then
10483 ac_hi=$ac_mid; break
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_lo=`expr $ac_mid + 1`
10489 if test $ac_lo -le $ac_mid; then
10490 ac_lo= ac_hi=
10491 break
10493 ac_mid=`expr 2 '*' $ac_mid + 1`
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 done
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 typedef size_t ac__type_sizeof_;
10511 main ()
10513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10514 test_array [0] = 0
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (ac_try="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.$ac_objext; then
10537 ac_hi=-1 ac_mid=-1
10538 while :; do
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 typedef size_t ac__type_sizeof_;
10548 main ()
10550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10551 test_array [0] = 0
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (ac_try="$ac_compile"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_compile") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest.$ac_objext; then
10574 ac_lo=$ac_mid; break
10575 else
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 ac_hi=`expr '(' $ac_mid ')' - 1`
10580 if test $ac_mid -le $ac_hi; then
10581 ac_lo= ac_hi=
10582 break
10584 ac_mid=`expr 2 '*' $ac_mid`
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 done
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_lo= ac_hi=
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 # Binary search between lo and hi bounds.
10601 while test "x$ac_lo" != "x$ac_hi"; do
10602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 $ac_includes_default
10610 typedef size_t ac__type_sizeof_;
10612 main ()
10614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10615 test_array [0] = 0
10618 return 0;
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest.$ac_objext; then
10638 ac_hi=$ac_mid
10639 else
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_lo=`expr '(' $ac_mid ')' + 1`
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 done
10648 case $ac_lo in
10649 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10650 '') if test "$ac_cv_type_size_t" = yes; then
10651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10652 See \`config.log' for more details." >&5
10653 echo "$as_me: error: cannot compute sizeof (size_t)
10654 See \`config.log' for more details." >&2;}
10655 { (exit 77); exit 77; }; }
10656 else
10657 ac_cv_sizeof_size_t=0
10658 fi ;;
10659 esac
10660 else
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 typedef size_t ac__type_sizeof_;
10669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10671 #include <stdio.h>
10672 #include <stdlib.h>
10674 main ()
10677 FILE *f = fopen ("conftest.val", "w");
10678 if (! f)
10679 return 1;
10680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10682 long int i = longval ();
10683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10684 return 1;
10685 fprintf (f, "%ld\n", i);
10687 else
10689 unsigned long int i = ulongval ();
10690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10691 return 1;
10692 fprintf (f, "%lu\n", i);
10694 return ferror (f) || fclose (f) != 0;
10697 return 0;
10699 _ACEOF
10700 rm -f conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_sizeof_size_t=`cat conftest.val`
10721 else
10722 echo "$as_me: program exited with status $ac_status" >&5
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ( exit $ac_status )
10727 if test "$ac_cv_type_size_t" = yes; then
10728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10729 See \`config.log' for more details." >&5
10730 echo "$as_me: error: cannot compute sizeof (size_t)
10731 See \`config.log' for more details." >&2;}
10732 { (exit 77); exit 77; }; }
10733 else
10734 ac_cv_sizeof_size_t=0
10737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10739 rm -f conftest.val
10741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10742 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10746 cat >>confdefs.h <<_ACEOF
10747 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10748 _ACEOF
10751 { echo "$as_me:$LINENO: checking for pid_t" >&5
10752 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10753 if test "${ac_cv_type_pid_t+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 $ac_includes_default
10763 typedef pid_t ac__type_new_;
10765 main ()
10767 if ((ac__type_new_ *) 0)
10768 return 0;
10769 if (sizeof (ac__type_new_))
10770 return 0;
10772 return 0;
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_compile") 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest.$ac_objext; then
10792 ac_cv_type_pid_t=yes
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_type_pid_t=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10805 # The cast to long int works around a bug in the HP C Compiler
10806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10808 # This bug is HP SR number 8606223364.
10809 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10810 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10811 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814 if test "$cross_compiling" = yes; then
10815 # Depending upon the size, compute the lo and hi bounds.
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 pid_t ac__type_sizeof_;
10825 main ()
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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=0 ac_mid=0
10852 while :; do
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 $ac_includes_default
10860 typedef pid_t ac__type_sizeof_;
10862 main ()
10864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10865 test_array [0] = 0
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_compile") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest.$ac_objext; then
10888 ac_hi=$ac_mid; break
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_lo=`expr $ac_mid + 1`
10894 if test $ac_lo -le $ac_mid; then
10895 ac_lo= ac_hi=
10896 break
10898 ac_mid=`expr 2 '*' $ac_mid + 1`
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902 done
10903 else
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10914 typedef pid_t ac__type_sizeof_;
10916 main ()
10918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10919 test_array [0] = 0
10922 return 0;
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10942 ac_hi=-1 ac_mid=-1
10943 while :; do
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 $ac_includes_default
10951 typedef pid_t ac__type_sizeof_;
10953 main ()
10955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10956 test_array [0] = 0
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
10979 ac_lo=$ac_mid; break
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_hi=`expr '(' $ac_mid ')' - 1`
10985 if test $ac_mid -le $ac_hi; then
10986 ac_lo= ac_hi=
10987 break
10989 ac_mid=`expr 2 '*' $ac_mid`
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 done
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_lo= ac_hi=
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 # Binary search between lo and hi bounds.
11006 while test "x$ac_lo" != "x$ac_hi"; do
11007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 $ac_includes_default
11015 typedef pid_t ac__type_sizeof_;
11017 main ()
11019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11020 test_array [0] = 0
11023 return 0;
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.$ac_objext; then
11043 ac_hi=$ac_mid
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_lo=`expr '(' $ac_mid ')' + 1`
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 done
11053 case $ac_lo in
11054 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11055 '') if test "$ac_cv_type_pid_t" = yes; then
11056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11057 See \`config.log' for more details." >&5
11058 echo "$as_me: error: cannot compute sizeof (pid_t)
11059 See \`config.log' for more details." >&2;}
11060 { (exit 77); exit 77; }; }
11061 else
11062 ac_cv_sizeof_pid_t=0
11063 fi ;;
11064 esac
11065 else
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 $ac_includes_default
11073 typedef pid_t ac__type_sizeof_;
11074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11076 #include <stdio.h>
11077 #include <stdlib.h>
11079 main ()
11082 FILE *f = fopen ("conftest.val", "w");
11083 if (! f)
11084 return 1;
11085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11087 long int i = longval ();
11088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11089 return 1;
11090 fprintf (f, "%ld\n", i);
11092 else
11094 unsigned long int i = ulongval ();
11095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11096 return 1;
11097 fprintf (f, "%lu\n", i);
11099 return ferror (f) || fclose (f) != 0;
11102 return 0;
11104 _ACEOF
11105 rm -f conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 ac_cv_sizeof_pid_t=`cat conftest.val`
11126 else
11127 echo "$as_me: program exited with status $ac_status" >&5
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ( exit $ac_status )
11132 if test "$ac_cv_type_pid_t" = yes; then
11133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11134 See \`config.log' for more details." >&5
11135 echo "$as_me: error: cannot compute sizeof (pid_t)
11136 See \`config.log' for more details." >&2;}
11137 { (exit 77); exit 77; }; }
11138 else
11139 ac_cv_sizeof_pid_t=0
11142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11144 rm -f conftest.val
11146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11147 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11151 cat >>confdefs.h <<_ACEOF
11152 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11153 _ACEOF
11157 { echo "$as_me:$LINENO: checking for long long support" >&5
11158 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11159 have_long_long=no
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11168 main ()
11170 long long x; x = (long long)0;
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_compile") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest.$ac_objext; then
11194 cat >>confdefs.h <<\_ACEOF
11195 #define HAVE_LONG_LONG 1
11196 _ACEOF
11198 have_long_long=yes
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11209 echo "${ECHO_T}$have_long_long" >&6; }
11210 if test "$have_long_long" = yes ; then
11211 { echo "$as_me:$LINENO: checking for long long" >&5
11212 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11213 if test "${ac_cv_type_long_long+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 typedef long long ac__type_new_;
11225 main ()
11227 if ((ac__type_new_ *) 0)
11228 return 0;
11229 if (sizeof (ac__type_new_))
11230 return 0;
11232 return 0;
11234 _ACEOF
11235 rm -f conftest.$ac_objext
11236 if { (ac_try="$ac_compile"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_compile") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest.$ac_objext; then
11252 ac_cv_type_long_long=yes
11253 else
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_cv_type_long_long=no
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11263 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11265 # The cast to long int works around a bug in the HP C Compiler
11266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11268 # This bug is HP SR number 8606223364.
11269 { echo "$as_me:$LINENO: checking size of long long" >&5
11270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11271 if test "${ac_cv_sizeof_long_long+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274 if test "$cross_compiling" = yes; then
11275 # Depending upon the size, compute the lo and hi bounds.
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 typedef long long ac__type_sizeof_;
11285 main ()
11287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11288 test_array [0] = 0
11291 return 0;
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (ac_try="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 ac_lo=0 ac_mid=0
11312 while :; do
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 typedef long long ac__type_sizeof_;
11322 main ()
11324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11325 test_array [0] = 0
11328 return 0;
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348 ac_hi=$ac_mid; break
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_lo=`expr $ac_mid + 1`
11354 if test $ac_lo -le $ac_mid; then
11355 ac_lo= ac_hi=
11356 break
11358 ac_mid=`expr 2 '*' $ac_mid + 1`
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 done
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 typedef long long ac__type_sizeof_;
11376 main ()
11378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11379 test_array [0] = 0
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.$ac_objext; then
11402 ac_hi=-1 ac_mid=-1
11403 while :; do
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 $ac_includes_default
11411 typedef long long ac__type_sizeof_;
11413 main ()
11415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11416 test_array [0] = 0
11419 return 0;
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest.$ac_objext; then
11439 ac_lo=$ac_mid; break
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_hi=`expr '(' $ac_mid ')' - 1`
11445 if test $ac_mid -le $ac_hi; then
11446 ac_lo= ac_hi=
11447 break
11449 ac_mid=`expr 2 '*' $ac_mid`
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 done
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_lo= ac_hi=
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 # Binary search between lo and hi bounds.
11466 while test "x$ac_lo" != "x$ac_hi"; do
11467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 typedef long long ac__type_sizeof_;
11477 main ()
11479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11480 test_array [0] = 0
11483 return 0;
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_hi=$ac_mid
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_lo=`expr '(' $ac_mid ')' + 1`
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 done
11513 case $ac_lo in
11514 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11515 '') if test "$ac_cv_type_long_long" = yes; then
11516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11517 See \`config.log' for more details." >&5
11518 echo "$as_me: error: cannot compute sizeof (long long)
11519 See \`config.log' for more details." >&2;}
11520 { (exit 77); exit 77; }; }
11521 else
11522 ac_cv_sizeof_long_long=0
11523 fi ;;
11524 esac
11525 else
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 typedef long long ac__type_sizeof_;
11534 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11535 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11536 #include <stdio.h>
11537 #include <stdlib.h>
11539 main ()
11542 FILE *f = fopen ("conftest.val", "w");
11543 if (! f)
11544 return 1;
11545 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11547 long int i = longval ();
11548 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11549 return 1;
11550 fprintf (f, "%ld\n", i);
11552 else
11554 unsigned long int i = ulongval ();
11555 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11556 return 1;
11557 fprintf (f, "%lu\n", i);
11559 return ferror (f) || fclose (f) != 0;
11562 return 0;
11564 _ACEOF
11565 rm -f conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_cv_sizeof_long_long=`cat conftest.val`
11586 else
11587 echo "$as_me: program exited with status $ac_status" >&5
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ( exit $ac_status )
11592 if test "$ac_cv_type_long_long" = yes; then
11593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11594 See \`config.log' for more details." >&5
11595 echo "$as_me: error: cannot compute sizeof (long long)
11596 See \`config.log' for more details." >&2;}
11597 { (exit 77); exit 77; }; }
11598 else
11599 ac_cv_sizeof_long_long=0
11602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11604 rm -f conftest.val
11606 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11607 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11611 cat >>confdefs.h <<_ACEOF
11612 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11613 _ACEOF
11618 { echo "$as_me:$LINENO: checking for long double support" >&5
11619 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11620 have_long_double=no
11621 cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11629 main ()
11631 long double x; x = (long double)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
11655 cat >>confdefs.h <<\_ACEOF
11656 #define HAVE_LONG_DOUBLE 1
11657 _ACEOF
11659 have_long_double=yes
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11670 echo "${ECHO_T}$have_long_double" >&6; }
11671 if test "$have_long_double" = yes ; then
11672 { echo "$as_me:$LINENO: checking for long double" >&5
11673 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11674 if test "${ac_cv_type_long_double+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11684 typedef long double ac__type_new_;
11686 main ()
11688 if ((ac__type_new_ *) 0)
11689 return 0;
11690 if (sizeof (ac__type_new_))
11691 return 0;
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_compile") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
11713 ac_cv_type_long_double=yes
11714 else
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_cv_type_long_double=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11724 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11726 # The cast to long int works around a bug in the HP C Compiler
11727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11729 # This bug is HP SR number 8606223364.
11730 { echo "$as_me:$LINENO: checking size of long double" >&5
11731 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11732 if test "${ac_cv_sizeof_long_double+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 if test "$cross_compiling" = yes; then
11736 # Depending upon the size, compute the lo and hi bounds.
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11744 typedef long double ac__type_sizeof_;
11746 main ()
11748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11749 test_array [0] = 0
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest.$ac_objext; then
11772 ac_lo=0 ac_mid=0
11773 while :; do
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 typedef long double ac__type_sizeof_;
11783 main ()
11785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11786 test_array [0] = 0
11789 return 0;
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.$ac_objext; then
11809 ac_hi=$ac_mid; break
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_lo=`expr $ac_mid + 1`
11815 if test $ac_lo -le $ac_mid; then
11816 ac_lo= ac_hi=
11817 break
11819 ac_mid=`expr 2 '*' $ac_mid + 1`
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 done
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 typedef long double ac__type_sizeof_;
11837 main ()
11839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11840 test_array [0] = 0
11843 return 0;
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.$ac_objext; then
11863 ac_hi=-1 ac_mid=-1
11864 while :; do
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 typedef long double ac__type_sizeof_;
11874 main ()
11876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11877 test_array [0] = 0
11880 return 0;
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (ac_try="$ac_compile"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_compile") 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
11900 ac_lo=$ac_mid; break
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_hi=`expr '(' $ac_mid ')' - 1`
11906 if test $ac_mid -le $ac_hi; then
11907 ac_lo= ac_hi=
11908 break
11910 ac_mid=`expr 2 '*' $ac_mid`
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 done
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_lo= ac_hi=
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 # Binary search between lo and hi bounds.
11927 while test "x$ac_lo" != "x$ac_hi"; do
11928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11936 typedef long double ac__type_sizeof_;
11938 main ()
11940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11941 test_array [0] = 0
11944 return 0;
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (ac_try="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_hi=$ac_mid
11965 else
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_lo=`expr '(' $ac_mid ')' + 1`
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 done
11974 case $ac_lo in
11975 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11976 '') if test "$ac_cv_type_long_double" = yes; then
11977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11978 See \`config.log' for more details." >&5
11979 echo "$as_me: error: cannot compute sizeof (long double)
11980 See \`config.log' for more details." >&2;}
11981 { (exit 77); exit 77; }; }
11982 else
11983 ac_cv_sizeof_long_double=0
11984 fi ;;
11985 esac
11986 else
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 typedef long double ac__type_sizeof_;
11995 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11996 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11997 #include <stdio.h>
11998 #include <stdlib.h>
12000 main ()
12003 FILE *f = fopen ("conftest.val", "w");
12004 if (! f)
12005 return 1;
12006 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12008 long int i = longval ();
12009 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12010 return 1;
12011 fprintf (f, "%ld\n", i);
12013 else
12015 unsigned long int i = ulongval ();
12016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12017 return 1;
12018 fprintf (f, "%lu\n", i);
12020 return ferror (f) || fclose (f) != 0;
12023 return 0;
12025 _ACEOF
12026 rm -f conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_sizeof_long_double=`cat conftest.val`
12047 else
12048 echo "$as_me: program exited with status $ac_status" >&5
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ( exit $ac_status )
12053 if test "$ac_cv_type_long_double" = yes; then
12054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12055 See \`config.log' for more details." >&5
12056 echo "$as_me: error: cannot compute sizeof (long double)
12057 See \`config.log' for more details." >&2;}
12058 { (exit 77); exit 77; }; }
12059 else
12060 ac_cv_sizeof_long_double=0
12063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12065 rm -f conftest.val
12067 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12068 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12072 cat >>confdefs.h <<_ACEOF
12073 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12074 _ACEOF
12080 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12081 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12082 have_c99_bool=no
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12091 main ()
12093 _Bool x; x = (_Bool)0;
12095 return 0;
12097 _ACEOF
12098 rm -f conftest.$ac_objext
12099 if { (ac_try="$ac_compile"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_compile") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.$ac_objext; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_C99_BOOL 1
12119 _ACEOF
12121 have_c99_bool=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12132 echo "${ECHO_T}$have_c99_bool" >&6; }
12133 if test "$have_c99_bool" = yes ; then
12134 { echo "$as_me:$LINENO: checking for _Bool" >&5
12135 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12136 if test "${ac_cv_type__Bool+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 $ac_includes_default
12146 typedef _Bool ac__type_new_;
12148 main ()
12150 if ((ac__type_new_ *) 0)
12151 return 0;
12152 if (sizeof (ac__type_new_))
12153 return 0;
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_cv_type__Bool=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_type__Bool=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12186 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12188 # The cast to long int works around a bug in the HP C Compiler
12189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12191 # This bug is HP SR number 8606223364.
12192 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12193 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12194 if test "${ac_cv_sizeof__Bool+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197 if test "$cross_compiling" = yes; then
12198 # Depending upon the size, compute the lo and hi bounds.
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h. */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 typedef _Bool ac__type_sizeof_;
12208 main ()
12210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12211 test_array [0] = 0
12214 return 0;
12216 _ACEOF
12217 rm -f conftest.$ac_objext
12218 if { (ac_try="$ac_compile"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12234 ac_lo=0 ac_mid=0
12235 while :; do
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 typedef _Bool ac__type_sizeof_;
12245 main ()
12247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12248 test_array [0] = 0
12251 return 0;
12253 _ACEOF
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.$ac_objext; then
12271 ac_hi=$ac_mid; break
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_lo=`expr $ac_mid + 1`
12277 if test $ac_lo -le $ac_mid; then
12278 ac_lo= ac_hi=
12279 break
12281 ac_mid=`expr 2 '*' $ac_mid + 1`
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 done
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 $ac_includes_default
12297 typedef _Bool ac__type_sizeof_;
12299 main ()
12301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12302 test_array [0] = 0
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 ac_hi=-1 ac_mid=-1
12326 while :; do
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 $ac_includes_default
12334 typedef _Bool ac__type_sizeof_;
12336 main ()
12338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12339 test_array [0] = 0
12342 return 0;
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.$ac_objext; then
12362 ac_lo=$ac_mid; break
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_hi=`expr '(' $ac_mid ')' - 1`
12368 if test $ac_mid -le $ac_hi; then
12369 ac_lo= ac_hi=
12370 break
12372 ac_mid=`expr 2 '*' $ac_mid`
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 done
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_lo= ac_hi=
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 # Binary search between lo and hi bounds.
12389 while test "x$ac_lo" != "x$ac_hi"; do
12390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 $ac_includes_default
12398 typedef _Bool ac__type_sizeof_;
12400 main ()
12402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12403 test_array [0] = 0
12406 return 0;
12408 _ACEOF
12409 rm -f conftest.$ac_objext
12410 if { (ac_try="$ac_compile"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
12426 ac_hi=$ac_mid
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_lo=`expr '(' $ac_mid ')' + 1`
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435 done
12436 case $ac_lo in
12437 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12438 '') if test "$ac_cv_type__Bool" = yes; then
12439 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12440 See \`config.log' for more details." >&5
12441 echo "$as_me: error: cannot compute sizeof (_Bool)
12442 See \`config.log' for more details." >&2;}
12443 { (exit 77); exit 77; }; }
12444 else
12445 ac_cv_sizeof__Bool=0
12446 fi ;;
12447 esac
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 $ac_includes_default
12456 typedef _Bool ac__type_sizeof_;
12457 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12458 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12459 #include <stdio.h>
12460 #include <stdlib.h>
12462 main ()
12465 FILE *f = fopen ("conftest.val", "w");
12466 if (! f)
12467 return 1;
12468 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12470 long int i = longval ();
12471 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12472 return 1;
12473 fprintf (f, "%ld\n", i);
12475 else
12477 unsigned long int i = ulongval ();
12478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12479 return 1;
12480 fprintf (f, "%lu\n", i);
12482 return ferror (f) || fclose (f) != 0;
12485 return 0;
12487 _ACEOF
12488 rm -f conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_link") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499 { (case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_try") 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_sizeof__Bool=`cat conftest.val`
12509 else
12510 echo "$as_me: program exited with status $ac_status" >&5
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ( exit $ac_status )
12515 if test "$ac_cv_type__Bool" = yes; then
12516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12517 See \`config.log' for more details." >&5
12518 echo "$as_me: error: cannot compute sizeof (_Bool)
12519 See \`config.log' for more details." >&2;}
12520 { (exit 77); exit 77; }; }
12521 else
12522 ac_cv_sizeof__Bool=0
12525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12527 rm -f conftest.val
12529 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12530 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12534 cat >>confdefs.h <<_ACEOF
12535 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12536 _ACEOF
12541 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12542 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12543 if test "${ac_cv_type_uintptr_t+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546 cat >conftest.$ac_ext <<_ACEOF
12547 /* confdefs.h. */
12548 _ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 #ifdef HAVE_STDINT_H
12553 #include <stdint.h>
12554 #endif
12556 typedef uintptr_t ac__type_new_;
12558 main ()
12560 if ((ac__type_new_ *) 0)
12561 return 0;
12562 if (sizeof (ac__type_new_))
12563 return 0;
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 ac_cv_type_uintptr_t=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_cv_type_uintptr_t=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12596 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12597 if test $ac_cv_type_uintptr_t = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600 #define HAVE_UINTPTR_T 1
12601 _ACEOF
12603 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12604 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12605 if test "${ac_cv_type_uintptr_t+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h. */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 $ac_includes_default
12615 typedef uintptr_t ac__type_new_;
12617 main ()
12619 if ((ac__type_new_ *) 0)
12620 return 0;
12621 if (sizeof (ac__type_new_))
12622 return 0;
12624 return 0;
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
12644 ac_cv_type_uintptr_t=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_type_uintptr_t=no
12652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12655 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12657 # The cast to long int works around a bug in the HP C Compiler
12658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660 # This bug is HP SR number 8606223364.
12661 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12662 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12663 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666 if test "$cross_compiling" = yes; then
12667 # Depending upon the size, compute the lo and hi bounds.
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 $ac_includes_default
12675 typedef uintptr_t ac__type_sizeof_;
12677 main ()
12679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12680 test_array [0] = 0
12683 return 0;
12685 _ACEOF
12686 rm -f conftest.$ac_objext
12687 if { (ac_try="$ac_compile"
12688 case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12691 esac
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_compile") 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && {
12700 test -z "$ac_c_werror_flag" ||
12701 test ! -s conftest.err
12702 } && test -s conftest.$ac_objext; then
12703 ac_lo=0 ac_mid=0
12704 while :; do
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 $ac_includes_default
12712 typedef uintptr_t ac__type_sizeof_;
12714 main ()
12716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12717 test_array [0] = 0
12720 return 0;
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (ac_try="$ac_compile"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_compile") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest.$ac_objext; then
12740 ac_hi=$ac_mid; break
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_lo=`expr $ac_mid + 1`
12746 if test $ac_lo -le $ac_mid; then
12747 ac_lo= ac_hi=
12748 break
12750 ac_mid=`expr 2 '*' $ac_mid + 1`
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 done
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12766 typedef uintptr_t ac__type_sizeof_;
12768 main ()
12770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12771 test_array [0] = 0
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (ac_try="$ac_compile"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 ac_hi=-1 ac_mid=-1
12795 while :; do
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 $ac_includes_default
12803 typedef uintptr_t ac__type_sizeof_;
12805 main ()
12807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12808 test_array [0] = 0
12811 return 0;
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (ac_try="$ac_compile"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_compile") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
12831 ac_lo=$ac_mid; break
12832 else
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_hi=`expr '(' $ac_mid ')' - 1`
12837 if test $ac_mid -le $ac_hi; then
12838 ac_lo= ac_hi=
12839 break
12841 ac_mid=`expr 2 '*' $ac_mid`
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845 done
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ac_lo= ac_hi=
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 # Binary search between lo and hi bounds.
12858 while test "x$ac_lo" != "x$ac_hi"; do
12859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h. */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12867 typedef uintptr_t ac__type_sizeof_;
12869 main ()
12871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12872 test_array [0] = 0
12875 return 0;
12877 _ACEOF
12878 rm -f conftest.$ac_objext
12879 if { (ac_try="$ac_compile"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_compile") 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } && {
12892 test -z "$ac_c_werror_flag" ||
12893 test ! -s conftest.err
12894 } && test -s conftest.$ac_objext; then
12895 ac_hi=$ac_mid
12896 else
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 ac_lo=`expr '(' $ac_mid ')' + 1`
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12904 done
12905 case $ac_lo in
12906 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12907 '') if test "$ac_cv_type_uintptr_t" = yes; then
12908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12909 See \`config.log' for more details." >&5
12910 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12911 See \`config.log' for more details." >&2;}
12912 { (exit 77); exit 77; }; }
12913 else
12914 ac_cv_sizeof_uintptr_t=0
12915 fi ;;
12916 esac
12917 else
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h. */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 $ac_includes_default
12925 typedef uintptr_t ac__type_sizeof_;
12926 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12927 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12928 #include <stdio.h>
12929 #include <stdlib.h>
12931 main ()
12934 FILE *f = fopen ("conftest.val", "w");
12935 if (! f)
12936 return 1;
12937 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12939 long int i = longval ();
12940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12941 return 1;
12942 fprintf (f, "%ld\n", i);
12944 else
12946 unsigned long int i = ulongval ();
12947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12948 return 1;
12949 fprintf (f, "%lu\n", i);
12951 return ferror (f) || fclose (f) != 0;
12954 return 0;
12956 _ACEOF
12957 rm -f conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12978 else
12979 echo "$as_me: program exited with status $ac_status" >&5
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ( exit $ac_status )
12984 if test "$ac_cv_type_uintptr_t" = yes; then
12985 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12986 See \`config.log' for more details." >&5
12987 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12988 See \`config.log' for more details." >&2;}
12989 { (exit 77); exit 77; }; }
12990 else
12991 ac_cv_sizeof_uintptr_t=0
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12996 rm -f conftest.val
12998 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12999 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13003 cat >>confdefs.h <<_ACEOF
13004 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13005 _ACEOF
13012 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13013 { echo "$as_me:$LINENO: checking size of off_t" >&5
13014 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13015 if test "${ac_cv_sizeof_off_t+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018 if test "$cross_compiling" = yes; then
13019 ac_cv_sizeof_off_t=4
13020 else
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 #include <stdio.h>
13028 #include <sys/types.h>
13029 main()
13031 FILE *f=fopen("conftestval", "w");
13032 if (!f) exit(1);
13033 fprintf(f, "%d\n", sizeof(off_t));
13034 exit(0);
13036 _ACEOF
13037 rm -f 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>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_sizeof_off_t=`cat conftestval`
13058 else
13059 echo "$as_me: program exited with status $ac_status" >&5
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ( exit $ac_status )
13064 ac_cv_sizeof_off_t=0
13066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13073 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13074 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13076 cat >>confdefs.h <<_ACEOF
13077 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13078 _ACEOF
13081 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13082 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13083 if test "$have_long_long" = yes
13084 then
13085 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13086 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_LARGEFILE_SUPPORT 1
13090 _ACEOF
13092 { echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6; }
13094 else
13095 { echo "$as_me:$LINENO: result: no" >&5
13096 echo "${ECHO_T}no" >&6; }
13098 else
13099 { echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6; }
13103 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13104 { echo "$as_me:$LINENO: checking size of time_t" >&5
13105 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13106 if test "${ac_cv_sizeof_time_t+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109 if test "$cross_compiling" = yes; then
13110 ac_cv_sizeof_time_t=4
13111 else
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #include <stdio.h>
13119 #include <time.h>
13120 main()
13122 FILE *f=fopen("conftestval", "w");
13123 if (!f) exit(1);
13124 fprintf(f, "%d\n", sizeof(time_t));
13125 exit(0);
13127 _ACEOF
13128 rm -f conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_sizeof_time_t=`cat conftestval`
13149 else
13150 echo "$as_me: program exited with status $ac_status" >&5
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ( exit $ac_status )
13155 ac_cv_sizeof_time_t=0
13157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13165 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13167 cat >>confdefs.h <<_ACEOF
13168 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13169 _ACEOF
13173 # if have pthread_t then define SIZEOF_PTHREAD_T
13174 ac_save_cc="$CC"
13175 if test "$ac_cv_kpthread" = "yes"
13176 then CC="$CC -Kpthread"
13177 elif test "$ac_cv_kthread" = "yes"
13178 then CC="$CC -Kthread"
13179 elif test "$ac_cv_pthread" = "yes"
13180 then CC="$CC -pthread"
13182 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13183 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13184 have_pthread_t=no
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <pthread.h>
13193 main ()
13195 pthread_t x; x = *(pthread_t*)0;
13197 return 0;
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (ac_try="$ac_compile"
13202 case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_compile") 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } && {
13214 test -z "$ac_c_werror_flag" ||
13215 test ! -s conftest.err
13216 } && test -s conftest.$ac_objext; then
13217 have_pthread_t=yes
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13227 echo "${ECHO_T}$have_pthread_t" >&6; }
13228 if test "$have_pthread_t" = yes ; then
13229 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13230 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13231 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13232 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 if test "$cross_compiling" = yes; then
13236 ac_cv_sizeof_pthread_t=4
13237 else
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 #include <stdio.h>
13245 #include <pthread.h>
13246 main()
13248 FILE *f=fopen("conftestval", "w");
13249 if (!f) exit(1);
13250 fprintf(f, "%d\n", sizeof(pthread_t));
13251 exit(0);
13253 _ACEOF
13254 rm -f conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_sizeof_pthread_t=`cat conftestval`
13275 else
13276 echo "$as_me: program exited with status $ac_status" >&5
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ( exit $ac_status )
13281 ac_cv_sizeof_pthread_t=0
13283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13291 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13293 cat >>confdefs.h <<_ACEOF
13294 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13295 _ACEOF
13298 CC="$ac_save_cc"
13303 case $ac_sys_system/$ac_sys_release in
13304 Darwin/[01567]\..*)
13305 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13307 Darwin/*)
13308 OTHER_LIBTOOL_OPT=""
13310 esac
13313 ARCH_RUN_32BIT=""
13315 case $ac_sys_system/$ac_sys_release in
13316 Darwin/[01567]\..*)
13317 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13318 if test "${enable_universalsdk}"; then
13320 else
13321 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
13323 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13324 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13325 Darwin/*)
13326 gcc_version=`gcc -dumpversion`
13327 if test ${gcc_version} '<' 4.0
13328 then
13329 LIBTOOL_CRUFT="-lcc_dynamic"
13330 else
13331 LIBTOOL_CRUFT=""
13333 if test "$cross_compiling" = yes; then
13334 ac_osx_32bit=yes
13335 else
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 #include <unistd.h>
13344 int main(int argc, char*argv[])
13346 if (sizeof(long) == 4) {
13347 return 0;
13348 } else {
13349 return 1;
13353 _ACEOF
13354 rm -f conftest$ac_exeext
13355 if { (ac_try="$ac_link"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_link") 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13365 { (case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_osx_32bit=yes
13375 else
13376 echo "$as_me: program exited with status $ac_status" >&5
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ( exit $ac_status )
13381 ac_osx_32bit=no
13383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13388 if test "${ac_osx_32bit}" = "yes"; then
13389 case `/usr/bin/arch` in
13390 i386)
13391 MACOSX_DEFAULT_ARCH="i386"
13393 ppc)
13394 MACOSX_DEFAULT_ARCH="ppc"
13397 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13398 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13399 { (exit 1); exit 1; }; }
13401 esac
13402 else
13403 case `/usr/bin/arch` in
13404 i386)
13405 MACOSX_DEFAULT_ARCH="x86_64"
13407 ppc)
13408 MACOSX_DEFAULT_ARCH="ppc64"
13411 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13412 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13413 { (exit 1); exit 1; }; }
13415 esac
13417 #ARCH_RUN_32BIT="true"
13420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13422 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13423 esac
13425 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13427 if test "$enable_framework"
13428 then
13429 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13430 # -F. is needed to allow linking to the framework while
13431 # in the build location.
13433 cat >>confdefs.h <<\_ACEOF
13434 #define WITH_NEXT_FRAMEWORK 1
13435 _ACEOF
13437 { echo "$as_me:$LINENO: result: yes" >&5
13438 echo "${ECHO_T}yes" >&6; }
13439 if test $enable_shared = "yes"
13440 then
13441 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13442 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13443 { (exit 1); exit 1; }; }
13445 else
13446 { echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6; }
13450 { echo "$as_me:$LINENO: checking for dyld" >&5
13451 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13452 case $ac_sys_system/$ac_sys_release in
13453 Darwin/*)
13455 cat >>confdefs.h <<\_ACEOF
13456 #define WITH_DYLD 1
13457 _ACEOF
13459 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13460 echo "${ECHO_T}always on for Darwin" >&6; }
13463 { echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6; }
13466 esac
13468 # Set info about shared libraries.
13474 # SO is the extension of shared libraries `(including the dot!)
13475 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13476 { echo "$as_me:$LINENO: checking SO" >&5
13477 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13478 if test -z "$SO"
13479 then
13480 case $ac_sys_system in
13481 hp*|HP*)
13482 case `uname -m` in
13483 ia64) SO=.so;;
13484 *) SO=.sl;;
13485 esac
13487 CYGWIN*) SO=.dll;;
13488 *) SO=.so;;
13489 esac
13490 else
13491 # this might also be a termcap variable, see #610332
13492 echo
13493 echo '====================================================================='
13494 echo '+ +'
13495 echo '+ WARNING: You have set SO in your environment. +'
13496 echo '+ Do you really mean to change the extension for shared libraries? +'
13497 echo '+ Continuing in 10 seconds to let you to ponder. +'
13498 echo '+ +'
13499 echo '====================================================================='
13500 sleep 10
13502 { echo "$as_me:$LINENO: result: $SO" >&5
13503 echo "${ECHO_T}$SO" >&6; }
13506 cat >>confdefs.h <<_ACEOF
13507 #define SHLIB_EXT "$SO"
13508 _ACEOF
13510 # LDSHARED is the ld *command* used to create shared library
13511 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13512 # (Shared libraries in this instance are shared modules to be loaded into
13513 # Python, as opposed to building Python itself as a shared library.)
13514 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13515 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13516 if test -z "$LDSHARED"
13517 then
13518 case $ac_sys_system/$ac_sys_release in
13519 AIX*)
13520 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13521 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13523 IRIX/5*) LDSHARED="ld -shared";;
13524 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13525 SunOS/5*)
13526 if test "$GCC" = "yes"
13527 then LDSHARED='$(CC) -shared'
13528 else LDSHARED='$(CC) -G';
13529 fi ;;
13530 hp*|HP*)
13531 if test "$GCC" = "yes"
13532 then LDSHARED='$(CC) -shared'
13533 else LDSHARED='ld -b';
13534 fi ;;
13535 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13536 Darwin/1.3*)
13537 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13538 if test "$enable_framework" ; then
13539 # Link against the framework. All externals should be defined.
13540 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13541 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13542 else
13543 # No framework. Ignore undefined symbols, assuming they come from Python
13544 LDSHARED="$LDSHARED -undefined suppress"
13545 fi ;;
13546 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13547 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13548 if test "$enable_framework" ; then
13549 # Link against the framework. All externals should be defined.
13550 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13551 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13552 else
13553 # No framework, use the Python app as bundle-loader
13554 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13555 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13556 fi ;;
13557 Darwin/*)
13558 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13559 # This allows an extension to be used in any Python
13561 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13562 then
13563 if test "${enable_universalsdk}"; then
13564 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13566 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13567 BLDSHARED="$LDSHARED"
13568 else
13569 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13570 if test "$enable_framework" ; then
13571 # Link against the framework. All externals should be defined.
13572 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13573 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13574 else
13575 # No framework, use the Python app as bundle-loader
13576 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13577 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13581 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13582 BSD/OS*/4*) LDSHARED="gcc -shared";;
13583 FreeBSD*)
13584 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13585 then
13586 LDSHARED="$CC -shared ${LDFLAGS}"
13587 else
13588 LDSHARED="ld -Bshareable ${LDFLAGS}"
13589 fi;;
13590 OpenBSD*)
13591 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13592 then
13593 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13594 else
13595 case `uname -r` in
13596 [01].* | 2.[0-7] | 2.[0-7].*)
13597 LDSHARED="ld -Bshareable ${LDFLAGS}"
13600 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13602 esac
13603 fi;;
13604 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13605 OpenUNIX*|UnixWare*)
13606 if test "$GCC" = "yes"
13607 then LDSHARED='$(CC) -shared'
13608 else LDSHARED='$(CC) -G'
13609 fi;;
13610 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13611 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13612 atheos*) LDSHARED="gcc -shared";;
13613 *) LDSHARED="ld";;
13614 esac
13616 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13617 echo "${ECHO_T}$LDSHARED" >&6; }
13618 BLDSHARED=${BLDSHARED-$LDSHARED}
13619 # CCSHARED are the C *flags* used to create objects to go into a shared
13620 # library (module) -- this is only needed for a few systems
13621 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13622 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13623 if test -z "$CCSHARED"
13624 then
13625 case $ac_sys_system/$ac_sys_release in
13626 SunOS*) if test "$GCC" = yes;
13627 then CCSHARED="-fPIC";
13628 elif test `uname -p` = sparc;
13629 then CCSHARED="-xcode=pic32";
13630 else CCSHARED="-Kpic";
13631 fi;;
13632 hp*|HP*) if test "$GCC" = yes;
13633 then CCSHARED="-fPIC";
13634 else CCSHARED="+z";
13635 fi;;
13636 Linux*|GNU*) CCSHARED="-fPIC";;
13637 BSD/OS*/4*) CCSHARED="-fpic";;
13638 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13639 OpenUNIX*|UnixWare*)
13640 if test "$GCC" = "yes"
13641 then CCSHARED="-fPIC"
13642 else CCSHARED="-KPIC"
13643 fi;;
13644 SCO_SV*)
13645 if test "$GCC" = "yes"
13646 then CCSHARED="-fPIC"
13647 else CCSHARED="-Kpic -belf"
13648 fi;;
13649 IRIX*/6*) case $CC in
13650 *gcc*) CCSHARED="-shared";;
13651 *) CCSHARED="";;
13652 esac;;
13653 atheos*) CCSHARED="-fPIC";;
13654 esac
13656 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13657 echo "${ECHO_T}$CCSHARED" >&6; }
13658 # LINKFORSHARED are the flags passed to the $(CC) command that links
13659 # the python executable -- this is only needed for a few systems
13660 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13661 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13662 if test -z "$LINKFORSHARED"
13663 then
13664 case $ac_sys_system/$ac_sys_release in
13665 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13666 hp*|HP*)
13667 LINKFORSHARED="-Wl,-E -Wl,+s";;
13668 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13669 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13670 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13671 # -u libsys_s pulls in all symbols in libsys
13672 Darwin/*)
13673 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13674 if test "$enable_framework"
13675 then
13676 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13678 LINKFORSHARED="$LINKFORSHARED";;
13679 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13680 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13681 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13682 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13683 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13684 then
13685 LINKFORSHARED="-Wl,--export-dynamic"
13686 fi;;
13687 SunOS/5*) case $CC in
13688 *gcc*)
13689 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13690 then
13691 LINKFORSHARED="-Xlinker --export-dynamic"
13692 fi;;
13693 esac;;
13694 CYGWIN*)
13695 if test $enable_shared = "no"
13696 then
13697 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13698 fi;;
13699 QNX*)
13700 # -Wl,-E causes the symbols to be added to the dynamic
13701 # symbol table so that they can be found when a module
13702 # is loaded. -N 2048K causes the stack size to be set
13703 # to 2048 kilobytes so that the stack doesn't overflow
13704 # when running test_compile.py.
13705 LINKFORSHARED='-Wl,-E -N 2048K';;
13706 esac
13708 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13709 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13713 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13714 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13715 if test ! "$LIBRARY" = "$LDLIBRARY"
13716 then
13717 case $ac_sys_system in
13718 CYGWIN*)
13719 # Cygwin needs CCSHARED when building extension DLLs
13720 # but not when building the interpreter DLL.
13721 CFLAGSFORSHARED='';;
13723 CFLAGSFORSHARED='$(CCSHARED)'
13724 esac
13726 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13727 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13729 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13730 # library (with --enable-shared).
13731 # For platforms on which shared libraries are not allowed to have unresolved
13732 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13733 # if it is not required, since it creates a dependency of the shared library
13734 # to LIBS. This, in turn, means that applications linking the shared libpython
13735 # don't need to link LIBS explicitly. The default should be only changed
13736 # on systems where this approach causes problems.
13738 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13739 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13740 case "$ac_sys_system" in
13742 SHLIBS='$(LIBS)';;
13743 esac
13744 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13745 echo "${ECHO_T}$SHLIBS" >&6; }
13748 # checks for libraries
13750 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755 ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-ldl $LIBS"
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13764 /* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply. */
13767 #ifdef __cplusplus
13768 extern "C"
13769 #endif
13770 char dlopen ();
13772 main ()
13774 return dlopen ();
13776 return 0;
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_link") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && {
13793 test -z "$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 } && test -s conftest$ac_exeext &&
13796 $as_test_x conftest$ac_exeext; then
13797 ac_cv_lib_dl_dlopen=yes
13798 else
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_lib_dl_dlopen=no
13805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13806 conftest$ac_exeext conftest.$ac_ext
13807 LIBS=$ac_check_lib_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13811 if test $ac_cv_lib_dl_dlopen = yes; then
13812 cat >>confdefs.h <<_ACEOF
13813 #define HAVE_LIBDL 1
13814 _ACEOF
13816 LIBS="-ldl $LIBS"
13819 # Dynamic linking for SunOS/Solaris and SYSV
13821 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13822 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13823 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 ac_check_lib_save_LIBS=$LIBS
13827 LIBS="-ldld $LIBS"
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13835 /* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply. */
13838 #ifdef __cplusplus
13839 extern "C"
13840 #endif
13841 char shl_load ();
13843 main ()
13845 return shl_load ();
13847 return 0;
13849 _ACEOF
13850 rm -f conftest.$ac_objext conftest$ac_exeext
13851 if { (ac_try="$ac_link"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest$ac_exeext &&
13867 $as_test_x conftest$ac_exeext; then
13868 ac_cv_lib_dld_shl_load=yes
13869 else
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_lib_dld_shl_load=no
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877 conftest$ac_exeext conftest.$ac_ext
13878 LIBS=$ac_check_lib_save_LIBS
13880 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13881 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13882 if test $ac_cv_lib_dld_shl_load = yes; then
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_LIBDLD 1
13885 _ACEOF
13887 LIBS="-ldld $LIBS"
13890 # Dynamic linking for HP-UX
13892 # only check for sem_init if thread support is requested
13893 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13894 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13895 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13896 if test "${ac_cv_search_sem_init+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 ac_func_search_save_LIBS=$LIBS
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char sem_init ();
13915 main ()
13917 return sem_init ();
13919 return 0;
13921 _ACEOF
13922 for ac_lib in '' pthread rt posix4; do
13923 if test -z "$ac_lib"; then
13924 ac_res="none required"
13925 else
13926 ac_res=-l$ac_lib
13927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_search_sem_init=$ac_res
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext
13957 if test "${ac_cv_search_sem_init+set}" = set; then
13958 break
13960 done
13961 if test "${ac_cv_search_sem_init+set}" = set; then
13963 else
13964 ac_cv_search_sem_init=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13970 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13971 ac_res=$ac_cv_search_sem_init
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13976 # 'Real Time' functions on Solaris
13977 # posix4 on Solaris 2.6
13978 # pthread (first!) on Linux
13981 # check if we need libintl for locale functions
13982 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13983 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13984 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987 ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-lintl $LIBS"
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 char textdomain ();
14004 main ()
14006 return textdomain ();
14008 return 0;
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (ac_try="$ac_link"
14013 case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_link") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest$ac_exeext &&
14028 $as_test_x conftest$ac_exeext; then
14029 ac_cv_lib_intl_textdomain=yes
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_cv_lib_intl_textdomain=no
14037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14038 conftest$ac_exeext conftest.$ac_ext
14039 LIBS=$ac_check_lib_save_LIBS
14041 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14042 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14043 if test $ac_cv_lib_intl_textdomain = yes; then
14045 cat >>confdefs.h <<\_ACEOF
14046 #define WITH_LIBINTL 1
14047 _ACEOF
14049 LIBS="-lintl $LIBS"
14053 # checks for system dependent C++ extensions support
14054 case "$ac_sys_system" in
14055 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14056 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include "/usr/lpp/xlC/include/load.h"
14065 main ()
14067 loadAndInit("", 0, "")
14069 return 0;
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (ac_try="$ac_link"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_link") 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest$ac_exeext &&
14089 $as_test_x conftest$ac_exeext; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define AIX_GENUINE_CPLUSPLUS 1
14093 _ACEOF
14095 { echo "$as_me:$LINENO: result: yes" >&5
14096 echo "${ECHO_T}yes" >&6; }
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14106 conftest$ac_exeext conftest.$ac_ext;;
14107 *) ;;
14108 esac
14110 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14111 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14112 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14113 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lnsl $LIBS"
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 char t_open ();
14133 main ()
14135 return t_open ();
14137 return 0;
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (ac_try="$ac_link"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_link") 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest$ac_exeext &&
14157 $as_test_x conftest$ac_exeext; then
14158 ac_cv_lib_nsl_t_open=yes
14159 else
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_cv_lib_nsl_t_open=no
14166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14171 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14172 if test $ac_cv_lib_nsl_t_open = yes; then
14173 LIBS="-lnsl $LIBS"
14175 # SVR4
14176 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14177 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_socket_socket+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lsocket $LIBS $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char socket ();
14198 main ()
14200 return socket ();
14202 return 0;
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_socket_socket=yes
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_lib_socket_socket=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14236 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14237 if test $ac_cv_lib_socket_socket = yes; then
14238 LIBS="-lsocket $LIBS"
14240 # SVR4 sockets
14242 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14243 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14245 # Check whether --with-libs was given.
14246 if test "${with_libs+set}" = set; then
14247 withval=$with_libs;
14248 { echo "$as_me:$LINENO: result: $withval" >&5
14249 echo "${ECHO_T}$withval" >&6; }
14250 LIBS="$withval $LIBS"
14252 else
14253 { echo "$as_me:$LINENO: result: no" >&5
14254 echo "${ECHO_T}no" >&6; }
14258 # Check for use of the system libffi library
14259 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14260 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14262 # Check whether --with-system_ffi was given.
14263 if test "${with_system_ffi+set}" = set; then
14264 withval=$with_system_ffi;
14268 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14269 echo "${ECHO_T}$with_system_ffi" >&6; }
14271 # Check for --with-dbmliborder
14272 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14273 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14275 # Check whether --with-dbmliborder was given.
14276 if test "${with_dbmliborder+set}" = set; then
14277 withval=$with_dbmliborder;
14278 if test x$with_dbmliborder = xyes
14279 then
14280 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14281 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14282 { (exit 1); exit 1; }; }
14283 else
14284 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14285 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14286 then
14287 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14288 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14289 { (exit 1); exit 1; }; }
14291 done
14295 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14296 echo "${ECHO_T}$with_dbmliborder" >&6; }
14298 # Determine if signalmodule should be used.
14301 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14302 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14304 # Check whether --with-signal-module was given.
14305 if test "${with_signal_module+set}" = set; then
14306 withval=$with_signal_module;
14310 if test -z "$with_signal_module"
14311 then with_signal_module="yes"
14313 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14314 echo "${ECHO_T}$with_signal_module" >&6; }
14316 if test "${with_signal_module}" = "yes"; then
14317 USE_SIGNAL_MODULE=""
14318 SIGNAL_OBJS=""
14319 else
14320 USE_SIGNAL_MODULE="#"
14321 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14324 # This is used to generate Setup.config
14326 USE_THREAD_MODULE=""
14328 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14329 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14332 # Check whether --with-dec-threads was given.
14333 if test "${with_dec_threads+set}" = set; then
14334 withval=$with_dec_threads;
14335 { echo "$as_me:$LINENO: result: $withval" >&5
14336 echo "${ECHO_T}$withval" >&6; }
14337 LDLAST=-threads
14338 if test "${with_thread+set}" != set; then
14339 with_thread="$withval";
14341 else
14342 { echo "$as_me:$LINENO: result: no" >&5
14343 echo "${ECHO_T}no" >&6; }
14347 # Templates for things AC_DEFINEd more than once.
14348 # For a single AC_DEFINE, no template is needed.
14356 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14357 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14359 # Check whether --with-threads was given.
14360 if test "${with_threads+set}" = set; then
14361 withval=$with_threads;
14365 # --with-thread is deprecated, but check for it anyway
14367 # Check whether --with-thread was given.
14368 if test "${with_thread+set}" = set; then
14369 withval=$with_thread; with_threads=$with_thread
14373 if test -z "$with_threads"
14374 then with_threads="yes"
14376 { echo "$as_me:$LINENO: result: $with_threads" >&5
14377 echo "${ECHO_T}$with_threads" >&6; }
14380 if test "$with_threads" = "no"
14381 then
14382 USE_THREAD_MODULE="#"
14383 elif test "$ac_cv_pthread_is_default" = yes
14384 then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define WITH_THREAD 1
14387 _ACEOF
14389 # Defining _REENTRANT on system with POSIX threads should not hurt.
14390 cat >>confdefs.h <<\_ACEOF
14391 #define _REENTRANT 1
14392 _ACEOF
14394 posix_threads=yes
14395 THREADOBJ="Python/thread.o"
14396 elif test "$ac_cv_kpthread" = "yes"
14397 then
14398 CC="$CC -Kpthread"
14399 if test "$ac_cv_cxx_thread" = "yes"; then
14400 CXX="$CXX -Kpthread"
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WITH_THREAD 1
14404 _ACEOF
14406 posix_threads=yes
14407 THREADOBJ="Python/thread.o"
14408 elif test "$ac_cv_kthread" = "yes"
14409 then
14410 CC="$CC -Kthread"
14411 if test "$ac_cv_cxx_thread" = "yes"; then
14412 CXX="$CXX -Kthread"
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14416 _ACEOF
14418 posix_threads=yes
14419 THREADOBJ="Python/thread.o"
14420 elif test "$ac_cv_pthread" = "yes"
14421 then
14422 CC="$CC -pthread"
14423 if test "$ac_cv_cxx_thread" = "yes"; then
14424 CXX="$CXX -pthread"
14426 cat >>confdefs.h <<\_ACEOF
14427 #define WITH_THREAD 1
14428 _ACEOF
14430 posix_threads=yes
14431 THREADOBJ="Python/thread.o"
14432 else
14433 if test ! -z "$with_threads" -a -d "$with_threads"
14434 then LDFLAGS="$LDFLAGS -L$with_threads"
14436 if test ! -z "$withval" -a -d "$withval"
14437 then LDFLAGS="$LDFLAGS -L$withval"
14440 # According to the POSIX spec, a pthreads implementation must
14441 # define _POSIX_THREADS in unistd.h. Some apparently don't
14442 # (e.g. gnu pth with pthread emulation)
14443 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14444 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14452 #include <unistd.h>
14453 #ifdef _POSIX_THREADS
14455 #endif
14457 _ACEOF
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459 $EGREP "yes" >/dev/null 2>&1; then
14460 unistd_defines_pthreads=yes
14461 else
14462 unistd_defines_pthreads=no
14464 rm -f conftest*
14466 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14467 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14469 cat >>confdefs.h <<\_ACEOF
14470 #define _REENTRANT 1
14471 _ACEOF
14473 if test "${ac_cv_header_cthreads_h+set}" = set; then
14474 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14475 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_cthreads_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14480 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14481 else
14482 # Is the header compilable?
14483 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14484 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 $ac_includes_default
14492 #include <cthreads.h>
14493 _ACEOF
14494 rm -f conftest.$ac_objext
14495 if { (ac_try="$ac_compile"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_compile") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest.$ac_objext; then
14511 ac_header_compiler=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_header_compiler=no
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6; }
14523 # Is the header present?
14524 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14525 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <cthreads.h>
14533 _ACEOF
14534 if { (ac_try="$ac_cpp conftest.$ac_ext"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } >/dev/null && {
14547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 }; then
14550 ac_header_preproc=yes
14551 else
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_preproc=no
14558 rm -f conftest.err conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6; }
14562 # So? What about this header?
14563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14564 yes:no: )
14565 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14568 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14569 ac_header_preproc=yes
14571 no:yes:* )
14572 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14577 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14579 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14581 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14583 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14584 ( cat <<\_ASBOX
14585 ## -------------------------------------- ##
14586 ## Report this to http://bugs.python.org/ ##
14587 ## -------------------------------------- ##
14588 _ASBOX
14589 ) | sed "s/^/$as_me: WARNING: /" >&2
14591 esac
14592 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14593 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_cthreads_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597 ac_cv_header_cthreads_h=$ac_header_preproc
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14603 if test $ac_cv_header_cthreads_h = yes; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define WITH_THREAD 1
14606 _ACEOF
14608 cat >>confdefs.h <<\_ACEOF
14609 #define C_THREADS 1
14610 _ACEOF
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HURD_C_THREADS 1
14615 _ACEOF
14617 LIBS="$LIBS -lthreads"
14618 THREADOBJ="Python/thread.o"
14619 else
14621 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14622 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14623 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14624 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14628 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14629 else
14630 # Is the header compilable?
14631 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14632 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14640 #include <mach/cthreads.h>
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
14659 ac_header_compiler=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 ac_header_compiler=no
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14669 echo "${ECHO_T}$ac_header_compiler" >&6; }
14671 # Is the header present?
14672 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14673 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #include <mach/cthreads.h>
14681 _ACEOF
14682 if { (ac_try="$ac_cpp conftest.$ac_ext"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } >/dev/null && {
14695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 }; then
14698 ac_header_preproc=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_preproc=no
14706 rm -f conftest.err conftest.$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14708 echo "${ECHO_T}$ac_header_preproc" >&6; }
14710 # So? What about this header?
14711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14712 yes:no: )
14713 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14714 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14716 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14717 ac_header_preproc=yes
14719 no:yes:* )
14720 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14721 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14723 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14725 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14727 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14731 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14732 ( cat <<\_ASBOX
14733 ## -------------------------------------- ##
14734 ## Report this to http://bugs.python.org/ ##
14735 ## -------------------------------------- ##
14736 _ASBOX
14737 ) | sed "s/^/$as_me: WARNING: /" >&2
14739 esac
14740 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14741 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14742 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14747 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14751 if test $ac_cv_header_mach_cthreads_h = yes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define WITH_THREAD 1
14754 _ACEOF
14756 cat >>confdefs.h <<\_ACEOF
14757 #define C_THREADS 1
14758 _ACEOF
14761 cat >>confdefs.h <<\_ACEOF
14762 #define MACH_C_THREADS 1
14763 _ACEOF
14765 THREADOBJ="Python/thread.o"
14766 else
14768 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14769 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14771 # Check whether --with-pth was given.
14772 if test "${with_pth+set}" = set; then
14773 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14774 echo "${ECHO_T}$withval" >&6; }
14775 cat >>confdefs.h <<\_ACEOF
14776 #define WITH_THREAD 1
14777 _ACEOF
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_PTH 1
14782 _ACEOF
14784 LIBS="-lpth $LIBS"
14785 THREADOBJ="Python/thread.o"
14786 else
14787 { echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6; }
14790 # Just looking for pthread_create in libpthread is not enough:
14791 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14792 # So we really have to include pthread.h, and then link.
14793 _libs=$LIBS
14794 LIBS="$LIBS -lpthread"
14795 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14796 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <pthread.h>
14805 void * start_routine (void *arg) { exit (0); }
14807 main ()
14810 pthread_create (NULL, NULL, start_routine, NULL)
14812 return 0;
14814 _ACEOF
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_link") 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext &&
14832 $as_test_x conftest$ac_exeext; then
14834 { echo "$as_me:$LINENO: result: yes" >&5
14835 echo "${ECHO_T}yes" >&6; }
14836 cat >>confdefs.h <<\_ACEOF
14837 #define WITH_THREAD 1
14838 _ACEOF
14840 posix_threads=yes
14841 THREADOBJ="Python/thread.o"
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14847 LIBS=$_libs
14848 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14849 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14850 if test "${ac_cv_func_pthread_detach+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14861 #define pthread_detach innocuous_pthread_detach
14863 /* System header to define __stub macros and hopefully few prototypes,
14864 which can conflict with char pthread_detach (); below.
14865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14866 <limits.h> exists even on freestanding compilers. */
14868 #ifdef __STDC__
14869 # include <limits.h>
14870 #else
14871 # include <assert.h>
14872 #endif
14874 #undef pthread_detach
14876 /* Override any GCC internal prototype to avoid an error.
14877 Use char because int might match the return type of a GCC
14878 builtin and then its argument prototype would still apply. */
14879 #ifdef __cplusplus
14880 extern "C"
14881 #endif
14882 char pthread_detach ();
14883 /* The GNU C library defines this for functions which it implements
14884 to always fail with ENOSYS. Some functions are actually named
14885 something starting with __ and the normal name is an alias. */
14886 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14887 choke me
14888 #endif
14891 main ()
14893 return pthread_detach ();
14895 return 0;
14897 _ACEOF
14898 rm -f conftest.$ac_objext conftest$ac_exeext
14899 if { (ac_try="$ac_link"
14900 case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_link") 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } && {
14912 test -z "$ac_c_werror_flag" ||
14913 test ! -s conftest.err
14914 } && test -s conftest$ac_exeext &&
14915 $as_test_x conftest$ac_exeext; then
14916 ac_cv_func_pthread_detach=yes
14917 else
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_func_pthread_detach=no
14924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14925 conftest$ac_exeext conftest.$ac_ext
14927 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14928 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14929 if test $ac_cv_func_pthread_detach = yes; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define WITH_THREAD 1
14932 _ACEOF
14934 posix_threads=yes
14935 THREADOBJ="Python/thread.o"
14936 else
14938 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14939 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14940 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14941 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14945 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14946 else
14947 # Is the header compilable?
14948 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14949 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 $ac_includes_default
14957 #include <atheos/threads.h>
14958 _ACEOF
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.$ac_objext; then
14976 ac_header_compiler=yes
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_header_compiler=no
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986 echo "${ECHO_T}$ac_header_compiler" >&6; }
14988 # Is the header present?
14989 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14990 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <atheos/threads.h>
14998 _ACEOF
14999 if { (ac_try="$ac_cpp conftest.$ac_ext"
15000 case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15006 ac_status=$?
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } >/dev/null && {
15012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15013 test ! -s conftest.err
15014 }; then
15015 ac_header_preproc=yes
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 ac_header_preproc=no
15023 rm -f conftest.err conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15025 echo "${ECHO_T}$ac_header_preproc" >&6; }
15027 # So? What about this header?
15028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15029 yes:no: )
15030 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15031 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15033 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15034 ac_header_preproc=yes
15036 no:yes:* )
15037 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15038 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15040 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15042 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15044 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15046 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15048 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15049 ( cat <<\_ASBOX
15050 ## -------------------------------------- ##
15051 ## Report this to http://bugs.python.org/ ##
15052 ## -------------------------------------- ##
15053 _ASBOX
15054 ) | sed "s/^/$as_me: WARNING: /" >&2
15056 esac
15057 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15058 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15059 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062 ac_cv_header_atheos_threads_h=$ac_header_preproc
15064 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15065 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15068 if test $ac_cv_header_atheos_threads_h = yes; then
15069 cat >>confdefs.h <<\_ACEOF
15070 #define WITH_THREAD 1
15071 _ACEOF
15074 cat >>confdefs.h <<\_ACEOF
15075 #define ATHEOS_THREADS 1
15076 _ACEOF
15078 THREADOBJ="Python/thread.o"
15079 else
15081 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15082 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15083 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lpthreads $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char pthread_create ();
15103 main ()
15105 return pthread_create ();
15107 return 0;
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext &&
15127 $as_test_x conftest$ac_exeext; then
15128 ac_cv_lib_pthreads_pthread_create=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_lib_pthreads_pthread_create=no
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15141 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15142 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define WITH_THREAD 1
15145 _ACEOF
15147 posix_threads=yes
15148 LIBS="$LIBS -lpthreads"
15149 THREADOBJ="Python/thread.o"
15150 else
15152 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15153 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15154 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 ac_check_lib_save_LIBS=$LIBS
15158 LIBS="-lc_r $LIBS"
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15169 #ifdef __cplusplus
15170 extern "C"
15171 #endif
15172 char pthread_create ();
15174 main ()
15176 return pthread_create ();
15178 return 0;
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (ac_try="$ac_link"
15183 case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15186 esac
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_link") 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest$ac_exeext &&
15198 $as_test_x conftest$ac_exeext; then
15199 ac_cv_lib_c_r_pthread_create=yes
15200 else
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_lib_c_r_pthread_create=no
15207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15208 conftest$ac_exeext conftest.$ac_ext
15209 LIBS=$ac_check_lib_save_LIBS
15211 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15212 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15213 if test $ac_cv_lib_c_r_pthread_create = yes; then
15214 cat >>confdefs.h <<\_ACEOF
15215 #define WITH_THREAD 1
15216 _ACEOF
15218 posix_threads=yes
15219 LIBS="$LIBS -lc_r"
15220 THREADOBJ="Python/thread.o"
15221 else
15223 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15224 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15225 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 ac_check_lib_save_LIBS=$LIBS
15229 LIBS="-lpthread $LIBS"
15230 cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h. */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15237 /* Override any GCC internal prototype to avoid an error.
15238 Use char because int might match the return type of a GCC
15239 builtin and then its argument prototype would still apply. */
15240 #ifdef __cplusplus
15241 extern "C"
15242 #endif
15243 char __pthread_create_system ();
15245 main ()
15247 return __pthread_create_system ();
15249 return 0;
15251 _ACEOF
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_link") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest$ac_exeext &&
15269 $as_test_x conftest$ac_exeext; then
15270 ac_cv_lib_pthread___pthread_create_system=yes
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_lib_pthread___pthread_create_system=no
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15283 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15284 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15285 cat >>confdefs.h <<\_ACEOF
15286 #define WITH_THREAD 1
15287 _ACEOF
15289 posix_threads=yes
15290 LIBS="$LIBS -lpthread"
15291 THREADOBJ="Python/thread.o"
15292 else
15294 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15295 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15296 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-lcma $LIBS"
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15308 /* Override any GCC internal prototype to avoid an error.
15309 Use char because int might match the return type of a GCC
15310 builtin and then its argument prototype would still apply. */
15311 #ifdef __cplusplus
15312 extern "C"
15313 #endif
15314 char pthread_create ();
15316 main ()
15318 return pthread_create ();
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (ac_try="$ac_link"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest$ac_exeext &&
15340 $as_test_x conftest$ac_exeext; then
15341 ac_cv_lib_cma_pthread_create=yes
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_lib_cma_pthread_create=no
15349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15353 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15354 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15355 if test $ac_cv_lib_cma_pthread_create = yes; then
15356 cat >>confdefs.h <<\_ACEOF
15357 #define WITH_THREAD 1
15358 _ACEOF
15360 posix_threads=yes
15361 LIBS="$LIBS -lcma"
15362 THREADOBJ="Python/thread.o"
15363 else
15365 USE_THREAD_MODULE="#"
15382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15383 conftest$ac_exeext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15394 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15395 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_check_lib_save_LIBS=$LIBS
15399 LIBS="-lmpc $LIBS"
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15410 #ifdef __cplusplus
15411 extern "C"
15412 #endif
15413 char usconfig ();
15415 main ()
15417 return usconfig ();
15419 return 0;
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (ac_try="$ac_link"
15424 case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_link") 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && {
15436 test -z "$ac_c_werror_flag" ||
15437 test ! -s conftest.err
15438 } && test -s conftest$ac_exeext &&
15439 $as_test_x conftest$ac_exeext; then
15440 ac_cv_lib_mpc_usconfig=yes
15441 else
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_cv_lib_mpc_usconfig=no
15448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15449 conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15452 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15453 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15454 if test $ac_cv_lib_mpc_usconfig = yes; then
15455 cat >>confdefs.h <<\_ACEOF
15456 #define WITH_THREAD 1
15457 _ACEOF
15459 LIBS="$LIBS -lmpc"
15460 THREADOBJ="Python/thread.o"
15461 USE_THREAD_MODULE=""
15465 if test "$posix_threads" != "yes"; then
15466 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15467 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15468 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471 ac_check_lib_save_LIBS=$LIBS
15472 LIBS="-lthread $LIBS"
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15480 /* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply. */
15483 #ifdef __cplusplus
15484 extern "C"
15485 #endif
15486 char thr_create ();
15488 main ()
15490 return thr_create ();
15492 return 0;
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>conftest.er1
15503 ac_status=$?
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && {
15509 test -z "$ac_c_werror_flag" ||
15510 test ! -s conftest.err
15511 } && test -s conftest$ac_exeext &&
15512 $as_test_x conftest$ac_exeext; then
15513 ac_cv_lib_thread_thr_create=yes
15514 else
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_thread_thr_create=no
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15525 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15526 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15527 if test $ac_cv_lib_thread_thr_create = yes; then
15528 cat >>confdefs.h <<\_ACEOF
15529 #define WITH_THREAD 1
15530 _ACEOF
15532 LIBS="$LIBS -lthread"
15533 THREADOBJ="Python/thread.o"
15534 USE_THREAD_MODULE=""
15539 if test "$USE_THREAD_MODULE" != "#"
15540 then
15541 # If the above checks didn't disable threads, (at least) OSF1
15542 # needs this '-threads' argument during linking.
15543 case $ac_sys_system in
15544 OSF1) LDLAST=-threads;;
15545 esac
15549 if test "$posix_threads" = "yes"; then
15550 if test "$unistd_defines_pthreads" = "no"; then
15552 cat >>confdefs.h <<\_ACEOF
15553 #define _POSIX_THREADS 1
15554 _ACEOF
15558 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15559 case $ac_sys_system/$ac_sys_release in
15560 SunOS/5.6)
15561 cat >>confdefs.h <<\_ACEOF
15562 #define HAVE_PTHREAD_DESTRUCTOR 1
15563 _ACEOF
15566 SunOS/5.8)
15567 cat >>confdefs.h <<\_ACEOF
15568 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15569 _ACEOF
15572 AIX/5)
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15575 _ACEOF
15578 esac
15580 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15581 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15582 if test "${ac_cv_pthread_system_supported+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585 if test "$cross_compiling" = yes; then
15586 ac_cv_pthread_system_supported=no
15587 else
15588 cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h. */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 #include <pthread.h>
15595 void *foo(void *parm) {
15596 return NULL;
15598 main() {
15599 pthread_attr_t attr;
15600 pthread_t id;
15601 if (pthread_attr_init(&attr)) exit(-1);
15602 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15603 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15604 exit(0);
15606 _ACEOF
15607 rm -f conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_link") 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15618 { (case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_cv_pthread_system_supported=yes
15628 else
15629 echo "$as_me: program exited with status $ac_status" >&5
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ( exit $ac_status )
15634 ac_cv_pthread_system_supported=no
15636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15643 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15644 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15645 if test "$ac_cv_pthread_system_supported" = "yes"; then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15649 _ACEOF
15653 for ac_func in pthread_sigmask
15655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h. */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15669 #define $ac_func innocuous_$ac_func
15671 /* System header to define __stub macros and hopefully few prototypes,
15672 which can conflict with char $ac_func (); below.
15673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15674 <limits.h> exists even on freestanding compilers. */
15676 #ifdef __STDC__
15677 # include <limits.h>
15678 #else
15679 # include <assert.h>
15680 #endif
15682 #undef $ac_func
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15687 #ifdef __cplusplus
15688 extern "C"
15689 #endif
15690 char $ac_func ();
15691 /* The GNU C library defines this for functions which it implements
15692 to always fail with ENOSYS. Some functions are actually named
15693 something starting with __ and the normal name is an alias. */
15694 #if defined __stub_$ac_func || defined __stub___$ac_func
15695 choke me
15696 #endif
15699 main ()
15701 return $ac_func ();
15703 return 0;
15705 _ACEOF
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (ac_try="$ac_link"
15708 case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15711 esac
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_link") 2>conftest.er1
15714 ac_status=$?
15715 grep -v '^ *+' conftest.er1 >conftest.err
15716 rm -f conftest.er1
15717 cat conftest.err >&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest$ac_exeext &&
15723 $as_test_x conftest$ac_exeext; then
15724 eval "$as_ac_var=yes"
15725 else
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 eval "$as_ac_var=no"
15732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15733 conftest$ac_exeext conftest.$ac_ext
15735 ac_res=`eval echo '${'$as_ac_var'}'`
15736 { echo "$as_me:$LINENO: result: $ac_res" >&5
15737 echo "${ECHO_T}$ac_res" >&6; }
15738 if test `eval echo '${'$as_ac_var'}'` = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15741 _ACEOF
15742 case $ac_sys_system in
15743 CYGWIN*)
15745 cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15747 _ACEOF
15750 esac
15752 done
15757 # Check for enable-ipv6
15760 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15761 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15762 # Check whether --enable-ipv6 was given.
15763 if test "${enable_ipv6+set}" = set; then
15764 enableval=$enable_ipv6; case "$enableval" in
15766 { echo "$as_me:$LINENO: result: no" >&5
15767 echo "${ECHO_T}no" >&6; }
15768 ipv6=no
15770 *) { echo "$as_me:$LINENO: result: yes" >&5
15771 echo "${ECHO_T}yes" >&6; }
15772 cat >>confdefs.h <<\_ACEOF
15773 #define ENABLE_IPV6 1
15774 _ACEOF
15776 ipv6=yes
15778 esac
15779 else
15781 if test "$cross_compiling" = yes; then
15782 { echo "$as_me:$LINENO: result: no" >&5
15783 echo "${ECHO_T}no" >&6; }
15784 ipv6=no
15786 else
15787 cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 /* AF_INET6 available check */
15794 #include <sys/types.h>
15795 #include <sys/socket.h>
15796 main()
15798 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15799 exit(1);
15800 else
15801 exit(0);
15804 _ACEOF
15805 rm -f conftest$ac_exeext
15806 if { (ac_try="$ac_link"
15807 case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_link") 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 { echo "$as_me:$LINENO: result: yes" >&5
15826 echo "${ECHO_T}yes" >&6; }
15827 ipv6=yes
15828 else
15829 echo "$as_me: program exited with status $ac_status" >&5
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ( exit $ac_status )
15834 { echo "$as_me:$LINENO: result: no" >&5
15835 echo "${ECHO_T}no" >&6; }
15836 ipv6=no
15838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15843 if test "$ipv6" = "yes"; then
15844 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15845 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15846 cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h. */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <sys/types.h>
15853 #include <netinet/in.h>
15855 main ()
15857 struct sockaddr_in6 x;
15858 x.sin6_scope_id;
15860 return 0;
15862 _ACEOF
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_compile") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest.$ac_objext; then
15880 { echo "$as_me:$LINENO: result: yes" >&5
15881 echo "${ECHO_T}yes" >&6; }
15882 ipv6=yes
15883 else
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 { echo "$as_me:$LINENO: result: no" >&5
15888 echo "${ECHO_T}no" >&6; }
15889 ipv6=no
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 if test "$ipv6" = "yes"; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define ENABLE_IPV6 1
15898 _ACEOF
15905 ipv6type=unknown
15906 ipv6lib=none
15907 ipv6trylibc=no
15909 if test "$ipv6" = "yes"; then
15910 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15911 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15912 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15914 case $i in
15915 inria)
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15923 #include <netinet/in.h>
15924 #ifdef IPV6_INRIA_VERSION
15926 #endif
15927 _ACEOF
15928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15929 $EGREP "yes" >/dev/null 2>&1; then
15930 ipv6type=$i
15932 rm -f conftest*
15935 kame)
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15943 #include <netinet/in.h>
15944 #ifdef __KAME__
15946 #endif
15947 _ACEOF
15948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15949 $EGREP "yes" >/dev/null 2>&1; then
15950 ipv6type=$i;
15951 ipv6lib=inet6
15952 ipv6libdir=/usr/local/v6/lib
15953 ipv6trylibc=yes
15955 rm -f conftest*
15958 linux-glibc)
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 #include <features.h>
15967 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15969 #endif
15970 _ACEOF
15971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972 $EGREP "yes" >/dev/null 2>&1; then
15973 ipv6type=$i;
15974 ipv6trylibc=yes
15976 rm -f conftest*
15979 linux-inet6)
15980 if test -d /usr/inet6; then
15981 ipv6type=$i
15982 ipv6lib=inet6
15983 ipv6libdir=/usr/inet6/lib
15984 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15987 solaris)
15988 if test -f /etc/netconfig; then
15989 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15990 ipv6type=$i
15991 ipv6trylibc=yes
15995 toshiba)
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h. */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16003 #include <sys/param.h>
16004 #ifdef _TOSHIBA_INET6
16006 #endif
16007 _ACEOF
16008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16009 $EGREP "yes" >/dev/null 2>&1; then
16010 ipv6type=$i;
16011 ipv6lib=inet6;
16012 ipv6libdir=/usr/local/v6/lib
16014 rm -f conftest*
16017 v6d)
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h. */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16025 #include </usr/local/v6/include/sys/v6config.h>
16026 #ifdef __V6D__
16028 #endif
16029 _ACEOF
16030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16031 $EGREP "yes" >/dev/null 2>&1; then
16032 ipv6type=$i;
16033 ipv6lib=v6;
16034 ipv6libdir=/usr/local/v6/lib;
16035 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16037 rm -f conftest*
16040 zeta)
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16048 #include <sys/param.h>
16049 #ifdef _ZETA_MINAMI_INET6
16051 #endif
16052 _ACEOF
16053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16054 $EGREP "yes" >/dev/null 2>&1; then
16055 ipv6type=$i;
16056 ipv6lib=inet6;
16057 ipv6libdir=/usr/local/v6/lib
16059 rm -f conftest*
16062 esac
16063 if test "$ipv6type" != "unknown"; then
16064 break
16066 done
16067 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16068 echo "${ECHO_T}$ipv6type" >&6; }
16071 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16072 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16073 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16074 echo "using lib$ipv6lib"
16075 else
16076 if test $ipv6trylibc = "yes"; then
16077 echo "using libc"
16078 else
16079 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16080 echo "You need to fetch lib$ipv6lib.a from appropriate"
16081 echo 'ipv6 kit and compile beforehand.'
16082 exit 1
16087 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16088 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <Carbon/Carbon.h>
16097 main ()
16099 FSIORefNum fRef = 0
16101 return 0;
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest.$ac_objext; then
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_OSX105_SDK 1
16124 _ACEOF
16126 { echo "$as_me:$LINENO: result: yes" >&5
16127 echo "${ECHO_T}yes" >&6; }
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139 # Check for --with-doc-strings
16140 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16141 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16143 # Check whether --with-doc-strings was given.
16144 if test "${with_doc_strings+set}" = set; then
16145 withval=$with_doc_strings;
16149 if test -z "$with_doc_strings"
16150 then with_doc_strings="yes"
16152 if test "$with_doc_strings" != "no"
16153 then
16155 cat >>confdefs.h <<\_ACEOF
16156 #define WITH_DOC_STRINGS 1
16157 _ACEOF
16160 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16161 echo "${ECHO_T}$with_doc_strings" >&6; }
16163 # Check for Python-specific malloc support
16164 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16165 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16167 # Check whether --with-tsc was given.
16168 if test "${with_tsc+set}" = set; then
16169 withval=$with_tsc;
16170 if test "$withval" != no
16171 then
16173 cat >>confdefs.h <<\_ACEOF
16174 #define WITH_TSC 1
16175 _ACEOF
16177 { echo "$as_me:$LINENO: result: yes" >&5
16178 echo "${ECHO_T}yes" >&6; }
16179 else { echo "$as_me:$LINENO: result: no" >&5
16180 echo "${ECHO_T}no" >&6; }
16182 else
16183 { echo "$as_me:$LINENO: result: no" >&5
16184 echo "${ECHO_T}no" >&6; }
16188 # Check for Python-specific malloc support
16189 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16190 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16192 # Check whether --with-pymalloc was given.
16193 if test "${with_pymalloc+set}" = set; then
16194 withval=$with_pymalloc;
16198 if test -z "$with_pymalloc"
16199 then with_pymalloc="yes"
16201 if test "$with_pymalloc" != "no"
16202 then
16204 cat >>confdefs.h <<\_ACEOF
16205 #define WITH_PYMALLOC 1
16206 _ACEOF
16209 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16210 echo "${ECHO_T}$with_pymalloc" >&6; }
16212 # Check for --with-wctype-functions
16213 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16214 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16216 # Check whether --with-wctype-functions was given.
16217 if test "${with_wctype_functions+set}" = set; then
16218 withval=$with_wctype_functions;
16219 if test "$withval" != no
16220 then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define WANT_WCTYPE_FUNCTIONS 1
16224 _ACEOF
16226 { echo "$as_me:$LINENO: result: yes" >&5
16227 echo "${ECHO_T}yes" >&6; }
16228 else { echo "$as_me:$LINENO: result: no" >&5
16229 echo "${ECHO_T}no" >&6; }
16231 else
16232 { echo "$as_me:$LINENO: result: no" >&5
16233 echo "${ECHO_T}no" >&6; }
16237 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16239 DLINCLDIR=.
16241 # the dlopen() function means we might want to use dynload_shlib.o. some
16242 # platforms, such as AIX, have dlopen(), but don't want to use it.
16244 for ac_func in dlopen
16246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16260 #define $ac_func innocuous_$ac_func
16262 /* System header to define __stub macros and hopefully few prototypes,
16263 which can conflict with char $ac_func (); below.
16264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16265 <limits.h> exists even on freestanding compilers. */
16267 #ifdef __STDC__
16268 # include <limits.h>
16269 #else
16270 # include <assert.h>
16271 #endif
16273 #undef $ac_func
16275 /* Override any GCC internal prototype to avoid an error.
16276 Use char because int might match the return type of a GCC
16277 builtin and then its argument prototype would still apply. */
16278 #ifdef __cplusplus
16279 extern "C"
16280 #endif
16281 char $ac_func ();
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined __stub_$ac_func || defined __stub___$ac_func
16286 choke me
16287 #endif
16290 main ()
16292 return $ac_func ();
16294 return 0;
16296 _ACEOF
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (ac_try="$ac_link"
16299 case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_link") 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest$ac_exeext &&
16314 $as_test_x conftest$ac_exeext; then
16315 eval "$as_ac_var=yes"
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 eval "$as_ac_var=no"
16323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16324 conftest$ac_exeext conftest.$ac_ext
16326 ac_res=`eval echo '${'$as_ac_var'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16329 if test `eval echo '${'$as_ac_var'}'` = yes; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16332 _ACEOF
16335 done
16338 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16339 # loading of modules.
16341 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16342 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16343 if test -z "$DYNLOADFILE"
16344 then
16345 case $ac_sys_system/$ac_sys_release in
16346 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16347 if test "$ac_cv_func_dlopen" = yes
16348 then DYNLOADFILE="dynload_shlib.o"
16349 else DYNLOADFILE="dynload_aix.o"
16352 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16353 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16354 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16355 atheos*) DYNLOADFILE="dynload_atheos.o";;
16357 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16358 # out any dynamic loading
16359 if test "$ac_cv_func_dlopen" = yes
16360 then DYNLOADFILE="dynload_shlib.o"
16361 else DYNLOADFILE="dynload_stub.o"
16364 esac
16366 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16367 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16368 if test "$DYNLOADFILE" != "dynload_stub.o"
16369 then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_DYNAMIC_LOADING 1
16373 _ACEOF
16377 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16380 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16381 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16382 if test -z "$MACHDEP_OBJS"
16383 then
16384 MACHDEP_OBJS=$extra_machdep_objs
16385 else
16386 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16388 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16389 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16391 # checks for library functions
16481 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16482 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16483 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16484 getpriority getpwent getspnam getspent getsid getwd \
16485 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16486 mremap nice pathconf pause plock poll pthread_init \
16487 putenv readlink realpath \
16488 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16489 setgid \
16490 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16491 sigaction siginterrupt sigrelse strftime strlcpy \
16492 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16493 truncate uname unsetenv utimes waitpid wait3 wait4 \
16494 wcscoll wcsftime wcsxfrm _getpty
16496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16517 #ifdef __STDC__
16518 # include <limits.h>
16519 #else
16520 # include <assert.h>
16521 #endif
16523 #undef $ac_func
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16528 #ifdef __cplusplus
16529 extern "C"
16530 #endif
16531 char $ac_func ();
16532 /* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535 #if defined __stub_$ac_func || defined __stub___$ac_func
16536 choke me
16537 #endif
16540 main ()
16542 return $ac_func ();
16544 return 0;
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_link") 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && {
16561 test -z "$ac_c_werror_flag" ||
16562 test ! -s conftest.err
16563 } && test -s conftest$ac_exeext &&
16564 $as_test_x conftest$ac_exeext; then
16565 eval "$as_ac_var=yes"
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 eval "$as_ac_var=no"
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574 conftest$ac_exeext conftest.$ac_ext
16576 ac_res=`eval echo '${'$as_ac_var'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16579 if test `eval echo '${'$as_ac_var'}'` = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16582 _ACEOF
16585 done
16588 # For some functions, having a definition is not sufficient, since
16589 # we want to take their address.
16590 { echo "$as_me:$LINENO: checking for chroot" >&5
16591 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <unistd.h>
16600 main ()
16602 void *x=chroot
16604 return 0;
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (ac_try="$ac_compile"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest.$ac_objext; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_CHROOT 1
16627 _ACEOF
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6; }
16631 else
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 { echo "$as_me:$LINENO: checking for link" >&5
16642 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 #include <unistd.h>
16651 main ()
16653 void *x=link
16655 return 0;
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_compile") 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && {
16672 test -z "$ac_c_werror_flag" ||
16673 test ! -s conftest.err
16674 } && test -s conftest.$ac_objext; then
16676 cat >>confdefs.h <<\_ACEOF
16677 #define HAVE_LINK 1
16678 _ACEOF
16680 { echo "$as_me:$LINENO: result: yes" >&5
16681 echo "${ECHO_T}yes" >&6; }
16682 else
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 { echo "$as_me:$LINENO: result: no" >&5
16687 echo "${ECHO_T}no" >&6; }
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 { echo "$as_me:$LINENO: checking for symlink" >&5
16693 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 #include <unistd.h>
16702 main ()
16704 void *x=symlink
16706 return 0;
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (ac_try="$ac_compile"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.$ac_objext; then
16727 cat >>confdefs.h <<\_ACEOF
16728 #define HAVE_SYMLINK 1
16729 _ACEOF
16731 { echo "$as_me:$LINENO: result: yes" >&5
16732 echo "${ECHO_T}yes" >&6; }
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 { echo "$as_me:$LINENO: checking for fchdir" >&5
16744 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h. */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <unistd.h>
16753 main ()
16755 void *x=fchdir
16757 return 0;
16759 _ACEOF
16760 rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_compile") 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest.$ac_objext; then
16778 cat >>confdefs.h <<\_ACEOF
16779 #define HAVE_FCHDIR 1
16780 _ACEOF
16782 { echo "$as_me:$LINENO: result: yes" >&5
16783 echo "${ECHO_T}yes" >&6; }
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 { echo "$as_me:$LINENO: result: no" >&5
16789 echo "${ECHO_T}no" >&6; }
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794 { echo "$as_me:$LINENO: checking for fsync" >&5
16795 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16796 cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h. */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 #include <unistd.h>
16804 main ()
16806 void *x=fsync
16808 return 0;
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest.$ac_objext; then
16829 cat >>confdefs.h <<\_ACEOF
16830 #define HAVE_FSYNC 1
16831 _ACEOF
16833 { echo "$as_me:$LINENO: result: yes" >&5
16834 echo "${ECHO_T}yes" >&6; }
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 { echo "$as_me:$LINENO: result: no" >&5
16840 echo "${ECHO_T}no" >&6; }
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16846 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16847 cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h. */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 #include <unistd.h>
16855 main ()
16857 void *x=fdatasync
16859 return 0;
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest.$ac_objext; then
16880 cat >>confdefs.h <<\_ACEOF
16881 #define HAVE_FDATASYNC 1
16882 _ACEOF
16884 { echo "$as_me:$LINENO: result: yes" >&5
16885 echo "${ECHO_T}yes" >&6; }
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 { echo "$as_me:$LINENO: result: no" >&5
16891 echo "${ECHO_T}no" >&6; }
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 { echo "$as_me:$LINENO: checking for epoll" >&5
16897 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/epoll.h>
16906 main ()
16908 void *x=epoll_create
16910 return 0;
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } && {
16927 test -z "$ac_c_werror_flag" ||
16928 test ! -s conftest.err
16929 } && test -s conftest.$ac_objext; then
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_EPOLL 1
16933 _ACEOF
16935 { echo "$as_me:$LINENO: result: yes" >&5
16936 echo "${ECHO_T}yes" >&6; }
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 { echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6; }
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 { echo "$as_me:$LINENO: checking for kqueue" >&5
16948 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16949 cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h. */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16956 #include <sys/types.h>
16957 #include <sys/event.h>
16960 main ()
16962 int x=kqueue()
16964 return 0;
16966 _ACEOF
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_KQUEUE 1
16987 _ACEOF
16989 { echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6; }
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 # On some systems (eg. FreeBSD 5), we would find a definition of the
17002 # functions ctermid_r, setgroups in the library, but no prototype
17003 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17004 # address to avoid compiler warnings and potential miscompilations
17005 # because of the missing prototypes.
17007 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17008 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17016 #include "confdefs.h"
17017 #include <stdio.h>
17020 main ()
17022 void* p = ctermid_r
17024 return 0;
17026 _ACEOF
17027 rm -f conftest.$ac_objext
17028 if { (ac_try="$ac_compile"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_compile") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest.$ac_objext; then
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_CTERMID_R 1
17047 _ACEOF
17049 { echo "$as_me:$LINENO: result: yes" >&5
17050 echo "${ECHO_T}yes" >&6; }
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 { echo "$as_me:$LINENO: result: no" >&5
17056 echo "${ECHO_T}no" >&6; }
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062 { echo "$as_me:$LINENO: checking for flock" >&5
17063 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 #include "confdefs.h"
17072 #include <sys/file.h>
17075 main ()
17077 void* p = flock
17079 return 0;
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_compile") 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest.$ac_objext; then
17100 cat >>confdefs.h <<\_ACEOF
17101 #define HAVE_FLOCK 1
17102 _ACEOF
17104 { echo "$as_me:$LINENO: result: yes" >&5
17105 echo "${ECHO_T}yes" >&6; }
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 { echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6; }
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17118 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 #include "confdefs.h"
17127 #include <unistd.h>
17130 main ()
17132 void* p = getpagesize
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (ac_try="$ac_compile"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_compile") 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest.$ac_objext; then
17155 cat >>confdefs.h <<\_ACEOF
17156 #define HAVE_GETPAGESIZE 1
17157 _ACEOF
17159 { echo "$as_me:$LINENO: result: yes" >&5
17160 echo "${ECHO_T}yes" >&6; }
17161 else
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 { echo "$as_me:$LINENO: result: no" >&5
17166 echo "${ECHO_T}no" >&6; }
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172 for ac_prog in true
17174 # Extract the first word of "$ac_prog", so it can be a program name with args.
17175 set dummy $ac_prog; ac_word=$2
17176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17178 if test "${ac_cv_prog_TRUE+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181 if test -n "$TRUE"; then
17182 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17183 else
17184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17185 for as_dir in $PATH
17187 IFS=$as_save_IFS
17188 test -z "$as_dir" && as_dir=.
17189 for ac_exec_ext in '' $ac_executable_extensions; do
17190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17191 ac_cv_prog_TRUE="$ac_prog"
17192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17193 break 2
17195 done
17196 done
17197 IFS=$as_save_IFS
17201 TRUE=$ac_cv_prog_TRUE
17202 if test -n "$TRUE"; then
17203 { echo "$as_me:$LINENO: result: $TRUE" >&5
17204 echo "${ECHO_T}$TRUE" >&6; }
17205 else
17206 { echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6; }
17211 test -n "$TRUE" && break
17212 done
17213 test -n "$TRUE" || TRUE="/bin/true"
17216 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17217 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17218 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 else
17221 ac_check_lib_save_LIBS=$LIBS
17222 LIBS="-lc $LIBS"
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 char inet_aton ();
17238 main ()
17240 return inet_aton ();
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest$ac_exeext &&
17262 $as_test_x conftest$ac_exeext; then
17263 ac_cv_lib_c_inet_aton=yes
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_lib_c_inet_aton=no
17271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17275 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17276 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17277 if test $ac_cv_lib_c_inet_aton = yes; then
17278 $ac_cv_prog_TRUE
17279 else
17281 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17282 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17283 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 ac_check_lib_save_LIBS=$LIBS
17287 LIBS="-lresolv $LIBS"
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char inet_aton ();
17303 main ()
17305 return inet_aton ();
17307 return 0;
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 ac_cv_lib_resolv_inet_aton=yes
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_cv_lib_resolv_inet_aton=no
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17341 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17342 if test $ac_cv_lib_resolv_inet_aton = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define HAVE_LIBRESOLV 1
17345 _ACEOF
17347 LIBS="-lresolv $LIBS"
17355 # On Tru64, chflags seems to be present, but calling it will
17356 # exit Python
17357 { echo "$as_me:$LINENO: checking for chflags" >&5
17358 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17359 if test "${ac_cv_have_chflags+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 if test "$cross_compiling" = yes; then
17363 ac_cv_have_chflags=cross
17364 else
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17372 #include <sys/stat.h>
17373 #include <unistd.h>
17374 int main(int argc, char*argv[])
17376 if(chflags(argv[0], 0) != 0)
17377 return 1;
17378 return 0;
17381 _ACEOF
17382 rm -f conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_link") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_have_chflags=yes
17403 else
17404 echo "$as_me: program exited with status $ac_status" >&5
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 ( exit $ac_status )
17409 ac_cv_have_chflags=no
17411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17418 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17419 if test "$ac_cv_have_chflags" = cross ; then
17420 { echo "$as_me:$LINENO: checking for chflags" >&5
17421 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17422 if test "${ac_cv_func_chflags+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h. */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17433 #define chflags innocuous_chflags
17435 /* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char chflags (); below.
17437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438 <limits.h> exists even on freestanding compilers. */
17440 #ifdef __STDC__
17441 # include <limits.h>
17442 #else
17443 # include <assert.h>
17444 #endif
17446 #undef chflags
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char chflags ();
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined __stub_chflags || defined __stub___chflags
17459 choke me
17460 #endif
17463 main ()
17465 return chflags ();
17467 return 0;
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest$ac_exeext &&
17487 $as_test_x conftest$ac_exeext; then
17488 ac_cv_func_chflags=yes
17489 else
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_cv_func_chflags=no
17496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17497 conftest$ac_exeext conftest.$ac_ext
17499 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17500 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17501 if test $ac_cv_func_chflags = yes; then
17502 ac_cv_have_chflags="yes"
17503 else
17504 ac_cv_have_chflags="no"
17508 if test "$ac_cv_have_chflags" = yes ; then
17510 cat >>confdefs.h <<\_ACEOF
17511 #define HAVE_CHFLAGS 1
17512 _ACEOF
17516 { echo "$as_me:$LINENO: checking for lchflags" >&5
17517 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17518 if test "${ac_cv_have_lchflags+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521 if test "$cross_compiling" = yes; then
17522 ac_cv_have_lchflags=cross
17523 else
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17531 #include <sys/stat.h>
17532 #include <unistd.h>
17533 int main(int argc, char*argv[])
17535 if(lchflags(argv[0], 0) != 0)
17536 return 1;
17537 return 0;
17540 _ACEOF
17541 rm -f conftest$ac_exeext
17542 if { (ac_try="$ac_link"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_link") 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_have_lchflags=yes
17562 else
17563 echo "$as_me: program exited with status $ac_status" >&5
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17567 ( exit $ac_status )
17568 ac_cv_have_lchflags=no
17570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17577 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17578 if test "$ac_cv_have_lchflags" = cross ; then
17579 { echo "$as_me:$LINENO: checking for lchflags" >&5
17580 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17581 if test "${ac_cv_func_lchflags+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17592 #define lchflags innocuous_lchflags
17594 /* System header to define __stub macros and hopefully few prototypes,
17595 which can conflict with char lchflags (); below.
17596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597 <limits.h> exists even on freestanding compilers. */
17599 #ifdef __STDC__
17600 # include <limits.h>
17601 #else
17602 # include <assert.h>
17603 #endif
17605 #undef lchflags
17607 /* Override any GCC internal prototype to avoid an error.
17608 Use char because int might match the return type of a GCC
17609 builtin and then its argument prototype would still apply. */
17610 #ifdef __cplusplus
17611 extern "C"
17612 #endif
17613 char lchflags ();
17614 /* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617 #if defined __stub_lchflags || defined __stub___lchflags
17618 choke me
17619 #endif
17622 main ()
17624 return lchflags ();
17626 return 0;
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && {
17643 test -z "$ac_c_werror_flag" ||
17644 test ! -s conftest.err
17645 } && test -s conftest$ac_exeext &&
17646 $as_test_x conftest$ac_exeext; then
17647 ac_cv_func_lchflags=yes
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_func_lchflags=no
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656 conftest$ac_exeext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17659 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17660 if test $ac_cv_func_lchflags = yes; then
17661 ac_cv_have_lchflags="yes"
17662 else
17663 ac_cv_have_lchflags="no"
17667 if test "$ac_cv_have_lchflags" = yes ; then
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_LCHFLAGS 1
17671 _ACEOF
17675 case $ac_sys_system/$ac_sys_release in
17676 Darwin/*)
17677 _CUR_CFLAGS="${CFLAGS}"
17678 _CUR_LDFLAGS="${LDFLAGS}"
17679 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17680 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17682 esac
17684 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17685 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17686 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689 ac_check_lib_save_LIBS=$LIBS
17690 LIBS="-lz $LIBS"
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17701 #ifdef __cplusplus
17702 extern "C"
17703 #endif
17704 char inflateCopy ();
17706 main ()
17708 return inflateCopy ();
17710 return 0;
17712 _ACEOF
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest$ac_exeext &&
17730 $as_test_x conftest$ac_exeext; then
17731 ac_cv_lib_z_inflateCopy=yes
17732 else
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_cv_lib_z_inflateCopy=no
17739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17743 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17744 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17745 if test $ac_cv_lib_z_inflateCopy = yes; then
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE_ZLIB_COPY 1
17749 _ACEOF
17754 case $ac_sys_system/$ac_sys_release in
17755 Darwin/*)
17756 CFLAGS="${_CUR_CFLAGS}"
17757 LDFLAGS="${_CUR_LDFLAGS}"
17759 esac
17761 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17762 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17763 cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h. */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17770 #include "confdefs.h"
17771 #include <netdb.h>
17774 main ()
17776 void* p = hstrerror; hstrerror(0)
17778 return 0;
17780 _ACEOF
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17789 ac_status=$?
17790 grep -v '^ *+' conftest.er1 >conftest.err
17791 rm -f conftest.er1
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext &&
17798 $as_test_x conftest$ac_exeext; then
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_HSTRERROR 1
17802 _ACEOF
17804 { echo "$as_me:$LINENO: result: yes" >&5
17805 echo "${ECHO_T}yes" >&6; }
17806 else
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 { echo "$as_me:$LINENO: result: no" >&5
17811 echo "${ECHO_T}no" >&6; }
17815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17816 conftest$ac_exeext conftest.$ac_ext
17818 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17819 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17820 cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h. */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17827 #include "confdefs.h"
17828 #include <sys/types.h>
17829 #include <sys/socket.h>
17830 #include <netinet/in.h>
17831 #include <arpa/inet.h>
17834 main ()
17836 void* p = inet_aton;inet_aton(0,0)
17838 return 0;
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest$ac_exeext &&
17858 $as_test_x conftest$ac_exeext; then
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE_INET_ATON 1
17862 _ACEOF
17864 { echo "$as_me:$LINENO: result: yes" >&5
17865 echo "${ECHO_T}yes" >&6; }
17866 else
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 { echo "$as_me:$LINENO: result: no" >&5
17871 echo "${ECHO_T}no" >&6; }
17875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17876 conftest$ac_exeext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17879 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 #include "confdefs.h"
17888 #include <sys/types.h>
17889 #include <sys/socket.h>
17890 #include <netinet/in.h>
17891 #include <arpa/inet.h>
17894 main ()
17896 void* p = inet_pton
17898 return 0;
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.$ac_objext; then
17919 cat >>confdefs.h <<\_ACEOF
17920 #define HAVE_INET_PTON 1
17921 _ACEOF
17923 { echo "$as_me:$LINENO: result: yes" >&5
17924 echo "${ECHO_T}yes" >&6; }
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 { echo "$as_me:$LINENO: result: no" >&5
17930 echo "${ECHO_T}no" >&6; }
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 # On some systems, setgroups is in unistd.h, on others, in grp.h
17937 { echo "$as_me:$LINENO: checking for setgroups" >&5
17938 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 #include "confdefs.h"
17947 #include <unistd.h>
17948 #ifdef HAVE_GRP_H
17949 #include <grp.h>
17950 #endif
17953 main ()
17955 void* p = setgroups
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define HAVE_SETGROUPS 1
17980 _ACEOF
17982 { echo "$as_me:$LINENO: result: yes" >&5
17983 echo "${ECHO_T}yes" >&6; }
17984 else
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17995 # check for openpty and forkpty
17998 for ac_func in openpty
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014 #define $ac_func innocuous_$ac_func
18016 /* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18021 #ifdef __STDC__
18022 # include <limits.h>
18023 #else
18024 # include <assert.h>
18025 #endif
18027 #undef $ac_func
18029 /* Override any GCC internal prototype to avoid an error.
18030 Use char because int might match the return type of a GCC
18031 builtin and then its argument prototype would still apply. */
18032 #ifdef __cplusplus
18033 extern "C"
18034 #endif
18035 char $ac_func ();
18036 /* The GNU C library defines this for functions which it implements
18037 to always fail with ENOSYS. Some functions are actually named
18038 something starting with __ and the normal name is an alias. */
18039 #if defined __stub_$ac_func || defined __stub___$ac_func
18040 choke me
18041 #endif
18044 main ()
18046 return $ac_func ();
18048 return 0;
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest$ac_exeext &&
18068 $as_test_x conftest$ac_exeext; then
18069 eval "$as_ac_var=yes"
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 eval "$as_ac_var=no"
18077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18078 conftest$ac_exeext conftest.$ac_ext
18080 ac_res=`eval echo '${'$as_ac_var'}'`
18081 { echo "$as_me:$LINENO: result: $ac_res" >&5
18082 echo "${ECHO_T}$ac_res" >&6; }
18083 if test `eval echo '${'$as_ac_var'}'` = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 _ACEOF
18088 else
18089 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18090 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18091 if test "${ac_cv_lib_util_openpty+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 ac_check_lib_save_LIBS=$LIBS
18095 LIBS="-lutil $LIBS"
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18103 /* Override any GCC internal prototype to avoid an error.
18104 Use char because int might match the return type of a GCC
18105 builtin and then its argument prototype would still apply. */
18106 #ifdef __cplusplus
18107 extern "C"
18108 #endif
18109 char openpty ();
18111 main ()
18113 return openpty ();
18115 return 0;
18117 _ACEOF
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18136 ac_cv_lib_util_openpty=yes
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_cv_lib_util_openpty=no
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18148 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18149 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18150 if test $ac_cv_lib_util_openpty = yes; then
18151 cat >>confdefs.h <<\_ACEOF
18152 #define HAVE_OPENPTY 1
18153 _ACEOF
18154 LIBS="$LIBS -lutil"
18155 else
18156 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18157 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18158 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161 ac_check_lib_save_LIBS=$LIBS
18162 LIBS="-lbsd $LIBS"
18163 cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h. */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18170 /* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
18173 #ifdef __cplusplus
18174 extern "C"
18175 #endif
18176 char openpty ();
18178 main ()
18180 return openpty ();
18182 return 0;
18184 _ACEOF
18185 rm -f conftest.$ac_objext conftest$ac_exeext
18186 if { (ac_try="$ac_link"
18187 case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_link") 2>conftest.er1
18193 ac_status=$?
18194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } && {
18199 test -z "$ac_c_werror_flag" ||
18200 test ! -s conftest.err
18201 } && test -s conftest$ac_exeext &&
18202 $as_test_x conftest$ac_exeext; then
18203 ac_cv_lib_bsd_openpty=yes
18204 else
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ac_cv_lib_bsd_openpty=no
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18216 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18217 if test $ac_cv_lib_bsd_openpty = yes; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_OPENPTY 1
18220 _ACEOF
18221 LIBS="$LIBS -lbsd"
18229 done
18232 for ac_func in forkpty
18234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18248 #define $ac_func innocuous_$ac_func
18250 /* System header to define __stub macros and hopefully few prototypes,
18251 which can conflict with char $ac_func (); below.
18252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18253 <limits.h> exists even on freestanding compilers. */
18255 #ifdef __STDC__
18256 # include <limits.h>
18257 #else
18258 # include <assert.h>
18259 #endif
18261 #undef $ac_func
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char $ac_func ();
18270 /* The GNU C library defines this for functions which it implements
18271 to always fail with ENOSYS. Some functions are actually named
18272 something starting with __ and the normal name is an alias. */
18273 #if defined __stub_$ac_func || defined __stub___$ac_func
18274 choke me
18275 #endif
18278 main ()
18280 return $ac_func ();
18282 return 0;
18284 _ACEOF
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_link") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest$ac_exeext &&
18302 $as_test_x conftest$ac_exeext; then
18303 eval "$as_ac_var=yes"
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 eval "$as_ac_var=no"
18311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18312 conftest$ac_exeext conftest.$ac_ext
18314 ac_res=`eval echo '${'$as_ac_var'}'`
18315 { echo "$as_me:$LINENO: result: $ac_res" >&5
18316 echo "${ECHO_T}$ac_res" >&6; }
18317 if test `eval echo '${'$as_ac_var'}'` = yes; then
18318 cat >>confdefs.h <<_ACEOF
18319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18320 _ACEOF
18322 else
18323 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18324 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328 ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-lutil $LIBS"
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h. */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 char forkpty ();
18345 main ()
18347 return forkpty ();
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } && {
18366 test -z "$ac_c_werror_flag" ||
18367 test ! -s conftest.err
18368 } && test -s conftest$ac_exeext &&
18369 $as_test_x conftest$ac_exeext; then
18370 ac_cv_lib_util_forkpty=yes
18371 else
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 ac_cv_lib_util_forkpty=no
18378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18379 conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18382 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18383 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18384 if test $ac_cv_lib_util_forkpty = yes; then
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE_FORKPTY 1
18387 _ACEOF
18388 LIBS="$LIBS -lutil"
18389 else
18390 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18391 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18392 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395 ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lbsd $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any GCC internal prototype to avoid an error.
18405 Use char because int might match the return type of a GCC
18406 builtin and then its argument prototype would still apply. */
18407 #ifdef __cplusplus
18408 extern "C"
18409 #endif
18410 char forkpty ();
18412 main ()
18414 return forkpty ();
18416 return 0;
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest$ac_exeext &&
18436 $as_test_x conftest$ac_exeext; then
18437 ac_cv_lib_bsd_forkpty=yes
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_cv_lib_bsd_forkpty=no
18445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18450 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18451 if test $ac_cv_lib_bsd_forkpty = yes; then
18452 cat >>confdefs.h <<\_ACEOF
18453 #define HAVE_FORKPTY 1
18454 _ACEOF
18455 LIBS="$LIBS -lbsd"
18463 done
18466 # Stuff for expat.
18468 for ac_func in memmove
18470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define $ac_func innocuous_$ac_func
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18491 #ifdef __STDC__
18492 # include <limits.h>
18493 #else
18494 # include <assert.h>
18495 #endif
18497 #undef $ac_func
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 #ifdef __cplusplus
18503 extern "C"
18504 #endif
18505 char $ac_func ();
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18510 choke me
18511 #endif
18514 main ()
18516 return $ac_func ();
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (ac_try="$ac_link"
18523 case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest$ac_exeext &&
18538 $as_test_x conftest$ac_exeext; then
18539 eval "$as_ac_var=yes"
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 eval "$as_ac_var=no"
18547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18548 conftest$ac_exeext conftest.$ac_ext
18550 ac_res=`eval echo '${'$as_ac_var'}'`
18551 { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18553 if test `eval echo '${'$as_ac_var'}'` = yes; then
18554 cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18556 _ACEOF
18559 done
18562 # check for long file support functions
18569 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18592 #ifdef __STDC__
18593 # include <limits.h>
18594 #else
18595 # include <assert.h>
18596 #endif
18598 #undef $ac_func
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char $ac_func ();
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18611 choke me
18612 #endif
18615 main ()
18617 return $ac_func ();
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest$ac_exeext &&
18639 $as_test_x conftest$ac_exeext; then
18640 eval "$as_ac_var=yes"
18641 else
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 eval "$as_ac_var=no"
18648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18649 conftest$ac_exeext conftest.$ac_ext
18651 ac_res=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18657 _ACEOF
18660 done
18666 for ac_func in dup2 getcwd strdup
18668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18682 #define $ac_func innocuous_$ac_func
18684 /* System header to define __stub macros and hopefully few prototypes,
18685 which can conflict with char $ac_func (); below.
18686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18687 <limits.h> exists even on freestanding compilers. */
18689 #ifdef __STDC__
18690 # include <limits.h>
18691 #else
18692 # include <assert.h>
18693 #endif
18695 #undef $ac_func
18697 /* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
18700 #ifdef __cplusplus
18701 extern "C"
18702 #endif
18703 char $ac_func ();
18704 /* The GNU C library defines this for functions which it implements
18705 to always fail with ENOSYS. Some functions are actually named
18706 something starting with __ and the normal name is an alias. */
18707 #if defined __stub_$ac_func || defined __stub___$ac_func
18708 choke me
18709 #endif
18712 main ()
18714 return $ac_func ();
18716 return 0;
18718 _ACEOF
18719 rm -f conftest.$ac_objext conftest$ac_exeext
18720 if { (ac_try="$ac_link"
18721 case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_link") 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && {
18733 test -z "$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 } && test -s conftest$ac_exeext &&
18736 $as_test_x conftest$ac_exeext; then
18737 eval "$as_ac_var=yes"
18738 else
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 eval "$as_ac_var=no"
18745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18746 conftest$ac_exeext conftest.$ac_ext
18748 ac_res=`eval echo '${'$as_ac_var'}'`
18749 { echo "$as_me:$LINENO: result: $ac_res" >&5
18750 echo "${ECHO_T}$ac_res" >&6; }
18751 if test `eval echo '${'$as_ac_var'}'` = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18754 _ACEOF
18756 else
18757 case " $LIBOBJS " in
18758 *" $ac_func.$ac_objext "* ) ;;
18759 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18761 esac
18764 done
18768 for ac_func in getpgrp
18770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18784 #define $ac_func innocuous_$ac_func
18786 /* System header to define __stub macros and hopefully few prototypes,
18787 which can conflict with char $ac_func (); below.
18788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 <limits.h> exists even on freestanding compilers. */
18791 #ifdef __STDC__
18792 # include <limits.h>
18793 #else
18794 # include <assert.h>
18795 #endif
18797 #undef $ac_func
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 char $ac_func ();
18806 /* The GNU C library defines this for functions which it implements
18807 to always fail with ENOSYS. Some functions are actually named
18808 something starting with __ and the normal name is an alias. */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18810 choke me
18811 #endif
18814 main ()
18816 return $ac_func ();
18818 return 0;
18820 _ACEOF
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 eval "$as_ac_var=yes"
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 eval "$as_ac_var=no"
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18850 ac_res=`eval echo '${'$as_ac_var'}'`
18851 { echo "$as_me:$LINENO: result: $ac_res" >&5
18852 echo "${ECHO_T}$ac_res" >&6; }
18853 if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18856 _ACEOF
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h. */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <unistd.h>
18865 main ()
18867 getpgrp(0);
18869 return 0;
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (ac_try="$ac_compile"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_compile") 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest.$ac_objext; then
18890 cat >>confdefs.h <<\_ACEOF
18891 #define GETPGRP_HAVE_ARG 1
18892 _ACEOF
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 done
18908 for ac_func in setpgrp
18910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18937 #undef $ac_func
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char $ac_func ();
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18950 choke me
18951 #endif
18954 main ()
18956 return $ac_func ();
18958 return 0;
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 eval "$as_ac_var=yes"
18980 else
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 eval "$as_ac_var=no"
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18990 ac_res=`eval echo '${'$as_ac_var'}'`
18991 { echo "$as_me:$LINENO: result: $ac_res" >&5
18992 echo "${ECHO_T}$ac_res" >&6; }
18993 if test `eval echo '${'$as_ac_var'}'` = yes; then
18994 cat >>confdefs.h <<_ACEOF
18995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18996 _ACEOF
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h. */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 #include <unistd.h>
19005 main ()
19007 setpgrp(0,0);
19009 return 0;
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define SETPGRP_HAVE_ARG 1
19032 _ACEOF
19035 else
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 done
19048 for ac_func in gettimeofday
19050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h. */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19064 #define $ac_func innocuous_$ac_func
19066 /* System header to define __stub macros and hopefully few prototypes,
19067 which can conflict with char $ac_func (); below.
19068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19069 <limits.h> exists even on freestanding compilers. */
19071 #ifdef __STDC__
19072 # include <limits.h>
19073 #else
19074 # include <assert.h>
19075 #endif
19077 #undef $ac_func
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char $ac_func ();
19086 /* The GNU C library defines this for functions which it implements
19087 to always fail with ENOSYS. Some functions are actually named
19088 something starting with __ and the normal name is an alias. */
19089 #if defined __stub_$ac_func || defined __stub___$ac_func
19090 choke me
19091 #endif
19094 main ()
19096 return $ac_func ();
19098 return 0;
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest$ac_exeext &&
19118 $as_test_x conftest$ac_exeext; then
19119 eval "$as_ac_var=yes"
19120 else
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 eval "$as_ac_var=no"
19127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19128 conftest$ac_exeext conftest.$ac_ext
19130 ac_res=`eval echo '${'$as_ac_var'}'`
19131 { echo "$as_me:$LINENO: result: $ac_res" >&5
19132 echo "${ECHO_T}$ac_res" >&6; }
19133 if test `eval echo '${'$as_ac_var'}'` = yes; then
19134 cat >>confdefs.h <<_ACEOF
19135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19136 _ACEOF
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <sys/time.h>
19145 main ()
19147 gettimeofday((struct timeval*)0,(struct timezone*)0);
19149 return 0;
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (ac_try="$ac_compile"
19154 case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
19170 else
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19175 cat >>confdefs.h <<\_ACEOF
19176 #define GETTIMEOFDAY_NO_TZ 1
19177 _ACEOF
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 done
19188 { echo "$as_me:$LINENO: checking for major" >&5
19189 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 #if defined(MAJOR_IN_MKDEV)
19198 #include <sys/mkdev.h>
19199 #elif defined(MAJOR_IN_SYSMACROS)
19200 #include <sys/sysmacros.h>
19201 #else
19202 #include <sys/types.h>
19203 #endif
19206 main ()
19209 makedev(major(0),minor(0));
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest$ac_exeext &&
19232 $as_test_x conftest$ac_exeext; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_DEVICE_MACROS 1
19237 _ACEOF
19239 { echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6; }
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19247 { echo "$as_me:$LINENO: result: no" >&5
19248 echo "${ECHO_T}no" >&6; }
19252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19255 # On OSF/1 V5.1, getaddrinfo is available, but a define
19256 # for [no]getaddrinfo in netdb.h.
19257 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19258 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 #include <sys/types.h>
19267 #include <sys/socket.h>
19268 #include <netdb.h>
19269 #include <stdio.h>
19272 main ()
19275 getaddrinfo(NULL, NULL, NULL, NULL);
19278 return 0;
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19300 { echo "$as_me:$LINENO: result: yes" >&5
19301 echo "${ECHO_T}yes" >&6; }
19302 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19303 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19304 if test "$cross_compiling" = yes; then
19305 { echo "$as_me:$LINENO: result: buggy" >&5
19306 echo "${ECHO_T}buggy" >&6; }
19307 buggygetaddrinfo=yes
19308 else
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h. */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19316 #include <sys/types.h>
19317 #include <netdb.h>
19318 #include <string.h>
19319 #include <sys/socket.h>
19320 #include <netinet/in.h>
19322 main()
19324 int passive, gaierr, inet4 = 0, inet6 = 0;
19325 struct addrinfo hints, *ai, *aitop;
19326 char straddr[INET6_ADDRSTRLEN], strport[16];
19328 for (passive = 0; passive <= 1; passive++) {
19329 memset(&hints, 0, sizeof(hints));
19330 hints.ai_family = AF_UNSPEC;
19331 hints.ai_flags = passive ? AI_PASSIVE : 0;
19332 hints.ai_socktype = SOCK_STREAM;
19333 hints.ai_protocol = IPPROTO_TCP;
19334 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19335 (void)gai_strerror(gaierr);
19336 goto bad;
19338 for (ai = aitop; ai; ai = ai->ai_next) {
19339 if (ai->ai_addr == NULL ||
19340 ai->ai_addrlen == 0 ||
19341 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19342 straddr, sizeof(straddr), strport, sizeof(strport),
19343 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19344 goto bad;
19346 switch (ai->ai_family) {
19347 case AF_INET:
19348 if (strcmp(strport, "54321") != 0) {
19349 goto bad;
19351 if (passive) {
19352 if (strcmp(straddr, "0.0.0.0") != 0) {
19353 goto bad;
19355 } else {
19356 if (strcmp(straddr, "127.0.0.1") != 0) {
19357 goto bad;
19360 inet4++;
19361 break;
19362 case AF_INET6:
19363 if (strcmp(strport, "54321") != 0) {
19364 goto bad;
19366 if (passive) {
19367 if (strcmp(straddr, "::") != 0) {
19368 goto bad;
19370 } else {
19371 if (strcmp(straddr, "::1") != 0) {
19372 goto bad;
19375 inet6++;
19376 break;
19377 case AF_UNSPEC:
19378 goto bad;
19379 break;
19380 default:
19381 /* another family support? */
19382 break;
19387 if (!(inet4 == 0 || inet4 == 2))
19388 goto bad;
19389 if (!(inet6 == 0 || inet6 == 2))
19390 goto bad;
19392 if (aitop)
19393 freeaddrinfo(aitop);
19394 exit(0);
19396 bad:
19397 if (aitop)
19398 freeaddrinfo(aitop);
19399 exit(1);
19402 _ACEOF
19403 rm -f conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19414 { (case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 { echo "$as_me:$LINENO: result: good" >&5
19424 echo "${ECHO_T}good" >&6; }
19425 buggygetaddrinfo=no
19426 else
19427 echo "$as_me: program exited with status $ac_status" >&5
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 ( exit $ac_status )
19432 { echo "$as_me:$LINENO: result: buggy" >&5
19433 echo "${ECHO_T}buggy" >&6; }
19434 buggygetaddrinfo=yes
19436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19445 { echo "$as_me:$LINENO: result: no" >&5
19446 echo "${ECHO_T}no" >&6; }
19447 buggygetaddrinfo=yes
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19454 if test "$buggygetaddrinfo" = "yes"; then
19455 if test "$ipv6" = "yes"; then
19456 echo 'Fatal: You must get working getaddrinfo() function.'
19457 echo ' or you can specify "--disable-ipv6"'.
19458 exit 1
19460 else
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_GETADDRINFO 1
19464 _ACEOF
19468 for ac_func in getnameinfo
19470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19484 #define $ac_func innocuous_$ac_func
19486 /* System header to define __stub macros and hopefully few prototypes,
19487 which can conflict with char $ac_func (); below.
19488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19489 <limits.h> exists even on freestanding compilers. */
19491 #ifdef __STDC__
19492 # include <limits.h>
19493 #else
19494 # include <assert.h>
19495 #endif
19497 #undef $ac_func
19499 /* Override any GCC internal prototype to avoid an error.
19500 Use char because int might match the return type of a GCC
19501 builtin and then its argument prototype would still apply. */
19502 #ifdef __cplusplus
19503 extern "C"
19504 #endif
19505 char $ac_func ();
19506 /* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined __stub_$ac_func || defined __stub___$ac_func
19510 choke me
19511 #endif
19514 main ()
19516 return $ac_func ();
19518 return 0;
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext &&
19538 $as_test_x conftest$ac_exeext; then
19539 eval "$as_ac_var=yes"
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 eval "$as_ac_var=no"
19547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19548 conftest$ac_exeext conftest.$ac_ext
19550 ac_res=`eval echo '${'$as_ac_var'}'`
19551 { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19553 if test `eval echo '${'$as_ac_var'}'` = yes; then
19554 cat >>confdefs.h <<_ACEOF
19555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19556 _ACEOF
19559 done
19562 # checks for structures
19563 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19564 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19565 if test "${ac_cv_header_time+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <sys/types.h>
19575 #include <sys/time.h>
19576 #include <time.h>
19579 main ()
19581 if ((struct tm *) 0)
19582 return 0;
19584 return 0;
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_cv_header_time=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_header_time=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19615 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19616 if test $ac_cv_header_time = yes; then
19618 cat >>confdefs.h <<\_ACEOF
19619 #define TIME_WITH_SYS_TIME 1
19620 _ACEOF
19624 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19626 if test "${ac_cv_struct_tm+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 #include <sys/types.h>
19636 #include <time.h>
19639 main ()
19641 struct tm tm;
19642 int *p = &tm.tm_sec;
19643 return !p;
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (ac_try="$ac_compile"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest.$ac_objext; then
19665 ac_cv_struct_tm=time.h
19666 else
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_cv_struct_tm=sys/time.h
19673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19676 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19677 if test $ac_cv_struct_tm = sys/time.h; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define TM_IN_SYS_TIME 1
19681 _ACEOF
19685 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19686 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19687 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 cat >conftest.$ac_ext <<_ACEOF
19691 /* confdefs.h. */
19692 _ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19696 #include <sys/types.h>
19697 #include <$ac_cv_struct_tm>
19701 main ()
19703 static struct tm ac_aggr;
19704 if (ac_aggr.tm_zone)
19705 return 0;
19707 return 0;
19709 _ACEOF
19710 rm -f conftest.$ac_objext
19711 if { (ac_try="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_cv_member_struct_tm_tm_zone=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 #include <sys/types.h>
19739 #include <$ac_cv_struct_tm>
19743 main ()
19745 static struct tm ac_aggr;
19746 if (sizeof ac_aggr.tm_zone)
19747 return 0;
19749 return 0;
19751 _ACEOF
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest.$ac_objext; then
19769 ac_cv_member_struct_tm_tm_zone=yes
19770 else
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19774 ac_cv_member_struct_tm_tm_zone=no
19777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19783 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19784 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19786 cat >>confdefs.h <<_ACEOF
19787 #define HAVE_STRUCT_TM_TM_ZONE 1
19788 _ACEOF
19793 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19795 cat >>confdefs.h <<\_ACEOF
19796 #define HAVE_TM_ZONE 1
19797 _ACEOF
19799 else
19800 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19801 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19802 if test "${ac_cv_have_decl_tzname+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 #include <time.h>
19814 main ()
19816 #ifndef tzname
19817 (void) tzname;
19818 #endif
19821 return 0;
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (ac_try="$ac_compile"
19826 case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19832 ac_status=$?
19833 grep -v '^ *+' conftest.er1 >conftest.err
19834 rm -f conftest.er1
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } && {
19838 test -z "$ac_c_werror_flag" ||
19839 test ! -s conftest.err
19840 } && test -s conftest.$ac_objext; then
19841 ac_cv_have_decl_tzname=yes
19842 else
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_cv_have_decl_tzname=no
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19852 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19853 if test $ac_cv_have_decl_tzname = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define HAVE_DECL_TZNAME 1
19857 _ACEOF
19860 else
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_DECL_TZNAME 0
19863 _ACEOF
19869 { echo "$as_me:$LINENO: checking for tzname" >&5
19870 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19871 if test "${ac_cv_var_tzname+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h. */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <time.h>
19881 #if !HAVE_DECL_TZNAME
19882 extern char *tzname[];
19883 #endif
19886 main ()
19888 return tzname[0][0];
19890 return 0;
19892 _ACEOF
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_link") 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && {
19907 test -z "$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 } && test -s conftest$ac_exeext &&
19910 $as_test_x conftest$ac_exeext; then
19911 ac_cv_var_tzname=yes
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ac_cv_var_tzname=no
19919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19920 conftest$ac_exeext conftest.$ac_ext
19922 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19923 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19924 if test $ac_cv_var_tzname = yes; then
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_TZNAME 1
19928 _ACEOF
19933 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19934 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19935 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 $ac_includes_default
19946 main ()
19948 static struct stat ac_aggr;
19949 if (ac_aggr.st_rdev)
19950 return 0;
19952 return 0;
19954 _ACEOF
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_cv_member_struct_stat_st_rdev=yes
19973 else
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19985 main ()
19987 static struct stat ac_aggr;
19988 if (sizeof ac_aggr.st_rdev)
19989 return 0;
19991 return 0;
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.$ac_objext; then
20011 ac_cv_member_struct_stat_st_rdev=yes
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_member_struct_stat_st_rdev=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20025 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20026 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_STRUCT_STAT_ST_RDEV 1
20030 _ACEOF
20035 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20036 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20037 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 $ac_includes_default
20048 main ()
20050 static struct stat ac_aggr;
20051 if (ac_aggr.st_blksize)
20052 return 0;
20054 return 0;
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest.$ac_objext; then
20074 ac_cv_member_struct_stat_st_blksize=yes
20075 else
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h. */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 $ac_includes_default
20087 main ()
20089 static struct stat ac_aggr;
20090 if (sizeof ac_aggr.st_blksize)
20091 return 0;
20093 return 0;
20095 _ACEOF
20096 rm -f conftest.$ac_objext
20097 if { (ac_try="$ac_compile"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_compile") 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest.$ac_objext; then
20113 ac_cv_member_struct_stat_st_blksize=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_cv_member_struct_stat_st_blksize=no
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20128 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20132 _ACEOF
20137 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20138 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20139 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 $ac_includes_default
20150 main ()
20152 static struct stat ac_aggr;
20153 if (ac_aggr.st_flags)
20154 return 0;
20156 return 0;
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest.$ac_objext; then
20176 ac_cv_member_struct_stat_st_flags=yes
20177 else
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h. */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20189 main ()
20191 static struct stat ac_aggr;
20192 if (sizeof ac_aggr.st_flags)
20193 return 0;
20195 return 0;
20197 _ACEOF
20198 rm -f conftest.$ac_objext
20199 if { (ac_try="$ac_compile"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_compile") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest.$ac_objext; then
20215 ac_cv_member_struct_stat_st_flags=yes
20216 else
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_cv_member_struct_stat_st_flags=no
20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20230 if test $ac_cv_member_struct_stat_st_flags = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20234 _ACEOF
20239 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20240 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20241 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h. */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 $ac_includes_default
20252 main ()
20254 static struct stat ac_aggr;
20255 if (ac_aggr.st_gen)
20256 return 0;
20258 return 0;
20260 _ACEOF
20261 rm -f conftest.$ac_objext
20262 if { (ac_try="$ac_compile"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_cv_member_struct_stat_st_gen=yes
20279 else
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20291 main ()
20293 static struct stat ac_aggr;
20294 if (sizeof ac_aggr.st_gen)
20295 return 0;
20297 return 0;
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (ac_try="$ac_compile"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest.$ac_objext; then
20317 ac_cv_member_struct_stat_st_gen=yes
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_cv_member_struct_stat_st_gen=no
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20331 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20332 if test $ac_cv_member_struct_stat_st_gen = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define HAVE_STRUCT_STAT_ST_GEN 1
20336 _ACEOF
20341 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20342 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20343 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 else
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h. */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 $ac_includes_default
20354 main ()
20356 static struct stat ac_aggr;
20357 if (ac_aggr.st_birthtime)
20358 return 0;
20360 return 0;
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (ac_try="$ac_compile"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
20380 ac_cv_member_struct_stat_st_birthtime=yes
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h. */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 $ac_includes_default
20393 main ()
20395 static struct stat ac_aggr;
20396 if (sizeof ac_aggr.st_birthtime)
20397 return 0;
20399 return 0;
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_compile") 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest.$ac_objext; then
20419 ac_cv_member_struct_stat_st_birthtime=yes
20420 else
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_member_struct_stat_st_birthtime=no
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20433 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20434 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20438 _ACEOF
20443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h. */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 $ac_includes_default
20456 main ()
20458 static struct stat ac_aggr;
20459 if (ac_aggr.st_blocks)
20460 return 0;
20462 return 0;
20464 _ACEOF
20465 rm -f conftest.$ac_objext
20466 if { (ac_try="$ac_compile"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_compile") 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } && {
20479 test -z "$ac_c_werror_flag" ||
20480 test ! -s conftest.err
20481 } && test -s conftest.$ac_objext; then
20482 ac_cv_member_struct_stat_st_blocks=yes
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h. */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 $ac_includes_default
20495 main ()
20497 static struct stat ac_aggr;
20498 if (sizeof ac_aggr.st_blocks)
20499 return 0;
20501 return 0;
20503 _ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20509 esac
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_compile") 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest.$ac_objext; then
20521 ac_cv_member_struct_stat_st_blocks=yes
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ac_cv_member_struct_stat_st_blocks=no
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20540 _ACEOF
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_ST_BLOCKS 1
20545 _ACEOF
20547 else
20548 case " $LIBOBJS " in
20549 *" fileblocks.$ac_objext "* ) ;;
20550 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20552 esac
20558 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20559 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20560 if test "${ac_cv_header_time_altzone+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 #include <time.h>
20571 main ()
20573 return altzone;
20575 return 0;
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (ac_try="$ac_compile"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_compile") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest.$ac_objext; then
20595 ac_cv_header_time_altzone=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_cv_header_time_altzone=no
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20607 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20608 if test $ac_cv_header_time_altzone = yes; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_ALTZONE 1
20612 _ACEOF
20616 was_it_defined=no
20617 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20618 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20626 #include <sys/types.h>
20627 #include <sys/select.h>
20628 #include <sys/time.h>
20631 main ()
20635 return 0;
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define SYS_SELECT_WITH_SYS_TIME 1
20659 _ACEOF
20661 was_it_defined=yes
20663 else
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20672 echo "${ECHO_T}$was_it_defined" >&6; }
20674 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20675 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20676 if test "${ac_cv_struct_addrinfo+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 # include <netdb.h>
20688 main ()
20690 struct addrinfo a
20692 return 0;
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20703 ac_status=$?
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } && {
20709 test -z "$ac_c_werror_flag" ||
20710 test ! -s conftest.err
20711 } && test -s conftest.$ac_objext; then
20712 ac_cv_struct_addrinfo=yes
20713 else
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 ac_cv_struct_addrinfo=no
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20724 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20725 if test $ac_cv_struct_addrinfo = yes; then
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_ADDRINFO 1
20729 _ACEOF
20733 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20734 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20735 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 # include <sys/types.h>
20746 # include <sys/socket.h>
20748 main ()
20750 struct sockaddr_storage s
20752 return 0;
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_compile") 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest.$ac_objext; then
20772 ac_cv_struct_sockaddr_storage=yes
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20777 ac_cv_struct_sockaddr_storage=no
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20784 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20785 if test $ac_cv_struct_sockaddr_storage = yes; then
20787 cat >>confdefs.h <<\_ACEOF
20788 #define HAVE_SOCKADDR_STORAGE 1
20789 _ACEOF
20793 # checks for compiler characteristics
20796 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20797 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20798 if test "${ac_cv_c_char_unsigned+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 $ac_includes_default
20809 main ()
20811 static int test_array [1 - 2 * !(((char) -1) < 0)];
20812 test_array [0] = 0
20815 return 0;
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_compile") 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest.$ac_objext; then
20835 ac_cv_c_char_unsigned=no
20836 else
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_cv_c_char_unsigned=yes
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20846 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20847 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20848 cat >>confdefs.h <<\_ACEOF
20849 #define __CHAR_UNSIGNED__ 1
20850 _ACEOF
20854 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20856 if test "${ac_cv_c_const+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20867 main ()
20869 /* FIXME: Include the comments suggested by Paul. */
20870 #ifndef __cplusplus
20871 /* Ultrix mips cc rejects this. */
20872 typedef int charset[2];
20873 const charset cs;
20874 /* SunOS 4.1.1 cc rejects this. */
20875 char const *const *pcpcc;
20876 char **ppc;
20877 /* NEC SVR4.0.2 mips cc rejects this. */
20878 struct point {int x, y;};
20879 static struct point const zero = {0,0};
20880 /* AIX XL C 1.02.0.0 rejects this.
20881 It does not let you subtract one const X* pointer from another in
20882 an arm of an if-expression whose if-part is not a constant
20883 expression */
20884 const char *g = "string";
20885 pcpcc = &g + (g ? g-g : 0);
20886 /* HPUX 7.0 cc rejects these. */
20887 ++pcpcc;
20888 ppc = (char**) pcpcc;
20889 pcpcc = (char const *const *) ppc;
20890 { /* SCO 3.2v4 cc rejects this. */
20891 char *t;
20892 char const *s = 0 ? (char *) 0 : (char const *) 0;
20894 *t++ = 0;
20895 if (s) return 0;
20897 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20898 int x[] = {25, 17};
20899 const int *foo = &x[0];
20900 ++foo;
20902 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20903 typedef const int *iptr;
20904 iptr p = 0;
20905 ++p;
20907 { /* AIX XL C 1.02.0.0 rejects this saying
20908 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20909 struct s { int j; const int *ap[3]; };
20910 struct s *b; b->j = 5;
20912 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20913 const int foo = 10;
20914 if (!foo) return 0;
20916 return !cs[0] && !zero.x;
20917 #endif
20920 return 0;
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20940 ac_cv_c_const=yes
20941 else
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_c_const=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20952 if test $ac_cv_c_const = no; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define const
20956 _ACEOF
20961 works=no
20962 { echo "$as_me:$LINENO: checking for working volatile" >&5
20963 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20972 main ()
20974 volatile int x; x = 0;
20976 return 0;
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest.$ac_objext; then
20996 works=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21002 cat >>confdefs.h <<\_ACEOF
21003 #define volatile
21004 _ACEOF
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $works" >&5
21011 echo "${ECHO_T}$works" >&6; }
21013 works=no
21014 { echo "$as_me:$LINENO: checking for working signed char" >&5
21015 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21024 main ()
21026 signed char c;
21028 return 0;
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_compile") 2>conftest.er1
21039 ac_status=$?
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest.$ac_objext; then
21048 works=yes
21049 else
21050 echo "$as_me: failed program was:" >&5
21051 sed 's/^/| /' conftest.$ac_ext >&5
21054 cat >>confdefs.h <<\_ACEOF
21055 #define signed
21056 _ACEOF
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result: $works" >&5
21063 echo "${ECHO_T}$works" >&6; }
21065 have_prototypes=no
21066 { echo "$as_me:$LINENO: checking for prototypes" >&5
21067 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 int foo(int x) { return 0; }
21076 main ()
21078 return foo(10);
21080 return 0;
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_compile") 2>conftest.er1
21091 ac_status=$?
21092 grep -v '^ *+' conftest.er1 >conftest.err
21093 rm -f conftest.er1
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest.$ac_objext; then
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_PROTOTYPES 1
21104 _ACEOF
21106 have_prototypes=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21117 echo "${ECHO_T}$have_prototypes" >&6; }
21119 works=no
21120 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21121 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21129 #include <stdarg.h>
21130 int foo(int x, ...) {
21131 va_list va;
21132 va_start(va, x);
21133 va_arg(va, int);
21134 va_arg(va, char *);
21135 va_arg(va, double);
21136 return 0;
21140 main ()
21142 return foo(10, "", 3.14);
21144 return 0;
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_STDARG_PROTOTYPES 1
21168 _ACEOF
21170 works=yes
21172 else
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180 { echo "$as_me:$LINENO: result: $works" >&5
21181 echo "${ECHO_T}$works" >&6; }
21183 # check for socketpair
21184 { echo "$as_me:$LINENO: checking for socketpair" >&5
21185 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h. */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21193 #include <sys/types.h>
21194 #include <sys/socket.h>
21197 main ()
21199 void *x=socketpair
21201 return 0;
21203 _ACEOF
21204 rm -f conftest.$ac_objext
21205 if { (ac_try="$ac_compile"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_compile") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest.$ac_objext; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_SOCKETPAIR 1
21224 _ACEOF
21226 { echo "$as_me:$LINENO: result: yes" >&5
21227 echo "${ECHO_T}yes" >&6; }
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 { echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6; }
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 # check if sockaddr has sa_len member
21240 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21241 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21242 cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h. */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 #include <sys/types.h>
21249 #include <sys/socket.h>
21251 main ()
21253 struct sockaddr x;
21254 x.sa_len = 0;
21256 return 0;
21258 _ACEOF
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 { echo "$as_me:$LINENO: result: yes" >&5
21277 echo "${ECHO_T}yes" >&6; }
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_SOCKADDR_SA_LEN 1
21281 _ACEOF
21283 else
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 { echo "$as_me:$LINENO: result: no" >&5
21288 echo "${ECHO_T}no" >&6; }
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 va_list_is_array=no
21294 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21295 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21296 cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h. */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h. */
21303 #ifdef HAVE_STDARG_PROTOTYPES
21304 #include <stdarg.h>
21305 #else
21306 #include <varargs.h>
21307 #endif
21310 main ()
21312 va_list list1, list2; list1 = list2;
21314 return 0;
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.$ac_objext; then
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21341 cat >>confdefs.h <<\_ACEOF
21342 #define VA_LIST_IS_ARRAY 1
21343 _ACEOF
21345 va_list_is_array=yes
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21351 echo "${ECHO_T}$va_list_is_array" >&6; }
21353 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21357 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21358 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21359 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h. */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21370 #define gethostbyname_r innocuous_gethostbyname_r
21372 /* System header to define __stub macros and hopefully few prototypes,
21373 which can conflict with char gethostbyname_r (); below.
21374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21375 <limits.h> exists even on freestanding compilers. */
21377 #ifdef __STDC__
21378 # include <limits.h>
21379 #else
21380 # include <assert.h>
21381 #endif
21383 #undef gethostbyname_r
21385 /* Override any GCC internal prototype to avoid an error.
21386 Use char because int might match the return type of a GCC
21387 builtin and then its argument prototype would still apply. */
21388 #ifdef __cplusplus
21389 extern "C"
21390 #endif
21391 char gethostbyname_r ();
21392 /* The GNU C library defines this for functions which it implements
21393 to always fail with ENOSYS. Some functions are actually named
21394 something starting with __ and the normal name is an alias. */
21395 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21396 choke me
21397 #endif
21400 main ()
21402 return gethostbyname_r ();
21404 return 0;
21406 _ACEOF
21407 rm -f conftest.$ac_objext conftest$ac_exeext
21408 if { (ac_try="$ac_link"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_link") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext &&
21424 $as_test_x conftest$ac_exeext; then
21425 ac_cv_func_gethostbyname_r=yes
21426 else
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_cv_func_gethostbyname_r=no
21433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21434 conftest$ac_exeext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21437 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21438 if test $ac_cv_func_gethostbyname_r = yes; then
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_GETHOSTBYNAME_R 1
21442 _ACEOF
21444 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21445 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21446 OLD_CFLAGS=$CFLAGS
21447 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21448 cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h. */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 # include <netdb.h>
21458 main ()
21461 char *name;
21462 struct hostent *he, *res;
21463 char buffer[2048];
21464 int buflen = 2048;
21465 int h_errnop;
21467 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21470 return 0;
21472 _ACEOF
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.$ac_objext; then
21491 cat >>confdefs.h <<\_ACEOF
21492 #define HAVE_GETHOSTBYNAME_R 1
21493 _ACEOF
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21498 _ACEOF
21500 { echo "$as_me:$LINENO: result: yes" >&5
21501 echo "${ECHO_T}yes" >&6; }
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21508 { echo "$as_me:$LINENO: result: no" >&5
21509 echo "${ECHO_T}no" >&6; }
21510 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21511 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21519 # include <netdb.h>
21522 main ()
21525 char *name;
21526 struct hostent *he;
21527 char buffer[2048];
21528 int buflen = 2048;
21529 int h_errnop;
21531 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21534 return 0;
21536 _ACEOF
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_compile") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest.$ac_objext; then
21555 cat >>confdefs.h <<\_ACEOF
21556 #define HAVE_GETHOSTBYNAME_R 1
21557 _ACEOF
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21562 _ACEOF
21564 { echo "$as_me:$LINENO: result: yes" >&5
21565 echo "${ECHO_T}yes" >&6; }
21567 else
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21572 { echo "$as_me:$LINENO: result: no" >&5
21573 echo "${ECHO_T}no" >&6; }
21574 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21575 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h. */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21583 # include <netdb.h>
21586 main ()
21589 char *name;
21590 struct hostent *he;
21591 struct hostent_data data;
21593 (void) gethostbyname_r(name, he, &data);
21596 return 0;
21598 _ACEOF
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21607 ac_status=$?
21608 grep -v '^ *+' conftest.er1 >conftest.err
21609 rm -f conftest.er1
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.$ac_objext; then
21617 cat >>confdefs.h <<\_ACEOF
21618 #define HAVE_GETHOSTBYNAME_R 1
21619 _ACEOF
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21624 _ACEOF
21626 { echo "$as_me:$LINENO: result: yes" >&5
21627 echo "${ECHO_T}yes" >&6; }
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21634 { echo "$as_me:$LINENO: result: no" >&5
21635 echo "${ECHO_T}no" >&6; }
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 CFLAGS=$OLD_CFLAGS
21650 else
21653 for ac_func in gethostbyname
21655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21669 #define $ac_func innocuous_$ac_func
21671 /* System header to define __stub macros and hopefully few prototypes,
21672 which can conflict with char $ac_func (); below.
21673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674 <limits.h> exists even on freestanding compilers. */
21676 #ifdef __STDC__
21677 # include <limits.h>
21678 #else
21679 # include <assert.h>
21680 #endif
21682 #undef $ac_func
21684 /* Override any GCC internal prototype to avoid an error.
21685 Use char because int might match the return type of a GCC
21686 builtin and then its argument prototype would still apply. */
21687 #ifdef __cplusplus
21688 extern "C"
21689 #endif
21690 char $ac_func ();
21691 /* The GNU C library defines this for functions which it implements
21692 to always fail with ENOSYS. Some functions are actually named
21693 something starting with __ and the normal name is an alias. */
21694 #if defined __stub_$ac_func || defined __stub___$ac_func
21695 choke me
21696 #endif
21699 main ()
21701 return $ac_func ();
21703 return 0;
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest$ac_exeext &&
21723 $as_test_x conftest$ac_exeext; then
21724 eval "$as_ac_var=yes"
21725 else
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 eval "$as_ac_var=no"
21732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21733 conftest$ac_exeext conftest.$ac_ext
21735 ac_res=`eval echo '${'$as_ac_var'}'`
21736 { echo "$as_me:$LINENO: result: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21738 if test `eval echo '${'$as_ac_var'}'` = yes; then
21739 cat >>confdefs.h <<_ACEOF
21740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21741 _ACEOF
21744 done
21755 # checks for system services
21756 # (none yet)
21758 # Linux requires this for correct f.p. operations
21759 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21760 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21761 if test "${ac_cv_func___fpu_control+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21772 #define __fpu_control innocuous___fpu_control
21774 /* System header to define __stub macros and hopefully few prototypes,
21775 which can conflict with char __fpu_control (); below.
21776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21777 <limits.h> exists even on freestanding compilers. */
21779 #ifdef __STDC__
21780 # include <limits.h>
21781 #else
21782 # include <assert.h>
21783 #endif
21785 #undef __fpu_control
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21790 #ifdef __cplusplus
21791 extern "C"
21792 #endif
21793 char __fpu_control ();
21794 /* The GNU C library defines this for functions which it implements
21795 to always fail with ENOSYS. Some functions are actually named
21796 something starting with __ and the normal name is an alias. */
21797 #if defined __stub___fpu_control || defined __stub_____fpu_control
21798 choke me
21799 #endif
21802 main ()
21804 return __fpu_control ();
21806 return 0;
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_link") 2>conftest.er1
21817 ac_status=$?
21818 grep -v '^ *+' conftest.er1 >conftest.err
21819 rm -f conftest.er1
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest$ac_exeext &&
21826 $as_test_x conftest$ac_exeext; then
21827 ac_cv_func___fpu_control=yes
21828 else
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ac_cv_func___fpu_control=no
21835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21836 conftest$ac_exeext conftest.$ac_ext
21838 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21839 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21840 if test $ac_cv_func___fpu_control = yes; then
21842 else
21844 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21845 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21846 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849 ac_check_lib_save_LIBS=$LIBS
21850 LIBS="-lieee $LIBS"
21851 cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 /* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21861 #ifdef __cplusplus
21862 extern "C"
21863 #endif
21864 char __fpu_control ();
21866 main ()
21868 return __fpu_control ();
21870 return 0;
21872 _ACEOF
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (ac_try="$ac_link"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_link") 2>conftest.er1
21881 ac_status=$?
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest$ac_exeext &&
21890 $as_test_x conftest$ac_exeext; then
21891 ac_cv_lib_ieee___fpu_control=yes
21892 else
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_cv_lib_ieee___fpu_control=no
21899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21900 conftest$ac_exeext conftest.$ac_ext
21901 LIBS=$ac_check_lib_save_LIBS
21903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21904 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21905 if test $ac_cv_lib_ieee___fpu_control = yes; then
21906 cat >>confdefs.h <<_ACEOF
21907 #define HAVE_LIBIEEE 1
21908 _ACEOF
21910 LIBS="-lieee $LIBS"
21918 # Check for --with-fpectl
21919 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21920 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21922 # Check whether --with-fpectl was given.
21923 if test "${with_fpectl+set}" = set; then
21924 withval=$with_fpectl;
21925 if test "$withval" != no
21926 then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define WANT_SIGFPE_HANDLER 1
21930 _ACEOF
21932 { echo "$as_me:$LINENO: result: yes" >&5
21933 echo "${ECHO_T}yes" >&6; }
21934 else { echo "$as_me:$LINENO: result: no" >&5
21935 echo "${ECHO_T}no" >&6; }
21937 else
21938 { echo "$as_me:$LINENO: result: no" >&5
21939 echo "${ECHO_T}no" >&6; }
21943 # check for --with-libm=...
21945 case $ac_sys_system in
21946 Darwin) ;;
21947 *) LIBM=-lm
21948 esac
21949 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21950 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21952 # Check whether --with-libm was given.
21953 if test "${with_libm+set}" = set; then
21954 withval=$with_libm;
21955 if test "$withval" = no
21956 then LIBM=
21957 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21958 echo "${ECHO_T}force LIBM empty" >&6; }
21959 elif test "$withval" != yes
21960 then LIBM=$withval
21961 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21962 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21963 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21964 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21965 { (exit 1); exit 1; }; }
21967 else
21968 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21969 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21973 # check for --with-libc=...
21975 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21976 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21978 # Check whether --with-libc was given.
21979 if test "${with_libc+set}" = set; then
21980 withval=$with_libc;
21981 if test "$withval" = no
21982 then LIBC=
21983 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21984 echo "${ECHO_T}force LIBC empty" >&6; }
21985 elif test "$withval" != yes
21986 then LIBC=$withval
21987 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21988 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21989 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21990 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21991 { (exit 1); exit 1; }; }
21993 else
21994 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21995 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21999 # **************************************************
22000 # * Check for various properties of floating point *
22001 # **************************************************
22003 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22004 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
22005 if test "${ac_cv_little_endian_double+set}" = set; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 else
22009 if test "$cross_compiling" = yes; then
22010 ac_cv_little_endian_double=no
22011 else
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22019 #include <string.h>
22020 int main() {
22021 double x = 9006104071832581.0;
22022 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22023 return 0;
22024 else
22025 return 1;
22028 _ACEOF
22029 rm -f conftest$ac_exeext
22030 if { (ac_try="$ac_link"
22031 case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22040 { (case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_try") 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; }; then
22049 ac_cv_little_endian_double=yes
22050 else
22051 echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ( exit $ac_status )
22056 ac_cv_little_endian_double=no
22058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22064 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22065 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22066 if test "$ac_cv_little_endian_double" = yes
22067 then
22069 cat >>confdefs.h <<\_ACEOF
22070 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22071 _ACEOF
22075 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22076 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22077 if test "${ac_cv_big_endian_double+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22081 if test "$cross_compiling" = yes; then
22082 ac_cv_big_endian_double=no
22083 else
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22091 #include <string.h>
22092 int main() {
22093 double x = 9006104071832581.0;
22094 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22095 return 0;
22096 else
22097 return 1;
22100 _ACEOF
22101 rm -f conftest$ac_exeext
22102 if { (ac_try="$ac_link"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_link") 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_cv_big_endian_double=yes
22122 else
22123 echo "$as_me: program exited with status $ac_status" >&5
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ( exit $ac_status )
22128 ac_cv_big_endian_double=no
22130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22137 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22138 if test "$ac_cv_big_endian_double" = yes
22139 then
22141 cat >>confdefs.h <<\_ACEOF
22142 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22143 _ACEOF
22147 # Some ARM platforms use a mixed-endian representation for doubles.
22148 # While Python doesn't currently have full support for these platforms
22149 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22150 # conversions work.
22151 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22152 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22153 if test "${ac_cv_mixed_endian_double+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22157 if test "$cross_compiling" = yes; then
22158 ac_cv_mixed_endian_double=no
22159 else
22160 cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h. */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22167 #include <string.h>
22168 int main() {
22169 double x = 9006104071832581.0;
22170 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22171 return 0;
22172 else
22173 return 1;
22176 _ACEOF
22177 rm -f conftest$ac_exeext
22178 if { (ac_try="$ac_link"
22179 case "(($ac_try" in
22180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181 *) ac_try_echo=$ac_try;;
22182 esac
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184 (eval "$ac_link") 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22188 { (case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_try") 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; }; then
22197 ac_cv_mixed_endian_double=yes
22198 else
22199 echo "$as_me: program exited with status $ac_status" >&5
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 ( exit $ac_status )
22204 ac_cv_mixed_endian_double=no
22206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22212 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22213 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22214 if test "$ac_cv_mixed_endian_double" = yes
22215 then
22217 cat >>confdefs.h <<\_ACEOF
22218 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22219 _ACEOF
22223 # The short float repr introduced in Python 3.1 requires the
22224 # correctly-rounded string <-> double conversion functions from
22225 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22226 # rounding; this is a problem on x86, where the x87 FPU has a default
22227 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22228 # using inline assembler to get and set the x87 FPU control word.
22229 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22230 then
22231 # Check that it's okay to use gcc inline assembler to get and set
22232 # x87 control word. It should be, but you never know...
22233 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22234 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22243 main ()
22246 unsigned short cw;
22247 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22248 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22251 return 0;
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22262 ac_status=$?
22263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 have_gcc_asm_for_x87=yes
22272 else
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 have_gcc_asm_for_x87=no
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22281 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22282 if test "$have_gcc_asm_for_x87" = yes
22283 then
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_GCC_ASM_FOR_X87 1
22287 _ACEOF
22292 # Detect whether system arithmetic is subject to x87-style double
22293 # rounding issues. The result of this test has little meaning on non
22294 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22295 # mode is round-to-nearest and double rounding issues are present, and
22296 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22297 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22298 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22299 # $BASECFLAGS may affect the result
22300 ac_save_cc="$CC"
22301 CC="$CC $BASECFLAGS"
22302 if test "$cross_compiling" = yes; then
22303 ac_cv_x87_double_rounding=no
22304 else
22305 cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h. */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 #include <stdlib.h>
22313 #include <math.h>
22314 int main() {
22315 volatile double x, y, z;
22316 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22317 x = 0.99999999999999989; /* 1-2**-53 */
22318 y = 1./x;
22319 if (y != 1.)
22320 exit(0);
22321 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22322 x = 1e16;
22323 y = 2.99999;
22324 z = x + y;
22325 if (z != 1e16+4.)
22326 exit(0);
22327 /* both tests show evidence of double rounding */
22328 exit(1);
22331 _ACEOF
22332 rm -f conftest$ac_exeext
22333 if { (ac_try="$ac_link"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_link") 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22343 { (case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_try") 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 ac_cv_x87_double_rounding=no
22353 else
22354 echo "$as_me: program exited with status $ac_status" >&5
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ( exit $ac_status )
22359 ac_cv_x87_double_rounding=yes
22361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22365 CC="$ac_save_cc"
22366 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22367 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22368 if test "$ac_cv_x87_double_rounding" = yes
22369 then
22371 cat >>confdefs.h <<\_ACEOF
22372 #define X87_DOUBLE_ROUNDING 1
22373 _ACEOF
22377 # ************************************
22378 # * Check for mathematical functions *
22379 # ************************************
22381 LIBS_SAVE=$LIBS
22382 LIBS="$LIBS $LIBM"
22384 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22385 # -0. on some architectures.
22386 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22387 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22388 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22392 if test "$cross_compiling" = yes; then
22393 ac_cv_tanh_preserves_zero_sign=no
22394 else
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22402 #include <math.h>
22403 #include <stdlib.h>
22404 int main() {
22405 /* return 0 if either negative zeros don't exist
22406 on this platform or if negative zeros exist
22407 and tanh(-0.) == -0. */
22408 if (atan2(0., -1.) == atan2(-0., -1.) ||
22409 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22410 else exit(1);
22413 _ACEOF
22414 rm -f conftest$ac_exeext
22415 if { (ac_try="$ac_link"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_link") 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22425 { (case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_try") 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_tanh_preserves_zero_sign=yes
22435 else
22436 echo "$as_me: program exited with status $ac_status" >&5
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ( exit $ac_status )
22441 ac_cv_tanh_preserves_zero_sign=no
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22449 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22450 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22451 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22452 then
22454 cat >>confdefs.h <<\_ACEOF
22455 #define TANH_PRESERVES_ZERO_SIGN 1
22456 _ACEOF
22469 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22485 #define $ac_func innocuous_$ac_func
22487 /* System header to define __stub macros and hopefully few prototypes,
22488 which can conflict with char $ac_func (); below.
22489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22490 <limits.h> exists even on freestanding compilers. */
22492 #ifdef __STDC__
22493 # include <limits.h>
22494 #else
22495 # include <assert.h>
22496 #endif
22498 #undef $ac_func
22500 /* Override any GCC internal prototype to avoid an error.
22501 Use char because int might match the return type of a GCC
22502 builtin and then its argument prototype would still apply. */
22503 #ifdef __cplusplus
22504 extern "C"
22505 #endif
22506 char $ac_func ();
22507 /* The GNU C library defines this for functions which it implements
22508 to always fail with ENOSYS. Some functions are actually named
22509 something starting with __ and the normal name is an alias. */
22510 #if defined __stub_$ac_func || defined __stub___$ac_func
22511 choke me
22512 #endif
22515 main ()
22517 return $ac_func ();
22519 return 0;
22521 _ACEOF
22522 rm -f conftest.$ac_objext conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_link") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest$ac_exeext &&
22539 $as_test_x conftest$ac_exeext; then
22540 eval "$as_ac_var=yes"
22541 else
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 eval "$as_ac_var=no"
22548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22549 conftest$ac_exeext conftest.$ac_ext
22551 ac_res=`eval echo '${'$as_ac_var'}'`
22552 { echo "$as_me:$LINENO: result: $ac_res" >&5
22553 echo "${ECHO_T}$ac_res" >&6; }
22554 if test `eval echo '${'$as_ac_var'}'` = yes; then
22555 cat >>confdefs.h <<_ACEOF
22556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22557 _ACEOF
22560 done
22562 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22563 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22564 if test "${ac_cv_have_decl_isinf+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 #include <math.h>
22576 main ()
22578 #ifndef isinf
22579 (void) isinf;
22580 #endif
22583 return 0;
22585 _ACEOF
22586 rm -f conftest.$ac_objext
22587 if { (ac_try="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
22594 ac_status=$?
22595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
22603 ac_cv_have_decl_isinf=yes
22604 else
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_cv_have_decl_isinf=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22614 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22615 if test $ac_cv_have_decl_isinf = yes; then
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_ISINF 1
22619 _ACEOF
22622 else
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_DECL_ISINF 0
22625 _ACEOF
22629 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22630 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22631 if test "${ac_cv_have_decl_isnan+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 else
22634 cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640 #include <math.h>
22643 main ()
22645 #ifndef isnan
22646 (void) isnan;
22647 #endif
22650 return 0;
22652 _ACEOF
22653 rm -f conftest.$ac_objext
22654 if { (ac_try="$ac_compile"
22655 case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22658 esac
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
22661 ac_status=$?
22662 grep -v '^ *+' conftest.er1 >conftest.err
22663 rm -f conftest.er1
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest.$ac_objext; then
22670 ac_cv_have_decl_isnan=yes
22671 else
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_cv_have_decl_isnan=no
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22681 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22682 if test $ac_cv_have_decl_isnan = yes; then
22684 cat >>confdefs.h <<_ACEOF
22685 #define HAVE_DECL_ISNAN 1
22686 _ACEOF
22689 else
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_DECL_ISNAN 0
22692 _ACEOF
22696 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22697 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22698 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h. */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <math.h>
22710 main ()
22712 #ifndef isfinite
22713 (void) isfinite;
22714 #endif
22717 return 0;
22719 _ACEOF
22720 rm -f conftest.$ac_objext
22721 if { (ac_try="$ac_compile"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_compile") 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest.$ac_objext; then
22737 ac_cv_have_decl_isfinite=yes
22738 else
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ac_cv_have_decl_isfinite=no
22745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22747 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22748 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22749 if test $ac_cv_have_decl_isfinite = yes; then
22751 cat >>confdefs.h <<_ACEOF
22752 #define HAVE_DECL_ISFINITE 1
22753 _ACEOF
22756 else
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_DECL_ISFINITE 0
22759 _ACEOF
22766 LIBS=$LIBS_SAVE
22768 # For multiprocessing module, check that sem_open
22769 # actually works. For FreeBSD versions <= 7.2,
22770 # the kernel module that provides POSIX semaphores
22771 # isn't loaded by default, so an attempt to call
22772 # sem_open results in a 'Signal 12' error.
22773 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22774 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22775 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 if test "$cross_compiling" = yes; then
22779 ac_cv_posix_semaphores_enabled=yes
22780 else
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h. */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22788 #include <unistd.h>
22789 #include <fcntl.h>
22790 #include <stdio.h>
22791 #include <semaphore.h>
22792 #include <sys/stat.h>
22794 int main(void) {
22795 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22796 if (a == SEM_FAILED) {
22797 perror("sem_open");
22798 return 1;
22800 sem_close(a);
22801 sem_unlink("/autoconf");
22802 return 0;
22805 _ACEOF
22806 rm -f conftest$ac_exeext
22807 if { (ac_try="$ac_link"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_link") 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22817 { (case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_try") 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_posix_semaphores_enabled=yes
22827 else
22828 echo "$as_me: program exited with status $ac_status" >&5
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ( exit $ac_status )
22833 ac_cv_posix_semaphores_enabled=no
22835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22843 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22844 if test $ac_cv_posix_semaphores_enabled = no
22845 then
22847 cat >>confdefs.h <<\_ACEOF
22848 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22849 _ACEOF
22853 # Multiprocessing check for broken sem_getvalue
22854 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22855 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22856 if test "$cross_compiling" = yes; then
22857 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22858 See \`config.log' for more details." >&5
22859 echo "$as_me: error: cannot run test program while cross compiling
22860 See \`config.log' for more details." >&2;}
22861 { (exit 1); exit 1; }; }
22862 else
22863 cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h. */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22870 #include <unistd.h>
22871 #include <fcntl.h>
22872 #include <stdio.h>
22873 #include <semaphore.h>
22874 #include <sys/stat.h>
22876 int main(void){
22877 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
22878 int count;
22879 int res;
22880 if(a==SEM_FAILED){
22881 perror("sem_open");
22882 return 1;
22885 res = sem_getvalue(a, &count);
22886 sem_close(a);
22887 sem_unlink("/autocftw");
22888 return res==-1 ? 1 : 0;
22892 _ACEOF
22893 rm -f conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22898 esac
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_link") 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22904 { (case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_try") 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 { echo "$as_me:$LINENO: result: no" >&5
22914 echo "${ECHO_T}no" >&6; }
22915 else
22916 echo "$as_me: program exited with status $ac_status" >&5
22917 echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22920 ( exit $ac_status )
22921 { echo "$as_me:$LINENO: result: yes" >&5
22922 echo "${ECHO_T}yes" >&6; }
22924 cat >>confdefs.h <<\_ACEOF
22925 #define HAVE_BROKEN_SEM_GETVALUE 1
22926 _ACEOF
22930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22935 # determine what size digit to use for Python's longs
22936 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22937 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22938 # Check whether --enable-big-digits was given.
22939 if test "${enable_big_digits+set}" = set; then
22940 enableval=$enable_big_digits; case $enable_big_digits in
22941 yes)
22942 enable_big_digits=30 ;;
22944 enable_big_digits=15 ;;
22945 15|30)
22948 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22949 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22950 { (exit 1); exit 1; }; } ;;
22951 esac
22952 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22953 echo "${ECHO_T}$enable_big_digits" >&6; }
22955 cat >>confdefs.h <<_ACEOF
22956 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22957 _ACEOF
22960 else
22961 { echo "$as_me:$LINENO: result: no value specified" >&5
22962 echo "${ECHO_T}no value specified" >&6; }
22966 # check for wchar.h
22967 if test "${ac_cv_header_wchar_h+set}" = set; then
22968 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22969 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_wchar_h+set}" = set; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22974 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22975 else
22976 # Is the header compilable?
22977 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22978 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
22986 #include <wchar.h>
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_compile") 2>conftest.er1
22996 ac_status=$?
22997 grep -v '^ *+' conftest.er1 >conftest.err
22998 rm -f conftest.er1
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } && {
23002 test -z "$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23004 } && test -s conftest.$ac_objext; then
23005 ac_header_compiler=yes
23006 else
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_header_compiler=no
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017 # Is the header present?
23018 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23019 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 #include <wchar.h>
23027 _ACEOF
23028 if { (ac_try="$ac_cpp conftest.$ac_ext"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23035 ac_status=$?
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } >/dev/null && {
23041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23042 test ! -s conftest.err
23043 }; then
23044 ac_header_preproc=yes
23045 else
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ac_header_preproc=no
23052 rm -f conftest.err conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23054 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056 # So? What about this header?
23057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23058 yes:no: )
23059 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23060 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23062 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23063 ac_header_preproc=yes
23065 no:yes:* )
23066 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23067 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23069 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23071 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23073 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23075 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23076 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23077 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23078 ( cat <<\_ASBOX
23079 ## -------------------------------------- ##
23080 ## Report this to http://bugs.python.org/ ##
23081 ## -------------------------------------- ##
23082 _ASBOX
23083 ) | sed "s/^/$as_me: WARNING: /" >&2
23085 esac
23086 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23087 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23088 if test "${ac_cv_header_wchar_h+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091 ac_cv_header_wchar_h=$ac_header_preproc
23093 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23094 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23097 if test $ac_cv_header_wchar_h = yes; then
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_WCHAR_H 1
23102 _ACEOF
23104 wchar_h="yes"
23106 else
23107 wchar_h="no"
23113 # determine wchar_t size
23114 if test "$wchar_h" = yes
23115 then
23116 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23117 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23118 if test "${ac_cv_type_wchar_t+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121 cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h. */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 #include <wchar.h>
23129 typedef wchar_t ac__type_new_;
23131 main ()
23133 if ((ac__type_new_ *) 0)
23134 return 0;
23135 if (sizeof (ac__type_new_))
23136 return 0;
23138 return 0;
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 ac_cv_type_wchar_t=yes
23159 else
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ac_cv_type_wchar_t=no
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23169 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23171 # The cast to long int works around a bug in the HP C Compiler
23172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174 # This bug is HP SR number 8606223364.
23175 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23176 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23177 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180 if test "$cross_compiling" = yes; then
23181 # Depending upon the size, compute the lo and hi bounds.
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 #include <wchar.h>
23190 typedef wchar_t ac__type_sizeof_;
23192 main ()
23194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23195 test_array [0] = 0
23198 return 0;
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23209 ac_status=$?
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_lo=0 ac_mid=0
23219 while :; do
23220 cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h. */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <wchar.h>
23228 typedef wchar_t ac__type_sizeof_;
23230 main ()
23232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23233 test_array [0] = 0
23236 return 0;
23238 _ACEOF
23239 rm -f conftest.$ac_objext
23240 if { (ac_try="$ac_compile"
23241 case "(($ac_try" in
23242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243 *) ac_try_echo=$ac_try;;
23244 esac
23245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23246 (eval "$ac_compile") 2>conftest.er1
23247 ac_status=$?
23248 grep -v '^ *+' conftest.er1 >conftest.err
23249 rm -f conftest.er1
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } && {
23253 test -z "$ac_c_werror_flag" ||
23254 test ! -s conftest.err
23255 } && test -s conftest.$ac_objext; then
23256 ac_hi=$ac_mid; break
23257 else
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 ac_lo=`expr $ac_mid + 1`
23262 if test $ac_lo -le $ac_mid; then
23263 ac_lo= ac_hi=
23264 break
23266 ac_mid=`expr 2 '*' $ac_mid + 1`
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 done
23271 else
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h. */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 #include <wchar.h>
23283 typedef wchar_t ac__type_sizeof_;
23285 main ()
23287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23288 test_array [0] = 0
23291 return 0;
23293 _ACEOF
23294 rm -f conftest.$ac_objext
23295 if { (ac_try="$ac_compile"
23296 case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_compile") 2>conftest.er1
23302 ac_status=$?
23303 grep -v '^ *+' conftest.er1 >conftest.err
23304 rm -f conftest.er1
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } && {
23308 test -z "$ac_c_werror_flag" ||
23309 test ! -s conftest.err
23310 } && test -s conftest.$ac_objext; then
23311 ac_hi=-1 ac_mid=-1
23312 while :; do
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 #include <wchar.h>
23321 typedef wchar_t ac__type_sizeof_;
23323 main ()
23325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23326 test_array [0] = 0
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23337 esac
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23340 ac_status=$?
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_lo=$ac_mid; break
23350 else
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_hi=`expr '(' $ac_mid ')' - 1`
23355 if test $ac_mid -le $ac_hi; then
23356 ac_lo= ac_hi=
23357 break
23359 ac_mid=`expr 2 '*' $ac_mid`
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 done
23364 else
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 ac_lo= ac_hi=
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 # Binary search between lo and hi bounds.
23376 while test "x$ac_lo" != "x$ac_hi"; do
23377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h. */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include <wchar.h>
23386 typedef wchar_t ac__type_sizeof_;
23388 main ()
23390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23391 test_array [0] = 0
23394 return 0;
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest.$ac_objext; then
23414 ac_hi=$ac_mid
23415 else
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_lo=`expr '(' $ac_mid ')' + 1`
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 done
23424 case $ac_lo in
23425 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23426 '') if test "$ac_cv_type_wchar_t" = yes; then
23427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23428 See \`config.log' for more details." >&5
23429 echo "$as_me: error: cannot compute sizeof (wchar_t)
23430 See \`config.log' for more details." >&2;}
23431 { (exit 77); exit 77; }; }
23432 else
23433 ac_cv_sizeof_wchar_t=0
23434 fi ;;
23435 esac
23436 else
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <wchar.h>
23445 typedef wchar_t ac__type_sizeof_;
23446 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23447 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23448 #include <stdio.h>
23449 #include <stdlib.h>
23451 main ()
23454 FILE *f = fopen ("conftest.val", "w");
23455 if (! f)
23456 return 1;
23457 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23459 long int i = longval ();
23460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23461 return 1;
23462 fprintf (f, "%ld\n", i);
23464 else
23466 unsigned long int i = ulongval ();
23467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23468 return 1;
23469 fprintf (f, "%lu\n", i);
23471 return ferror (f) || fclose (f) != 0;
23474 return 0;
23476 _ACEOF
23477 rm -f conftest$ac_exeext
23478 if { (ac_try="$ac_link"
23479 case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_link") 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23488 { (case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_try") 2>&5
23494 ac_status=$?
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; }; then
23497 ac_cv_sizeof_wchar_t=`cat conftest.val`
23498 else
23499 echo "$as_me: program exited with status $ac_status" >&5
23500 echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23503 ( exit $ac_status )
23504 if test "$ac_cv_type_wchar_t" = yes; then
23505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23506 See \`config.log' for more details." >&5
23507 echo "$as_me: error: cannot compute sizeof (wchar_t)
23508 See \`config.log' for more details." >&2;}
23509 { (exit 77); exit 77; }; }
23510 else
23511 ac_cv_sizeof_wchar_t=0
23514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23516 rm -f conftest.val
23518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23519 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23523 cat >>confdefs.h <<_ACEOF
23524 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23525 _ACEOF
23530 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23531 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23532 have_ucs4_tcl=no
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23540 #include <tcl.h>
23541 #if TCL_UTF_MAX != 6
23542 # error "NOT UCS4_TCL"
23543 #endif
23545 main ()
23549 return 0;
23551 _ACEOF
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_compile") 2>conftest.er1
23560 ac_status=$?
23561 grep -v '^ *+' conftest.er1 >conftest.err
23562 rm -f conftest.er1
23563 cat conftest.err >&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && {
23566 test -z "$ac_c_werror_flag" ||
23567 test ! -s conftest.err
23568 } && test -s conftest.$ac_objext; then
23571 cat >>confdefs.h <<\_ACEOF
23572 #define HAVE_UCS4_TCL 1
23573 _ACEOF
23575 have_ucs4_tcl=yes
23577 else
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23586 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23588 # check whether wchar_t is signed or not
23589 if test "$wchar_h" = yes
23590 then
23591 # check whether wchar_t is signed or not
23592 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23593 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23594 if test "${ac_cv_wchar_t_signed+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 else
23598 if test "$cross_compiling" = yes; then
23599 ac_cv_wchar_t_signed=yes
23600 else
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23608 #include <wchar.h>
23609 int main()
23611 /* Success: exit code 0 */
23612 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23615 _ACEOF
23616 rm -f conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23627 { (case "(($ac_try" in
23628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23629 *) ac_try_echo=$ac_try;;
23630 esac
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632 (eval "$ac_try") 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636 ac_cv_wchar_t_signed=yes
23637 else
23638 echo "$as_me: program exited with status $ac_status" >&5
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 ( exit $ac_status )
23643 ac_cv_wchar_t_signed=no
23645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23652 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23655 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23656 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23658 # Check whether --with-wide-unicode was given.
23659 if test "${with_wide_unicode+set}" = set; then
23660 withval=$with_wide_unicode;
23661 if test "$withval" != no
23662 then unicode_size="4"
23663 else unicode_size="2"
23666 else
23668 case "$have_ucs4_tcl" in
23669 yes) unicode_size="4" ;;
23670 *) unicode_size="2" ;;
23671 esac
23678 case "$unicode_size" in
23679 4) cat >>confdefs.h <<\_ACEOF
23680 #define Py_UNICODE_SIZE 4
23681 _ACEOF
23683 *) cat >>confdefs.h <<\_ACEOF
23684 #define Py_UNICODE_SIZE 2
23685 _ACEOF
23687 esac
23692 # wchar_t is only usable if it maps to an unsigned type
23693 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23694 -a "$ac_cv_wchar_t_signed" = "no"
23695 then
23696 PY_UNICODE_TYPE="wchar_t"
23698 cat >>confdefs.h <<\_ACEOF
23699 #define HAVE_USABLE_WCHAR_T 1
23700 _ACEOF
23702 cat >>confdefs.h <<\_ACEOF
23703 #define PY_UNICODE_TYPE wchar_t
23704 _ACEOF
23706 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23707 then
23708 PY_UNICODE_TYPE="unsigned short"
23709 cat >>confdefs.h <<\_ACEOF
23710 #define PY_UNICODE_TYPE unsigned short
23711 _ACEOF
23713 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23714 then
23715 PY_UNICODE_TYPE="unsigned long"
23716 cat >>confdefs.h <<\_ACEOF
23717 #define PY_UNICODE_TYPE unsigned long
23718 _ACEOF
23720 else
23721 PY_UNICODE_TYPE="no type found"
23723 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23724 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23726 # check for endianness
23727 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23728 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23729 if test "${ac_cv_c_bigendian+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 # See if sys/param.h defines the BYTE_ORDER macro.
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <sys/types.h>
23740 #include <sys/param.h>
23743 main ()
23745 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23746 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23747 bogus endian macros
23748 #endif
23751 return 0;
23753 _ACEOF
23754 rm -f conftest.$ac_objext
23755 if { (ac_try="$ac_compile"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_compile") 2>conftest.er1
23762 ac_status=$?
23763 grep -v '^ *+' conftest.er1 >conftest.err
23764 rm -f conftest.er1
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest.$ac_objext; then
23771 # It does; now see whether it defined to BIG_ENDIAN or not.
23772 cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h. */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23778 #include <sys/types.h>
23779 #include <sys/param.h>
23782 main ()
23784 #if BYTE_ORDER != BIG_ENDIAN
23785 not big endian
23786 #endif
23789 return 0;
23791 _ACEOF
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23800 ac_status=$?
23801 grep -v '^ *+' conftest.er1 >conftest.err
23802 rm -f conftest.er1
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.$ac_objext; then
23809 ac_cv_c_bigendian=yes
23810 else
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_cv_c_bigendian=no
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 else
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 # It does not; compile a test program.
23823 if test "$cross_compiling" = yes; then
23824 # try to guess the endianness by grepping values into an object file
23825 ac_cv_c_bigendian=unknown
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23833 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23834 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23835 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23836 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23837 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23839 main ()
23841 _ascii (); _ebcdic ();
23843 return 0;
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23854 ac_status=$?
23855 grep -v '^ *+' conftest.er1 >conftest.err
23856 rm -f conftest.er1
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23863 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23864 ac_cv_c_bigendian=yes
23866 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23867 if test "$ac_cv_c_bigendian" = unknown; then
23868 ac_cv_c_bigendian=no
23869 else
23870 # finding both strings is unlikely to happen, but who knows?
23871 ac_cv_c_bigendian=unknown
23874 else
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882 else
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h. */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 $ac_includes_default
23891 main ()
23894 /* Are we little or big endian? From Harbison&Steele. */
23895 union
23897 long int l;
23898 char c[sizeof (long int)];
23899 } u;
23900 u.l = 1;
23901 return u.c[sizeof (long int) - 1] == 1;
23904 return 0;
23906 _ACEOF
23907 rm -f conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_link") 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23918 { (case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23921 esac
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval "$ac_try") 2>&5
23924 ac_status=$?
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 ac_cv_c_bigendian=no
23928 else
23929 echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ( exit $ac_status )
23934 ac_cv_c_bigendian=yes
23936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23945 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23946 case $ac_cv_c_bigendian in
23947 yes)
23949 cat >>confdefs.h <<\_ACEOF
23950 #define WORDS_BIGENDIAN 1
23951 _ACEOF
23956 { { echo "$as_me:$LINENO: error: unknown endianness
23957 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23958 echo "$as_me: error: unknown endianness
23959 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23960 { (exit 1); exit 1; }; } ;;
23961 esac
23964 # Check whether right shifting a negative integer extends the sign bit
23965 # or fills with zeros (like the Cray J90, according to Tim Peters).
23966 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23967 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23968 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23972 if test "$cross_compiling" = yes; then
23973 ac_cv_rshift_extends_sign=yes
23974 else
23975 cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h. */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23982 int main()
23984 exit(((-1)>>3 == -1) ? 0 : 1);
23987 _ACEOF
23988 rm -f conftest$ac_exeext
23989 if { (ac_try="$ac_link"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_link") 2>&5
23996 ac_status=$?
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23999 { (case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002 esac
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_try") 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 ac_cv_rshift_extends_sign=yes
24009 else
24010 echo "$as_me: program exited with status $ac_status" >&5
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ( exit $ac_status )
24015 ac_cv_rshift_extends_sign=no
24017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24024 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24025 if test "$ac_cv_rshift_extends_sign" = no
24026 then
24028 cat >>confdefs.h <<\_ACEOF
24029 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24030 _ACEOF
24034 # check for getc_unlocked and related locking functions
24035 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24036 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24037 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24039 else
24041 cat >conftest.$ac_ext <<_ACEOF
24042 /* confdefs.h. */
24043 _ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h. */
24047 #include <stdio.h>
24049 main ()
24052 FILE *f = fopen("/dev/null", "r");
24053 flockfile(f);
24054 getc_unlocked(f);
24055 funlockfile(f);
24058 return 0;
24060 _ACEOF
24061 rm -f conftest.$ac_objext conftest$ac_exeext
24062 if { (ac_try="$ac_link"
24063 case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_link") 2>conftest.er1
24069 ac_status=$?
24070 grep -v '^ *+' conftest.er1 >conftest.err
24071 rm -f conftest.er1
24072 cat conftest.err >&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } && {
24075 test -z "$ac_c_werror_flag" ||
24076 test ! -s conftest.err
24077 } && test -s conftest$ac_exeext &&
24078 $as_test_x conftest$ac_exeext; then
24079 ac_cv_have_getc_unlocked=yes
24080 else
24081 echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.$ac_ext >&5
24084 ac_cv_have_getc_unlocked=no
24087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24088 conftest$ac_exeext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24092 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24093 if test "$ac_cv_have_getc_unlocked" = yes
24094 then
24096 cat >>confdefs.h <<\_ACEOF
24097 #define HAVE_GETC_UNLOCKED 1
24098 _ACEOF
24102 # check where readline lives
24103 # save the value of LIBS so we don't actually link Python with readline
24104 LIBS_no_readline=$LIBS
24106 # On some systems we need to link readline to a termcap compatible
24107 # library. NOTE: Keep the precedence of listed libraries synchronised
24108 # with setup.py.
24109 py_cv_lib_readline=no
24110 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24111 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24112 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24113 if test -z "$py_libtermcap"; then
24114 READLINE_LIBS="-lreadline"
24115 else
24116 READLINE_LIBS="-lreadline -l$py_libtermcap"
24118 LIBS="$READLINE_LIBS $LIBS_no_readline"
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h. */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24126 /* Override any GCC internal prototype to avoid an error.
24127 Use char because int might match the return type of a GCC
24128 builtin and then its argument prototype would still apply. */
24129 #ifdef __cplusplus
24130 extern "C"
24131 #endif
24132 char readline ();
24134 main ()
24136 return readline ();
24138 return 0;
24140 _ACEOF
24141 rm -f conftest.$ac_objext conftest$ac_exeext
24142 if { (ac_try="$ac_link"
24143 case "(($ac_try" in
24144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145 *) ac_try_echo=$ac_try;;
24146 esac
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148 (eval "$ac_link") 2>conftest.er1
24149 ac_status=$?
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest$ac_exeext &&
24158 $as_test_x conftest$ac_exeext; then
24159 py_cv_lib_readline=yes
24160 else
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24168 conftest$ac_exeext conftest.$ac_ext
24169 if test $py_cv_lib_readline = yes; then
24170 break
24172 done
24173 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24174 #AC_SUBST([READLINE_LIBS])
24175 if test $py_cv_lib_readline = no; then
24176 { echo "$as_me:$LINENO: result: none" >&5
24177 echo "${ECHO_T}none" >&6; }
24178 else
24179 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24180 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24182 cat >>confdefs.h <<\_ACEOF
24183 #define HAVE_LIBREADLINE 1
24184 _ACEOF
24188 # check for readline 2.1
24189 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24190 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24191 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24192 echo $ECHO_N "(cached) $ECHO_C" >&6
24193 else
24194 ac_check_lib_save_LIBS=$LIBS
24195 LIBS="-lreadline $READLINE_LIBS $LIBS"
24196 cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h. */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24203 /* Override any GCC internal prototype to avoid an error.
24204 Use char because int might match the return type of a GCC
24205 builtin and then its argument prototype would still apply. */
24206 #ifdef __cplusplus
24207 extern "C"
24208 #endif
24209 char rl_callback_handler_install ();
24211 main ()
24213 return rl_callback_handler_install ();
24215 return 0;
24217 _ACEOF
24218 rm -f conftest.$ac_objext conftest$ac_exeext
24219 if { (ac_try="$ac_link"
24220 case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24223 esac
24224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225 (eval "$ac_link") 2>conftest.er1
24226 ac_status=$?
24227 grep -v '^ *+' conftest.er1 >conftest.err
24228 rm -f conftest.er1
24229 cat conftest.err >&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); } && {
24232 test -z "$ac_c_werror_flag" ||
24233 test ! -s conftest.err
24234 } && test -s conftest$ac_exeext &&
24235 $as_test_x conftest$ac_exeext; then
24236 ac_cv_lib_readline_rl_callback_handler_install=yes
24237 else
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ac_cv_lib_readline_rl_callback_handler_install=no
24244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24245 conftest$ac_exeext conftest.$ac_ext
24246 LIBS=$ac_check_lib_save_LIBS
24248 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24249 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24250 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24252 cat >>confdefs.h <<\_ACEOF
24253 #define HAVE_RL_CALLBACK 1
24254 _ACEOF
24259 # check for readline 2.2
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 #include <readline/readline.h>
24267 _ACEOF
24268 if { (ac_try="$ac_cpp conftest.$ac_ext"
24269 case "(($ac_try" in
24270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24272 esac
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24275 ac_status=$?
24276 grep -v '^ *+' conftest.er1 >conftest.err
24277 rm -f conftest.er1
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } >/dev/null && {
24281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24282 test ! -s conftest.err
24283 }; then
24284 have_readline=yes
24285 else
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 have_readline=no
24292 rm -f conftest.err conftest.$ac_ext
24293 if test $have_readline = yes
24294 then
24295 cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h. */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include <readline/readline.h>
24303 _ACEOF
24304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24305 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24307 cat >>confdefs.h <<\_ACEOF
24308 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24309 _ACEOF
24312 rm -f conftest*
24314 cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h. */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <readline/readline.h>
24322 _ACEOF
24323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24324 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24326 cat >>confdefs.h <<\_ACEOF
24327 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24328 _ACEOF
24331 rm -f conftest*
24335 # check for readline 4.0
24336 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24337 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24338 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24340 else
24341 ac_check_lib_save_LIBS=$LIBS
24342 LIBS="-lreadline $READLINE_LIBS $LIBS"
24343 cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h. */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24350 /* Override any GCC internal prototype to avoid an error.
24351 Use char because int might match the return type of a GCC
24352 builtin and then its argument prototype would still apply. */
24353 #ifdef __cplusplus
24354 extern "C"
24355 #endif
24356 char rl_pre_input_hook ();
24358 main ()
24360 return rl_pre_input_hook ();
24362 return 0;
24364 _ACEOF
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (ac_try="$ac_link"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_link") 2>conftest.er1
24373 ac_status=$?
24374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest$ac_exeext &&
24382 $as_test_x conftest$ac_exeext; then
24383 ac_cv_lib_readline_rl_pre_input_hook=yes
24384 else
24385 echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24388 ac_cv_lib_readline_rl_pre_input_hook=no
24391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24392 conftest$ac_exeext conftest.$ac_ext
24393 LIBS=$ac_check_lib_save_LIBS
24395 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24396 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24397 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24399 cat >>confdefs.h <<\_ACEOF
24400 #define HAVE_RL_PRE_INPUT_HOOK 1
24401 _ACEOF
24406 # also in 4.0
24407 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24408 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24409 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411 else
24412 ac_check_lib_save_LIBS=$LIBS
24413 LIBS="-lreadline $READLINE_LIBS $LIBS"
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h. */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24421 /* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24424 #ifdef __cplusplus
24425 extern "C"
24426 #endif
24427 char rl_completion_display_matches_hook ();
24429 main ()
24431 return rl_completion_display_matches_hook ();
24433 return 0;
24435 _ACEOF
24436 rm -f conftest.$ac_objext conftest$ac_exeext
24437 if { (ac_try="$ac_link"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_link") 2>conftest.er1
24444 ac_status=$?
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest$ac_exeext &&
24453 $as_test_x conftest$ac_exeext; then
24454 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24467 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24468 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24472 _ACEOF
24477 # check for readline 4.2
24478 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24479 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24480 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483 ac_check_lib_save_LIBS=$LIBS
24484 LIBS="-lreadline $READLINE_LIBS $LIBS"
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24492 /* Override any GCC internal prototype to avoid an error.
24493 Use char because int might match the return type of a GCC
24494 builtin and then its argument prototype would still apply. */
24495 #ifdef __cplusplus
24496 extern "C"
24497 #endif
24498 char rl_completion_matches ();
24500 main ()
24502 return rl_completion_matches ();
24504 return 0;
24506 _ACEOF
24507 rm -f conftest.$ac_objext conftest$ac_exeext
24508 if { (ac_try="$ac_link"
24509 case "(($ac_try" in
24510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511 *) ac_try_echo=$ac_try;;
24512 esac
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_link") 2>conftest.er1
24515 ac_status=$?
24516 grep -v '^ *+' conftest.er1 >conftest.err
24517 rm -f conftest.er1
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest$ac_exeext &&
24524 $as_test_x conftest$ac_exeext; then
24525 ac_cv_lib_readline_rl_completion_matches=yes
24526 else
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 ac_cv_lib_readline_rl_completion_matches=no
24533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24534 conftest$ac_exeext conftest.$ac_ext
24535 LIBS=$ac_check_lib_save_LIBS
24537 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24538 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24539 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24541 cat >>confdefs.h <<\_ACEOF
24542 #define HAVE_RL_COMPLETION_MATCHES 1
24543 _ACEOF
24548 # also in readline 4.2
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <readline/readline.h>
24556 _ACEOF
24557 if { (ac_try="$ac_cpp conftest.$ac_ext"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24564 ac_status=$?
24565 grep -v '^ *+' conftest.er1 >conftest.err
24566 rm -f conftest.er1
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null && {
24570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24572 }; then
24573 have_readline=yes
24574 else
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 have_readline=no
24581 rm -f conftest.err conftest.$ac_ext
24582 if test $have_readline = yes
24583 then
24584 cat >conftest.$ac_ext <<_ACEOF
24585 /* confdefs.h. */
24586 _ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #include <readline/readline.h>
24592 _ACEOF
24593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24594 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24596 cat >>confdefs.h <<\_ACEOF
24597 #define HAVE_RL_CATCH_SIGNAL 1
24598 _ACEOF
24601 rm -f conftest*
24605 # End of readline checks: restore LIBS
24606 LIBS=$LIBS_no_readline
24608 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24609 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24610 if test "${ac_cv_broken_nice+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24614 if test "$cross_compiling" = yes; then
24615 ac_cv_broken_nice=no
24616 else
24617 cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h. */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24624 int main()
24626 int val1 = nice(1);
24627 if (val1 != -1 && val1 == nice(2))
24628 exit(0);
24629 exit(1);
24632 _ACEOF
24633 rm -f conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>&5
24641 ac_status=$?
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24644 { (case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647 esac
24648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_try") 2>&5
24650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; }; then
24653 ac_cv_broken_nice=yes
24654 else
24655 echo "$as_me: program exited with status $ac_status" >&5
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ( exit $ac_status )
24660 ac_cv_broken_nice=no
24662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24668 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24669 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24670 if test "$ac_cv_broken_nice" = yes
24671 then
24673 cat >>confdefs.h <<\_ACEOF
24674 #define HAVE_BROKEN_NICE 1
24675 _ACEOF
24679 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24680 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24681 if test "$cross_compiling" = yes; then
24682 ac_cv_broken_poll=no
24683 else
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 #include <poll.h>
24693 int main (void)
24695 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24697 close (42);
24699 int poll_test = poll (&poll_struct, 1, 0);
24701 if (poll_test < 0)
24703 exit(0);
24705 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24707 exit(0);
24709 else
24711 exit(1);
24715 _ACEOF
24716 rm -f conftest$ac_exeext
24717 if { (ac_try="$ac_link"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_link") 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727 { (case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24730 esac
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_try") 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_broken_poll=yes
24737 else
24738 echo "$as_me: program exited with status $ac_status" >&5
24739 echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24742 ( exit $ac_status )
24743 ac_cv_broken_poll=no
24745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24749 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24750 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24751 if test "$ac_cv_broken_poll" = yes
24752 then
24754 cat >>confdefs.h <<\_ACEOF
24755 #define HAVE_BROKEN_POLL 1
24756 _ACEOF
24760 # Before we can test tzset, we need to check if struct tm has a tm_zone
24761 # (which is not required by ISO C or UNIX spec) and/or if we support
24762 # tzname[]
24763 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24764 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24765 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768 cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h. */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <sys/types.h>
24775 #include <$ac_cv_struct_tm>
24779 main ()
24781 static struct tm ac_aggr;
24782 if (ac_aggr.tm_zone)
24783 return 0;
24785 return 0;
24787 _ACEOF
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792 *) ac_try_echo=$ac_try;;
24793 esac
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24796 ac_status=$?
24797 grep -v '^ *+' conftest.er1 >conftest.err
24798 rm -f conftest.er1
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.$ac_objext; then
24805 ac_cv_member_struct_tm_tm_zone=yes
24806 else
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810 cat >conftest.$ac_ext <<_ACEOF
24811 /* confdefs.h. */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 #include <sys/types.h>
24817 #include <$ac_cv_struct_tm>
24821 main ()
24823 static struct tm ac_aggr;
24824 if (sizeof ac_aggr.tm_zone)
24825 return 0;
24827 return 0;
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_cv_member_struct_tm_tm_zone=yes
24848 else
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_cv_member_struct_tm_tm_zone=no
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24862 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24864 cat >>confdefs.h <<_ACEOF
24865 #define HAVE_STRUCT_TM_TM_ZONE 1
24866 _ACEOF
24871 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24873 cat >>confdefs.h <<\_ACEOF
24874 #define HAVE_TM_ZONE 1
24875 _ACEOF
24877 else
24878 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24879 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24880 if test "${ac_cv_have_decl_tzname+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883 cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h. */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24889 #include <time.h>
24892 main ()
24894 #ifndef tzname
24895 (void) tzname;
24896 #endif
24899 return 0;
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_compile") 2>conftest.er1
24910 ac_status=$?
24911 grep -v '^ *+' conftest.er1 >conftest.err
24912 rm -f conftest.er1
24913 cat conftest.err >&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } && {
24916 test -z "$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 } && test -s conftest.$ac_objext; then
24919 ac_cv_have_decl_tzname=yes
24920 else
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 ac_cv_have_decl_tzname=no
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24930 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24931 if test $ac_cv_have_decl_tzname = yes; then
24933 cat >>confdefs.h <<_ACEOF
24934 #define HAVE_DECL_TZNAME 1
24935 _ACEOF
24938 else
24939 cat >>confdefs.h <<_ACEOF
24940 #define HAVE_DECL_TZNAME 0
24941 _ACEOF
24947 { echo "$as_me:$LINENO: checking for tzname" >&5
24948 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24949 if test "${ac_cv_var_tzname+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952 cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h. */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 #include <time.h>
24959 #if !HAVE_DECL_TZNAME
24960 extern char *tzname[];
24961 #endif
24964 main ()
24966 return tzname[0][0];
24968 return 0;
24970 _ACEOF
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (ac_try="$ac_link"
24973 case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_link") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest$ac_exeext &&
24988 $as_test_x conftest$ac_exeext; then
24989 ac_cv_var_tzname=yes
24990 else
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_cv_var_tzname=no
24997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25001 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25002 if test $ac_cv_var_tzname = yes; then
25004 cat >>confdefs.h <<\_ACEOF
25005 #define HAVE_TZNAME 1
25006 _ACEOF
25012 # check tzset(3) exists and works like we expect it to
25013 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25014 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25015 if test "${ac_cv_working_tzset+set}" = set; then
25016 echo $ECHO_N "(cached) $ECHO_C" >&6
25017 else
25019 if test "$cross_compiling" = yes; then
25020 ac_cv_working_tzset=no
25021 else
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h. */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25029 #include <stdlib.h>
25030 #include <time.h>
25031 #include <string.h>
25033 #if HAVE_TZNAME
25034 extern char *tzname[];
25035 #endif
25037 int main()
25039 /* Note that we need to ensure that not only does tzset(3)
25040 do 'something' with localtime, but it works as documented
25041 in the library reference and as expected by the test suite.
25042 This includes making sure that tzname is set properly if
25043 tm->tm_zone does not exist since it is the alternative way
25044 of getting timezone info.
25046 Red Hat 6.2 doesn't understand the southern hemisphere
25047 after New Year's Day.
25050 time_t groundhogday = 1044144000; /* GMT-based */
25051 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25053 putenv("TZ=UTC+0");
25054 tzset();
25055 if (localtime(&groundhogday)->tm_hour != 0)
25056 exit(1);
25057 #if HAVE_TZNAME
25058 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25059 if (strcmp(tzname[0], "UTC") ||
25060 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25061 exit(1);
25062 #endif
25064 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25065 tzset();
25066 if (localtime(&groundhogday)->tm_hour != 19)
25067 exit(1);
25068 #if HAVE_TZNAME
25069 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25070 exit(1);
25071 #endif
25073 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25074 tzset();
25075 if (localtime(&groundhogday)->tm_hour != 11)
25076 exit(1);
25077 #if HAVE_TZNAME
25078 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25079 exit(1);
25080 #endif
25082 #if HAVE_STRUCT_TM_TM_ZONE
25083 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25084 exit(1);
25085 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25086 exit(1);
25087 #endif
25089 exit(0);
25092 _ACEOF
25093 rm -f conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097 *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100 (eval "$ac_link") 2>&5
25101 ac_status=$?
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25104 { (case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_try") 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_cv_working_tzset=yes
25114 else
25115 echo "$as_me: program exited with status $ac_status" >&5
25116 echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ( exit $ac_status )
25120 ac_cv_working_tzset=no
25122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25128 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25129 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25130 if test "$ac_cv_working_tzset" = yes
25131 then
25133 cat >>confdefs.h <<\_ACEOF
25134 #define HAVE_WORKING_TZSET 1
25135 _ACEOF
25139 # Look for subsecond timestamps in struct stat
25140 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25141 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25142 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 else
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h. */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 #include <sys/stat.h>
25153 main ()
25156 struct stat st;
25157 st.st_mtim.tv_nsec = 1;
25160 return 0;
25162 _ACEOF
25163 rm -f conftest.$ac_objext
25164 if { (ac_try="$ac_compile"
25165 case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25168 esac
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_compile") 2>conftest.er1
25171 ac_status=$?
25172 grep -v '^ *+' conftest.er1 >conftest.err
25173 rm -f conftest.er1
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } && {
25177 test -z "$ac_c_werror_flag" ||
25178 test ! -s conftest.err
25179 } && test -s conftest.$ac_objext; then
25180 ac_cv_stat_tv_nsec=yes
25181 else
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ac_cv_stat_tv_nsec=no
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25192 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25193 if test "$ac_cv_stat_tv_nsec" = yes
25194 then
25196 cat >>confdefs.h <<\_ACEOF
25197 #define HAVE_STAT_TV_NSEC 1
25198 _ACEOF
25202 # Look for BSD style subsecond timestamps in struct stat
25203 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25204 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25205 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25207 else
25208 cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h. */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <sys/stat.h>
25216 main ()
25219 struct stat st;
25220 st.st_mtimespec.tv_nsec = 1;
25223 return 0;
25225 _ACEOF
25226 rm -f conftest.$ac_objext
25227 if { (ac_try="$ac_compile"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25231 esac
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_compile") 2>conftest.er1
25234 ac_status=$?
25235 grep -v '^ *+' conftest.er1 >conftest.err
25236 rm -f conftest.er1
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } && {
25240 test -z "$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25242 } && test -s conftest.$ac_objext; then
25243 ac_cv_stat_tv_nsec2=yes
25244 else
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25248 ac_cv_stat_tv_nsec2=no
25251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25255 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25256 if test "$ac_cv_stat_tv_nsec2" = yes
25257 then
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_STAT_TV_NSEC2 1
25261 _ACEOF
25265 # On HP/UX 11.0, mvwdelch is a block with a return statement
25266 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25267 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25268 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271 cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h. */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277 #include <curses.h>
25279 main ()
25282 int rtn;
25283 rtn = mvwdelch(0,0,0);
25286 return 0;
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25294 esac
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25297 ac_status=$?
25298 grep -v '^ *+' conftest.er1 >conftest.err
25299 rm -f conftest.er1
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && {
25303 test -z "$ac_c_werror_flag" ||
25304 test ! -s conftest.err
25305 } && test -s conftest.$ac_objext; then
25306 ac_cv_mvwdelch_is_expression=yes
25307 else
25308 echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25311 ac_cv_mvwdelch_is_expression=no
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25317 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25318 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25320 if test "$ac_cv_mvwdelch_is_expression" = yes
25321 then
25323 cat >>confdefs.h <<\_ACEOF
25324 #define MVWDELCH_IS_EXPRESSION 1
25325 _ACEOF
25329 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25330 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25331 if test "${ac_cv_window_has_flags+set}" = set; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 else
25334 cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h. */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 #include <curses.h>
25342 main ()
25345 WINDOW *w;
25346 w->_flags = 0;
25349 return 0;
25351 _ACEOF
25352 rm -f conftest.$ac_objext
25353 if { (ac_try="$ac_compile"
25354 case "(($ac_try" in
25355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25357 esac
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359 (eval "$ac_compile") 2>conftest.er1
25360 ac_status=$?
25361 grep -v '^ *+' conftest.er1 >conftest.err
25362 rm -f conftest.er1
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } && {
25366 test -z "$ac_c_werror_flag" ||
25367 test ! -s conftest.err
25368 } && test -s conftest.$ac_objext; then
25369 ac_cv_window_has_flags=yes
25370 else
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_cv_window_has_flags=no
25377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25381 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25384 if test "$ac_cv_window_has_flags" = yes
25385 then
25387 cat >>confdefs.h <<\_ACEOF
25388 #define WINDOW_HAS_FLAGS 1
25389 _ACEOF
25393 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25394 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25395 cat >conftest.$ac_ext <<_ACEOF
25396 /* confdefs.h. */
25397 _ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h. */
25401 #include <curses.h>
25403 main ()
25405 void *x=is_term_resized
25407 return 0;
25409 _ACEOF
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
25412 case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417 (eval "$ac_compile") 2>conftest.er1
25418 ac_status=$?
25419 grep -v '^ *+' conftest.er1 >conftest.err
25420 rm -f conftest.er1
25421 cat conftest.err >&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); } && {
25424 test -z "$ac_c_werror_flag" ||
25425 test ! -s conftest.err
25426 } && test -s conftest.$ac_objext; then
25428 cat >>confdefs.h <<\_ACEOF
25429 #define HAVE_CURSES_IS_TERM_RESIZED 1
25430 _ACEOF
25432 { echo "$as_me:$LINENO: result: yes" >&5
25433 echo "${ECHO_T}yes" >&6; }
25434 else
25435 echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 { echo "$as_me:$LINENO: result: no" >&5
25439 echo "${ECHO_T}no" >&6; }
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445 { echo "$as_me:$LINENO: checking for resize_term" >&5
25446 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25447 cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h. */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 #include <curses.h>
25455 main ()
25457 void *x=resize_term
25459 return 0;
25461 _ACEOF
25462 rm -f conftest.$ac_objext
25463 if { (ac_try="$ac_compile"
25464 case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467 esac
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469 (eval "$ac_compile") 2>conftest.er1
25470 ac_status=$?
25471 grep -v '^ *+' conftest.er1 >conftest.err
25472 rm -f conftest.er1
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } && {
25476 test -z "$ac_c_werror_flag" ||
25477 test ! -s conftest.err
25478 } && test -s conftest.$ac_objext; then
25480 cat >>confdefs.h <<\_ACEOF
25481 #define HAVE_CURSES_RESIZE_TERM 1
25482 _ACEOF
25484 { echo "$as_me:$LINENO: result: yes" >&5
25485 echo "${ECHO_T}yes" >&6; }
25486 else
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 { echo "$as_me:$LINENO: result: no" >&5
25491 echo "${ECHO_T}no" >&6; }
25495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25498 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25499 cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h. */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 #include <curses.h>
25507 main ()
25509 void *x=resizeterm
25511 return 0;
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (ac_try="$ac_compile"
25516 case "(($ac_try" in
25517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518 *) ac_try_echo=$ac_try;;
25519 esac
25520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521 (eval "$ac_compile") 2>conftest.er1
25522 ac_status=$?
25523 grep -v '^ *+' conftest.er1 >conftest.err
25524 rm -f conftest.er1
25525 cat conftest.err >&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); } && {
25528 test -z "$ac_c_werror_flag" ||
25529 test ! -s conftest.err
25530 } && test -s conftest.$ac_objext; then
25532 cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_CURSES_RESIZETERM 1
25534 _ACEOF
25536 { echo "$as_me:$LINENO: result: yes" >&5
25537 echo "${ECHO_T}yes" >&6; }
25538 else
25539 echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25542 { echo "$as_me:$LINENO: result: no" >&5
25543 echo "${ECHO_T}no" >&6; }
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25550 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25552 if test -r /dev/ptmx
25553 then
25554 { echo "$as_me:$LINENO: result: yes" >&5
25555 echo "${ECHO_T}yes" >&6; }
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_DEV_PTMX 1
25559 _ACEOF
25561 else
25562 { echo "$as_me:$LINENO: result: no" >&5
25563 echo "${ECHO_T}no" >&6; }
25566 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25567 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25569 if test -r /dev/ptc
25570 then
25571 { echo "$as_me:$LINENO: result: yes" >&5
25572 echo "${ECHO_T}yes" >&6; }
25574 cat >>confdefs.h <<\_ACEOF
25575 #define HAVE_DEV_PTC 1
25576 _ACEOF
25578 else
25579 { echo "$as_me:$LINENO: result: no" >&5
25580 echo "${ECHO_T}no" >&6; }
25583 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25584 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25585 if test "$cross_compiling" = yes; then
25586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25587 See \`config.log' for more details." >&5
25588 echo "$as_me: error: cannot run test program while cross compiling
25589 See \`config.log' for more details." >&2;}
25590 { (exit 1); exit 1; }; }
25591 else
25592 cat >conftest.$ac_ext <<_ACEOF
25593 /* confdefs.h. */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 #include <stdio.h>
25599 #include <stddef.h>
25600 #include <string.h>
25602 #ifdef HAVE_SYS_TYPES_H
25603 #include <sys/types.h>
25604 #endif
25606 #ifdef HAVE_SSIZE_T
25607 typedef ssize_t Py_ssize_t;
25608 #elif SIZEOF_VOID_P == SIZEOF_LONG
25609 typedef long Py_ssize_t;
25610 #else
25611 typedef int Py_ssize_t;
25612 #endif
25614 int main()
25616 char buffer[256];
25618 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25619 return 1;
25621 if (strcmp(buffer, "123"))
25622 return 1;
25624 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25625 return 1;
25627 if (strcmp(buffer, "-123"))
25628 return 1;
25630 return 0;
25632 _ACEOF
25633 rm -f conftest$ac_exeext
25634 if { (ac_try="$ac_link"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_link") 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25644 { (case "(($ac_try" in
25645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646 *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649 (eval "$ac_try") 2>&5
25650 ac_status=$?
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; }; then
25653 { echo "$as_me:$LINENO: result: yes" >&5
25654 echo "${ECHO_T}yes" >&6; }
25656 cat >>confdefs.h <<\_ACEOF
25657 #define PY_FORMAT_SIZE_T "z"
25658 _ACEOF
25660 else
25661 echo "$as_me: program exited with status $ac_status" >&5
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25665 ( exit $ac_status )
25666 { echo "$as_me:$LINENO: result: no" >&5
25667 echo "${ECHO_T}no" >&6; }
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25674 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25675 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25676 if test "${ac_cv_type_socklen_t+set}" = set; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679 cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h. */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25686 #ifdef HAVE_SYS_TYPES_H
25687 #include <sys/types.h>
25688 #endif
25689 #ifdef HAVE_SYS_SOCKET_H
25690 #include <sys/socket.h>
25691 #endif
25694 typedef socklen_t ac__type_new_;
25696 main ()
25698 if ((ac__type_new_ *) 0)
25699 return 0;
25700 if (sizeof (ac__type_new_))
25701 return 0;
25703 return 0;
25705 _ACEOF
25706 rm -f conftest.$ac_objext
25707 if { (ac_try="$ac_compile"
25708 case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25711 esac
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_compile") 2>conftest.er1
25714 ac_status=$?
25715 grep -v '^ *+' conftest.er1 >conftest.err
25716 rm -f conftest.er1
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } && {
25720 test -z "$ac_c_werror_flag" ||
25721 test ! -s conftest.err
25722 } && test -s conftest.$ac_objext; then
25723 ac_cv_type_socklen_t=yes
25724 else
25725 echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25728 ac_cv_type_socklen_t=no
25731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25734 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25735 if test $ac_cv_type_socklen_t = yes; then
25737 else
25739 cat >>confdefs.h <<\_ACEOF
25740 #define socklen_t int
25741 _ACEOF
25746 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25747 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25748 if test "$cross_compiling" = yes; then
25749 ac_cv_broken_mbstowcs=no
25750 else
25751 cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h. */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25758 #include<stdlib.h>
25759 int main() {
25760 size_t len = -1;
25761 const char *str = "text";
25762 len = mbstowcs(NULL, str, 0);
25763 return (len != 4);
25766 _ACEOF
25767 rm -f conftest$ac_exeext
25768 if { (ac_try="$ac_link"
25769 case "(($ac_try" in
25770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25771 *) ac_try_echo=$ac_try;;
25772 esac
25773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25774 (eval "$ac_link") 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25778 { (case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_try") 2>&5
25784 ac_status=$?
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_broken_mbstowcs=no
25788 else
25789 echo "$as_me: program exited with status $ac_status" >&5
25790 echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25793 ( exit $ac_status )
25794 ac_cv_broken_mbstowcs=yes
25796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25801 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25802 if test "$ac_cv_broken_mbstowcs" = yes
25803 then
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_BROKEN_MBSTOWCS 1
25807 _ACEOF
25811 # Check for --with-computed-gotos
25812 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25813 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25815 # Check whether --with-computed-gotos was given.
25816 if test "${with_computed_gotos+set}" = set; then
25817 withval=$with_computed_gotos;
25818 if test "$withval" != no
25819 then
25821 cat >>confdefs.h <<\_ACEOF
25822 #define USE_COMPUTED_GOTOS 1
25823 _ACEOF
25825 { echo "$as_me:$LINENO: result: yes" >&5
25826 echo "${ECHO_T}yes" >&6; }
25827 else { echo "$as_me:$LINENO: result: no" >&5
25828 echo "${ECHO_T}no" >&6; }
25830 else
25831 { echo "$as_me:$LINENO: result: no" >&5
25832 echo "${ECHO_T}no" >&6; }
25836 if test $ac_sys_system = Darwin
25837 then
25838 LIBS="$LIBS -framework CoreFoundation"
25845 for h in `(cd $srcdir;echo Python/thread_*.h)`
25847 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25848 done
25851 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25852 { echo "$as_me:$LINENO: checking for build directories" >&5
25853 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25854 for dir in $SRCDIRS; do
25855 if test ! -d $dir; then
25856 mkdir $dir
25858 done
25859 { echo "$as_me:$LINENO: result: done" >&5
25860 echo "${ECHO_T}done" >&6; }
25862 # generate output files
25863 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25865 cat >confcache <<\_ACEOF
25866 # This file is a shell script that caches the results of configure
25867 # tests run on this system so they can be shared between configure
25868 # scripts and configure runs, see configure's option --config-cache.
25869 # It is not useful on other systems. If it contains results you don't
25870 # want to keep, you may remove or edit it.
25872 # config.status only pays attention to the cache file if you give it
25873 # the --recheck option to rerun configure.
25875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25877 # following values.
25879 _ACEOF
25881 # The following way of writing the cache mishandles newlines in values,
25882 # but we know of no workaround that is simple, portable, and efficient.
25883 # So, we kill variables containing newlines.
25884 # Ultrix sh set writes to stderr and can't be redirected directly,
25885 # and sets the high bit in the cache file unless we assign to the vars.
25887 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25888 eval ac_val=\$$ac_var
25889 case $ac_val in #(
25890 *${as_nl}*)
25891 case $ac_var in #(
25892 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25893 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25894 esac
25895 case $ac_var in #(
25896 _ | IFS | as_nl) ;; #(
25897 *) $as_unset $ac_var ;;
25898 esac ;;
25899 esac
25900 done
25902 (set) 2>&1 |
25903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25904 *${as_nl}ac_space=\ *)
25905 # `set' does not quote correctly, so add quotes (double-quote
25906 # substitution turns \\\\ into \\, and sed turns \\ into \).
25907 sed -n \
25908 "s/'/'\\\\''/g;
25909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25910 ;; #(
25912 # `set' quotes correctly as required by POSIX, so do not add quotes.
25913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25915 esac |
25916 sort
25918 sed '
25919 /^ac_cv_env_/b end
25920 t clear
25921 :clear
25922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25923 t end
25924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25925 :end' >>confcache
25926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25927 if test -w "$cache_file"; then
25928 test "x$cache_file" != "x/dev/null" &&
25929 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25930 echo "$as_me: updating cache $cache_file" >&6;}
25931 cat confcache >$cache_file
25932 else
25933 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25934 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25937 rm -f confcache
25939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25940 # Let make expand exec_prefix.
25941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25943 DEFS=-DHAVE_CONFIG_H
25945 ac_libobjs=
25946 ac_ltlibobjs=
25947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25948 # 1. Remove the extension, and $U if already installed.
25949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25950 ac_i=`echo "$ac_i" | sed "$ac_script"`
25951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25952 # will be set to the directory where LIBOBJS objects are built.
25953 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25954 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25955 done
25956 LIBOBJS=$ac_libobjs
25958 LTLIBOBJS=$ac_ltlibobjs
25962 : ${CONFIG_STATUS=./config.status}
25963 ac_clean_files_save=$ac_clean_files
25964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25967 cat >$CONFIG_STATUS <<_ACEOF
25968 #! $SHELL
25969 # Generated by $as_me.
25970 # Run this file to recreate the current configuration.
25971 # Compiler output produced by configure, useful for debugging
25972 # configure, is in config.log if it exists.
25974 debug=false
25975 ac_cs_recheck=false
25976 ac_cs_silent=false
25977 SHELL=\${CONFIG_SHELL-$SHELL}
25978 _ACEOF
25980 cat >>$CONFIG_STATUS <<\_ACEOF
25981 ## --------------------- ##
25982 ## M4sh Initialization. ##
25983 ## --------------------- ##
25985 # Be more Bourne compatible
25986 DUALCASE=1; export DUALCASE # for MKS sh
25987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25988 emulate sh
25989 NULLCMD=:
25990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25991 # is contrary to our usage. Disable this feature.
25992 alias -g '${1+"$@"}'='"$@"'
25993 setopt NO_GLOB_SUBST
25994 else
25995 case `(set -o) 2>/dev/null` in
25996 *posix*) set -o posix ;;
25997 esac
26004 # PATH needs CR
26005 # Avoid depending upon Character Ranges.
26006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26009 as_cr_digits='0123456789'
26010 as_cr_alnum=$as_cr_Letters$as_cr_digits
26012 # The user is always right.
26013 if test "${PATH_SEPARATOR+set}" != set; then
26014 echo "#! /bin/sh" >conf$$.sh
26015 echo "exit 0" >>conf$$.sh
26016 chmod +x conf$$.sh
26017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26018 PATH_SEPARATOR=';'
26019 else
26020 PATH_SEPARATOR=:
26022 rm -f conf$$.sh
26025 # Support unset when possible.
26026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26027 as_unset=unset
26028 else
26029 as_unset=false
26033 # IFS
26034 # We need space, tab and new line, in precisely that order. Quoting is
26035 # there to prevent editors from complaining about space-tab.
26036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26037 # splitting by setting IFS to empty value.)
26038 as_nl='
26040 IFS=" "" $as_nl"
26042 # Find who we are. Look in the path if we contain no directory separator.
26043 case $0 in
26044 *[\\/]* ) as_myself=$0 ;;
26045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26046 for as_dir in $PATH
26048 IFS=$as_save_IFS
26049 test -z "$as_dir" && as_dir=.
26050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26051 done
26052 IFS=$as_save_IFS
26055 esac
26056 # We did not find ourselves, most probably we were run as `sh COMMAND'
26057 # in which case we are not to be found in the path.
26058 if test "x$as_myself" = x; then
26059 as_myself=$0
26061 if test ! -f "$as_myself"; then
26062 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26063 { (exit 1); exit 1; }
26066 # Work around bugs in pre-3.0 UWIN ksh.
26067 for as_var in ENV MAIL MAILPATH
26068 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26069 done
26070 PS1='$ '
26071 PS2='> '
26072 PS4='+ '
26074 # NLS nuisances.
26075 for as_var in \
26076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26078 LC_TELEPHONE LC_TIME
26080 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26081 eval $as_var=C; export $as_var
26082 else
26083 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26085 done
26087 # Required to use basename.
26088 if expr a : '\(a\)' >/dev/null 2>&1 &&
26089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26090 as_expr=expr
26091 else
26092 as_expr=false
26095 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26096 as_basename=basename
26097 else
26098 as_basename=false
26102 # Name of the executable.
26103 as_me=`$as_basename -- "$0" ||
26104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26105 X"$0" : 'X\(//\)$' \| \
26106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26107 echo X/"$0" |
26108 sed '/^.*\/\([^/][^/]*\)\/*$/{
26109 s//\1/
26112 /^X\/\(\/\/\)$/{
26113 s//\1/
26116 /^X\/\(\/\).*/{
26117 s//\1/
26120 s/.*/./; q'`
26122 # CDPATH.
26123 $as_unset CDPATH
26127 as_lineno_1=$LINENO
26128 as_lineno_2=$LINENO
26129 test "x$as_lineno_1" != "x$as_lineno_2" &&
26130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26133 # uniformly replaced by the line number. The first 'sed' inserts a
26134 # line-number line after each line using $LINENO; the second 'sed'
26135 # does the real work. The second script uses 'N' to pair each
26136 # line-number line with the line containing $LINENO, and appends
26137 # trailing '-' during substitution so that $LINENO is not a special
26138 # case at line end.
26139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26140 # scripts with optimization help from Paolo Bonzini. Blame Lee
26141 # E. McMahon (1931-1989) for sed's syntax. :-)
26142 sed -n '
26144 /[$]LINENO/=
26145 ' <$as_myself |
26146 sed '
26147 s/[$]LINENO.*/&-/
26148 t lineno
26150 :lineno
26152 :loop
26153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26154 t loop
26155 s/-\n.*//
26156 ' >$as_me.lineno &&
26157 chmod +x "$as_me.lineno" ||
26158 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26159 { (exit 1); exit 1; }; }
26161 # Don't try to exec as it changes $[0], causing all sort of problems
26162 # (the dirname of $[0] is not the place where we might find the
26163 # original and so on. Autoconf is especially sensitive to this).
26164 . "./$as_me.lineno"
26165 # Exit status is that of the last command.
26166 exit
26170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26171 as_dirname=dirname
26172 else
26173 as_dirname=false
26176 ECHO_C= ECHO_N= ECHO_T=
26177 case `echo -n x` in
26178 -n*)
26179 case `echo 'x\c'` in
26180 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26181 *) ECHO_C='\c';;
26182 esac;;
26184 ECHO_N='-n';;
26185 esac
26187 if expr a : '\(a\)' >/dev/null 2>&1 &&
26188 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26189 as_expr=expr
26190 else
26191 as_expr=false
26194 rm -f conf$$ conf$$.exe conf$$.file
26195 if test -d conf$$.dir; then
26196 rm -f conf$$.dir/conf$$.file
26197 else
26198 rm -f conf$$.dir
26199 mkdir conf$$.dir
26201 echo >conf$$.file
26202 if ln -s conf$$.file conf$$ 2>/dev/null; then
26203 as_ln_s='ln -s'
26204 # ... but there are two gotchas:
26205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26207 # In both cases, we have to default to `cp -p'.
26208 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26209 as_ln_s='cp -p'
26210 elif ln conf$$.file conf$$ 2>/dev/null; then
26211 as_ln_s=ln
26212 else
26213 as_ln_s='cp -p'
26215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26216 rmdir conf$$.dir 2>/dev/null
26218 if mkdir -p . 2>/dev/null; then
26219 as_mkdir_p=:
26220 else
26221 test -d ./-p && rmdir ./-p
26222 as_mkdir_p=false
26225 if test -x / >/dev/null 2>&1; then
26226 as_test_x='test -x'
26227 else
26228 if ls -dL / >/dev/null 2>&1; then
26229 as_ls_L_option=L
26230 else
26231 as_ls_L_option=
26233 as_test_x='
26234 eval sh -c '\''
26235 if test -d "$1"; then
26236 test -d "$1/.";
26237 else
26238 case $1 in
26239 -*)set "./$1";;
26240 esac;
26241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26242 ???[sx]*):;;*)false;;esac;fi
26243 '\'' sh
26246 as_executable_p=$as_test_x
26248 # Sed expression to map a string onto a valid CPP name.
26249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26251 # Sed expression to map a string onto a valid variable name.
26252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26255 exec 6>&1
26257 # Save the log message, to keep $[0] and so on meaningful, and to
26258 # report actual input values of CONFIG_FILES etc. instead of their
26259 # values after options handling.
26260 ac_log="
26261 This file was extended by python $as_me 3.1, which was
26262 generated by GNU Autoconf 2.61. Invocation command line was
26264 CONFIG_FILES = $CONFIG_FILES
26265 CONFIG_HEADERS = $CONFIG_HEADERS
26266 CONFIG_LINKS = $CONFIG_LINKS
26267 CONFIG_COMMANDS = $CONFIG_COMMANDS
26268 $ $0 $@
26270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26273 _ACEOF
26275 cat >>$CONFIG_STATUS <<_ACEOF
26276 # Files that config.status was made for.
26277 config_files="$ac_config_files"
26278 config_headers="$ac_config_headers"
26280 _ACEOF
26282 cat >>$CONFIG_STATUS <<\_ACEOF
26283 ac_cs_usage="\
26284 \`$as_me' instantiates files from templates according to the
26285 current configuration.
26287 Usage: $0 [OPTIONS] [FILE]...
26289 -h, --help print this help, then exit
26290 -V, --version print version number and configuration settings, then exit
26291 -q, --quiet do not print progress messages
26292 -d, --debug don't remove temporary files
26293 --recheck update $as_me by reconfiguring in the same conditions
26294 --file=FILE[:TEMPLATE]
26295 instantiate the configuration file FILE
26296 --header=FILE[:TEMPLATE]
26297 instantiate the configuration header FILE
26299 Configuration files:
26300 $config_files
26302 Configuration headers:
26303 $config_headers
26305 Report bugs to <bug-autoconf@gnu.org>."
26307 _ACEOF
26308 cat >>$CONFIG_STATUS <<_ACEOF
26309 ac_cs_version="\\
26310 python config.status 3.1
26311 configured by $0, generated by GNU Autoconf 2.61,
26312 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26314 Copyright (C) 2006 Free Software Foundation, Inc.
26315 This config.status script is free software; the Free Software Foundation
26316 gives unlimited permission to copy, distribute and modify it."
26318 ac_pwd='$ac_pwd'
26319 srcdir='$srcdir'
26320 INSTALL='$INSTALL'
26321 _ACEOF
26323 cat >>$CONFIG_STATUS <<\_ACEOF
26324 # If no file are specified by the user, then we need to provide default
26325 # value. By we need to know if files were specified by the user.
26326 ac_need_defaults=:
26327 while test $# != 0
26329 case $1 in
26330 --*=*)
26331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26333 ac_shift=:
26336 ac_option=$1
26337 ac_optarg=$2
26338 ac_shift=shift
26340 esac
26342 case $ac_option in
26343 # Handling of the options.
26344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26345 ac_cs_recheck=: ;;
26346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26347 echo "$ac_cs_version"; exit ;;
26348 --debug | --debu | --deb | --de | --d | -d )
26349 debug=: ;;
26350 --file | --fil | --fi | --f )
26351 $ac_shift
26352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26353 ac_need_defaults=false;;
26354 --header | --heade | --head | --hea )
26355 $ac_shift
26356 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26357 ac_need_defaults=false;;
26358 --he | --h)
26359 # Conflict between --help and --header
26360 { echo "$as_me: error: ambiguous option: $1
26361 Try \`$0 --help' for more information." >&2
26362 { (exit 1); exit 1; }; };;
26363 --help | --hel | -h )
26364 echo "$ac_cs_usage"; exit ;;
26365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26366 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26367 ac_cs_silent=: ;;
26369 # This is an error.
26370 -*) { echo "$as_me: error: unrecognized option: $1
26371 Try \`$0 --help' for more information." >&2
26372 { (exit 1); exit 1; }; } ;;
26374 *) ac_config_targets="$ac_config_targets $1"
26375 ac_need_defaults=false ;;
26377 esac
26378 shift
26379 done
26381 ac_configure_extra_args=
26383 if $ac_cs_silent; then
26384 exec 6>/dev/null
26385 ac_configure_extra_args="$ac_configure_extra_args --silent"
26388 _ACEOF
26389 cat >>$CONFIG_STATUS <<_ACEOF
26390 if \$ac_cs_recheck; then
26391 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26392 CONFIG_SHELL=$SHELL
26393 export CONFIG_SHELL
26394 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26397 _ACEOF
26398 cat >>$CONFIG_STATUS <<\_ACEOF
26399 exec 5>>config.log
26401 echo
26402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26403 ## Running $as_me. ##
26404 _ASBOX
26405 echo "$ac_log"
26406 } >&5
26408 _ACEOF
26409 cat >>$CONFIG_STATUS <<_ACEOF
26410 _ACEOF
26412 cat >>$CONFIG_STATUS <<\_ACEOF
26414 # Handling of arguments.
26415 for ac_config_target in $ac_config_targets
26417 case $ac_config_target in
26418 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26419 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26420 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26421 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26422 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26423 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26424 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26425 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26429 { (exit 1); exit 1; }; };;
26430 esac
26431 done
26434 # If the user did not use the arguments to specify the items to instantiate,
26435 # then the envvar interface is used. Set only those that are not.
26436 # We use the long form for the default assignment because of an extremely
26437 # bizarre bug on SunOS 4.1.3.
26438 if $ac_need_defaults; then
26439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26443 # Have a temporary directory for convenience. Make it in the build tree
26444 # simply because there is no reason against having it here, and in addition,
26445 # creating and moving files from /tmp can sometimes cause problems.
26446 # Hook for its removal unless debugging.
26447 # Note that there is a small window in which the directory will not be cleaned:
26448 # after its creation but before its name has been assigned to `$tmp'.
26449 $debug ||
26451 tmp=
26452 trap 'exit_status=$?
26453 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26455 trap '{ (exit 1); exit 1; }' 1 2 13 15
26457 # Create a (secure) tmp directory for tmp files.
26460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26461 test -n "$tmp" && test -d "$tmp"
26462 } ||
26464 tmp=./conf$$-$RANDOM
26465 (umask 077 && mkdir "$tmp")
26466 } ||
26468 echo "$me: cannot create a temporary directory in ." >&2
26469 { (exit 1); exit 1; }
26473 # Set up the sed scripts for CONFIG_FILES section.
26476 # No need to generate the scripts if there are no CONFIG_FILES.
26477 # This happens for instance when ./config.status config.h
26478 if test -n "$CONFIG_FILES"; then
26480 _ACEOF
26484 ac_delim='%!_!# '
26485 for ac_last_try in false false false false false :; do
26486 cat >conf$$subs.sed <<_ACEOF
26487 SHELL!$SHELL$ac_delim
26488 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26489 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26490 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26491 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26492 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26493 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26494 exec_prefix!$exec_prefix$ac_delim
26495 prefix!$prefix$ac_delim
26496 program_transform_name!$program_transform_name$ac_delim
26497 bindir!$bindir$ac_delim
26498 sbindir!$sbindir$ac_delim
26499 libexecdir!$libexecdir$ac_delim
26500 datarootdir!$datarootdir$ac_delim
26501 datadir!$datadir$ac_delim
26502 sysconfdir!$sysconfdir$ac_delim
26503 sharedstatedir!$sharedstatedir$ac_delim
26504 localstatedir!$localstatedir$ac_delim
26505 includedir!$includedir$ac_delim
26506 oldincludedir!$oldincludedir$ac_delim
26507 docdir!$docdir$ac_delim
26508 infodir!$infodir$ac_delim
26509 htmldir!$htmldir$ac_delim
26510 dvidir!$dvidir$ac_delim
26511 pdfdir!$pdfdir$ac_delim
26512 psdir!$psdir$ac_delim
26513 libdir!$libdir$ac_delim
26514 localedir!$localedir$ac_delim
26515 mandir!$mandir$ac_delim
26516 DEFS!$DEFS$ac_delim
26517 ECHO_C!$ECHO_C$ac_delim
26518 ECHO_N!$ECHO_N$ac_delim
26519 ECHO_T!$ECHO_T$ac_delim
26520 LIBS!$LIBS$ac_delim
26521 build_alias!$build_alias$ac_delim
26522 host_alias!$host_alias$ac_delim
26523 target_alias!$target_alias$ac_delim
26524 VERSION!$VERSION$ac_delim
26525 SOVERSION!$SOVERSION$ac_delim
26526 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26527 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26528 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26529 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
26530 LIPO_64BIT_FLAGS!$LIPO_64BIT_FLAGS$ac_delim
26531 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26532 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26533 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26534 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26535 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26536 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26537 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26538 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26539 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26540 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26541 MACHDEP!$MACHDEP$ac_delim
26542 SGI_ABI!$SGI_ABI$ac_delim
26543 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26544 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26545 CC!$CC$ac_delim
26546 CFLAGS!$CFLAGS$ac_delim
26547 LDFLAGS!$LDFLAGS$ac_delim
26548 CPPFLAGS!$CPPFLAGS$ac_delim
26549 ac_ct_CC!$ac_ct_CC$ac_delim
26550 EXEEXT!$EXEEXT$ac_delim
26551 OBJEXT!$OBJEXT$ac_delim
26552 CXX!$CXX$ac_delim
26553 MAINCC!$MAINCC$ac_delim
26554 CPP!$CPP$ac_delim
26555 GREP!$GREP$ac_delim
26556 EGREP!$EGREP$ac_delim
26557 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26558 LIBRARY!$LIBRARY$ac_delim
26559 LDLIBRARY!$LDLIBRARY$ac_delim
26560 DLLLIBRARY!$DLLLIBRARY$ac_delim
26561 BLDLIBRARY!$BLDLIBRARY$ac_delim
26562 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26563 INSTSONAME!$INSTSONAME$ac_delim
26564 RUNSHARED!$RUNSHARED$ac_delim
26565 LINKCC!$LINKCC$ac_delim
26566 GNULD!$GNULD$ac_delim
26567 RANLIB!$RANLIB$ac_delim
26568 AR!$AR$ac_delim
26569 ARFLAGS!$ARFLAGS$ac_delim
26570 SVNVERSION!$SVNVERSION$ac_delim
26571 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26572 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26573 INSTALL_DATA!$INSTALL_DATA$ac_delim
26574 LN!$LN$ac_delim
26575 OPT!$OPT$ac_delim
26576 BASECFLAGS!$BASECFLAGS$ac_delim
26577 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26578 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26579 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26580 SO!$SO$ac_delim
26581 LDSHARED!$LDSHARED$ac_delim
26582 BLDSHARED!$BLDSHARED$ac_delim
26583 CCSHARED!$CCSHARED$ac_delim
26584 _ACEOF
26586 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26587 break
26588 elif $ac_last_try; then
26589 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26590 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26591 { (exit 1); exit 1; }; }
26592 else
26593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26595 done
26597 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26598 if test -n "$ac_eof"; then
26599 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26600 ac_eof=`expr $ac_eof + 1`
26603 cat >>$CONFIG_STATUS <<_ACEOF
26604 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26606 _ACEOF
26607 sed '
26608 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26609 s/^/s,@/; s/!/@,|#_!!_#|/
26612 s/'"$ac_delim"'$/,g/; t
26613 s/$/\\/; p
26614 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26615 ' >>$CONFIG_STATUS <conf$$subs.sed
26616 rm -f conf$$subs.sed
26617 cat >>$CONFIG_STATUS <<_ACEOF
26618 CEOF$ac_eof
26619 _ACEOF
26622 ac_delim='%!_!# '
26623 for ac_last_try in false false false false false :; do
26624 cat >conf$$subs.sed <<_ACEOF
26625 LINKFORSHARED!$LINKFORSHARED$ac_delim
26626 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26627 SHLIBS!$SHLIBS$ac_delim
26628 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26629 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26630 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26631 LDLAST!$LDLAST$ac_delim
26632 THREADOBJ!$THREADOBJ$ac_delim
26633 DLINCLDIR!$DLINCLDIR$ac_delim
26634 DYNLOADFILE!$DYNLOADFILE$ac_delim
26635 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26636 TRUE!$TRUE$ac_delim
26637 LIBOBJS!$LIBOBJS$ac_delim
26638 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26639 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26640 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26641 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26642 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26643 LIBM!$LIBM$ac_delim
26644 LIBC!$LIBC$ac_delim
26645 THREADHEADERS!$THREADHEADERS$ac_delim
26646 SRCDIRS!$SRCDIRS$ac_delim
26647 LTLIBOBJS!$LTLIBOBJS$ac_delim
26648 _ACEOF
26650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
26651 break
26652 elif $ac_last_try; then
26653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26655 { (exit 1); exit 1; }; }
26656 else
26657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26659 done
26661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26662 if test -n "$ac_eof"; then
26663 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26664 ac_eof=`expr $ac_eof + 1`
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26670 _ACEOF
26671 sed '
26672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26673 s/^/s,@/; s/!/@,|#_!!_#|/
26676 s/'"$ac_delim"'$/,g/; t
26677 s/$/\\/; p
26678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26679 ' >>$CONFIG_STATUS <conf$$subs.sed
26680 rm -f conf$$subs.sed
26681 cat >>$CONFIG_STATUS <<_ACEOF
26682 :end
26683 s/|#_!!_#|//g
26684 CEOF$ac_eof
26685 _ACEOF
26688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26690 # trailing colons and then remove the whole line if VPATH becomes empty
26691 # (actually we leave an empty line to preserve line numbers).
26692 if test "x$srcdir" = x.; then
26693 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26694 s/:*\$(srcdir):*/:/
26695 s/:*\${srcdir}:*/:/
26696 s/:*@srcdir@:*/:/
26697 s/^\([^=]*=[ ]*\):*/\1/
26698 s/:*$//
26699 s/^[^=]*=[ ]*$//
26703 cat >>$CONFIG_STATUS <<\_ACEOF
26704 fi # test -n "$CONFIG_FILES"
26707 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26709 case $ac_tag in
26710 :[FHLC]) ac_mode=$ac_tag; continue;;
26711 esac
26712 case $ac_mode$ac_tag in
26713 :[FHL]*:*);;
26714 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26715 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26716 { (exit 1); exit 1; }; };;
26717 :[FH]-) ac_tag=-:-;;
26718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26719 esac
26720 ac_save_IFS=$IFS
26721 IFS=:
26722 set x $ac_tag
26723 IFS=$ac_save_IFS
26724 shift
26725 ac_file=$1
26726 shift
26728 case $ac_mode in
26729 :L) ac_source=$1;;
26730 :[FH])
26731 ac_file_inputs=
26732 for ac_f
26734 case $ac_f in
26735 -) ac_f="$tmp/stdin";;
26736 *) # Look for the file first in the build tree, then in the source tree
26737 # (if the path is not absolute). The absolute path cannot be DOS-style,
26738 # because $ac_f cannot contain `:'.
26739 test -f "$ac_f" ||
26740 case $ac_f in
26741 [\\/$]*) false;;
26742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26743 esac ||
26744 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26745 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26746 { (exit 1); exit 1; }; };;
26747 esac
26748 ac_file_inputs="$ac_file_inputs $ac_f"
26749 done
26751 # Let's still pretend it is `configure' which instantiates (i.e., don't
26752 # use $as_me), people would be surprised to read:
26753 # /* config.h. Generated by config.status. */
26754 configure_input="Generated from "`IFS=:
26755 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26756 if test x"$ac_file" != x-; then
26757 configure_input="$ac_file. $configure_input"
26758 { echo "$as_me:$LINENO: creating $ac_file" >&5
26759 echo "$as_me: creating $ac_file" >&6;}
26762 case $ac_tag in
26763 *:-:* | *:-) cat >"$tmp/stdin";;
26764 esac
26766 esac
26768 ac_dir=`$as_dirname -- "$ac_file" ||
26769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26770 X"$ac_file" : 'X\(//\)[^/]' \| \
26771 X"$ac_file" : 'X\(//\)$' \| \
26772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26773 echo X"$ac_file" |
26774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26775 s//\1/
26778 /^X\(\/\/\)[^/].*/{
26779 s//\1/
26782 /^X\(\/\/\)$/{
26783 s//\1/
26786 /^X\(\/\).*/{
26787 s//\1/
26790 s/.*/./; q'`
26791 { as_dir="$ac_dir"
26792 case $as_dir in #(
26793 -*) as_dir=./$as_dir;;
26794 esac
26795 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26796 as_dirs=
26797 while :; do
26798 case $as_dir in #(
26799 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26800 *) as_qdir=$as_dir;;
26801 esac
26802 as_dirs="'$as_qdir' $as_dirs"
26803 as_dir=`$as_dirname -- "$as_dir" ||
26804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26805 X"$as_dir" : 'X\(//\)[^/]' \| \
26806 X"$as_dir" : 'X\(//\)$' \| \
26807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26808 echo X"$as_dir" |
26809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26810 s//\1/
26813 /^X\(\/\/\)[^/].*/{
26814 s//\1/
26817 /^X\(\/\/\)$/{
26818 s//\1/
26821 /^X\(\/\).*/{
26822 s//\1/
26825 s/.*/./; q'`
26826 test -d "$as_dir" && break
26827 done
26828 test -z "$as_dirs" || eval "mkdir $as_dirs"
26829 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26830 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26831 { (exit 1); exit 1; }; }; }
26832 ac_builddir=.
26834 case "$ac_dir" in
26835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26838 # A ".." for each directory in $ac_dir_suffix.
26839 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26840 case $ac_top_builddir_sub in
26841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26843 esac ;;
26844 esac
26845 ac_abs_top_builddir=$ac_pwd
26846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26847 # for backward compatibility:
26848 ac_top_builddir=$ac_top_build_prefix
26850 case $srcdir in
26851 .) # We are building in place.
26852 ac_srcdir=.
26853 ac_top_srcdir=$ac_top_builddir_sub
26854 ac_abs_top_srcdir=$ac_pwd ;;
26855 [\\/]* | ?:[\\/]* ) # Absolute name.
26856 ac_srcdir=$srcdir$ac_dir_suffix;
26857 ac_top_srcdir=$srcdir
26858 ac_abs_top_srcdir=$srcdir ;;
26859 *) # Relative name.
26860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26861 ac_top_srcdir=$ac_top_build_prefix$srcdir
26862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26863 esac
26864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26867 case $ac_mode in
26870 # CONFIG_FILE
26873 case $INSTALL in
26874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26876 esac
26877 _ACEOF
26879 cat >>$CONFIG_STATUS <<\_ACEOF
26880 # If the template does not know about datarootdir, expand it.
26881 # FIXME: This hack should be removed a few years after 2.60.
26882 ac_datarootdir_hack=; ac_datarootdir_seen=
26884 case `sed -n '/datarootdir/ {
26888 /@datadir@/p
26889 /@docdir@/p
26890 /@infodir@/p
26891 /@localedir@/p
26892 /@mandir@/p
26893 ' $ac_file_inputs` in
26894 *datarootdir*) ac_datarootdir_seen=yes;;
26895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26896 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26897 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26898 _ACEOF
26899 cat >>$CONFIG_STATUS <<_ACEOF
26900 ac_datarootdir_hack='
26901 s&@datadir@&$datadir&g
26902 s&@docdir@&$docdir&g
26903 s&@infodir@&$infodir&g
26904 s&@localedir@&$localedir&g
26905 s&@mandir@&$mandir&g
26906 s&\\\${datarootdir}&$datarootdir&g' ;;
26907 esac
26908 _ACEOF
26910 # Neutralize VPATH when `$srcdir' = `.'.
26911 # Shell code in configure.ac might set extrasub.
26912 # FIXME: do we really want to maintain this feature?
26913 cat >>$CONFIG_STATUS <<_ACEOF
26914 sed "$ac_vpsub
26915 $extrasub
26916 _ACEOF
26917 cat >>$CONFIG_STATUS <<\_ACEOF
26919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26920 s&@configure_input@&$configure_input&;t t
26921 s&@top_builddir@&$ac_top_builddir_sub&;t t
26922 s&@srcdir@&$ac_srcdir&;t t
26923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26924 s&@top_srcdir@&$ac_top_srcdir&;t t
26925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26926 s&@builddir@&$ac_builddir&;t t
26927 s&@abs_builddir@&$ac_abs_builddir&;t t
26928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26929 s&@INSTALL@&$ac_INSTALL&;t t
26930 $ac_datarootdir_hack
26931 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26934 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26936 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26937 which seems to be undefined. Please make sure it is defined." >&5
26938 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26939 which seems to be undefined. Please make sure it is defined." >&2;}
26941 rm -f "$tmp/stdin"
26942 case $ac_file in
26943 -) cat "$tmp/out"; rm -f "$tmp/out";;
26944 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26945 esac
26949 # CONFIG_HEADER
26951 _ACEOF
26953 # Transform confdefs.h into a sed script `conftest.defines', that
26954 # substitutes the proper values into config.h.in to produce config.h.
26955 rm -f conftest.defines conftest.tail
26956 # First, append a space to every undef/define line, to ease matching.
26957 echo 's/$/ /' >conftest.defines
26958 # Then, protect against being on the right side of a sed subst, or in
26959 # an unquoted here document, in config.status. If some macros were
26960 # called several times there might be several #defines for the same
26961 # symbol, which is useless. But do not sort them, since the last
26962 # AC_DEFINE must be honored.
26963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26964 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26965 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26966 # PARAMS is the parameter list in the macro definition--in most cases, it's
26967 # just an empty string.
26968 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26969 ac_dB='\\)[ (].*,\\1define\\2'
26970 ac_dC=' '
26971 ac_dD=' ,'
26973 uniq confdefs.h |
26974 sed -n '
26975 t rset
26976 :rset
26977 s/^[ ]*#[ ]*define[ ][ ]*//
26978 t ok
26981 s/[\\&,]/\\&/g
26982 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26983 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26984 ' >>conftest.defines
26986 # Remove the space that was appended to ease matching.
26987 # Then replace #undef with comments. This is necessary, for
26988 # example, in the case of _POSIX_SOURCE, which is predefined and required
26989 # on some systems where configure will not decide to define it.
26990 # (The regexp can be short, since the line contains either #define or #undef.)
26991 echo 's/ $//
26992 s,^[ #]*u.*,/* & */,' >>conftest.defines
26994 # Break up conftest.defines:
26995 ac_max_sed_lines=50
26997 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26998 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26999 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27000 # et cetera.
27001 ac_in='$ac_file_inputs'
27002 ac_out='"$tmp/out1"'
27003 ac_nxt='"$tmp/out2"'
27005 while :
27007 # Write a here document:
27008 cat >>$CONFIG_STATUS <<_ACEOF
27009 # First, check the format of the line:
27010 cat >"\$tmp/defines.sed" <<\\CEOF
27011 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27012 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27014 :def
27015 _ACEOF
27016 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27017 echo 'CEOF
27018 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27019 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27020 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27021 grep . conftest.tail >/dev/null || break
27022 rm -f conftest.defines
27023 mv conftest.tail conftest.defines
27024 done
27025 rm -f conftest.defines conftest.tail
27027 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27028 cat >>$CONFIG_STATUS <<\_ACEOF
27029 if test x"$ac_file" != x-; then
27030 echo "/* $configure_input */" >"$tmp/config.h"
27031 cat "$ac_result" >>"$tmp/config.h"
27032 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27033 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27034 echo "$as_me: $ac_file is unchanged" >&6;}
27035 else
27036 rm -f $ac_file
27037 mv "$tmp/config.h" $ac_file
27039 else
27040 echo "/* $configure_input */"
27041 cat "$ac_result"
27043 rm -f "$tmp/out12"
27047 esac
27049 done # for ac_tag
27052 { (exit 0); exit 0; }
27053 _ACEOF
27054 chmod +x $CONFIG_STATUS
27055 ac_clean_files=$ac_clean_files_save
27058 # configure is writing to config.log, and then calls config.status.
27059 # config.status does its own redirection, appending to config.log.
27060 # Unfortunately, on DOS this fails, as config.log is still kept open
27061 # by configure, so config.status won't be able to write to it; its
27062 # output is simply discarded. So we exec the FD to /dev/null,
27063 # effectively closing config.log, so it can be properly (re)opened and
27064 # appended to by config.status. When coming back to configure, we
27065 # need to make the FD available again.
27066 if test "$no_create" != yes; then
27067 ac_cs_success=:
27068 ac_config_status_args=
27069 test "$silent" = yes &&
27070 ac_config_status_args="$ac_config_status_args --quiet"
27071 exec 5>/dev/null
27072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27073 exec 5>>config.log
27074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27075 # would make configure fail if this is the last instruction.
27076 $ac_cs_success || { (exit 1); exit 1; }
27080 echo "creating Modules/Setup"
27081 if test ! -f Modules/Setup
27082 then
27083 cp $srcdir/Modules/Setup.dist Modules/Setup
27086 echo "creating Modules/Setup.local"
27087 if test ! -f Modules/Setup.local
27088 then
27089 echo "# Edit this file for local setup changes" >Modules/Setup.local
27092 echo "creating Makefile"
27093 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27094 -s Modules Modules/Setup.config \
27095 Modules/Setup.local Modules/Setup
27096 mv config.c Modules