Fix off-by-one error that resulted in missed characters
[pytest.git] / configure
blob4fcb9dc3339404de7dedac747f54037748d73174
1 #! /bin/sh
2 # From configure.in Revision: 59552 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.5'
579 PACKAGE_STRING='python 2.5'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKDIR
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
665 FRAMEWORKINSTALLLAST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
669 MACHDEP
670 SGI_ABI
671 EXTRAPLATDIR
672 EXTRAMACHDEPPATH
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 OTHER_LIBTOOL_OPT
706 LIBTOOL_CRUFT
708 LDSHARED
709 BLDSHARED
710 CCSHARED
711 LINKFORSHARED
712 CFLAGSFORSHARED
713 SHLIBS
714 USE_SIGNAL_MODULE
715 SIGNAL_OBJS
716 USE_THREAD_MODULE
717 LDLAST
718 THREADOBJ
719 DLINCLDIR
720 DYNLOADFILE
721 MACHDEP_OBJS
722 TRUE
723 LIBOBJS
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
727 HAVE_GETHOSTBYNAME_R
728 HAVE_GETHOSTBYNAME
729 LIBM
730 LIBC
731 UNICODE_OBJS
732 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 2.5 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 2.5:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[SDKDIR]
1316 Build agains Mac OS X 10.4u SDK (ppc/i386)
1317 --enable-framework[=INSTALLDIR]
1318 Build (MacOSX|Darwin) framework
1319 --enable-shared disable/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1322 --enable-ipv6 Enable ipv6 (with ipv4) support
1323 --disable-ipv6 Disable ipv6 support
1324 --enable-unicode[=ucs[24]]
1325 Enable Unicode strings (default is yes)
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc never use gcc
1331 --with-cxx-main=<compiler>
1332 compile main() and link python executable with C++
1333 compiler
1334 --with-suffix=.exe set executable suffix
1335 --with-pydebug build with Py_DEBUG defined
1336 --with-libs='lib1 ...' link against additional libs
1337 --with-system-ffi build _ctypes module using an installed ffi library
1338 --with-signal-module disable/enable signal module
1339 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1340 --with(out)-threads[=DIRECTORY]
1341 disable/enable thread support
1342 --with(out)-thread[=DIRECTORY]
1343 deprecated; use --with(out)-threads
1344 --with-pth use GNU pth threading libraries
1345 --with(out)-doc-strings disable/enable documentation strings
1346 --with(out)-tsc enable/disable timestamp counter profile
1347 --with(out)-pymalloc disable/enable specialized mallocs
1348 --with-wctype-functions use wctype.h functions
1349 --with-fpectl enable SIGFPE catching
1350 --with-libm=STRING math library
1351 --with-libc=STRING C library
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361 CPP C preprocessor
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <http://www.python.org/python-bugs>.
1367 _ACEOF
1368 ac_status=$?
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1375 ac_builddir=.
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1393 case $srcdir in
1394 .) # We are building in place.
1395 ac_srcdir=.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1402 *) # Relative name.
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1417 else
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 fi || ac_status=$?
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1421 done
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426 cat <<\_ACEOF
1427 python configure 2.5
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435 exit
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.5, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1444 $ $0 $@
1446 _ACEOF
1447 exec 5>>config.log
1449 cat <<_ASUNAME
1450 ## --------- ##
1451 ## Platform. ##
1452 ## --------- ##
1454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471 _ASUNAME
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1479 done
1480 IFS=$as_save_IFS
1482 } >&5
1484 cat >&5 <<_ACEOF
1487 ## ----------- ##
1488 ## Core tests. ##
1489 ## ----------- ##
1491 _ACEOF
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_configure_args=
1500 ac_configure_args0=
1501 ac_configure_args1=
1502 ac_must_keep_next=false
1503 for ac_pass in 1 2
1505 for ac_arg
1507 case $ac_arg in
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 continue ;;
1512 *\'*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 esac
1515 case $ac_pass in
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1521 else
1522 case $ac_arg in
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 esac
1531 -* ) ac_must_keep_next=true ;;
1532 esac
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 esac
1537 done
1538 done
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1550 echo
1552 cat <<\_ASBOX
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1556 _ASBOX
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1571 esac ;;
1572 esac
1573 done
1574 (set) 2>&1 |
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1577 sed -n \
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 esac |
1585 sort
1587 echo
1589 cat <<\_ASBOX
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1593 _ASBOX
1594 echo
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 echo "$ac_var='\''$ac_val'\''"
1602 done | sort
1603 echo
1605 if test -n "$ac_subst_files"; then
1606 cat <<\_ASBOX
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1623 if test -s confdefs.h; then
1624 cat <<\_ASBOX
1625 ## ----------- ##
1626 ## confdefs.h. ##
1627 ## ----------- ##
1628 _ASBOX
1629 echo
1630 cat confdefs.h
1631 echo
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1636 } >&5
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 exit $exit_status
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 done
1644 ac_signal=0
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 _ACEOF
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 _ACEOF
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 _ACEOF
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 else
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1686 shift
1687 for ac_site_file
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1693 . "$ac_site_file"
1695 done
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1708 else
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1806 rm confdefs.h
1807 mv confdefs.h.new confdefs.h
1810 VERSION=2.5
1813 SOVERSION=1.0
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1820 _ACEOF
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1825 # them.
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1838 _ACEOF
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_TYPES 1
1846 _ACEOF
1849 define_xopen_source=yes
1851 # Arguments passed to configure.
1853 CONFIG_ARGS="$ac_configure_args"
1855 # Check whether --enable-universalsdk was given.
1856 if test "${enable_universalsdk+set}" = set; then
1857 enableval=$enable_universalsdk;
1858 case $enableval in
1859 yes)
1860 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1862 esac
1863 case $enableval in
1865 UNIVERSALSDK=
1866 enable_universalsdk=
1869 UNIVERSALSDK=$enableval
1871 esac
1873 else
1875 UNIVERSALSDK=
1876 enable_universalsdk=
1882 # Check whether --enable-framework was given.
1883 if test "${enable_framework+set}" = set; then
1884 enableval=$enable_framework;
1885 case $enableval in
1886 yes)
1887 enableval=/Library/Frameworks
1888 esac
1889 case $enableval in
1891 PYTHONFRAMEWORK=
1892 PYTHONFRAMEWORKDIR=no-framework
1893 PYTHONFRAMEWORKPREFIX=
1894 PYTHONFRAMEWORKINSTALLDIR=
1895 FRAMEWORKINSTALLFIRST=
1896 FRAMEWORKINSTALLLAST=
1897 FRAMEWORKALTINSTALLFIRST=
1898 FRAMEWORKALTINSTALLLAST=
1899 if test "x${prefix}" = "xNONE"; then
1900 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1901 else
1902 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1904 enable_framework=
1907 PYTHONFRAMEWORK=Python
1908 PYTHONFRAMEWORKDIR=Python.framework
1909 PYTHONFRAMEWORKPREFIX=$enableval
1910 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1911 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1912 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1913 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1914 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1915 if test "x${prefix}" = "xNONE" ; then
1916 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1917 else
1918 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1920 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1922 # Add makefiles for Mac specific code to the list of output
1923 # files:
1924 ac_config_files="$ac_config_files Mac/Makefile"
1926 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1928 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1930 esac
1932 else
1934 PYTHONFRAMEWORK=
1935 PYTHONFRAMEWORKDIR=no-framework
1936 PYTHONFRAMEWORKPREFIX=
1937 PYTHONFRAMEWORKINSTALLDIR=
1938 FRAMEWORKINSTALLFIRST=
1939 FRAMEWORKINSTALLLAST=
1940 FRAMEWORKALTINSTALLFIRST=
1941 FRAMEWORKALTINSTALLLAST=
1942 if test "x${prefix}" = "xNONE" ; then
1943 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1944 else
1945 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1947 enable_framework=
1961 ##AC_ARG_WITH(dyld,
1962 ## AC_HELP_STRING(--with-dyld,
1963 ## Use (OpenStep|Rhapsody) dynamic linker))
1965 # Set name for machine-dependent library files
1967 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1968 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1969 if test -z "$MACHDEP"
1970 then
1971 ac_sys_system=`uname -s`
1972 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1973 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1974 ac_sys_release=`uname -v`
1975 else
1976 ac_sys_release=`uname -r`
1978 ac_md_system=`echo $ac_sys_system |
1979 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1980 ac_md_release=`echo $ac_sys_release |
1981 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1982 MACHDEP="$ac_md_system$ac_md_release"
1984 case $MACHDEP in
1985 cygwin*) MACHDEP="cygwin";;
1986 darwin*) MACHDEP="darwin";;
1987 atheos*) MACHDEP="atheos";;
1988 irix646) MACHDEP="irix6";;
1989 '') MACHDEP="unknown";;
1990 esac
1993 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1994 # disable features if it is defined, without any means to access these
1995 # features as extensions. For these systems, we skip the definition of
1996 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1997 # some feature, make sure there is no alternative way to access this
1998 # feature. Also, when using wildcards, make sure you have verified the
1999 # need for not defining _XOPEN_SOURCE on all systems matching the
2000 # wildcard, and that the wildcard does not include future systems
2001 # (which may remove their limitations).
2002 case $ac_sys_system/$ac_sys_release in
2003 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2004 # even though select is a POSIX function. Reported by J. Ribbens.
2005 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2006 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2007 define_xopen_source=no
2008 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2009 # also defined. This can be overridden by defining _BSD_SOURCE
2010 # As this has a different meaning on Linux, only define it on OpenBSD
2012 cat >>confdefs.h <<\_ACEOF
2013 #define _BSD_SOURCE 1
2014 _ACEOF
2017 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2018 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2019 # Marc Recht
2020 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2021 define_xopen_source=no;;
2022 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2023 # of union __?sigval. Reported by Stuart Bishop.
2024 SunOS/5.6)
2025 define_xopen_source=no;;
2026 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2027 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2028 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2029 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2030 define_xopen_source=no;;
2031 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2032 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2033 SCO_SV/3.2)
2034 define_xopen_source=no;;
2035 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2036 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2037 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2038 # This should hopefully be fixed in FreeBSD 4.9
2039 FreeBSD/4.8* | Darwin/6* )
2040 define_xopen_source=no;;
2041 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2042 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2043 # or has another value. By not (re)defining it, the defaults come in place.
2044 AIX/4)
2045 define_xopen_source=no;;
2046 AIX/5)
2047 if test `uname -r` -eq 1; then
2048 define_xopen_source=no
2051 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2052 # disables platform specific features beyond repair.
2053 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2054 # has no effect, don't bother defining them
2055 Darwin/[789].*)
2056 define_xopen_source=no
2059 esac
2061 if test $define_xopen_source = yes
2062 then
2063 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2064 # defined precisely as g++ defines it
2065 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2066 # compiler
2067 case $ac_sys_system/$ac_sys_release in
2068 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2070 cat >>confdefs.h <<\_ACEOF
2071 #define _XOPEN_SOURCE 500
2072 _ACEOF
2077 cat >>confdefs.h <<\_ACEOF
2078 #define _XOPEN_SOURCE 600
2079 _ACEOF
2082 esac
2084 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2085 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2086 # several APIs are not declared. Since this is also needed in some
2087 # cases for HP-UX, we define it globally.
2088 # except for Solaris 10, where it must not be defined,
2089 # as it implies XPG4.2
2090 case $ac_sys_system/$ac_sys_release in
2091 SunOS/5.10)
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _XOPEN_SOURCE_EXTENDED 1
2097 _ACEOF
2100 esac
2103 cat >>confdefs.h <<\_ACEOF
2104 #define _POSIX_C_SOURCE 200112L
2105 _ACEOF
2111 # SGI compilers allow the specification of the both the ABI and the
2112 # ISA on the command line. Depending on the values of these switches,
2113 # different and often incompatable code will be generated.
2115 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2116 # thus supply support for various ABI/ISA combinations. The MACHDEP
2117 # variable is also adjusted.
2120 if test ! -z "$SGI_ABI"
2121 then
2122 CC="cc $SGI_ABI"
2123 LDFLAGS="$SGI_ABI $LDFLAGS"
2124 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2126 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2127 echo "${ECHO_T}$MACHDEP" >&6; }
2129 # And add extra plat-mac for darwin
2132 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2133 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2134 if test -z "$EXTRAPLATDIR"
2135 then
2136 case $MACHDEP in
2137 darwin)
2138 EXTRAPLATDIR="\$(PLATMACDIRS)"
2139 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2142 EXTRAPLATDIR=""
2143 EXTRAMACHDEPPATH=""
2145 esac
2147 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2148 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2150 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2151 # it may influence the way we can build extensions, so distutils
2152 # needs to check it
2155 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2156 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2158 # checks for alternative programs
2160 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2161 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2162 # just to get things to compile and link. Users are free to override OPT
2163 # when running configure or make. The build should not break if they do.
2164 # BASECFLAGS should generally not be messed with, however.
2166 # XXX shouldn't some/most/all of this code be merged with the stuff later
2167 # on that fiddles with OPT and BASECFLAGS?
2168 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2169 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2171 # Check whether --with-gcc was given.
2172 if test "${with_gcc+set}" = set; then
2173 withval=$with_gcc;
2174 case $withval in
2175 no) CC=cc
2176 without_gcc=yes;;
2177 yes) CC=gcc
2178 without_gcc=no;;
2179 *) CC=$withval
2180 without_gcc=$withval;;
2181 esac
2182 else
2184 case $ac_sys_system in
2185 AIX*) CC=cc_r
2186 without_gcc=;;
2187 BeOS*)
2188 case $BE_HOST_CPU in
2189 ppc)
2190 CC=mwcc
2191 without_gcc=yes
2192 BASECFLAGS="$BASECFLAGS -export pragma"
2193 OPT="$OPT -O"
2194 LDFLAGS="$LDFLAGS -nodup"
2196 x86)
2197 CC=gcc
2198 without_gcc=no
2199 OPT="$OPT -O"
2202 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2203 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2204 { (exit 1); exit 1; }; }
2206 esac
2207 AR="\$(srcdir)/Modules/ar_beos"
2208 RANLIB=:
2210 Monterey*)
2211 RANLIB=:
2212 without_gcc=;;
2213 *) without_gcc=no;;
2214 esac
2217 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2218 echo "${ECHO_T}$without_gcc" >&6; }
2220 # If the user switches compilers, we can't believe the cache
2221 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2222 then
2223 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2224 (it is also a good idea to do 'make clean' before compiling)" >&5
2225 echo "$as_me: error: cached CC is different -- throw away $cache_file
2226 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2227 { (exit 1); exit 1; }; }
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2274 if test -z "$ac_cv_prog_CC"; then
2275 ac_ct_CC=$CC
2276 # Extract the first word of "gcc", so it can be a program name with args.
2277 set dummy gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2297 done
2298 done
2299 IFS=$as_save_IFS
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325 CC=$ac_ct_CC
2327 else
2328 CC="$ac_cv_prog_CC"
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 ac_prog_rejected=no
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2393 continue
2395 ac_cv_prog_CC="cc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2406 shift
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2411 shift
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2421 else
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 for ac_prog in cl.exe
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2469 test -n "$CC" && break
2470 done
2472 if test -z "$CC"; then
2473 ac_ct_CC=$CC
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$ac_ct_CC" && break
2514 done
2516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529 CC=$ac_ct_CC
2536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO: checking for C compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (ac_try="$ac_compiler --version >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler --version >&5") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -v >&5"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565 { (ac_try="$ac_compiler -V >&5"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compiler -V >&5") 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2584 main ()
2588 return 0;
2590 _ACEOF
2591 ac_clean_files_save=$ac_clean_files
2592 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2593 # Try to create an executable without -o first, disregard a.out.
2594 # It will help us diagnose broken compilers, and finding out an intuition
2595 # of exeext.
2596 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2597 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600 # List of possible output files, starting from the most likely.
2601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2602 # only as a last resort. b.out is created by i960 compilers.
2603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2605 # The IRIX 6 linker writes into existing files which may not be
2606 # executable, retaining their permissions. Remove them first so a
2607 # subsequent execution test works.
2608 ac_rmfiles=
2609 for ac_file in $ac_files
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2614 esac
2615 done
2616 rm -f $ac_rmfiles
2618 if { (ac_try="$ac_link_default"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link_default") 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2631 # so that the user can short-circuit this test for compilers unknown to
2632 # Autoconf.
2633 for ac_file in $ac_files ''
2635 test -f "$ac_file" || continue
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2639 [ab].out )
2640 # We found the default executable, but exeext='' is most
2641 # certainly right.
2642 break;;
2643 *.* )
2644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645 then :; else
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 # We set ac_cv_exeext here because the later test for it is not
2649 # safe: cross compilers may not add the suffix if given an `-o'
2650 # argument, so we may need to know it at that point already.
2651 # Even if this section looks crufty: it has the advantage of
2652 # actually working.
2653 break;;
2655 break;;
2656 esac
2657 done
2658 test "$ac_cv_exeext" = no && ac_cv_exeext=
2660 else
2661 ac_file=''
2664 { echo "$as_me:$LINENO: result: $ac_file" >&5
2665 echo "${ECHO_T}$ac_file" >&6; }
2666 if test -z "$ac_file"; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: C compiler cannot create executables
2673 See \`config.log' for more details." >&2;}
2674 { (exit 77); exit 77; }; }
2677 ac_exeext=$ac_cv_exeext
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2684 # If not cross compiling, check that we can run a simple program.
2685 if test "$cross_compiling" != yes; then
2686 if { ac_try='./$ac_file'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 cross_compiling=no
2697 else
2698 if test "$cross_compiling" = maybe; then
2699 cross_compiling=yes
2700 else
2701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2711 { echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6; }
2714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2720 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2721 echo "${ECHO_T}$cross_compiling" >&6; }
2723 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2724 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2725 if { (ac_try="$ac_link"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 # `rm'.
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2744 break;;
2745 * ) break;;
2746 esac
2747 done
2748 else
2749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2799 break;;
2800 esac
2801 done
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2816 echo "${ECHO_T}$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2818 ac_objext=$OBJEXT
2819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 main ()
2834 #ifndef __GNUC__
2835 choke me
2836 #endif
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2859 ac_compiler_gnu=yes
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_compiler_gnu=no
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2873 GCC=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_cc_g+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 ac_save_c_werror_flag=$ac_c_werror_flag
2882 ac_c_werror_flag=yes
2883 ac_cv_prog_cc_g=no
2884 CFLAGS="-g"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2893 main ()
2897 return 0;
2899 _ACEOF
2900 rm -f conftest.$ac_objext
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_g=yes
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 CFLAGS=""
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 main ()
2935 return 0;
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.$ac_objext; then
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2961 CFLAGS="-g"
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2994 ac_cv_prog_cc_g=yes
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_c_werror_flag=$ac_save_c_werror_flag
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3013 if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3017 CFLAGS="-g -O2"
3018 else
3019 CFLAGS="-g"
3021 else
3022 if test "$GCC" = yes; then
3023 CFLAGS="-O2"
3024 else
3025 CFLAGS=
3028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_c89+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 ac_cv_prog_cc_c89=no
3034 ac_save_CC=$CC
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3041 #include <stdarg.h>
3042 #include <stdio.h>
3043 #include <sys/types.h>
3044 #include <sys/stat.h>
3045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3046 struct buf { int x; };
3047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3048 static char *e (p, i)
3049 char **p;
3050 int i;
3052 return p[i];
3054 static char *f (char * (*g) (char **, int), char **p, ...)
3056 char *s;
3057 va_list v;
3058 va_start (v,p);
3059 s = g (p, va_arg (v,int));
3060 va_end (v);
3061 return s;
3064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3065 function prototypes and stuff, but not '\xHH' hex character constants.
3066 These don't provoke an error unfortunately, instead are silently treated
3067 as 'x'. The following induces an error, until -std is added to get
3068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3069 array size at least. It's necessary to write '\x00'==0 to get something
3070 that's true only with -std. */
3071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3074 inside strings and character constants. */
3075 #define FOO(x) 'x'
3076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3078 int test (int i, double x);
3079 struct s1 {int (*f) (int a);};
3080 struct s2 {int (*f) (double a);};
3081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3082 int argc;
3083 char **argv;
3085 main ()
3087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3089 return 0;
3091 _ACEOF
3092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3095 CC="$ac_save_CC $ac_arg"
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_prog_cc_c89=$ac_arg
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f core conftest.err conftest.$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 done
3124 rm -f conftest.$ac_ext
3125 CC=$ac_save_CC
3128 # AC_CACHE_VAL
3129 case "x$ac_cv_prog_cc_c89" in
3131 { echo "$as_me:$LINENO: result: none needed" >&5
3132 echo "${ECHO_T}none needed" >&6; } ;;
3133 xno)
3134 { echo "$as_me:$LINENO: result: unsupported" >&5
3135 echo "${ECHO_T}unsupported" >&6; } ;;
3137 CC="$CC $ac_cv_prog_cc_c89"
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3140 esac
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3153 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3155 # Check whether --with-cxx_main was given.
3156 if test "${with_cxx_main+set}" = set; then
3157 withval=$with_cxx_main;
3159 case $withval in
3160 no) with_cxx_main=no
3161 MAINCC='$(CC)';;
3162 yes) with_cxx_main=yes
3163 MAINCC='$(CXX)';;
3164 *) with_cxx_main=yes
3165 MAINCC=$withval
3166 if test -z "$CXX"
3167 then
3168 CXX=$withval
3169 fi;;
3170 esac
3171 else
3173 with_cxx_main=no
3174 MAINCC='$(CC)'
3178 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3179 echo "${ECHO_T}$with_cxx_main" >&6; }
3181 preset_cxx="$CXX"
3182 if test -z "$CXX"
3183 then
3184 case "$CC" in
3185 gcc) # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g++; ac_word=$2
3187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 case $CXX in
3193 [\\/]* | ?:[\\/]*)
3194 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in notfound
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3212 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3214 esac
3216 CXX=$ac_cv_path_CXX
3217 if test -n "$CXX"; then
3218 { echo "$as_me:$LINENO: result: $CXX" >&5
3219 echo "${ECHO_T}$CXX" >&6; }
3220 else
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 cc) # Extract the first word of "c++", so it can be a program name with args.
3227 set dummy c++; ac_word=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_path_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 case $CXX in
3234 [\\/]* | ?:[\\/]*)
3235 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in notfound
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3255 esac
3257 CXX=$ac_cv_path_CXX
3258 if test -n "$CXX"; then
3259 { echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6; }
3261 else
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3267 esac
3268 if test "$CXX" = "notfound"
3269 then
3270 CXX=""
3273 if test -z "$CXX"
3274 then
3275 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX="$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 CXX=$ac_cv_prog_CXX
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3315 done
3316 test -n "$CXX" || CXX="notfound"
3318 if test "$CXX" = "notfound"
3319 then
3320 CXX=""
3323 if test "$preset_cxx" != "$CXX"
3324 then
3325 { echo "$as_me:$LINENO: WARNING:
3327 By default, distutils will build C++ extension modules with \"$CXX\".
3328 If this is not intended, then set CXX on the configure command line.
3329 " >&5
3330 echo "$as_me: WARNING:
3332 By default, distutils will build C++ extension modules with \"$CXX\".
3333 If this is not intended, then set CXX on the configure command line.
3334 " >&2;}
3338 # checks for UNIX variants that set C preprocessor variables
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3349 CPP=
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3358 ac_preproc_ok=false
3359 for ac_c_preproc_warn_flag in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #ifdef __STDC__
3374 # include <limits.h>
3375 #else
3376 # include <assert.h>
3377 #endif
3378 Syntax error
3379 _ACEOF
3380 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 }; then
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3402 continue
3405 rm -f conftest.err conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3416 _ACEOF
3417 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null && {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 }; then
3433 # Broken: success on invalid input.
3434 continue
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3444 rm -f conftest.err conftest.$ac_ext
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450 break
3453 done
3454 ac_cv_prog_CPP=$CPP
3457 CPP=$ac_cv_prog_CPP
3458 else
3459 ac_cv_prog_CPP=$CPP
3461 { echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6; }
3463 ac_preproc_ok=false
3464 for ac_c_preproc_warn_flag in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3507 continue
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null && {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 }; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3556 else
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 # Extract the first word of "grep ggrep" to use in msg output
3577 if test -z "$GREP"; then
3578 set dummy grep ggrep; ac_prog_name=$2
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_path_GREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in grep ggrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3599 ac_count=0
3600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3601 while :
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 ac_count=`expr $ac_count + 1`
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP="$ac_path_GREP"
3613 ac_path_GREP_max=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3622 $ac_path_GREP_found && break 3
3623 done
3624 done
3626 done
3627 IFS=$as_save_IFS
3632 GREP="$ac_cv_path_GREP"
3633 if test -z "$GREP"; then
3634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3636 { (exit 1); exit 1; }; }
3639 else
3640 ac_cv_path_GREP=$GREP
3645 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3646 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3647 GREP="$ac_cv_path_GREP"
3650 { echo "$as_me:$LINENO: checking for egrep" >&5
3651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3656 then ac_cv_path_EGREP="$GREP -E"
3657 else
3658 # Extract the first word of "egrep" to use in msg output
3659 if test -z "$EGREP"; then
3660 set dummy egrep; ac_prog_name=$2
3661 if test "${ac_cv_path_EGREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 ac_path_EGREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_prog in egrep; do
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3675 # Check for GNU ac_path_EGREP and select it if it is found.
3676 # Check for GNU $ac_path_EGREP
3677 case `"$ac_path_EGREP" --version 2>&1` in
3678 *GNU*)
3679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3681 ac_count=0
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 while :
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'EGREP' >> "conftest.nl"
3689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 ac_count=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_EGREP="$ac_path_EGREP"
3695 ac_path_EGREP_max=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3699 done
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 esac
3704 $ac_path_EGREP_found && break 3
3705 done
3706 done
3708 done
3709 IFS=$as_save_IFS
3714 EGREP="$ac_cv_path_EGREP"
3715 if test -z "$EGREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3721 else
3722 ac_cv_path_EGREP=$EGREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3730 EGREP="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for AIX" >&5
3735 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #ifdef _AIX
3744 #endif
3746 _ACEOF
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "yes" >/dev/null 2>&1; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 cat >>confdefs.h <<\_ACEOF
3752 #define _ALL_SOURCE 1
3753 _ACEOF
3755 else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6; }
3759 rm -f conftest*
3763 # Check for unsupported systems
3764 case $ac_sys_system/$ac_sys_release in
3765 Linux*/1*)
3766 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3767 echo See README for details.
3768 exit 1;;
3769 esac
3772 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3773 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3775 # Check whether --with-suffix was given.
3776 if test "${with_suffix+set}" = set; then
3777 withval=$with_suffix;
3778 case $withval in
3779 no) EXEEXT=;;
3780 yes) EXEEXT=.exe;;
3781 *) EXEEXT=$withval;;
3782 esac
3785 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3786 echo "${ECHO_T}$EXEEXT" >&6; }
3788 # Test whether we're running on a non-case-sensitive system, in which
3789 # case we give a warning if no ext is given
3791 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3792 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3793 if test ! -d CaseSensitiveTestDir; then
3794 mkdir CaseSensitiveTestDir
3797 if test -d casesensitivetestdir
3798 then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 BUILDEXEEXT=.exe
3802 else
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 BUILDEXEEXT=$EXEEXT
3807 rmdir CaseSensitiveTestDir
3809 case $MACHDEP in
3810 bsdos*)
3811 case $CC in
3812 gcc) CC="$CC -D_HAVE_BSDI";;
3813 esac;;
3814 esac
3816 case $ac_sys_system in
3817 hp*|HP*)
3818 case $CC in
3819 cc|*/cc) CC="$CC -Ae";;
3820 esac;;
3821 Monterey*)
3822 case $CC in
3823 cc) CC="$CC -Wl,-Bexport";;
3824 esac;;
3825 SunOS*)
3826 # Some functions have a prototype only with that define, e.g. confstr
3828 cat >>confdefs.h <<\_ACEOF
3829 #define __EXTENSIONS__ 1
3830 _ACEOF
3833 esac
3837 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3838 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3839 if test -z "$LIBRARY"
3840 then
3841 LIBRARY='libpython$(VERSION).a'
3843 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3844 echo "${ECHO_T}$LIBRARY" >&6; }
3846 # LDLIBRARY is the name of the library to link against (as opposed to the
3847 # name of the library into which to insert object files). BLDLIBRARY is also
3848 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3849 # is blank as the main program is not linked directly against LDLIBRARY.
3850 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3851 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3852 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3853 # DLLLIBRARY is the shared (i.e., DLL) library.
3855 # RUNSHARED is used to run shared python without installed libraries
3857 # INSTSONAME is the name of the shared library that will be use to install
3858 # on the system - some systems like version suffix, others don't
3865 LDLIBRARY="$LIBRARY"
3866 BLDLIBRARY='$(LDLIBRARY)'
3867 INSTSONAME='$(LDLIBRARY)'
3868 DLLLIBRARY=''
3869 LDLIBRARYDIR=''
3870 RUNSHARED=''
3872 # LINKCC is the command that links the python executable -- default is $(CC).
3873 # If CXX is set, and if it is needed to link a main function that was
3874 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3875 # python might then depend on the C++ runtime
3876 # This is altered for AIX in order to build the export list before
3877 # linking.
3879 { echo "$as_me:$LINENO: checking LINKCC" >&5
3880 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3881 if test -z "$LINKCC"
3882 then
3883 LINKCC='$(PURIFY) $(MAINCC)'
3884 case $ac_sys_system in
3885 AIX*)
3886 exp_extra="\"\""
3887 if test $ac_sys_release -ge 5 -o \
3888 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3889 exp_extra="."
3891 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3892 Monterey64*)
3893 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3894 esac
3896 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3897 echo "${ECHO_T}$LINKCC" >&6; }
3899 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3900 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3901 # Check whether --enable-shared was given.
3902 if test "${enable_shared+set}" = set; then
3903 enableval=$enable_shared;
3907 if test -z "$enable_shared"
3908 then
3909 case $ac_sys_system in
3910 CYGWIN* | atheos*)
3911 enable_shared="yes";;
3913 enable_shared="no";;
3914 esac
3916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3917 echo "${ECHO_T}$enable_shared" >&6; }
3919 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3920 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3921 # Check whether --enable-profiling was given.
3922 if test "${enable_profiling+set}" = set; then
3923 enableval=$enable_profiling; ac_save_cc="$CC"
3924 CC="$CC -pg"
3925 if test "$cross_compiling" = yes; then
3926 ac_enable_profiling="no"
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 int main() { return 0; }
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947 { (case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_enable_profiling="yes"
3957 else
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ( exit $ac_status )
3963 ac_enable_profiling="no"
3965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 CC="$ac_save_cc"
3972 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3973 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3975 case "$ac_enable_profiling" in
3976 "yes")
3977 BASECFLAGS="-pg $BASECFLAGS"
3978 LDFLAGS="-pg $LDFLAGS"
3980 esac
3982 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3983 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3985 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3986 # library that we build, but we do not want to link against it (we
3987 # will find it with a -framework option). For this reason there is an
3988 # extra variable BLDLIBRARY against which Python and the extension
3989 # modules are linked, BLDLIBRARY. This is normally the same as
3990 # LDLIBRARY, but empty for MacOSX framework builds.
3991 if test "$enable_framework"
3992 then
3993 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3994 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3995 BLDLIBRARY=''
3996 else
3997 BLDLIBRARY='$(LDLIBRARY)'
4000 # Other platforms follow
4001 if test $enable_shared = "yes"; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define Py_ENABLE_SHARED 1
4005 _ACEOF
4007 case $ac_sys_system in
4008 BeOS*)
4009 LDLIBRARY='libpython$(VERSION).so'
4011 CYGWIN*)
4012 LDLIBRARY='libpython$(VERSION).dll.a'
4013 DLLLIBRARY='libpython$(VERSION).dll'
4015 SunOS*)
4016 LDLIBRARY='libpython$(VERSION).so'
4017 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4018 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4019 INSTSONAME="$LDLIBRARY".$SOVERSION
4021 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4022 LDLIBRARY='libpython$(VERSION).so'
4023 BLDLIBRARY='-L. -lpython$(VERSION)'
4024 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4025 case $ac_sys_system in
4026 FreeBSD*)
4027 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4029 esac
4030 INSTSONAME="$LDLIBRARY".$SOVERSION
4032 hp*|HP*)
4033 case `uname -m` in
4034 ia64)
4035 LDLIBRARY='libpython$(VERSION).so'
4038 LDLIBRARY='libpython$(VERSION).sl'
4040 esac
4041 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4042 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4044 OSF*)
4045 LDLIBRARY='libpython$(VERSION).so'
4046 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4049 atheos*)
4050 LDLIBRARY='libpython$(VERSION).so'
4051 BLDLIBRARY='-L. -lpython$(VERSION)'
4052 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4054 esac
4055 else # shared is disabled
4056 case $ac_sys_system in
4057 CYGWIN*)
4058 BLDLIBRARY='$(LIBRARY)'
4059 LDLIBRARY='libpython$(VERSION).dll.a'
4061 esac
4064 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4065 echo "${ECHO_T}$LDLIBRARY" >&6; }
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4072 if test "${ac_cv_prog_RANLIB+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if test -n "$RANLIB"; then
4076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 RANLIB=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6; }
4099 else
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4106 if test -z "$ac_cv_prog_RANLIB"; then
4107 ac_ct_RANLIB=$RANLIB
4108 # Extract the first word of "ranlib", so it can be a program name with args.
4109 set dummy ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$ac_ct_RANLIB"; then
4116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_RANLIB="ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4139 else
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 if test "x$ac_ct_RANLIB" = x; then
4145 RANLIB=":"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4150 whose name does not start with the host triplet. If you think this
4151 configuration is useful to you, please write to autoconf@gnu.org." >&5
4152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4153 whose name does not start with the host triplet. If you think this
4154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4155 ac_tool_warned=yes ;;
4156 esac
4157 RANLIB=$ac_ct_RANLIB
4159 else
4160 RANLIB="$ac_cv_prog_RANLIB"
4164 for ac_prog in ar aal
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy $ac_prog; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_AR+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR="$AR" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_AR="$ac_prog"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 AR=$ac_cv_prog_AR
4194 if test -n "$AR"; then
4195 { echo "$as_me:$LINENO: result: $AR" >&5
4196 echo "${ECHO_T}$AR" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 test -n "$AR" && break
4204 done
4205 test -n "$AR" || AR="ar"
4209 # Extract the first word of "svnversion", so it can be a program name with args.
4210 set dummy svnversion; ac_word=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$SVNVERSION"; then
4217 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_SVNVERSION="found"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4234 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4237 SVNVERSION=$ac_cv_prog_SVNVERSION
4238 if test -n "$SVNVERSION"; then
4239 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4240 echo "${ECHO_T}$SVNVERSION" >&6; }
4241 else
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test $SVNVERSION = found
4248 then
4249 SVNVERSION="svnversion \$(srcdir)"
4250 else
4251 SVNVERSION="echo exported"
4254 case $MACHDEP in
4255 bsdos*|hp*|HP*)
4256 # install -d does not work on BSDI or HP-UX
4257 if test -z "$INSTALL"
4258 then
4259 INSTALL="${srcdir}/install-sh -c"
4261 esac
4262 ac_aux_dir=
4263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4264 if test -f "$ac_dir/install-sh"; then
4265 ac_aux_dir=$ac_dir
4266 ac_install_sh="$ac_aux_dir/install-sh -c"
4267 break
4268 elif test -f "$ac_dir/install.sh"; then
4269 ac_aux_dir=$ac_dir
4270 ac_install_sh="$ac_aux_dir/install.sh -c"
4271 break
4272 elif test -f "$ac_dir/shtool"; then
4273 ac_aux_dir=$ac_dir
4274 ac_install_sh="$ac_aux_dir/shtool install -c"
4275 break
4277 done
4278 if test -z "$ac_aux_dir"; then
4279 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4280 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4281 { (exit 1); exit 1; }; }
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Find a good install program. We prefer a C program (faster),
4294 # so one script is as good as another. But avoid the broken or
4295 # incompatible versions:
4296 # SysV /etc/install, /usr/sbin/install
4297 # SunOS /usr/etc/install
4298 # IRIX /sbin/install
4299 # AIX /bin/install
4300 # AmigaOS /C/install, which installs bootblocks on floppy discs
4301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4304 # OS/2's system install, which has a completely different semantic
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4308 if test -z "$INSTALL"; then
4309 if test "${ac_cv_path_install+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 # Account for people who put trailing slashes in PATH elements.
4318 case $as_dir/ in
4319 ./ | .// | /cC/* | \
4320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4322 /usr/ucb/* ) ;;
4324 # OSF1 and SCO ODT 3.0 have their own names for install.
4325 # Don't use installbsd from OSF since it installs stuff as root
4326 # by default.
4327 for ac_prog in ginstall scoinst install; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4330 if test $ac_prog = install &&
4331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4332 # AIX install. It has an incompatible calling convention.
4334 elif test $ac_prog = install &&
4335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4336 # program-specific install script used by HP pwplus--don't use.
4338 else
4339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4340 break 3
4343 done
4344 done
4346 esac
4347 done
4348 IFS=$as_save_IFS
4352 if test "${ac_cv_path_install+set}" = set; then
4353 INSTALL=$ac_cv_path_install
4354 else
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for INSTALL within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 INSTALL=$ac_install_sh
4362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4363 echo "${ECHO_T}$INSTALL" >&6; }
4365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4366 # It thinks the first close brace ends the variable substitution.
4367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374 # Not every filesystem supports hard links
4376 if test -z "$LN" ; then
4377 case $ac_sys_system in
4378 BeOS*) LN="ln -s";;
4379 CYGWIN*) LN="ln -s";;
4380 atheos*) LN="ln -s";;
4381 *) LN=ln;;
4382 esac
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval=$with_pydebug;
4392 if test "$withval" != no
4393 then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define Py_DEBUG 1
4397 _ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4401 Py_DEBUG='true'
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4405 else
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4422 # user set OPT.
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4427 if test -z "$OPT"
4428 then
4429 case $GCC in
4430 yes)
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4436 WRAP="-fwrapv"
4438 case $ac_cv_prog_cc_g in
4439 yes)
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4442 # debug builds.
4443 OPT="-g -Wall $STRICT_PROTO"
4444 else
4445 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT="-O3 -Wall $STRICT_PROTO"
4451 esac
4452 case $ac_sys_system in
4453 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4455 esac
4459 OPT="-O"
4461 esac
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4466 Monterey*)
4467 OPT=""
4469 esac
4474 # tweak BASECFLAGS based on compiler and platform
4475 case $GCC in
4476 yes)
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4482 ac_save_cc="$CC"
4483 CC="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok=no
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4494 _ACEOF
4495 rm -f conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok=yes
4516 else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_no_strict_aliasing_ok=no
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 CC="$ac_save_cc"
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4532 then
4533 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4535 case $ac_sys_system in
4536 SCO_SV*)
4537 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4539 # is there any other compiler on Darwin besides gcc?
4540 Darwin*)
4541 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4542 if test "${enable_universalsdk}"; then
4543 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4547 OSF*)
4548 BASECFLAGS="$BASECFLAGS -mieee"
4550 esac
4554 case $ac_sys_system in
4555 OpenUNIX*|UnixWare*)
4556 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4558 OSF*)
4559 BASECFLAGS="$BASECFLAGS -ieee -std"
4561 SCO_SV*)
4562 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4564 esac
4566 esac
4568 if test "$Py_DEBUG" = 'true'; then
4570 else
4571 OPT="-DNDEBUG $OPT"
4574 if test "$ac_arch_flags"
4575 then
4576 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4579 # disable check for icc since it seems to pass, but generates a warning
4580 if test "$CC" = icc
4581 then
4582 ac_cv_opt_olimit_ok=no
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4586 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4587 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 ac_save_cc="$CC"
4591 CC="$CC -OPT:Olimit=0"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_opt_olimit_ok=no
4594 else
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_opt_olimit_ok=yes
4624 else
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ( exit $ac_status )
4630 ac_cv_opt_olimit_ok=no
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 CC="$ac_save_cc"
4639 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4640 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4641 if test $ac_cv_opt_olimit_ok = yes; then
4642 case $ac_sys_system in
4643 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4644 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4645 # environment?
4646 Darwin*)
4649 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4651 esac
4652 else
4653 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4654 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4655 if test "${ac_cv_olimit_ok+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_save_cc="$CC"
4659 CC="$CC -Olimit 1500"
4660 if test "$cross_compiling" = yes; then
4661 ac_cv_olimit_ok=no
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 int main() { return 0; }
4670 _ACEOF
4671 rm -f conftest$ac_exeext
4672 if { (ac_try="$ac_link"
4673 case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_link") 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_olimit_ok=yes
4692 else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ( exit $ac_status )
4698 ac_cv_olimit_ok=no
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704 CC="$ac_save_cc"
4707 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4708 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4709 if test $ac_cv_olimit_ok = yes; then
4710 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4714 # On some compilers, pthreads are available without further options
4715 # (e.g. MacOS X). On some of these systems, the compiler will not
4716 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4717 # So we have to see first whether pthreads are available without
4718 # options before we can check whether -Kpthread improves anything.
4719 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4720 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4721 if test "${ac_cv_pthread_is_default+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test "$cross_compiling" = yes; then
4725 ac_cv_pthread_is_default=no
4726 else
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 #include <pthread.h>
4736 void* routine(void* p){return NULL;}
4738 int main(){
4739 pthread_t p;
4740 if(pthread_create(&p,NULL,routine,NULL)!=0)
4741 return 1;
4742 (void)pthread_detach(p);
4743 return 0;
4746 _ACEOF
4747 rm -f conftest$ac_exeext
4748 if { (ac_try="$ac_link"
4749 case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_link") 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758 { (case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_try") 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4768 ac_cv_pthread_is_default=yes
4769 ac_cv_kthread=no
4770 ac_cv_pthread=no
4772 else
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ( exit $ac_status )
4778 ac_cv_pthread_is_default=no
4780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4787 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4788 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4791 if test $ac_cv_pthread_is_default = yes
4792 then
4793 ac_cv_kpthread=no
4794 else
4795 # -Kpthread, if available, provides the right #defines
4796 # and linker options to make pthread_create available
4797 # Some compilers won't report that they do not support -Kpthread,
4798 # so we need to run a program to see whether it really made the
4799 # function available.
4800 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4801 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4802 if test "${ac_cv_kpthread+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 ac_save_cc="$CC"
4806 CC="$CC -Kpthread"
4807 if test "$cross_compiling" = yes; then
4808 ac_cv_kpthread=no
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 #include <pthread.h>
4819 void* routine(void* p){return NULL;}
4821 int main(){
4822 pthread_t p;
4823 if(pthread_create(&p,NULL,routine,NULL)!=0)
4824 return 1;
4825 (void)pthread_detach(p);
4826 return 0;
4829 _ACEOF
4830 rm -f conftest$ac_exeext
4831 if { (ac_try="$ac_link"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_link") 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4841 { (case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_try") 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_kpthread=yes
4851 else
4852 echo "$as_me: program exited with status $ac_status" >&5
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 ( exit $ac_status )
4857 ac_cv_kpthread=no
4859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4863 CC="$ac_save_cc"
4866 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4867 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4870 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4871 then
4872 # -Kthread, if available, provides the right #defines
4873 # and linker options to make pthread_create available
4874 # Some compilers won't report that they do not support -Kthread,
4875 # so we need to run a program to see whether it really made the
4876 # function available.
4877 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4878 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4879 if test "${ac_cv_kthread+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 ac_save_cc="$CC"
4883 CC="$CC -Kthread"
4884 if test "$cross_compiling" = yes; then
4885 ac_cv_kthread=no
4886 else
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4894 #include <pthread.h>
4896 void* routine(void* p){return NULL;}
4898 int main(){
4899 pthread_t p;
4900 if(pthread_create(&p,NULL,routine,NULL)!=0)
4901 return 1;
4902 (void)pthread_detach(p);
4903 return 0;
4906 _ACEOF
4907 rm -f conftest$ac_exeext
4908 if { (ac_try="$ac_link"
4909 case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_link") 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4918 { (case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_try") 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_kthread=yes
4928 else
4929 echo "$as_me: program exited with status $ac_status" >&5
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ( exit $ac_status )
4934 ac_cv_kthread=no
4936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4940 CC="$ac_save_cc"
4943 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4944 echo "${ECHO_T}$ac_cv_kthread" >&6; }
4947 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4948 then
4949 # -pthread, if available, provides the right #defines
4950 # and linker options to make pthread_create available
4951 # Some compilers won't report that they do not support -pthread,
4952 # so we need to run a program to see whether it really made the
4953 # function available.
4954 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4955 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
4956 if test "${ac_cv_thread+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 ac_save_cc="$CC"
4960 CC="$CC -pthread"
4961 if test "$cross_compiling" = yes; then
4962 ac_cv_pthread=no
4963 else
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4971 #include <pthread.h>
4973 void* routine(void* p){return NULL;}
4975 int main(){
4976 pthread_t p;
4977 if(pthread_create(&p,NULL,routine,NULL)!=0)
4978 return 1;
4979 (void)pthread_detach(p);
4980 return 0;
4983 _ACEOF
4984 rm -f conftest$ac_exeext
4985 if { (ac_try="$ac_link"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_link") 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4995 { (case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_pthread=yes
5005 else
5006 echo "$as_me: program exited with status $ac_status" >&5
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ( exit $ac_status )
5011 ac_cv_pthread=no
5013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5017 CC="$ac_save_cc"
5020 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5021 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5024 # If we have set a CC compiler flag for thread support then
5025 # check if it works for CXX, too.
5026 ac_cv_cxx_thread=no
5027 if test ! -z "$CXX"
5028 then
5029 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5030 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5031 ac_save_cxx="$CXX"
5033 if test "$ac_cv_kpthread" = "yes"
5034 then
5035 CXX="$CXX -Kpthread"
5036 ac_cv_cxx_thread=yes
5037 elif test "$ac_cv_kthread" = "yes"
5038 then
5039 CXX="$CXX -Kthread"
5040 ac_cv_cxx_thread=yes
5041 elif test "$ac_cv_pthread" = "yes"
5042 then
5043 CXX="$CXX -pthread"
5044 ac_cv_cxx_thread=yes
5047 if test $ac_cv_cxx_thread = yes
5048 then
5049 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5050 $CXX -c conftest.$ac_ext 2>&5
5051 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5052 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5053 then
5054 ac_cv_cxx_thread=yes
5055 else
5056 ac_cv_cxx_thread=no
5058 rm -fr conftest*
5060 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5061 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5063 CXX="$ac_save_cxx"
5066 # checks for header files
5067 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5069 if test "${ac_cv_header_stdc+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <stdlib.h>
5079 #include <stdarg.h>
5080 #include <string.h>
5081 #include <float.h>
5084 main ()
5088 return 0;
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_cv_header_stdc=yes
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_header_stdc=no
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 if test $ac_cv_header_stdc = yes; then
5119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <string.h>
5128 _ACEOF
5129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 $EGREP "memchr" >/dev/null 2>&1; then
5132 else
5133 ac_cv_header_stdc=no
5135 rm -f conftest*
5139 if test $ac_cv_header_stdc = yes; then
5140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <stdlib.h>
5149 _ACEOF
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 $EGREP "free" >/dev/null 2>&1; then
5153 else
5154 ac_cv_header_stdc=no
5156 rm -f conftest*
5160 if test $ac_cv_header_stdc = yes; then
5161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5162 if test "$cross_compiling" = yes; then
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <ctype.h>
5172 #include <stdlib.h>
5173 #if ((' ' & 0x0FF) == 0x020)
5174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5176 #else
5177 # define ISLOWER(c) \
5178 (('a' <= (c) && (c) <= 'i') \
5179 || ('j' <= (c) && (c) <= 'r') \
5180 || ('s' <= (c) && (c) <= 'z'))
5181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5182 #endif
5184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5186 main ()
5188 int i;
5189 for (i = 0; i < 256; i++)
5190 if (XOR (islower (i), ISLOWER (i))
5191 || toupper (i) != TOUPPER (i))
5192 return 2;
5193 return 0;
5195 _ACEOF
5196 rm -f conftest$ac_exeext
5197 if { (ac_try="$ac_link"
5198 case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_link") 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5217 else
5218 echo "$as_me: program exited with status $ac_status" >&5
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ( exit $ac_status )
5223 ac_cv_header_stdc=no
5225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5231 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5232 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5233 if test $ac_cv_header_stdc = yes; then
5235 cat >>confdefs.h <<\_ACEOF
5236 #define STDC_HEADERS 1
5237 _ACEOF
5241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5268 #include <$ac_header>
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5287 eval "$as_ac_Header=yes"
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 eval "$as_ac_Header=no"
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 ac_res=`eval echo '${'$as_ac_Header'}'`
5298 { echo "$as_me:$LINENO: result: $ac_res" >&5
5299 echo "${ECHO_T}$ac_res" >&6; }
5300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 _ACEOF
5307 done
5359 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5360 fcntl.h grp.h \
5361 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5362 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5363 unistd.h utime.h \
5364 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5365 sys/modem.h \
5366 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5367 sys/time.h \
5368 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5369 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5370 bluetooth/bluetooth.h
5372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 ac_res=`eval echo '${'$as_ac_Header'}'`
5380 { echo "$as_me:$LINENO: result: $ac_res" >&5
5381 echo "${ECHO_T}$ac_res" >&6; }
5382 else
5383 # Is the header compilable?
5384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5393 #include <$ac_header>
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_header_compiler=yes
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_compiler=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6; }
5424 # Is the header present?
5425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <$ac_header>
5434 _ACEOF
5435 if { (ac_try="$ac_cpp conftest.$ac_ext"
5436 case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev/null && {
5448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5450 }; then
5451 ac_header_preproc=yes
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_header_preproc=no
5459 rm -f conftest.err conftest.$ac_ext
5460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6; }
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5465 yes:no: )
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5472 no:yes:* )
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5485 ( cat <<\_ASBOX
5486 ## ------------------------------------------------ ##
5487 ## Report this to http://www.python.org/python-bugs ##
5488 ## ------------------------------------------------ ##
5489 _ASBOX
5490 ) | sed "s/^/$as_me: WARNING: /" >&2
5492 esac
5493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 eval "$as_ac_Header=\$ac_header_preproc"
5500 ac_res=`eval echo '${'$as_ac_Header'}'`
5501 { echo "$as_me:$LINENO: result: $ac_res" >&5
5502 echo "${ECHO_T}$ac_res" >&6; }
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 _ACEOF
5512 done
5519 ac_header_dirent=no
5520 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5521 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5522 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5523 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 #include <$ac_hdr>
5537 main ()
5539 if ((DIR *) 0)
5540 return 0;
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 eval "$as_ac_Header=yes"
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 eval "$as_ac_Header=no"
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_res=`eval echo '${'$as_ac_Header'}'`
5573 { echo "$as_me:$LINENO: result: $ac_res" >&5
5574 echo "${ECHO_T}$ac_res" >&6; }
5575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5576 cat >>confdefs.h <<_ACEOF
5577 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5578 _ACEOF
5580 ac_header_dirent=$ac_hdr; break
5583 done
5584 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5585 if test $ac_header_dirent = dirent.h; then
5586 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5587 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5588 if test "${ac_cv_search_opendir+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 ac_func_search_save_LIBS=$LIBS
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 /* Override any GCC internal prototype to avoid an error.
5600 Use char because int might match the return type of a GCC
5601 builtin and then its argument prototype would still apply. */
5602 #ifdef __cplusplus
5603 extern "C"
5604 #endif
5605 char opendir ();
5607 main ()
5609 return opendir ();
5611 return 0;
5613 _ACEOF
5614 for ac_lib in '' dir; do
5615 if test -z "$ac_lib"; then
5616 ac_res="none required"
5617 else
5618 ac_res=-l$ac_lib
5619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5623 case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626 esac
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest$ac_exeext &&
5638 $as_test_x conftest$ac_exeext; then
5639 ac_cv_search_opendir=$ac_res
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5648 conftest$ac_exeext
5649 if test "${ac_cv_search_opendir+set}" = set; then
5650 break
5652 done
5653 if test "${ac_cv_search_opendir+set}" = set; then
5655 else
5656 ac_cv_search_opendir=no
5658 rm conftest.$ac_ext
5659 LIBS=$ac_func_search_save_LIBS
5661 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5662 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5663 ac_res=$ac_cv_search_opendir
5664 if test "$ac_res" != no; then
5665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5669 else
5670 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5672 if test "${ac_cv_search_opendir+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 ac_func_search_save_LIBS=$LIBS
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 /* Override any GCC internal prototype to avoid an error.
5684 Use char because int might match the return type of a GCC
5685 builtin and then its argument prototype would still apply. */
5686 #ifdef __cplusplus
5687 extern "C"
5688 #endif
5689 char opendir ();
5691 main ()
5693 return opendir ();
5695 return 0;
5697 _ACEOF
5698 for ac_lib in '' x; do
5699 if test -z "$ac_lib"; then
5700 ac_res="none required"
5701 else
5702 ac_res=-l$ac_lib
5703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (ac_try="$ac_link"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_link") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext &&
5722 $as_test_x conftest$ac_exeext; then
5723 ac_cv_search_opendir=$ac_res
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5732 conftest$ac_exeext
5733 if test "${ac_cv_search_opendir+set}" = set; then
5734 break
5736 done
5737 if test "${ac_cv_search_opendir+set}" = set; then
5739 else
5740 ac_cv_search_opendir=no
5742 rm conftest.$ac_ext
5743 LIBS=$ac_func_search_save_LIBS
5745 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5747 ac_res=$ac_cv_search_opendir
5748 if test "$ac_res" != no; then
5749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5755 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5756 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5757 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5768 main ()
5770 return makedev(0, 0);
5772 return 0;
5774 _ACEOF
5775 rm -f conftest.$ac_objext conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_link") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest$ac_exeext &&
5792 $as_test_x conftest$ac_exeext; then
5793 ac_cv_header_sys_types_h_makedev=yes
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 ac_cv_header_sys_types_h_makedev=no
5801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802 conftest$ac_exeext conftest.$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5806 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5808 if test $ac_cv_header_sys_types_h_makedev = no; then
5809 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5810 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5811 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5812 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5816 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5817 else
5818 # Is the header compilable?
5819 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5820 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 $ac_includes_default
5828 #include <sys/mkdev.h>
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 ac_header_compiler=yes
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_header_compiler=no
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5857 echo "${ECHO_T}$ac_header_compiler" >&6; }
5859 # Is the header present?
5860 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5861 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
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. */
5868 #include <sys/mkdev.h>
5869 _ACEOF
5870 if { (ac_try="$ac_cpp conftest.$ac_ext"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } >/dev/null && {
5883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 }; then
5886 ac_header_preproc=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_header_preproc=no
5894 rm -f conftest.err conftest.$ac_ext
5895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5896 echo "${ECHO_T}$ac_header_preproc" >&6; }
5898 # So? What about this header?
5899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5900 yes:no: )
5901 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5902 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5904 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5905 ac_header_preproc=yes
5907 no:yes:* )
5908 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5909 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5911 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5913 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5915 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5919 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5920 ( cat <<\_ASBOX
5921 ## ------------------------------------------------ ##
5922 ## Report this to http://www.python.org/python-bugs ##
5923 ## ------------------------------------------------ ##
5924 _ASBOX
5925 ) | sed "s/^/$as_me: WARNING: /" >&2
5927 esac
5928 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5929 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5930 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5936 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5939 if test $ac_cv_header_sys_mkdev_h = yes; then
5941 cat >>confdefs.h <<\_ACEOF
5942 #define MAJOR_IN_MKDEV 1
5943 _ACEOF
5949 if test $ac_cv_header_sys_mkdev_h = no; then
5950 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5951 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5952 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
5953 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5957 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
5958 else
5959 # Is the header compilable?
5960 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5961 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 #include <sys/sysmacros.h>
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 ac_header_compiler=yes
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_compiler=no
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5998 echo "${ECHO_T}$ac_header_compiler" >&6; }
6000 # Is the header present?
6001 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6002 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <sys/sysmacros.h>
6010 _ACEOF
6011 if { (ac_try="$ac_cpp conftest.$ac_ext"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null && {
6024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 }; then
6027 ac_header_preproc=yes
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 ac_header_preproc=no
6035 rm -f conftest.err conftest.$ac_ext
6036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6037 echo "${ECHO_T}$ac_header_preproc" >&6; }
6039 # So? What about this header?
6040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6041 yes:no: )
6042 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6043 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6045 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6046 ac_header_preproc=yes
6048 no:yes:* )
6049 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6050 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6052 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6054 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6056 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6058 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6060 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6061 ( cat <<\_ASBOX
6062 ## ------------------------------------------------ ##
6063 ## Report this to http://www.python.org/python-bugs ##
6064 ## ------------------------------------------------ ##
6065 _ASBOX
6066 ) | sed "s/^/$as_me: WARNING: /" >&2
6068 esac
6069 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6070 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6071 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6077 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6080 if test $ac_cv_header_sys_sysmacros_h = yes; then
6082 cat >>confdefs.h <<\_ACEOF
6083 #define MAJOR_IN_SYSMACROS 1
6084 _ACEOF
6093 # On Solaris, term.h requires curses.h
6095 for ac_header in term.h
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6110 #ifdef HAVE_CURSES_H
6111 #include <curses.h>
6112 #endif
6115 #include <$ac_header>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (ac_try="$ac_compile"
6119 case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 eval "$as_ac_Header=yes"
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 eval "$as_ac_Header=no"
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 ac_res=`eval echo '${'$as_ac_Header'}'`
6145 { echo "$as_me:$LINENO: result: $ac_res" >&5
6146 echo "${ECHO_T}$ac_res" >&6; }
6147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6148 cat >>confdefs.h <<_ACEOF
6149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6150 _ACEOF
6154 done
6157 # On Linux, netlink.h requires asm/types.h
6159 for ac_header in linux/netlink.h
6161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6174 #ifdef HAVE_ASM_TYPES_H
6175 #include <asm/types.h>
6176 #endif
6177 #ifdef HAVE_SYS_SOCKET_H
6178 #include <sys/socket.h>
6179 #endif
6182 #include <$ac_header>
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6201 eval "$as_ac_Header=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_Header=no"
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6221 done
6224 # checks for typedefs
6225 was_it_defined=no
6226 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6227 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <time.h>
6236 _ACEOF
6237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "clock_t" >/dev/null 2>&1; then
6239 was_it_defined=yes
6240 else
6243 cat >>confdefs.h <<\_ACEOF
6244 #define clock_t long
6245 _ACEOF
6249 rm -f conftest*
6251 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6252 echo "${ECHO_T}$was_it_defined" >&6; }
6254 # Check whether using makedev requires defining _OSF_SOURCE
6255 { echo "$as_me:$LINENO: checking for makedev" >&5
6256 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <sys/types.h>
6265 main ()
6267 makedev(0, 0)
6269 return 0;
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_link") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest$ac_exeext &&
6289 $as_test_x conftest$ac_exeext; then
6290 ac_cv_has_makedev=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_has_makedev=no
6298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6299 conftest$ac_exeext conftest.$ac_ext
6300 if test "$ac_cv_has_makedev" = "no"; then
6301 # we didn't link, try if _OSF_SOURCE will allow us to link
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 #define _OSF_SOURCE 1
6310 #include <sys/types.h>
6313 main ()
6315 makedev(0, 0)
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (ac_try="$ac_link"
6322 case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_link") 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest$ac_exeext &&
6337 $as_test_x conftest$ac_exeext; then
6338 ac_cv_has_makedev=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_cv_has_makedev=no
6346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6347 conftest$ac_exeext conftest.$ac_ext
6348 if test "$ac_cv_has_makedev" = "yes"; then
6350 cat >>confdefs.h <<\_ACEOF
6351 #define _OSF_SOURCE 1
6352 _ACEOF
6356 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6357 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6358 if test "$ac_cv_has_makedev" = "yes"; then
6360 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_MAKEDEV 1
6362 _ACEOF
6366 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6367 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6368 # defined, but the compiler does not support pragma redefine_extname,
6369 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6370 # structures (such as rlimit64) without declaring them. As a
6371 # work-around, disable LFS on such configurations
6373 use_lfs=yes
6374 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6375 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 #define _LARGEFILE_SOURCE 1
6384 #define _FILE_OFFSET_BITS 64
6385 #include <sys/resource.h>
6388 main ()
6390 struct rlimit foo;
6392 return 0;
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (ac_try="$ac_compile"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 sol_lfs_bug=no
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 sol_lfs_bug=yes
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6422 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6423 if test "$sol_lfs_bug" = "yes"; then
6424 use_lfs=no
6427 if test "$use_lfs" = "yes"; then
6428 # Two defines needed to enable largefile support on various platforms
6429 # These may affect some typedefs
6431 cat >>confdefs.h <<\_ACEOF
6432 #define _LARGEFILE_SOURCE 1
6433 _ACEOF
6436 cat >>confdefs.h <<\_ACEOF
6437 #define _FILE_OFFSET_BITS 64
6438 _ACEOF
6442 # Add some code to confdefs.h so that the test for off_t works on SCO
6443 cat >> confdefs.h <<\EOF
6444 #if defined(SCO_DS)
6445 #undef _OFF_T
6446 #endif
6449 # Type availability checks
6450 { echo "$as_me:$LINENO: checking for mode_t" >&5
6451 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6452 if test "${ac_cv_type_mode_t+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 $ac_includes_default
6462 typedef mode_t ac__type_new_;
6464 main ()
6466 if ((ac__type_new_ *) 0)
6467 return 0;
6468 if (sizeof (ac__type_new_))
6469 return 0;
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_cv_type_mode_t=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_cv_type_mode_t=no
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6502 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6503 if test $ac_cv_type_mode_t = yes; then
6505 else
6507 cat >>confdefs.h <<_ACEOF
6508 #define mode_t int
6509 _ACEOF
6513 { echo "$as_me:$LINENO: checking for off_t" >&5
6514 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6515 if test "${ac_cv_type_off_t+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 $ac_includes_default
6525 typedef off_t ac__type_new_;
6527 main ()
6529 if ((ac__type_new_ *) 0)
6530 return 0;
6531 if (sizeof (ac__type_new_))
6532 return 0;
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_cv_type_off_t=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 ac_cv_type_off_t=no
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6565 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6566 if test $ac_cv_type_off_t = yes; then
6568 else
6570 cat >>confdefs.h <<_ACEOF
6571 #define off_t long int
6572 _ACEOF
6576 { echo "$as_me:$LINENO: checking for pid_t" >&5
6577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6578 if test "${ac_cv_type_pid_t+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 typedef pid_t ac__type_new_;
6590 main ()
6592 if ((ac__type_new_ *) 0)
6593 return 0;
6594 if (sizeof (ac__type_new_))
6595 return 0;
6597 return 0;
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6602 case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.$ac_objext; then
6617 ac_cv_type_pid_t=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_type_pid_t=no
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6628 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6629 if test $ac_cv_type_pid_t = yes; then
6631 else
6633 cat >>confdefs.h <<_ACEOF
6634 #define pid_t int
6635 _ACEOF
6639 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6640 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6641 if test "${ac_cv_type_signal+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6651 #include <signal.h>
6654 main ()
6656 return *(signal (0, 0)) (0) == 1;
6658 return 0;
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (ac_try="$ac_compile"
6663 case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 ac_cv_type_signal=int
6679 else
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_cv_type_signal=void
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6689 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6691 cat >>confdefs.h <<_ACEOF
6692 #define RETSIGTYPE $ac_cv_type_signal
6693 _ACEOF
6696 { echo "$as_me:$LINENO: checking for size_t" >&5
6697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6698 if test "${ac_cv_type_size_t+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 typedef size_t ac__type_new_;
6710 main ()
6712 if ((ac__type_new_ *) 0)
6713 return 0;
6714 if (sizeof (ac__type_new_))
6715 return 0;
6717 return 0;
6719 _ACEOF
6720 rm -f conftest.$ac_objext
6721 if { (ac_try="$ac_compile"
6722 case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_compile") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest.$ac_objext; then
6737 ac_cv_type_size_t=yes
6738 else
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_cv_type_size_t=no
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6748 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6749 if test $ac_cv_type_size_t = yes; then
6751 else
6753 cat >>confdefs.h <<_ACEOF
6754 #define size_t unsigned int
6755 _ACEOF
6759 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6760 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6761 if test "${ac_cv_type_uid_t+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <sys/types.h>
6772 _ACEOF
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "uid_t" >/dev/null 2>&1; then
6775 ac_cv_type_uid_t=yes
6776 else
6777 ac_cv_type_uid_t=no
6779 rm -f conftest*
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6784 if test $ac_cv_type_uid_t = no; then
6786 cat >>confdefs.h <<\_ACEOF
6787 #define uid_t int
6788 _ACEOF
6791 cat >>confdefs.h <<\_ACEOF
6792 #define gid_t int
6793 _ACEOF
6797 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6798 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6799 if test "${ac_cv_type_ssize_t+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6809 typedef ssize_t ac__type_new_;
6811 main ()
6813 if ((ac__type_new_ *) 0)
6814 return 0;
6815 if (sizeof (ac__type_new_))
6816 return 0;
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (ac_try="$ac_compile"
6823 case "(($ac_try" in
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6826 esac
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_compile") 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && {
6835 test -z "$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 } && test -s conftest.$ac_objext; then
6838 ac_cv_type_ssize_t=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_type_ssize_t=no
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6849 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6850 if test $ac_cv_type_ssize_t = yes; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define HAVE_SSIZE_T 1
6854 _ACEOF
6859 # Sizes of various common basic types
6860 # ANSI C requires sizeof(char) == 1, so no need to check it
6861 { echo "$as_me:$LINENO: checking for int" >&5
6862 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6863 if test "${ac_cv_type_int+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 typedef int ac__type_new_;
6875 main ()
6877 if ((ac__type_new_ *) 0)
6878 return 0;
6879 if (sizeof (ac__type_new_))
6880 return 0;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_type_int=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_type_int=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6913 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6915 # The cast to long int works around a bug in the HP C Compiler
6916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6918 # This bug is HP SR number 8606223364.
6919 { echo "$as_me:$LINENO: checking size of int" >&5
6920 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6921 if test "${ac_cv_sizeof_int+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test "$cross_compiling" = yes; then
6925 # Depending upon the size, compute the lo and hi bounds.
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 typedef int ac__type_sizeof_;
6935 main ()
6937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6938 test_array [0] = 0
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_lo=0 ac_mid=0
6962 while :; do
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 typedef int ac__type_sizeof_;
6972 main ()
6974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6975 test_array [0] = 0
6978 return 0;
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.$ac_objext; then
6998 ac_hi=$ac_mid; break
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_lo=`expr $ac_mid + 1`
7004 if test $ac_lo -le $ac_mid; then
7005 ac_lo= ac_hi=
7006 break
7008 ac_mid=`expr 2 '*' $ac_mid + 1`
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 done
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 typedef int ac__type_sizeof_;
7026 main ()
7028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7029 test_array [0] = 0
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (ac_try="$ac_compile"
7037 case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7040 esac
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_compile") 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest.$ac_objext; then
7052 ac_hi=-1 ac_mid=-1
7053 while :; do
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7061 typedef int ac__type_sizeof_;
7063 main ()
7065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7066 test_array [0] = 0
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7074 case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 ac_lo=$ac_mid; break
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_hi=`expr '(' $ac_mid ')' - 1`
7095 if test $ac_mid -le $ac_hi; then
7096 ac_lo= ac_hi=
7097 break
7099 ac_mid=`expr 2 '*' $ac_mid`
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 done
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_lo= ac_hi=
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 # Binary search between lo and hi bounds.
7116 while test "x$ac_lo" != "x$ac_hi"; do
7117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7125 typedef int ac__type_sizeof_;
7127 main ()
7129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7130 test_array [0] = 0
7133 return 0;
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7153 ac_hi=$ac_mid
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_lo=`expr '(' $ac_mid ')' + 1`
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 done
7163 case $ac_lo in
7164 ?*) ac_cv_sizeof_int=$ac_lo;;
7165 '') if test "$ac_cv_type_int" = yes; then
7166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7167 See \`config.log' for more details." >&5
7168 echo "$as_me: error: cannot compute sizeof (int)
7169 See \`config.log' for more details." >&2;}
7170 { (exit 77); exit 77; }; }
7171 else
7172 ac_cv_sizeof_int=0
7173 fi ;;
7174 esac
7175 else
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 $ac_includes_default
7183 typedef int ac__type_sizeof_;
7184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7186 #include <stdio.h>
7187 #include <stdlib.h>
7189 main ()
7192 FILE *f = fopen ("conftest.val", "w");
7193 if (! f)
7194 return 1;
7195 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7197 long int i = longval ();
7198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7199 return 1;
7200 fprintf (f, "%ld\n", i);
7202 else
7204 unsigned long int i = ulongval ();
7205 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7206 return 1;
7207 fprintf (f, "%lu\n", i);
7209 return ferror (f) || fclose (f) != 0;
7212 return 0;
7214 _ACEOF
7215 rm -f conftest$ac_exeext
7216 if { (ac_try="$ac_link"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_link") 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7226 { (case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_try") 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_cv_sizeof_int=`cat conftest.val`
7236 else
7237 echo "$as_me: program exited with status $ac_status" >&5
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ( exit $ac_status )
7242 if test "$ac_cv_type_int" = yes; then
7243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7244 See \`config.log' for more details." >&5
7245 echo "$as_me: error: cannot compute sizeof (int)
7246 See \`config.log' for more details." >&2;}
7247 { (exit 77); exit 77; }; }
7248 else
7249 ac_cv_sizeof_int=0
7252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7254 rm -f conftest.val
7256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7257 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7261 cat >>confdefs.h <<_ACEOF
7262 #define SIZEOF_INT $ac_cv_sizeof_int
7263 _ACEOF
7266 { echo "$as_me:$LINENO: checking for long" >&5
7267 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7268 if test "${ac_cv_type_long+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 $ac_includes_default
7278 typedef long ac__type_new_;
7280 main ()
7282 if ((ac__type_new_ *) 0)
7283 return 0;
7284 if (sizeof (ac__type_new_))
7285 return 0;
7287 return 0;
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (ac_try="$ac_compile"
7292 case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 ac_cv_type_long=yes
7308 else
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_cv_type_long=no
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7318 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7320 # The cast to long int works around a bug in the HP C Compiler
7321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7323 # This bug is HP SR number 8606223364.
7324 { echo "$as_me:$LINENO: checking size of long" >&5
7325 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7326 if test "${ac_cv_sizeof_long+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 if test "$cross_compiling" = yes; then
7330 # Depending upon the size, compute the lo and hi bounds.
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 $ac_includes_default
7338 typedef long ac__type_sizeof_;
7340 main ()
7342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7343 test_array [0] = 0
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_lo=0 ac_mid=0
7367 while :; do
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 typedef long ac__type_sizeof_;
7377 main ()
7379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7380 test_array [0] = 0
7383 return 0;
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7388 case "(($ac_try" in
7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390 *) ac_try_echo=$ac_try;;
7391 esac
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.$ac_objext; then
7403 ac_hi=$ac_mid; break
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 ac_lo=`expr $ac_mid + 1`
7409 if test $ac_lo -le $ac_mid; then
7410 ac_lo= ac_hi=
7411 break
7413 ac_mid=`expr 2 '*' $ac_mid + 1`
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 done
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 typedef long ac__type_sizeof_;
7431 main ()
7433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7434 test_array [0] = 0
7437 return 0;
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (ac_try="$ac_compile"
7442 case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7457 ac_hi=-1 ac_mid=-1
7458 while :; do
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 $ac_includes_default
7466 typedef long ac__type_sizeof_;
7468 main ()
7470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7471 test_array [0] = 0
7474 return 0;
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.$ac_objext; then
7494 ac_lo=$ac_mid; break
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_hi=`expr '(' $ac_mid ')' - 1`
7500 if test $ac_mid -le $ac_hi; then
7501 ac_lo= ac_hi=
7502 break
7504 ac_mid=`expr 2 '*' $ac_mid`
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 done
7509 else
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_lo= ac_hi=
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 # Binary search between lo and hi bounds.
7521 while test "x$ac_lo" != "x$ac_hi"; do
7522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 typedef long ac__type_sizeof_;
7532 main ()
7534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7535 test_array [0] = 0
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext
7542 if { (ac_try="$ac_compile"
7543 case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_hi=$ac_mid
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_lo=`expr '(' $ac_mid ')' + 1`
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 done
7568 case $ac_lo in
7569 ?*) ac_cv_sizeof_long=$ac_lo;;
7570 '') if test "$ac_cv_type_long" = yes; then
7571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7572 See \`config.log' for more details." >&5
7573 echo "$as_me: error: cannot compute sizeof (long)
7574 See \`config.log' for more details." >&2;}
7575 { (exit 77); exit 77; }; }
7576 else
7577 ac_cv_sizeof_long=0
7578 fi ;;
7579 esac
7580 else
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 typedef long ac__type_sizeof_;
7589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7591 #include <stdio.h>
7592 #include <stdlib.h>
7594 main ()
7597 FILE *f = fopen ("conftest.val", "w");
7598 if (! f)
7599 return 1;
7600 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7602 long int i = longval ();
7603 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7604 return 1;
7605 fprintf (f, "%ld\n", i);
7607 else
7609 unsigned long int i = ulongval ();
7610 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7611 return 1;
7612 fprintf (f, "%lu\n", i);
7614 return ferror (f) || fclose (f) != 0;
7617 return 0;
7619 _ACEOF
7620 rm -f conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7631 { (case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_try") 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_cv_sizeof_long=`cat conftest.val`
7641 else
7642 echo "$as_me: program exited with status $ac_status" >&5
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 ( exit $ac_status )
7647 if test "$ac_cv_type_long" = yes; then
7648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7649 See \`config.log' for more details." >&5
7650 echo "$as_me: error: cannot compute sizeof (long)
7651 See \`config.log' for more details." >&2;}
7652 { (exit 77); exit 77; }; }
7653 else
7654 ac_cv_sizeof_long=0
7657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7659 rm -f conftest.val
7661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7666 cat >>confdefs.h <<_ACEOF
7667 #define SIZEOF_LONG $ac_cv_sizeof_long
7668 _ACEOF
7671 { echo "$as_me:$LINENO: checking for void *" >&5
7672 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7673 if test "${ac_cv_type_void_p+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7683 typedef void * ac__type_new_;
7685 main ()
7687 if ((ac__type_new_ *) 0)
7688 return 0;
7689 if (sizeof (ac__type_new_))
7690 return 0;
7692 return 0;
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 ac_cv_type_void_p=yes
7713 else
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_cv_type_void_p=no
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7723 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7725 # The cast to long int works around a bug in the HP C Compiler
7726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7728 # This bug is HP SR number 8606223364.
7729 { echo "$as_me:$LINENO: checking size of void *" >&5
7730 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7731 if test "${ac_cv_sizeof_void_p+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734 if test "$cross_compiling" = yes; then
7735 # Depending upon the size, compute the lo and hi bounds.
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 typedef void * ac__type_sizeof_;
7745 main ()
7747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7748 test_array [0] = 0
7751 return 0;
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_lo=0 ac_mid=0
7772 while :; do
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 $ac_includes_default
7780 typedef void * ac__type_sizeof_;
7782 main ()
7784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7785 test_array [0] = 0
7788 return 0;
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_hi=$ac_mid; break
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_lo=`expr $ac_mid + 1`
7814 if test $ac_lo -le $ac_mid; then
7815 ac_lo= ac_hi=
7816 break
7818 ac_mid=`expr 2 '*' $ac_mid + 1`
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 done
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7834 typedef void * ac__type_sizeof_;
7836 main ()
7838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7839 test_array [0] = 0
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_hi=-1 ac_mid=-1
7863 while :; do
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7871 typedef void * ac__type_sizeof_;
7873 main ()
7875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7876 test_array [0] = 0
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.$ac_objext; then
7899 ac_lo=$ac_mid; break
7900 else
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_hi=`expr '(' $ac_mid ')' - 1`
7905 if test $ac_mid -le $ac_hi; then
7906 ac_lo= ac_hi=
7907 break
7909 ac_mid=`expr 2 '*' $ac_mid`
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 done
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_lo= ac_hi=
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 # Binary search between lo and hi bounds.
7926 while test "x$ac_lo" != "x$ac_hi"; do
7927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 typedef void * ac__type_sizeof_;
7937 main ()
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7940 test_array [0] = 0
7943 return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_hi=$ac_mid
7964 else
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_lo=`expr '(' $ac_mid ')' + 1`
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 done
7973 case $ac_lo in
7974 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7975 '') if test "$ac_cv_type_void_p" = yes; then
7976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7977 See \`config.log' for more details." >&5
7978 echo "$as_me: error: cannot compute sizeof (void *)
7979 See \`config.log' for more details." >&2;}
7980 { (exit 77); exit 77; }; }
7981 else
7982 ac_cv_sizeof_void_p=0
7983 fi ;;
7984 esac
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 typedef void * ac__type_sizeof_;
7994 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7995 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7996 #include <stdio.h>
7997 #include <stdlib.h>
7999 main ()
8002 FILE *f = fopen ("conftest.val", "w");
8003 if (! f)
8004 return 1;
8005 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8007 long int i = longval ();
8008 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8009 return 1;
8010 fprintf (f, "%ld\n", i);
8012 else
8014 unsigned long int i = ulongval ();
8015 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8016 return 1;
8017 fprintf (f, "%lu\n", i);
8019 return ferror (f) || fclose (f) != 0;
8022 return 0;
8024 _ACEOF
8025 rm -f conftest$ac_exeext
8026 if { (ac_try="$ac_link"
8027 case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_link") 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_sizeof_void_p=`cat conftest.val`
8046 else
8047 echo "$as_me: program exited with status $ac_status" >&5
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ( exit $ac_status )
8052 if test "$ac_cv_type_void_p" = yes; then
8053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8054 See \`config.log' for more details." >&5
8055 echo "$as_me: error: cannot compute sizeof (void *)
8056 See \`config.log' for more details." >&2;}
8057 { (exit 77); exit 77; }; }
8058 else
8059 ac_cv_sizeof_void_p=0
8062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8064 rm -f conftest.val
8066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8067 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8071 cat >>confdefs.h <<_ACEOF
8072 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8073 _ACEOF
8076 { echo "$as_me:$LINENO: checking for short" >&5
8077 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8078 if test "${ac_cv_type_short+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 typedef short ac__type_new_;
8090 main ()
8092 if ((ac__type_new_ *) 0)
8093 return 0;
8094 if (sizeof (ac__type_new_))
8095 return 0;
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_type_short=yes
8118 else
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_type_short=no
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8128 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8130 # The cast to long int works around a bug in the HP C Compiler
8131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8133 # This bug is HP SR number 8606223364.
8134 { echo "$as_me:$LINENO: checking size of short" >&5
8135 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8136 if test "${ac_cv_sizeof_short+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 if test "$cross_compiling" = yes; then
8140 # Depending upon the size, compute the lo and hi bounds.
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 typedef short ac__type_sizeof_;
8150 main ()
8152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8153 test_array [0] = 0
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_lo=0 ac_mid=0
8177 while :; do
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h. */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 $ac_includes_default
8185 typedef short ac__type_sizeof_;
8187 main ()
8189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8190 test_array [0] = 0
8193 return 0;
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8198 case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 ac_hi=$ac_mid; break
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 ac_lo=`expr $ac_mid + 1`
8219 if test $ac_lo -le $ac_mid; then
8220 ac_lo= ac_hi=
8221 break
8223 ac_mid=`expr 2 '*' $ac_mid + 1`
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 done
8228 else
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8239 typedef short ac__type_sizeof_;
8241 main ()
8243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8244 test_array [0] = 0
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.$ac_objext; then
8267 ac_hi=-1 ac_mid=-1
8268 while :; do
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 typedef short ac__type_sizeof_;
8278 main ()
8280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8281 test_array [0] = 0
8284 return 0;
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.$ac_objext; then
8304 ac_lo=$ac_mid; break
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ac_hi=`expr '(' $ac_mid ')' - 1`
8310 if test $ac_mid -le $ac_hi; then
8311 ac_lo= ac_hi=
8312 break
8314 ac_mid=`expr 2 '*' $ac_mid`
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 done
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_lo= ac_hi=
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 # Binary search between lo and hi bounds.
8331 while test "x$ac_lo" != "x$ac_hi"; do
8332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 typedef short ac__type_sizeof_;
8342 main ()
8344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8345 test_array [0] = 0
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8353 case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_hi=$ac_mid
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_lo=`expr '(' $ac_mid ')' + 1`
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 done
8378 case $ac_lo in
8379 ?*) ac_cv_sizeof_short=$ac_lo;;
8380 '') if test "$ac_cv_type_short" = yes; then
8381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8382 See \`config.log' for more details." >&5
8383 echo "$as_me: error: cannot compute sizeof (short)
8384 See \`config.log' for more details." >&2;}
8385 { (exit 77); exit 77; }; }
8386 else
8387 ac_cv_sizeof_short=0
8388 fi ;;
8389 esac
8390 else
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8398 typedef short ac__type_sizeof_;
8399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8401 #include <stdio.h>
8402 #include <stdlib.h>
8404 main ()
8407 FILE *f = fopen ("conftest.val", "w");
8408 if (! f)
8409 return 1;
8410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8412 long int i = longval ();
8413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8414 return 1;
8415 fprintf (f, "%ld\n", i);
8417 else
8419 unsigned long int i = ulongval ();
8420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8421 return 1;
8422 fprintf (f, "%lu\n", i);
8424 return ferror (f) || fclose (f) != 0;
8427 return 0;
8429 _ACEOF
8430 rm -f conftest$ac_exeext
8431 if { (ac_try="$ac_link"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_link") 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_sizeof_short=`cat conftest.val`
8451 else
8452 echo "$as_me: program exited with status $ac_status" >&5
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 ( exit $ac_status )
8457 if test "$ac_cv_type_short" = yes; then
8458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8459 See \`config.log' for more details." >&5
8460 echo "$as_me: error: cannot compute sizeof (short)
8461 See \`config.log' for more details." >&2;}
8462 { (exit 77); exit 77; }; }
8463 else
8464 ac_cv_sizeof_short=0
8467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8469 rm -f conftest.val
8471 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8472 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8476 cat >>confdefs.h <<_ACEOF
8477 #define SIZEOF_SHORT $ac_cv_sizeof_short
8478 _ACEOF
8481 { echo "$as_me:$LINENO: checking for float" >&5
8482 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8483 if test "${ac_cv_type_float+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 typedef float ac__type_new_;
8495 main ()
8497 if ((ac__type_new_ *) 0)
8498 return 0;
8499 if (sizeof (ac__type_new_))
8500 return 0;
8502 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_cv_type_float=yes
8523 else
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_cv_type_float=no
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8533 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8535 # The cast to long int works around a bug in the HP C Compiler
8536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8538 # This bug is HP SR number 8606223364.
8539 { echo "$as_me:$LINENO: checking size of float" >&5
8540 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8541 if test "${ac_cv_sizeof_float+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 if test "$cross_compiling" = yes; then
8545 # Depending upon the size, compute the lo and hi bounds.
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 typedef float ac__type_sizeof_;
8555 main ()
8557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8558 test_array [0] = 0
8561 return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_lo=0 ac_mid=0
8582 while :; do
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 $ac_includes_default
8590 typedef float ac__type_sizeof_;
8592 main ()
8594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8595 test_array [0] = 0
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8618 ac_hi=$ac_mid; break
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_lo=`expr $ac_mid + 1`
8624 if test $ac_lo -le $ac_mid; then
8625 ac_lo= ac_hi=
8626 break
8628 ac_mid=`expr 2 '*' $ac_mid + 1`
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 done
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 typedef float ac__type_sizeof_;
8646 main ()
8648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8649 test_array [0] = 0
8652 return 0;
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_hi=-1 ac_mid=-1
8673 while :; do
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8681 typedef float ac__type_sizeof_;
8683 main ()
8685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8686 test_array [0] = 0
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_lo=$ac_mid; break
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_hi=`expr '(' $ac_mid ')' - 1`
8715 if test $ac_mid -le $ac_hi; then
8716 ac_lo= ac_hi=
8717 break
8719 ac_mid=`expr 2 '*' $ac_mid`
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 done
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_lo= ac_hi=
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 # Binary search between lo and hi bounds.
8736 while test "x$ac_lo" != "x$ac_hi"; do
8737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 typedef float ac__type_sizeof_;
8747 main ()
8749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8750 test_array [0] = 0
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 ac_hi=$ac_mid
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_lo=`expr '(' $ac_mid ')' + 1`
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 done
8783 case $ac_lo in
8784 ?*) ac_cv_sizeof_float=$ac_lo;;
8785 '') if test "$ac_cv_type_float" = yes; then
8786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8787 See \`config.log' for more details." >&5
8788 echo "$as_me: error: cannot compute sizeof (float)
8789 See \`config.log' for more details." >&2;}
8790 { (exit 77); exit 77; }; }
8791 else
8792 ac_cv_sizeof_float=0
8793 fi ;;
8794 esac
8795 else
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8803 typedef float ac__type_sizeof_;
8804 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8805 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8806 #include <stdio.h>
8807 #include <stdlib.h>
8809 main ()
8812 FILE *f = fopen ("conftest.val", "w");
8813 if (! f)
8814 return 1;
8815 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8817 long int i = longval ();
8818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8819 return 1;
8820 fprintf (f, "%ld\n", i);
8822 else
8824 unsigned long int i = ulongval ();
8825 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8826 return 1;
8827 fprintf (f, "%lu\n", i);
8829 return ferror (f) || fclose (f) != 0;
8832 return 0;
8834 _ACEOF
8835 rm -f conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8837 case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8846 { (case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_sizeof_float=`cat conftest.val`
8856 else
8857 echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ( exit $ac_status )
8862 if test "$ac_cv_type_float" = yes; then
8863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8864 See \`config.log' for more details." >&5
8865 echo "$as_me: error: cannot compute sizeof (float)
8866 See \`config.log' for more details." >&2;}
8867 { (exit 77); exit 77; }; }
8868 else
8869 ac_cv_sizeof_float=0
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8874 rm -f conftest.val
8876 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8877 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8881 cat >>confdefs.h <<_ACEOF
8882 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8883 _ACEOF
8886 { echo "$as_me:$LINENO: checking for double" >&5
8887 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8888 if test "${ac_cv_type_double+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 typedef double ac__type_new_;
8900 main ()
8902 if ((ac__type_new_ *) 0)
8903 return 0;
8904 if (sizeof (ac__type_new_))
8905 return 0;
8907 return 0;
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8912 case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_type_double=yes
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 ac_cv_type_double=no
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8938 echo "${ECHO_T}$ac_cv_type_double" >&6; }
8940 # The cast to long int works around a bug in the HP C Compiler
8941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8943 # This bug is HP SR number 8606223364.
8944 { echo "$as_me:$LINENO: checking size of double" >&5
8945 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
8946 if test "${ac_cv_sizeof_double+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 if test "$cross_compiling" = yes; then
8950 # Depending upon the size, compute the lo and hi bounds.
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef double ac__type_sizeof_;
8960 main ()
8962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8963 test_array [0] = 0
8966 return 0;
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (ac_try="$ac_compile"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8986 ac_lo=0 ac_mid=0
8987 while :; do
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 typedef double ac__type_sizeof_;
8997 main ()
8999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9000 test_array [0] = 0
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9008 case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.$ac_objext; then
9023 ac_hi=$ac_mid; break
9024 else
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_lo=`expr $ac_mid + 1`
9029 if test $ac_lo -le $ac_mid; then
9030 ac_lo= ac_hi=
9031 break
9033 ac_mid=`expr 2 '*' $ac_mid + 1`
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 done
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $ac_includes_default
9049 typedef double ac__type_sizeof_;
9051 main ()
9053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9054 test_array [0] = 0
9057 return 0;
9059 _ACEOF
9060 rm -f conftest.$ac_objext
9061 if { (ac_try="$ac_compile"
9062 case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_compile") 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest.$ac_objext; then
9077 ac_hi=-1 ac_mid=-1
9078 while :; do
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h. */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9086 typedef double ac__type_sizeof_;
9088 main ()
9090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9091 test_array [0] = 0
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.$ac_objext; then
9114 ac_lo=$ac_mid; break
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_hi=`expr '(' $ac_mid ')' - 1`
9120 if test $ac_mid -le $ac_hi; then
9121 ac_lo= ac_hi=
9122 break
9124 ac_mid=`expr 2 '*' $ac_mid`
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 done
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_lo= ac_hi=
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 # Binary search between lo and hi bounds.
9141 while test "x$ac_lo" != "x$ac_hi"; do
9142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 typedef double ac__type_sizeof_;
9152 main ()
9154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9155 test_array [0] = 0
9158 return 0;
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_hi=$ac_mid
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_lo=`expr '(' $ac_mid ')' + 1`
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 done
9188 case $ac_lo in
9189 ?*) ac_cv_sizeof_double=$ac_lo;;
9190 '') if test "$ac_cv_type_double" = yes; then
9191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9192 See \`config.log' for more details." >&5
9193 echo "$as_me: error: cannot compute sizeof (double)
9194 See \`config.log' for more details." >&2;}
9195 { (exit 77); exit 77; }; }
9196 else
9197 ac_cv_sizeof_double=0
9198 fi ;;
9199 esac
9200 else
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 typedef double ac__type_sizeof_;
9209 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9210 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9211 #include <stdio.h>
9212 #include <stdlib.h>
9214 main ()
9217 FILE *f = fopen ("conftest.val", "w");
9218 if (! f)
9219 return 1;
9220 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9222 long int i = longval ();
9223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9224 return 1;
9225 fprintf (f, "%ld\n", i);
9227 else
9229 unsigned long int i = ulongval ();
9230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9231 return 1;
9232 fprintf (f, "%lu\n", i);
9234 return ferror (f) || fclose (f) != 0;
9237 return 0;
9239 _ACEOF
9240 rm -f conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_sizeof_double=`cat conftest.val`
9261 else
9262 echo "$as_me: program exited with status $ac_status" >&5
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ( exit $ac_status )
9267 if test "$ac_cv_type_double" = yes; then
9268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9269 See \`config.log' for more details." >&5
9270 echo "$as_me: error: cannot compute sizeof (double)
9271 See \`config.log' for more details." >&2;}
9272 { (exit 77); exit 77; }; }
9273 else
9274 ac_cv_sizeof_double=0
9277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9279 rm -f conftest.val
9281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9282 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9286 cat >>confdefs.h <<_ACEOF
9287 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9288 _ACEOF
9291 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9292 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9293 if test "${ac_cv_type_fpos_t+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 typedef fpos_t ac__type_new_;
9305 main ()
9307 if ((ac__type_new_ *) 0)
9308 return 0;
9309 if (sizeof (ac__type_new_))
9310 return 0;
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (ac_try="$ac_compile"
9317 case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_compile") 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest.$ac_objext; then
9332 ac_cv_type_fpos_t=yes
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 ac_cv_type_fpos_t=no
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9343 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9345 # The cast to long int works around a bug in the HP C Compiler
9346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9348 # This bug is HP SR number 8606223364.
9349 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9350 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9351 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 if test "$cross_compiling" = yes; then
9355 # Depending upon the size, compute the lo and hi bounds.
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 typedef fpos_t ac__type_sizeof_;
9365 main ()
9367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9368 test_array [0] = 0
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (ac_try="$ac_compile"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_compile") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest.$ac_objext; then
9391 ac_lo=0 ac_mid=0
9392 while :; do
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 typedef fpos_t ac__type_sizeof_;
9402 main ()
9404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9405 test_array [0] = 0
9408 return 0;
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (ac_try="$ac_compile"
9413 case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416 esac
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_compile") 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 } && test -s conftest.$ac_objext; then
9428 ac_hi=$ac_mid; break
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_lo=`expr $ac_mid + 1`
9434 if test $ac_lo -le $ac_mid; then
9435 ac_lo= ac_hi=
9436 break
9438 ac_mid=`expr 2 '*' $ac_mid + 1`
9441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442 done
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 $ac_includes_default
9454 typedef fpos_t ac__type_sizeof_;
9456 main ()
9458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9459 test_array [0] = 0
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9467 case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_hi=-1 ac_mid=-1
9483 while :; do
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 typedef fpos_t ac__type_sizeof_;
9493 main ()
9495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9496 test_array [0] = 0
9499 return 0;
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9504 case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
9519 ac_lo=$ac_mid; break
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_hi=`expr '(' $ac_mid ')' - 1`
9525 if test $ac_mid -le $ac_hi; then
9526 ac_lo= ac_hi=
9527 break
9529 ac_mid=`expr 2 '*' $ac_mid`
9532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533 done
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_lo= ac_hi=
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 # Binary search between lo and hi bounds.
9546 while test "x$ac_lo" != "x$ac_hi"; do
9547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef fpos_t ac__type_sizeof_;
9557 main ()
9559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9560 test_array [0] = 0
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_hi=$ac_mid
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_lo=`expr '(' $ac_mid ')' + 1`
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 done
9593 case $ac_lo in
9594 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9595 '') if test "$ac_cv_type_fpos_t" = yes; then
9596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9597 See \`config.log' for more details." >&5
9598 echo "$as_me: error: cannot compute sizeof (fpos_t)
9599 See \`config.log' for more details." >&2;}
9600 { (exit 77); exit 77; }; }
9601 else
9602 ac_cv_sizeof_fpos_t=0
9603 fi ;;
9604 esac
9605 else
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 typedef fpos_t ac__type_sizeof_;
9614 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9615 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9616 #include <stdio.h>
9617 #include <stdlib.h>
9619 main ()
9622 FILE *f = fopen ("conftest.val", "w");
9623 if (! f)
9624 return 1;
9625 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9627 long int i = longval ();
9628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9629 return 1;
9630 fprintf (f, "%ld\n", i);
9632 else
9634 unsigned long int i = ulongval ();
9635 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9636 return 1;
9637 fprintf (f, "%lu\n", i);
9639 return ferror (f) || fclose (f) != 0;
9642 return 0;
9644 _ACEOF
9645 rm -f conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_sizeof_fpos_t=`cat conftest.val`
9666 else
9667 echo "$as_me: program exited with status $ac_status" >&5
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ( exit $ac_status )
9672 if test "$ac_cv_type_fpos_t" = yes; then
9673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9674 See \`config.log' for more details." >&5
9675 echo "$as_me: error: cannot compute sizeof (fpos_t)
9676 See \`config.log' for more details." >&2;}
9677 { (exit 77); exit 77; }; }
9678 else
9679 ac_cv_sizeof_fpos_t=0
9682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9684 rm -f conftest.val
9686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9687 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9691 cat >>confdefs.h <<_ACEOF
9692 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9693 _ACEOF
9696 { echo "$as_me:$LINENO: checking for size_t" >&5
9697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9698 if test "${ac_cv_type_size_t+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 typedef size_t ac__type_new_;
9710 main ()
9712 if ((ac__type_new_ *) 0)
9713 return 0;
9714 if (sizeof (ac__type_new_))
9715 return 0;
9717 return 0;
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9722 case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_compile") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest.$ac_objext; then
9737 ac_cv_type_size_t=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_type_size_t=no
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9748 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9750 # The cast to long int works around a bug in the HP C Compiler
9751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9753 # This bug is HP SR number 8606223364.
9754 { echo "$as_me:$LINENO: checking size of size_t" >&5
9755 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9756 if test "${ac_cv_sizeof_size_t+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 if test "$cross_compiling" = yes; then
9760 # Depending upon the size, compute the lo and hi bounds.
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 typedef size_t ac__type_sizeof_;
9770 main ()
9772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9773 test_array [0] = 0
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (ac_try="$ac_compile"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_compile") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest.$ac_objext; then
9796 ac_lo=0 ac_mid=0
9797 while :; do
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 typedef size_t ac__type_sizeof_;
9807 main ()
9809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9810 test_array [0] = 0
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
9833 ac_hi=$ac_mid; break
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_lo=`expr $ac_mid + 1`
9839 if test $ac_lo -le $ac_mid; then
9840 ac_lo= ac_hi=
9841 break
9843 ac_mid=`expr 2 '*' $ac_mid + 1`
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 done
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 typedef size_t ac__type_sizeof_;
9861 main ()
9863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9864 test_array [0] = 0
9867 return 0;
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (ac_try="$ac_compile"
9872 case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_compile") 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && {
9884 test -z "$ac_c_werror_flag" ||
9885 test ! -s conftest.err
9886 } && test -s conftest.$ac_objext; then
9887 ac_hi=-1 ac_mid=-1
9888 while :; do
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9896 typedef size_t ac__type_sizeof_;
9898 main ()
9900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9901 test_array [0] = 0
9904 return 0;
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (ac_try="$ac_compile"
9909 case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912 esac
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_compile") 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest.$ac_objext; then
9924 ac_lo=$ac_mid; break
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_hi=`expr '(' $ac_mid ')' - 1`
9930 if test $ac_mid -le $ac_hi; then
9931 ac_lo= ac_hi=
9932 break
9934 ac_mid=`expr 2 '*' $ac_mid`
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 done
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_lo= ac_hi=
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 typedef size_t ac__type_sizeof_;
9962 main ()
9964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9965 test_array [0] = 0
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.$ac_objext; then
9988 ac_hi=$ac_mid
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_lo=`expr '(' $ac_mid ')' + 1`
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 done
9998 case $ac_lo in
9999 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10000 '') if test "$ac_cv_type_size_t" = yes; then
10001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: cannot compute sizeof (size_t)
10004 See \`config.log' for more details." >&2;}
10005 { (exit 77); exit 77; }; }
10006 else
10007 ac_cv_sizeof_size_t=0
10008 fi ;;
10009 esac
10010 else
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h. */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 $ac_includes_default
10018 typedef size_t ac__type_sizeof_;
10019 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10020 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10021 #include <stdio.h>
10022 #include <stdlib.h>
10024 main ()
10027 FILE *f = fopen ("conftest.val", "w");
10028 if (! f)
10029 return 1;
10030 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10032 long int i = longval ();
10033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10034 return 1;
10035 fprintf (f, "%ld\n", i);
10037 else
10039 unsigned long int i = ulongval ();
10040 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10041 return 1;
10042 fprintf (f, "%lu\n", i);
10044 return ferror (f) || fclose (f) != 0;
10047 return 0;
10049 _ACEOF
10050 rm -f conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_sizeof_size_t=`cat conftest.val`
10071 else
10072 echo "$as_me: program exited with status $ac_status" >&5
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ( exit $ac_status )
10077 if test "$ac_cv_type_size_t" = yes; then
10078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10079 See \`config.log' for more details." >&5
10080 echo "$as_me: error: cannot compute sizeof (size_t)
10081 See \`config.log' for more details." >&2;}
10082 { (exit 77); exit 77; }; }
10083 else
10084 ac_cv_sizeof_size_t=0
10087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10089 rm -f conftest.val
10091 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10092 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10096 cat >>confdefs.h <<_ACEOF
10097 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10098 _ACEOF
10102 { echo "$as_me:$LINENO: checking for long long support" >&5
10103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10104 have_long_long=no
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10113 main ()
10115 long long x; x = (long long)0;
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (ac_try="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_compile") 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
10139 cat >>confdefs.h <<\_ACEOF
10140 #define HAVE_LONG_LONG 1
10141 _ACEOF
10143 have_long_long=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10154 echo "${ECHO_T}$have_long_long" >&6; }
10155 if test "$have_long_long" = yes ; then
10156 { echo "$as_me:$LINENO: checking for long long" >&5
10157 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10158 if test "${ac_cv_type_long_long+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef long long ac__type_new_;
10170 main ()
10172 if ((ac__type_new_ *) 0)
10173 return 0;
10174 if (sizeof (ac__type_new_))
10175 return 0;
10177 return 0;
10179 _ACEOF
10180 rm -f conftest.$ac_objext
10181 if { (ac_try="$ac_compile"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_compile") 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest.$ac_objext; then
10197 ac_cv_type_long_long=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_type_long_long=no
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10208 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10210 # The cast to long int works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 { echo "$as_me:$LINENO: checking size of long long" >&5
10215 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10216 if test "${ac_cv_sizeof_long_long+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 if test "$cross_compiling" = yes; then
10220 # Depending upon the size, compute the lo and hi bounds.
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 typedef long long ac__type_sizeof_;
10230 main ()
10232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10233 test_array [0] = 0
10236 return 0;
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (ac_try="$ac_compile"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_compile") 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && {
10253 test -z "$ac_c_werror_flag" ||
10254 test ! -s conftest.err
10255 } && test -s conftest.$ac_objext; then
10256 ac_lo=0 ac_mid=0
10257 while :; do
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10265 typedef long long ac__type_sizeof_;
10267 main ()
10269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10270 test_array [0] = 0
10273 return 0;
10275 _ACEOF
10276 rm -f conftest.$ac_objext
10277 if { (ac_try="$ac_compile"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_compile") 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest.$ac_objext; then
10293 ac_hi=$ac_mid; break
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_lo=`expr $ac_mid + 1`
10299 if test $ac_lo -le $ac_mid; then
10300 ac_lo= ac_hi=
10301 break
10303 ac_mid=`expr 2 '*' $ac_mid + 1`
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 done
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 $ac_includes_default
10319 typedef long long ac__type_sizeof_;
10321 main ()
10323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10324 test_array [0] = 0
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (ac_try="$ac_compile"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_compile") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest.$ac_objext; then
10347 ac_hi=-1 ac_mid=-1
10348 while :; do
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 $ac_includes_default
10356 typedef long long ac__type_sizeof_;
10358 main ()
10360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10361 test_array [0] = 0
10364 return 0;
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10384 ac_lo=$ac_mid; break
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_hi=`expr '(' $ac_mid ')' - 1`
10390 if test $ac_mid -le $ac_hi; then
10391 ac_lo= ac_hi=
10392 break
10394 ac_mid=`expr 2 '*' $ac_mid`
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 done
10399 else
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_lo= ac_hi=
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 # Binary search between lo and hi bounds.
10411 while test "x$ac_lo" != "x$ac_hi"; do
10412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 $ac_includes_default
10420 typedef long long ac__type_sizeof_;
10422 main ()
10424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10425 test_array [0] = 0
10428 return 0;
10430 _ACEOF
10431 rm -f conftest.$ac_objext
10432 if { (ac_try="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest.$ac_objext; then
10448 ac_hi=$ac_mid
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_lo=`expr '(' $ac_mid ')' + 1`
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 done
10458 case $ac_lo in
10459 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10460 '') if test "$ac_cv_type_long_long" = yes; then
10461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10462 See \`config.log' for more details." >&5
10463 echo "$as_me: error: cannot compute sizeof (long long)
10464 See \`config.log' for more details." >&2;}
10465 { (exit 77); exit 77; }; }
10466 else
10467 ac_cv_sizeof_long_long=0
10468 fi ;;
10469 esac
10470 else
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 typedef long long ac__type_sizeof_;
10479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10481 #include <stdio.h>
10482 #include <stdlib.h>
10484 main ()
10487 FILE *f = fopen ("conftest.val", "w");
10488 if (! f)
10489 return 1;
10490 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10492 long int i = longval ();
10493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10494 return 1;
10495 fprintf (f, "%ld\n", i);
10497 else
10499 unsigned long int i = ulongval ();
10500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10501 return 1;
10502 fprintf (f, "%lu\n", i);
10504 return ferror (f) || fclose (f) != 0;
10507 return 0;
10509 _ACEOF
10510 rm -f conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10521 { (case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_try") 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_sizeof_long_long=`cat conftest.val`
10531 else
10532 echo "$as_me: program exited with status $ac_status" >&5
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ( exit $ac_status )
10537 if test "$ac_cv_type_long_long" = yes; then
10538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10539 See \`config.log' for more details." >&5
10540 echo "$as_me: error: cannot compute sizeof (long long)
10541 See \`config.log' for more details." >&2;}
10542 { (exit 77); exit 77; }; }
10543 else
10544 ac_cv_sizeof_long_long=0
10547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 rm -f conftest.val
10551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10552 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10556 cat >>confdefs.h <<_ACEOF
10557 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10558 _ACEOF
10563 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
10564 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
10565 if test "${ac_cv_type_uintptr_t+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #ifdef HAVE_STDINT_H
10575 #include <stdint.h>
10576 #endif
10578 typedef uintptr_t ac__type_new_;
10580 main ()
10582 if ((ac__type_new_ *) 0)
10583 return 0;
10584 if (sizeof (ac__type_new_))
10585 return 0;
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (ac_try="$ac_compile"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.$ac_objext; then
10607 ac_cv_type_uintptr_t=yes
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_cv_type_uintptr_t=no
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10618 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
10619 if test $ac_cv_type_uintptr_t = yes; then
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_UINTPTR_T 1
10623 _ACEOF
10625 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
10626 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
10627 if test "${ac_cv_type_uintptr_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 typedef uintptr_t ac__type_new_;
10639 main ()
10641 if ((ac__type_new_ *) 0)
10642 return 0;
10643 if (sizeof (ac__type_new_))
10644 return 0;
10646 return 0;
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest.$ac_objext; then
10666 ac_cv_type_uintptr_t=yes
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_type_uintptr_t=no
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10677 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
10679 # The cast to long int works around a bug in the HP C Compiler
10680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10682 # This bug is HP SR number 8606223364.
10683 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10684 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
10685 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 if test "$cross_compiling" = yes; then
10689 # Depending upon the size, compute the lo and hi bounds.
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10697 typedef uintptr_t ac__type_sizeof_;
10699 main ()
10701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10702 test_array [0] = 0
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10725 ac_lo=0 ac_mid=0
10726 while :; do
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 typedef uintptr_t ac__type_sizeof_;
10736 main ()
10738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10739 test_array [0] = 0
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
10762 ac_hi=$ac_mid; break
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_lo=`expr $ac_mid + 1`
10768 if test $ac_lo -le $ac_mid; then
10769 ac_lo= ac_hi=
10770 break
10772 ac_mid=`expr 2 '*' $ac_mid + 1`
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 done
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 $ac_includes_default
10788 typedef uintptr_t ac__type_sizeof_;
10790 main ()
10792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10793 test_array [0] = 0
10796 return 0;
10798 _ACEOF
10799 rm -f conftest.$ac_objext
10800 if { (ac_try="$ac_compile"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest.$ac_objext; then
10816 ac_hi=-1 ac_mid=-1
10817 while :; do
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 typedef uintptr_t ac__type_sizeof_;
10827 main ()
10829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10830 test_array [0] = 0
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_compile") 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest.$ac_objext; then
10853 ac_lo=$ac_mid; break
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_hi=`expr '(' $ac_mid ')' - 1`
10859 if test $ac_mid -le $ac_hi; then
10860 ac_lo= ac_hi=
10861 break
10863 ac_mid=`expr 2 '*' $ac_mid`
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 done
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_lo= ac_hi=
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 # Binary search between lo and hi bounds.
10880 while test "x$ac_lo" != "x$ac_hi"; do
10881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h. */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 $ac_includes_default
10889 typedef uintptr_t ac__type_sizeof_;
10891 main ()
10893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10894 test_array [0] = 0
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (ac_try="$ac_compile"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest.$ac_objext; then
10917 ac_hi=$ac_mid
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_lo=`expr '(' $ac_mid ')' + 1`
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 done
10927 case $ac_lo in
10928 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10929 '') if test "$ac_cv_type_uintptr_t" = yes; then
10930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
10931 See \`config.log' for more details." >&5
10932 echo "$as_me: error: cannot compute sizeof (uintptr_t)
10933 See \`config.log' for more details." >&2;}
10934 { (exit 77); exit 77; }; }
10935 else
10936 ac_cv_sizeof_uintptr_t=0
10937 fi ;;
10938 esac
10939 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h. */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 $ac_includes_default
10947 typedef uintptr_t ac__type_sizeof_;
10948 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10949 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10950 #include <stdio.h>
10951 #include <stdlib.h>
10953 main ()
10956 FILE *f = fopen ("conftest.val", "w");
10957 if (! f)
10958 return 1;
10959 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10961 long int i = longval ();
10962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10963 return 1;
10964 fprintf (f, "%ld\n", i);
10966 else
10968 unsigned long int i = ulongval ();
10969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10970 return 1;
10971 fprintf (f, "%lu\n", i);
10973 return ferror (f) || fclose (f) != 0;
10976 return 0;
10978 _ACEOF
10979 rm -f conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11000 else
11001 echo "$as_me: program exited with status $ac_status" >&5
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ( exit $ac_status )
11006 if test "$ac_cv_type_uintptr_t" = yes; then
11007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11008 See \`config.log' for more details." >&5
11009 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11010 See \`config.log' for more details." >&2;}
11011 { (exit 77); exit 77; }; }
11012 else
11013 ac_cv_sizeof_uintptr_t=0
11016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11018 rm -f conftest.val
11020 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11021 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11025 cat >>confdefs.h <<_ACEOF
11026 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11027 _ACEOF
11034 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11035 { echo "$as_me:$LINENO: checking size of off_t" >&5
11036 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11037 if test "${ac_cv_sizeof_off_t+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 if test "$cross_compiling" = yes; then
11041 ac_cv_sizeof_off_t=4
11042 else
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <stdio.h>
11050 #include <sys/types.h>
11051 main()
11053 FILE *f=fopen("conftestval", "w");
11054 if (!f) exit(1);
11055 fprintf(f, "%d\n", sizeof(off_t));
11056 exit(0);
11058 _ACEOF
11059 rm -f conftest$ac_exeext
11060 if { (ac_try="$ac_link"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_link") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_sizeof_off_t=`cat conftestval`
11080 else
11081 echo "$as_me: program exited with status $ac_status" >&5
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ( exit $ac_status )
11086 ac_cv_sizeof_off_t=0
11088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11096 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11098 cat >>confdefs.h <<_ACEOF
11099 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11100 _ACEOF
11103 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11104 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11105 if test "$have_long_long" = yes -a \
11106 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11107 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11109 cat >>confdefs.h <<\_ACEOF
11110 #define HAVE_LARGEFILE_SUPPORT 1
11111 _ACEOF
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11115 else
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11120 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11121 { echo "$as_me:$LINENO: checking size of time_t" >&5
11122 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11123 if test "${ac_cv_sizeof_time_t+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 if test "$cross_compiling" = yes; then
11127 ac_cv_sizeof_time_t=4
11128 else
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h. */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <stdio.h>
11136 #include <time.h>
11137 main()
11139 FILE *f=fopen("conftestval", "w");
11140 if (!f) exit(1);
11141 fprintf(f, "%d\n", sizeof(time_t));
11142 exit(0);
11144 _ACEOF
11145 rm -f conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_sizeof_time_t=`cat conftestval`
11166 else
11167 echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 ( exit $ac_status )
11172 ac_cv_sizeof_time_t=0
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11181 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11182 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11184 cat >>confdefs.h <<_ACEOF
11185 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11186 _ACEOF
11190 # if have pthread_t then define SIZEOF_PTHREAD_T
11191 ac_save_cc="$CC"
11192 if test "$ac_cv_kpthread" = "yes"
11193 then CC="$CC -Kpthread"
11194 elif test "$ac_cv_kthread" = "yes"
11195 then CC="$CC -Kthread"
11196 elif test "$ac_cv_pthread" = "yes"
11197 then CC="$CC -pthread"
11199 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11200 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11201 have_pthread_t=no
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <pthread.h>
11210 main ()
11212 pthread_t x; x = *(pthread_t*)0;
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11234 have_pthread_t=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11244 echo "${ECHO_T}$have_pthread_t" >&6; }
11245 if test "$have_pthread_t" = yes ; then
11246 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11247 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11248 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11249 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252 if test "$cross_compiling" = yes; then
11253 ac_cv_sizeof_pthread_t=4
11254 else
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h. */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 #include <stdio.h>
11262 #include <pthread.h>
11263 main()
11265 FILE *f=fopen("conftestval", "w");
11266 if (!f) exit(1);
11267 fprintf(f, "%d\n", sizeof(pthread_t));
11268 exit(0);
11270 _ACEOF
11271 rm -f conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_sizeof_pthread_t=`cat conftestval`
11292 else
11293 echo "$as_me: program exited with status $ac_status" >&5
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ( exit $ac_status )
11298 ac_cv_sizeof_pthread_t=0
11300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11307 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11308 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11310 cat >>confdefs.h <<_ACEOF
11311 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11312 _ACEOF
11315 CC="$ac_save_cc"
11317 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11318 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11319 # Check whether --enable-toolbox-glue was given.
11320 if test "${enable_toolbox_glue+set}" = set; then
11321 enableval=$enable_toolbox_glue;
11325 if test -z "$enable_toolbox_glue"
11326 then
11327 case $ac_sys_system/$ac_sys_release in
11328 Darwin/*)
11329 enable_toolbox_glue="yes";;
11331 enable_toolbox_glue="no";;
11332 esac
11334 case "$enable_toolbox_glue" in
11335 yes)
11336 extra_machdep_objs="Python/mactoolboxglue.o"
11337 extra_undefs="-u _PyMac_Error"
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_TOOLBOX_OBJECT_GLUE 1
11341 _ACEOF
11345 extra_machdep_objs=""
11346 extra_undefs=""
11348 esac
11349 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11350 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11353 case $ac_sys_system/$ac_sys_release in
11354 Darwin/[01567]\..*)
11355 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11357 Darwin/*)
11358 OTHER_LIBTOOL_OPT=""
11360 esac
11363 case $ac_sys_system/$ac_sys_release in
11364 Darwin/[01567]\..*)
11365 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11366 if test "${enable_universalsdk}"; then
11368 else
11369 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11371 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11372 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11373 Darwin/*)
11374 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11375 if test ${gcc_version} '<' 4.0
11376 then
11377 LIBTOOL_CRUFT="-lcc_dynamic"
11378 else
11379 LIBTOOL_CRUFT=""
11381 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11382 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11383 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11384 esac
11386 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11387 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11388 if test "$enable_framework"
11389 then
11390 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11391 # -F. is needed to allow linking to the framework while
11392 # in the build location.
11394 cat >>confdefs.h <<\_ACEOF
11395 #define WITH_NEXT_FRAMEWORK 1
11396 _ACEOF
11398 { echo "$as_me:$LINENO: result: yes" >&5
11399 echo "${ECHO_T}yes" >&6; }
11400 else
11401 { echo "$as_me:$LINENO: result: no" >&5
11402 echo "${ECHO_T}no" >&6; }
11405 { echo "$as_me:$LINENO: checking for dyld" >&5
11406 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11407 case $ac_sys_system/$ac_sys_release in
11408 Darwin/*)
11410 cat >>confdefs.h <<\_ACEOF
11411 #define WITH_DYLD 1
11412 _ACEOF
11414 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11415 echo "${ECHO_T}always on for Darwin" >&6; }
11418 { echo "$as_me:$LINENO: result: no" >&5
11419 echo "${ECHO_T}no" >&6; }
11421 esac
11423 # Set info about shared libraries.
11429 # SO is the extension of shared libraries `(including the dot!)
11430 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11431 { echo "$as_me:$LINENO: checking SO" >&5
11432 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11433 if test -z "$SO"
11434 then
11435 case $ac_sys_system in
11436 hp*|HP*)
11437 case `uname -m` in
11438 ia64) SO=.so;;
11439 *) SO=.sl;;
11440 esac
11442 CYGWIN*) SO=.dll;;
11443 *) SO=.so;;
11444 esac
11445 else
11446 # this might also be a termcap variable, see #610332
11447 echo
11448 echo '====================================================================='
11449 echo '+ +'
11450 echo '+ WARNING: You have set SO in your environment. +'
11451 echo '+ Do you really mean to change the extension for shared libraries? +'
11452 echo '+ Continuing in 10 seconds to let you to ponder. +'
11453 echo '+ +'
11454 echo '====================================================================='
11455 sleep 10
11457 { echo "$as_me:$LINENO: result: $SO" >&5
11458 echo "${ECHO_T}$SO" >&6; }
11460 cat >>confdefs.h <<_ACEOF
11461 #define SHLIB_EXT "$SO"
11462 _ACEOF
11464 # LDSHARED is the ld *command* used to create shared library
11465 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11466 # (Shared libraries in this instance are shared modules to be loaded into
11467 # Python, as opposed to building Python itself as a shared library.)
11468 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11469 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11470 if test -z "$LDSHARED"
11471 then
11472 case $ac_sys_system/$ac_sys_release in
11473 AIX*)
11474 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11475 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11477 BeOS*)
11478 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11479 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11481 IRIX/5*) LDSHARED="ld -shared";;
11482 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
11483 SunOS/5*)
11484 if test "$GCC" = "yes"
11485 then LDSHARED='$(CC) -shared'
11486 else LDSHARED='$(CC) -G';
11487 fi ;;
11488 hp*|HP*) LDSHARED="ld -b";;
11489 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
11490 Darwin/1.3*)
11491 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11492 if test "$enable_framework" ; then
11493 # Link against the framework. All externals should be defined.
11494 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11495 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11496 else
11497 # No framework. Ignore undefined symbols, assuming they come from Python
11498 LDSHARED="$LDSHARED -undefined suppress"
11499 fi ;;
11500 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11501 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11502 if test "$enable_framework" ; then
11503 # Link against the framework. All externals should be defined.
11504 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11505 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11506 else
11507 # No framework, use the Python app as bundle-loader
11508 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11509 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11510 fi ;;
11511 Darwin/*)
11512 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11513 # This allows an extension to be used in any Python
11514 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11515 if test ${cur_target} '>' 10.2; then
11516 cur_target=10.3
11518 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11520 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
11521 # environment with a value that is the same as what we'll use
11522 # in the Makefile to ensure that we'll get the same compiler
11523 # environment during configure and build time.
11524 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
11525 export MACOSX_DEPLOYMENT_TARGET
11527 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11528 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11529 then
11530 if test "${enable_universalsdk}"; then
11531 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11533 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11534 BLDSHARED="$LDSHARED"
11535 else
11536 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11537 if test "$enable_framework" ; then
11538 # Link against the framework. All externals should be defined.
11539 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11540 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11541 else
11542 # No framework, use the Python app as bundle-loader
11543 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11544 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11548 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11549 BSD/OS*/4*) LDSHARED="gcc -shared";;
11550 FreeBSD*)
11551 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11552 then
11553 LDSHARED="$CC -shared ${LDFLAGS}"
11554 else
11555 LDSHARED="ld -Bshareable ${LDFLAGS}"
11556 fi;;
11557 OpenBSD*)
11558 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11559 then
11560 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11561 else
11562 case `uname -r` in
11563 [01].* | 2.[0-7] | 2.[0-7].*)
11564 LDSHARED="ld -Bshareable ${LDFLAGS}"
11567 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11569 esac
11570 fi;;
11571 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11572 OpenUNIX*|UnixWare*)
11573 if test "$GCC" = "yes"
11574 then LDSHARED='$(CC) -shared'
11575 else LDSHARED='$(CC) -G'
11576 fi;;
11577 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11578 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11579 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11580 atheos*) LDSHARED="gcc -shared";;
11581 *) LDSHARED="ld";;
11582 esac
11584 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
11585 echo "${ECHO_T}$LDSHARED" >&6; }
11586 BLDSHARED=${BLDSHARED-$LDSHARED}
11587 # CCSHARED are the C *flags* used to create objects to go into a shared
11588 # library (module) -- this is only needed for a few systems
11589 { echo "$as_me:$LINENO: checking CCSHARED" >&5
11590 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
11591 if test -z "$CCSHARED"
11592 then
11593 case $ac_sys_system/$ac_sys_release in
11594 SunOS*) if test "$GCC" = yes;
11595 then CCSHARED="-fPIC";
11596 elif test `uname -p` = sparc;
11597 then CCSHARED="-xcode=pic32";
11598 else CCSHARED="-Kpic";
11599 fi;;
11600 hp*|HP*) if test "$GCC" = yes;
11601 then CCSHARED="-fPIC";
11602 else CCSHARED="+z";
11603 fi;;
11604 Linux*|GNU*) CCSHARED="-fPIC";;
11605 BSD/OS*/4*) CCSHARED="-fpic";;
11606 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11607 OpenUNIX*|UnixWare*)
11608 if test "$GCC" = "yes"
11609 then CCSHARED="-fPIC"
11610 else CCSHARED="-KPIC"
11611 fi;;
11612 SCO_SV*)
11613 if test "$GCC" = "yes"
11614 then CCSHARED="-fPIC"
11615 else CCSHARED="-Kpic -belf"
11616 fi;;
11617 Monterey*) CCSHARED="-G";;
11618 IRIX*/6*) case $CC in
11619 *gcc*) CCSHARED="-shared";;
11620 *) CCSHARED="";;
11621 esac;;
11622 atheos*) CCSHARED="-fPIC";;
11623 esac
11625 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
11626 echo "${ECHO_T}$CCSHARED" >&6; }
11627 # LINKFORSHARED are the flags passed to the $(CC) command that links
11628 # the python executable -- this is only needed for a few systems
11629 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11630 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
11631 if test -z "$LINKFORSHARED"
11632 then
11633 case $ac_sys_system/$ac_sys_release in
11634 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11635 hp*|HP*)
11636 LINKFORSHARED="-Wl,-E -Wl,+s";;
11637 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11638 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11639 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11640 # -u libsys_s pulls in all symbols in libsys
11641 Darwin/*)
11642 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11643 # which is
11644 # not used by the core itself but which needs to be in the core so
11645 # that dynamically loaded extension modules have access to it.
11646 # -prebind is no longer used, because it actually seems to give a
11647 # slowdown in stead of a speedup, maybe due to the large number of
11648 # dynamic loads Python does.
11650 LINKFORSHARED="$extra_undefs"
11651 if test "$enable_framework"
11652 then
11653 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11655 LINKFORSHARED="$LINKFORSHARED";;
11656 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11657 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11658 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11659 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11660 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11661 then
11662 LINKFORSHARED="-Wl,--export-dynamic"
11663 fi;;
11664 SunOS/5*) case $CC in
11665 *gcc*)
11666 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11667 then
11668 LINKFORSHARED="-Xlinker --export-dynamic"
11669 fi;;
11670 esac;;
11671 CYGWIN*)
11672 if test $enable_shared = "no"
11673 then
11674 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11675 fi;;
11676 esac
11678 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11679 echo "${ECHO_T}$LINKFORSHARED" >&6; }
11682 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11683 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
11684 if test ! "$LIBRARY" = "$LDLIBRARY"
11685 then
11686 case $ac_sys_system in
11687 CYGWIN*)
11688 # Cygwin needs CCSHARED when building extension DLLs
11689 # but not when building the interpreter DLL.
11690 CFLAGSFORSHARED='';;
11692 CFLAGSFORSHARED='$(CCSHARED)'
11693 esac
11695 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11696 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
11698 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11699 # library (with --enable-shared).
11700 # For platforms on which shared libraries are not allowed to have unresolved
11701 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11702 # if it is not required, since it creates a dependency of the shared library
11703 # to LIBS. This, in turn, means that applications linking the shared libpython
11704 # don't need to link LIBS explicitly. The default should be only changed
11705 # on systems where this approach causes problems.
11707 { echo "$as_me:$LINENO: checking SHLIBS" >&5
11708 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
11709 case "$ac_sys_system" in
11711 SHLIBS='$(LIBS)';;
11712 esac
11713 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
11714 echo "${ECHO_T}$SHLIBS" >&6; }
11717 # checks for libraries
11719 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11720 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11721 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 ac_check_lib_save_LIBS=$LIBS
11725 LIBS="-ldl $LIBS"
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char dlopen ();
11741 main ()
11743 return dlopen ();
11745 return 0;
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext &&
11765 $as_test_x conftest$ac_exeext; then
11766 ac_cv_lib_dl_dlopen=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_dl_dlopen=no
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11780 if test $ac_cv_lib_dl_dlopen = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_LIBDL 1
11783 _ACEOF
11785 LIBS="-ldl $LIBS"
11788 # Dynamic linking for SunOS/Solaris and SYSV
11790 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11791 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 ac_check_lib_save_LIBS=$LIBS
11796 LIBS="-ldld $LIBS"
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h. */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char shl_load ();
11812 main ()
11814 return shl_load ();
11816 return 0;
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest$ac_exeext &&
11836 $as_test_x conftest$ac_exeext; then
11837 ac_cv_lib_dld_shl_load=yes
11838 else
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_cv_lib_dld_shl_load=no
11845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11850 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11851 if test $ac_cv_lib_dld_shl_load = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853 #define HAVE_LIBDLD 1
11854 _ACEOF
11856 LIBS="-ldld $LIBS"
11859 # Dynamic linking for HP-UX
11861 # only check for sem_ini if thread support is requested
11862 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11863 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11864 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
11865 if test "${ac_cv_search_sem_init+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868 ac_func_search_save_LIBS=$LIBS
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char sem_init ();
11884 main ()
11886 return sem_init ();
11888 return 0;
11890 _ACEOF
11891 for ac_lib in '' pthread rt posix4; do
11892 if test -z "$ac_lib"; then
11893 ac_res="none required"
11894 else
11895 ac_res=-l$ac_lib
11896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest$ac_exeext &&
11915 $as_test_x conftest$ac_exeext; then
11916 ac_cv_search_sem_init=$ac_res
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11925 conftest$ac_exeext
11926 if test "${ac_cv_search_sem_init+set}" = set; then
11927 break
11929 done
11930 if test "${ac_cv_search_sem_init+set}" = set; then
11932 else
11933 ac_cv_search_sem_init=no
11935 rm conftest.$ac_ext
11936 LIBS=$ac_func_search_save_LIBS
11938 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11939 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
11940 ac_res=$ac_cv_search_sem_init
11941 if test "$ac_res" != no; then
11942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11945 # 'Real Time' functions on Solaris
11946 # posix4 on Solaris 2.6
11947 # pthread (first!) on Linux
11950 # check if we need libintl for locale functions
11951 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11952 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
11953 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lintl $LIBS"
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char textdomain ();
11973 main ()
11975 return textdomain ();
11977 return 0;
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } && {
11994 test -z "$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11996 } && test -s conftest$ac_exeext &&
11997 $as_test_x conftest$ac_exeext; then
11998 ac_cv_lib_intl_textdomain=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_cv_lib_intl_textdomain=no
12006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12011 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12012 if test $ac_cv_lib_intl_textdomain = yes; then
12014 cat >>confdefs.h <<\_ACEOF
12015 #define WITH_LIBINTL 1
12016 _ACEOF
12021 # checks for system dependent C++ extensions support
12022 case "$ac_sys_system" in
12023 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12024 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include "/usr/lpp/xlC/include/load.h"
12033 main ()
12035 loadAndInit("", 0, "")
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (ac_try="$ac_link"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
12059 cat >>confdefs.h <<\_ACEOF
12060 #define AIX_GENUINE_CPLUSPLUS 1
12061 _ACEOF
12063 { echo "$as_me:$LINENO: result: yes" >&5
12064 echo "${ECHO_T}yes" >&6; }
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 { echo "$as_me:$LINENO: result: no" >&5
12070 echo "${ECHO_T}no" >&6; }
12073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12074 conftest$ac_exeext conftest.$ac_ext;;
12075 *) ;;
12076 esac
12078 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12079 # BeOS' sockets are stashed in libnet.
12080 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12081 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-lnsl $LIBS"
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char t_open ();
12102 main ()
12104 return t_open ();
12106 return 0;
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest$ac_exeext &&
12126 $as_test_x conftest$ac_exeext; then
12127 ac_cv_lib_nsl_t_open=yes
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_cv_lib_nsl_t_open=no
12135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12140 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12141 if test $ac_cv_lib_nsl_t_open = yes; then
12142 LIBS="-lnsl $LIBS"
12144 # SVR4
12145 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12146 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12147 if test "${ac_cv_lib_socket_socket+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lsocket $LIBS $LIBS"
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 char socket ();
12167 main ()
12169 return socket ();
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest$ac_exeext &&
12191 $as_test_x conftest$ac_exeext; then
12192 ac_cv_lib_socket_socket=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_cv_lib_socket_socket=no
12200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12205 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12206 if test $ac_cv_lib_socket_socket = yes; then
12207 LIBS="-lsocket $LIBS"
12209 # SVR4 sockets
12211 case "$ac_sys_system" in
12212 BeOS*)
12213 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12214 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_net_socket+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lnet $LIBS $LIBS"
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char socket ();
12235 main ()
12237 return socket ();
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest$ac_exeext &&
12259 $as_test_x conftest$ac_exeext; then
12260 ac_cv_lib_net_socket=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_cv_lib_net_socket=no
12268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12272 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12273 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12274 if test $ac_cv_lib_net_socket = yes; then
12275 LIBS="-lnet $LIBS"
12277 # BeOS
12279 esac
12281 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12282 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12284 # Check whether --with-libs was given.
12285 if test "${with_libs+set}" = set; then
12286 withval=$with_libs;
12287 { echo "$as_me:$LINENO: result: $withval" >&5
12288 echo "${ECHO_T}$withval" >&6; }
12289 LIBS="$withval $LIBS"
12291 else
12292 { echo "$as_me:$LINENO: result: no" >&5
12293 echo "${ECHO_T}no" >&6; }
12297 # Check for use of the system libffi library
12298 if test "${ac_cv_header_ffi_h+set}" = set; then
12299 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12300 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12301 if test "${ac_cv_header_ffi_h+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12305 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12306 else
12307 # Is the header compilable?
12308 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
12309 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12317 #include <ffi.h>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (ac_try="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_compile") 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest.$ac_objext; then
12336 ac_header_compiler=yes
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_header_compiler=no
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12346 echo "${ECHO_T}$ac_header_compiler" >&6; }
12348 # Is the header present?
12349 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
12350 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 #include <ffi.h>
12358 _ACEOF
12359 if { (ac_try="$ac_cpp conftest.$ac_ext"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } >/dev/null && {
12372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 }; then
12375 ac_header_preproc=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_header_preproc=no
12383 rm -f conftest.err conftest.$ac_ext
12384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12385 echo "${ECHO_T}$ac_header_preproc" >&6; }
12387 # So? What about this header?
12388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12389 yes:no: )
12390 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12391 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
12393 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
12394 ac_header_preproc=yes
12396 no:yes:* )
12397 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
12398 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
12400 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
12402 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
12404 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
12408 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
12409 ( cat <<\_ASBOX
12410 ## ------------------------------------------------ ##
12411 ## Report this to http://www.python.org/python-bugs ##
12412 ## ------------------------------------------------ ##
12413 _ASBOX
12414 ) | sed "s/^/$as_me: WARNING: /" >&2
12416 esac
12417 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12418 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12419 if test "${ac_cv_header_ffi_h+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 ac_cv_header_ffi_h=$ac_header_preproc
12424 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12425 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12430 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12431 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12433 # Check whether --with-system_ffi was given.
12434 if test "${with_system_ffi+set}" = set; then
12435 withval=$with_system_ffi;
12439 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
12440 case "$ac_sys_system/`uname -m`" in
12441 Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
12442 *) with_system_ffi="no"
12443 esac
12445 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12446 echo "${ECHO_T}$with_system_ffi" >&6; }
12448 # Determine if signalmodule should be used.
12451 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12452 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12454 # Check whether --with-signal-module was given.
12455 if test "${with_signal_module+set}" = set; then
12456 withval=$with_signal_module;
12460 if test -z "$with_signal_module"
12461 then with_signal_module="yes"
12463 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12464 echo "${ECHO_T}$with_signal_module" >&6; }
12466 if test "${with_signal_module}" = "yes"; then
12467 USE_SIGNAL_MODULE=""
12468 SIGNAL_OBJS=""
12469 else
12470 USE_SIGNAL_MODULE="#"
12471 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
12474 # This is used to generate Setup.config
12476 USE_THREAD_MODULE=""
12478 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12479 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
12482 # Check whether --with-dec-threads was given.
12483 if test "${with_dec_threads+set}" = set; then
12484 withval=$with_dec_threads;
12485 { echo "$as_me:$LINENO: result: $withval" >&5
12486 echo "${ECHO_T}$withval" >&6; }
12487 LDLAST=-threads
12488 if test "${with_thread+set}" != set; then
12489 with_thread="$withval";
12491 else
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12497 # Templates for things AC_DEFINEd more than once.
12498 # For a single AC_DEFINE, no template is needed.
12506 { echo "$as_me:$LINENO: checking for --with-threads" >&5
12507 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
12509 # Check whether --with-threads was given.
12510 if test "${with_threads+set}" = set; then
12511 withval=$with_threads;
12515 # --with-thread is deprecated, but check for it anyway
12517 # Check whether --with-thread was given.
12518 if test "${with_thread+set}" = set; then
12519 withval=$with_thread; with_threads=$with_thread
12523 if test -z "$with_threads"
12524 then with_threads="yes"
12526 { echo "$as_me:$LINENO: result: $with_threads" >&5
12527 echo "${ECHO_T}$with_threads" >&6; }
12530 if test "$with_threads" = "no"
12531 then
12532 USE_THREAD_MODULE="#"
12533 elif test "$ac_cv_pthread_is_default" = yes
12534 then
12535 cat >>confdefs.h <<\_ACEOF
12536 #define WITH_THREAD 1
12537 _ACEOF
12539 # Defining _REENTRANT on system with POSIX threads should not hurt.
12540 cat >>confdefs.h <<\_ACEOF
12541 #define _REENTRANT 1
12542 _ACEOF
12544 posix_threads=yes
12545 THREADOBJ="Python/thread.o"
12546 elif test "$ac_cv_kpthread" = "yes"
12547 then
12548 CC="$CC -Kpthread"
12549 if test "$ac_cv_cxx_thread" = "yes"; then
12550 CXX="$CXX -Kpthread"
12552 cat >>confdefs.h <<\_ACEOF
12553 #define WITH_THREAD 1
12554 _ACEOF
12556 posix_threads=yes
12557 THREADOBJ="Python/thread.o"
12558 elif test "$ac_cv_kthread" = "yes"
12559 then
12560 CC="$CC -Kthread"
12561 if test "$ac_cv_cxx_thread" = "yes"; then
12562 CXX="$CXX -Kthread"
12564 cat >>confdefs.h <<\_ACEOF
12565 #define WITH_THREAD 1
12566 _ACEOF
12568 posix_threads=yes
12569 THREADOBJ="Python/thread.o"
12570 elif test "$ac_cv_pthread" = "yes"
12571 then
12572 CC="$CC -pthread"
12573 if test "$ac_cv_cxx_thread" = "yes"; then
12574 CXX="$CXX -pthread"
12576 cat >>confdefs.h <<\_ACEOF
12577 #define WITH_THREAD 1
12578 _ACEOF
12580 posix_threads=yes
12581 THREADOBJ="Python/thread.o"
12582 else
12583 if test ! -z "$with_threads" -a -d "$with_threads"
12584 then LDFLAGS="$LDFLAGS -L$with_threads"
12586 if test ! -z "$withval" -a -d "$withval"
12587 then LDFLAGS="$LDFLAGS -L$withval"
12590 # According to the POSIX spec, a pthreads implementation must
12591 # define _POSIX_THREADS in unistd.h. Some apparently don't
12592 # (e.g. gnu pth with pthread emulation)
12593 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12594 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 #include <unistd.h>
12603 #ifdef _POSIX_THREADS
12605 #endif
12607 _ACEOF
12608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12609 $EGREP "yes" >/dev/null 2>&1; then
12610 unistd_defines_pthreads=yes
12611 else
12612 unistd_defines_pthreads=no
12614 rm -f conftest*
12616 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12617 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
12619 cat >>confdefs.h <<\_ACEOF
12620 #define _REENTRANT 1
12621 _ACEOF
12623 if test "${ac_cv_header_cthreads_h+set}" = set; then
12624 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
12625 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
12626 if test "${ac_cv_header_cthreads_h+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
12631 else
12632 # Is the header compilable?
12633 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12634 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 #include <cthreads.h>
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_header_compiler=yes
12662 else
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_header_compiler=no
12669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6; }
12673 # Is the header present?
12674 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12675 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <cthreads.h>
12683 _ACEOF
12684 if { (ac_try="$ac_cpp conftest.$ac_ext"
12685 case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev/null && {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 }; then
12700 ac_header_preproc=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 ac_header_preproc=no
12708 rm -f conftest.err conftest.$ac_ext
12709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 echo "${ECHO_T}$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12714 yes:no: )
12715 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12716 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12718 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc=yes
12721 no:yes:* )
12722 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12723 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12725 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12727 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12729 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12731 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12733 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12734 ( cat <<\_ASBOX
12735 ## ------------------------------------------------ ##
12736 ## Report this to http://www.python.org/python-bugs ##
12737 ## ------------------------------------------------ ##
12738 _ASBOX
12739 ) | sed "s/^/$as_me: WARNING: /" >&2
12741 esac
12742 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
12743 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
12744 if test "${ac_cv_header_cthreads_h+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747 ac_cv_header_cthreads_h=$ac_header_preproc
12749 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12750 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
12753 if test $ac_cv_header_cthreads_h = yes; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define WITH_THREAD 1
12756 _ACEOF
12758 cat >>confdefs.h <<\_ACEOF
12759 #define C_THREADS 1
12760 _ACEOF
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HURD_C_THREADS 1
12765 _ACEOF
12767 LIBS="$LIBS -lthreads"
12768 THREADOBJ="Python/thread.o"
12769 else
12771 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12772 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12773 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
12774 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12778 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
12779 else
12780 # Is the header compilable?
12781 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12782 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 #include <mach/cthreads.h>
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 ac_header_compiler=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_compiler=no
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12819 echo "${ECHO_T}$ac_header_compiler" >&6; }
12821 # Is the header present?
12822 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12823 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h. */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 #include <mach/cthreads.h>
12831 _ACEOF
12832 if { (ac_try="$ac_cpp conftest.$ac_ext"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev/null && {
12845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 }; then
12848 ac_header_preproc=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_preproc=no
12856 rm -f conftest.err conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 yes:no: )
12863 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12869 no:yes:* )
12870 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12882 ( cat <<\_ASBOX
12883 ## ------------------------------------------------ ##
12884 ## Report this to http://www.python.org/python-bugs ##
12885 ## ------------------------------------------------ ##
12886 _ASBOX
12887 ) | sed "s/^/$as_me: WARNING: /" >&2
12889 esac
12890 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12891 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
12892 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12897 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12898 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
12901 if test $ac_cv_header_mach_cthreads_h = yes; then
12902 cat >>confdefs.h <<\_ACEOF
12903 #define WITH_THREAD 1
12904 _ACEOF
12906 cat >>confdefs.h <<\_ACEOF
12907 #define C_THREADS 1
12908 _ACEOF
12911 cat >>confdefs.h <<\_ACEOF
12912 #define MACH_C_THREADS 1
12913 _ACEOF
12915 THREADOBJ="Python/thread.o"
12916 else
12918 { echo "$as_me:$LINENO: checking for --with-pth" >&5
12919 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
12921 # Check whether --with-pth was given.
12922 if test "${with_pth+set}" = set; then
12923 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
12924 echo "${ECHO_T}$withval" >&6; }
12925 cat >>confdefs.h <<\_ACEOF
12926 #define WITH_THREAD 1
12927 _ACEOF
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_PTH 1
12932 _ACEOF
12934 LIBS="-lpth $LIBS"
12935 THREADOBJ="Python/thread.o"
12936 else
12937 { echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6; }
12940 # Just looking for pthread_create in libpthread is not enough:
12941 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12942 # So we really have to include pthread.h, and then link.
12943 _libs=$LIBS
12944 LIBS="$LIBS -lpthread"
12945 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h. */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <pthread.h>
12955 void * start_routine (void *arg) { exit (0); }
12957 main ()
12960 pthread_create (NULL, NULL, start_routine, NULL)
12962 return 0;
12964 _ACEOF
12965 rm -f conftest.$ac_objext conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>conftest.er1
12973 ac_status=$?
12974 grep -v '^ *+' conftest.er1 >conftest.err
12975 rm -f conftest.er1
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest$ac_exeext &&
12982 $as_test_x conftest$ac_exeext; then
12984 { echo "$as_me:$LINENO: result: yes" >&5
12985 echo "${ECHO_T}yes" >&6; }
12986 cat >>confdefs.h <<\_ACEOF
12987 #define WITH_THREAD 1
12988 _ACEOF
12990 posix_threads=yes
12991 THREADOBJ="Python/thread.o"
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12997 LIBS=$_libs
12998 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
12999 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13000 if test "${ac_cv_func_pthread_detach+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define pthread_detach innocuous_pthread_detach
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char pthread_detach (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13018 #ifdef __STDC__
13019 # include <limits.h>
13020 #else
13021 # include <assert.h>
13022 #endif
13024 #undef pthread_detach
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 char pthread_detach ();
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13037 choke me
13038 #endif
13041 main ()
13043 return pthread_detach ();
13045 return 0;
13047 _ACEOF
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (ac_try="$ac_link"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_link") 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext &&
13065 $as_test_x conftest$ac_exeext; then
13066 ac_cv_func_pthread_detach=yes
13067 else
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_cv_func_pthread_detach=no
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075 conftest$ac_exeext conftest.$ac_ext
13077 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13078 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13079 if test $ac_cv_func_pthread_detach = yes; then
13080 cat >>confdefs.h <<\_ACEOF
13081 #define WITH_THREAD 1
13082 _ACEOF
13084 posix_threads=yes
13085 THREADOBJ="Python/thread.o"
13086 else
13088 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13089 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13090 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13091 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13095 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13096 else
13097 # Is the header compilable?
13098 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13099 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 $ac_includes_default
13107 #include <atheos/threads.h>
13108 _ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_header_compiler=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_header_compiler=no
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6; }
13138 # Is the header present?
13139 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13140 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <atheos/threads.h>
13148 _ACEOF
13149 if { (ac_try="$ac_cpp conftest.$ac_ext"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } >/dev/null && {
13162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 }; then
13165 ac_header_preproc=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_preproc=no
13173 rm -f conftest.err conftest.$ac_ext
13174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13175 echo "${ECHO_T}$ac_header_preproc" >&6; }
13177 # So? What about this header?
13178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13179 yes:no: )
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13184 ac_header_preproc=yes
13186 no:yes:* )
13187 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13188 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13190 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13192 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13193 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13194 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13196 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13198 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13199 ( cat <<\_ASBOX
13200 ## ------------------------------------------------ ##
13201 ## Report this to http://www.python.org/python-bugs ##
13202 ## ------------------------------------------------ ##
13203 _ASBOX
13204 ) | sed "s/^/$as_me: WARNING: /" >&2
13206 esac
13207 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13208 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13209 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212 ac_cv_header_atheos_threads_h=$ac_header_preproc
13214 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13215 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13218 if test $ac_cv_header_atheos_threads_h = yes; then
13219 cat >>confdefs.h <<\_ACEOF
13220 #define WITH_THREAD 1
13221 _ACEOF
13224 cat >>confdefs.h <<\_ACEOF
13225 #define ATHEOS_THREADS 1
13226 _ACEOF
13228 THREADOBJ="Python/thread.o"
13229 else
13231 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13232 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13233 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13234 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13238 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13239 else
13240 # Is the header compilable?
13241 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13242 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13250 #include <kernel/OS.h>
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (ac_try="$ac_compile"
13254 case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257 esac
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_compile") 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } && {
13266 test -z "$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13268 } && test -s conftest.$ac_objext; then
13269 ac_header_compiler=yes
13270 else
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_header_compiler=no
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6; }
13281 # Is the header present?
13282 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13283 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h. */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <kernel/OS.h>
13291 _ACEOF
13292 if { (ac_try="$ac_cpp conftest.$ac_ext"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null && {
13305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13306 test ! -s conftest.err
13307 }; then
13308 ac_header_preproc=yes
13309 else
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_header_preproc=no
13316 rm -f conftest.err conftest.$ac_ext
13317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 echo "${ECHO_T}$ac_header_preproc" >&6; }
13320 # So? What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13322 yes:no: )
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13326 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13327 ac_header_preproc=yes
13329 no:yes:* )
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13342 ( cat <<\_ASBOX
13343 ## ------------------------------------------------ ##
13344 ## Report this to http://www.python.org/python-bugs ##
13345 ## ------------------------------------------------ ##
13346 _ASBOX
13347 ) | sed "s/^/$as_me: WARNING: /" >&2
13349 esac
13350 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13351 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13352 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 ac_cv_header_kernel_OS_h=$ac_header_preproc
13357 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13361 if test $ac_cv_header_kernel_OS_h = yes; then
13362 cat >>confdefs.h <<\_ACEOF
13363 #define WITH_THREAD 1
13364 _ACEOF
13367 cat >>confdefs.h <<\_ACEOF
13368 #define BEOS_THREADS 1
13369 _ACEOF
13371 THREADOBJ="Python/thread.o"
13372 else
13374 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13375 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13376 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lpthreads $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h. */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char pthread_create ();
13396 main ()
13398 return pthread_create ();
13400 return 0;
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && {
13417 test -z "$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13419 } && test -s conftest$ac_exeext &&
13420 $as_test_x conftest$ac_exeext; then
13421 ac_cv_lib_pthreads_pthread_create=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_cv_lib_pthreads_pthread_create=no
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13434 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13435 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define WITH_THREAD 1
13438 _ACEOF
13440 posix_threads=yes
13441 LIBS="$LIBS -lpthreads"
13442 THREADOBJ="Python/thread.o"
13443 else
13445 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13446 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-lc_r $LIBS"
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462 #ifdef __cplusplus
13463 extern "C"
13464 #endif
13465 char pthread_create ();
13467 main ()
13469 return pthread_create ();
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext &&
13491 $as_test_x conftest$ac_exeext; then
13492 ac_cv_lib_c_r_pthread_create=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_lib_c_r_pthread_create=no
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13505 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
13506 if test $ac_cv_lib_c_r_pthread_create = yes; then
13507 cat >>confdefs.h <<\_ACEOF
13508 #define WITH_THREAD 1
13509 _ACEOF
13511 posix_threads=yes
13512 LIBS="$LIBS -lc_r"
13513 THREADOBJ="Python/thread.o"
13514 else
13516 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13517 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
13518 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521 ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lpthread $LIBS"
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h. */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char __pthread_create_system ();
13538 main ()
13540 return __pthread_create_system ();
13542 return 0;
13544 _ACEOF
13545 rm -f conftest.$ac_objext conftest$ac_exeext
13546 if { (ac_try="$ac_link"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_link") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest$ac_exeext &&
13562 $as_test_x conftest$ac_exeext; then
13563 ac_cv_lib_pthread___pthread_create_system=yes
13564 else
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_lib_pthread___pthread_create_system=no
13571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13575 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13576 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
13577 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define WITH_THREAD 1
13580 _ACEOF
13582 posix_threads=yes
13583 LIBS="$LIBS -lpthread"
13584 THREADOBJ="Python/thread.o"
13585 else
13587 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13588 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-lcma $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 char pthread_create ();
13609 main ()
13611 return pthread_create ();
13613 return 0;
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest$ac_exeext &&
13633 $as_test_x conftest$ac_exeext; then
13634 ac_cv_lib_cma_pthread_create=yes
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_lib_cma_pthread_create=no
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13647 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
13648 if test $ac_cv_lib_cma_pthread_create = yes; then
13649 cat >>confdefs.h <<\_ACEOF
13650 #define WITH_THREAD 1
13651 _ACEOF
13653 posix_threads=yes
13654 LIBS="$LIBS -lcma"
13655 THREADOBJ="Python/thread.o"
13656 else
13658 USE_THREAD_MODULE="#"
13678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13679 conftest$ac_exeext conftest.$ac_ext
13689 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13690 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lmpc $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char usconfig ();
13711 main ()
13713 return usconfig ();
13715 return 0;
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_mpc_usconfig=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_lib_mpc_usconfig=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13749 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
13750 if test $ac_cv_lib_mpc_usconfig = yes; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define WITH_THREAD 1
13753 _ACEOF
13755 LIBS="$LIBS -lmpc"
13756 THREADOBJ="Python/thread.o"
13757 USE_THREAD_MODULE=""
13761 if test "$posix_threads" != "yes"; then
13762 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13763 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
13764 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767 ac_check_lib_save_LIBS=$LIBS
13768 LIBS="-lthread $LIBS"
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 /* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13779 #ifdef __cplusplus
13780 extern "C"
13781 #endif
13782 char thr_create ();
13784 main ()
13786 return thr_create ();
13788 return 0;
13790 _ACEOF
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (ac_try="$ac_link"
13793 case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13796 esac
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_link") 2>conftest.er1
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest$ac_exeext &&
13808 $as_test_x conftest$ac_exeext; then
13809 ac_cv_lib_thread_thr_create=yes
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ac_cv_lib_thread_thr_create=no
13817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13818 conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13822 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
13823 if test $ac_cv_lib_thread_thr_create = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define WITH_THREAD 1
13826 _ACEOF
13828 LIBS="$LIBS -lthread"
13829 THREADOBJ="Python/thread.o"
13830 USE_THREAD_MODULE=""
13835 if test "$USE_THREAD_MODULE" != "#"
13836 then
13837 # If the above checks didn't disable threads, (at least) OSF1
13838 # needs this '-threads' argument during linking.
13839 case $ac_sys_system in
13840 OSF1) LDLAST=-threads;;
13841 esac
13845 if test "$posix_threads" = "yes"; then
13846 if test "$unistd_defines_pthreads" = "no"; then
13848 cat >>confdefs.h <<\_ACEOF
13849 #define _POSIX_THREADS 1
13850 _ACEOF
13854 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13855 case $ac_sys_system/$ac_sys_release in
13856 SunOS/5.6)
13857 cat >>confdefs.h <<\_ACEOF
13858 #define HAVE_PTHREAD_DESTRUCTOR 1
13859 _ACEOF
13862 SunOS/5.8)
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13865 _ACEOF
13868 esac
13870 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13871 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
13872 if test "${ac_cv_pthread_system_supported+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 if test "$cross_compiling" = yes; then
13876 ac_cv_pthread_system_supported=no
13877 else
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 #include <pthread.h>
13885 void *foo(void *parm) {
13886 return NULL;
13888 main() {
13889 pthread_attr_t attr;
13890 pthread_t id;
13891 if (pthread_attr_init(&attr)) exit(-1);
13892 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13893 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13894 exit(0);
13896 _ACEOF
13897 rm -f conftest$ac_exeext
13898 if { (ac_try="$ac_link"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_pthread_system_supported=yes
13918 else
13919 echo "$as_me: program exited with status $ac_status" >&5
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ( exit $ac_status )
13924 ac_cv_pthread_system_supported=no
13926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13934 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
13935 if test "$ac_cv_pthread_system_supported" = "yes"; then
13937 cat >>confdefs.h <<\_ACEOF
13938 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13939 _ACEOF
13943 for ac_func in pthread_sigmask
13945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13959 #define $ac_func innocuous_$ac_func
13961 /* System header to define __stub macros and hopefully few prototypes,
13962 which can conflict with char $ac_func (); below.
13963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13964 <limits.h> exists even on freestanding compilers. */
13966 #ifdef __STDC__
13967 # include <limits.h>
13968 #else
13969 # include <assert.h>
13970 #endif
13972 #undef $ac_func
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char $ac_func ();
13981 /* The GNU C library defines this for functions which it implements
13982 to always fail with ENOSYS. Some functions are actually named
13983 something starting with __ and the normal name is an alias. */
13984 #if defined __stub_$ac_func || defined __stub___$ac_func
13985 choke me
13986 #endif
13989 main ()
13991 return $ac_func ();
13993 return 0;
13995 _ACEOF
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } && {
14010 test -z "$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14012 } && test -s conftest$ac_exeext &&
14013 $as_test_x conftest$ac_exeext; then
14014 eval "$as_ac_var=yes"
14015 else
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 eval "$as_ac_var=no"
14022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14023 conftest$ac_exeext conftest.$ac_ext
14025 ac_res=`eval echo '${'$as_ac_var'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_var'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14031 _ACEOF
14032 case $ac_sys_system in
14033 CYGWIN*)
14035 cat >>confdefs.h <<\_ACEOF
14036 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14037 _ACEOF
14040 esac
14042 done
14047 # Check for enable-ipv6
14050 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14051 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14052 # Check whether --enable-ipv6 was given.
14053 if test "${enable_ipv6+set}" = set; then
14054 enableval=$enable_ipv6; case "$enableval" in
14056 { echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6; }
14058 ipv6=no
14060 *) { echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6; }
14062 cat >>confdefs.h <<\_ACEOF
14063 #define ENABLE_IPV6 1
14064 _ACEOF
14066 ipv6=yes
14068 esac
14069 else
14071 if test "$cross_compiling" = yes; then
14072 { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14074 ipv6=no
14076 else
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 /* AF_INET6 available check */
14084 #include <sys/types.h>
14085 #include <sys/socket.h>
14086 main()
14088 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14089 exit(1);
14090 else
14091 exit(0);
14094 _ACEOF
14095 rm -f conftest$ac_exeext
14096 if { (ac_try="$ac_link"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_link") 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 { echo "$as_me:$LINENO: result: yes" >&5
14116 echo "${ECHO_T}yes" >&6; }
14117 ipv6=yes
14118 else
14119 echo "$as_me: program exited with status $ac_status" >&5
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ( exit $ac_status )
14124 { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14126 ipv6=no
14128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133 if test "$ipv6" = "yes"; then
14134 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14135 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <sys/types.h>
14143 #include <netinet/in.h>
14145 main ()
14147 struct sockaddr_in6 x;
14148 x.sin6_scope_id;
14150 return 0;
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14170 { echo "$as_me:$LINENO: result: yes" >&5
14171 echo "${ECHO_T}yes" >&6; }
14172 ipv6=yes
14173 else
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 { echo "$as_me:$LINENO: result: no" >&5
14178 echo "${ECHO_T}no" >&6; }
14179 ipv6=no
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 if test "$ipv6" = "yes"; then
14186 cat >>confdefs.h <<\_ACEOF
14187 #define ENABLE_IPV6 1
14188 _ACEOF
14195 ipv6type=unknown
14196 ipv6lib=none
14197 ipv6trylibc=no
14199 if test "$ipv6" = "yes"; then
14200 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14201 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14202 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14204 case $i in
14205 inria)
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14213 #include <netinet/in.h>
14214 #ifdef IPV6_INRIA_VERSION
14216 #endif
14217 _ACEOF
14218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14219 $EGREP "yes" >/dev/null 2>&1; then
14220 ipv6type=$i
14222 rm -f conftest*
14225 kame)
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14233 #include <netinet/in.h>
14234 #ifdef __KAME__
14236 #endif
14237 _ACEOF
14238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239 $EGREP "yes" >/dev/null 2>&1; then
14240 ipv6type=$i;
14241 ipv6lib=inet6
14242 ipv6libdir=/usr/local/v6/lib
14243 ipv6trylibc=yes
14245 rm -f conftest*
14248 linux-glibc)
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14256 #include <features.h>
14257 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14259 #endif
14260 _ACEOF
14261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14262 $EGREP "yes" >/dev/null 2>&1; then
14263 ipv6type=$i;
14264 ipv6trylibc=yes
14266 rm -f conftest*
14269 linux-inet6)
14270 if test -d /usr/inet6; then
14271 ipv6type=$i
14272 ipv6lib=inet6
14273 ipv6libdir=/usr/inet6/lib
14274 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14277 solaris)
14278 if test -f /etc/netconfig; then
14279 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14280 ipv6type=$i
14281 ipv6trylibc=yes
14285 toshiba)
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h. */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14293 #include <sys/param.h>
14294 #ifdef _TOSHIBA_INET6
14296 #endif
14297 _ACEOF
14298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299 $EGREP "yes" >/dev/null 2>&1; then
14300 ipv6type=$i;
14301 ipv6lib=inet6;
14302 ipv6libdir=/usr/local/v6/lib
14304 rm -f conftest*
14307 v6d)
14308 cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h. */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 #include </usr/local/v6/include/sys/v6config.h>
14316 #ifdef __V6D__
14318 #endif
14319 _ACEOF
14320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14321 $EGREP "yes" >/dev/null 2>&1; then
14322 ipv6type=$i;
14323 ipv6lib=v6;
14324 ipv6libdir=/usr/local/v6/lib;
14325 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14327 rm -f conftest*
14330 zeta)
14331 cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h. */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14338 #include <sys/param.h>
14339 #ifdef _ZETA_MINAMI_INET6
14341 #endif
14342 _ACEOF
14343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344 $EGREP "yes" >/dev/null 2>&1; then
14345 ipv6type=$i;
14346 ipv6lib=inet6;
14347 ipv6libdir=/usr/local/v6/lib
14349 rm -f conftest*
14352 esac
14353 if test "$ipv6type" != "unknown"; then
14354 break
14356 done
14357 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14358 echo "${ECHO_T}$ipv6type" >&6; }
14361 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14362 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14363 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14364 echo "using lib$ipv6lib"
14365 else
14366 if test $ipv6trylibc = "yes"; then
14367 echo "using libc"
14368 else
14369 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14370 echo "You need to fetch lib$ipv6lib.a from appropriate"
14371 echo 'ipv6 kit and compile beforehand.'
14372 exit 1
14377 # Check for --with-doc-strings
14378 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14379 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14381 # Check whether --with-doc-strings was given.
14382 if test "${with_doc_strings+set}" = set; then
14383 withval=$with_doc_strings;
14387 if test -z "$with_doc_strings"
14388 then with_doc_strings="yes"
14390 if test "$with_doc_strings" != "no"
14391 then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define WITH_DOC_STRINGS 1
14395 _ACEOF
14398 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14399 echo "${ECHO_T}$with_doc_strings" >&6; }
14401 # Check for Python-specific malloc support
14402 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14403 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14405 # Check whether --with-tsc was given.
14406 if test "${with_tsc+set}" = set; then
14407 withval=$with_tsc;
14408 if test "$withval" != no
14409 then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define WITH_TSC 1
14413 _ACEOF
14415 { echo "$as_me:$LINENO: result: yes" >&5
14416 echo "${ECHO_T}yes" >&6; }
14417 else { echo "$as_me:$LINENO: result: no" >&5
14418 echo "${ECHO_T}no" >&6; }
14420 else
14421 { echo "$as_me:$LINENO: result: no" >&5
14422 echo "${ECHO_T}no" >&6; }
14426 # Check for Python-specific malloc support
14427 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14428 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14430 # Check whether --with-pymalloc was given.
14431 if test "${with_pymalloc+set}" = set; then
14432 withval=$with_pymalloc;
14436 if test -z "$with_pymalloc"
14437 then with_pymalloc="yes"
14439 if test "$with_pymalloc" != "no"
14440 then
14442 cat >>confdefs.h <<\_ACEOF
14443 #define WITH_PYMALLOC 1
14444 _ACEOF
14447 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14448 echo "${ECHO_T}$with_pymalloc" >&6; }
14450 # Check for --with-wctype-functions
14451 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14452 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14454 # Check whether --with-wctype-functions was given.
14455 if test "${with_wctype_functions+set}" = set; then
14456 withval=$with_wctype_functions;
14457 if test "$withval" != no
14458 then
14460 cat >>confdefs.h <<\_ACEOF
14461 #define WANT_WCTYPE_FUNCTIONS 1
14462 _ACEOF
14464 { echo "$as_me:$LINENO: result: yes" >&5
14465 echo "${ECHO_T}yes" >&6; }
14466 else { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14469 else
14470 { echo "$as_me:$LINENO: result: no" >&5
14471 echo "${ECHO_T}no" >&6; }
14475 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14477 DLINCLDIR=.
14479 # the dlopen() function means we might want to use dynload_shlib.o. some
14480 # platforms, such as AIX, have dlopen(), but don't want to use it.
14482 for ac_func in dlopen
14484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14511 #undef $ac_func
14513 /* Override any GCC internal prototype to avoid an error.
14514 Use char because int might match the return type of a GCC
14515 builtin and then its argument prototype would still apply. */
14516 #ifdef __cplusplus
14517 extern "C"
14518 #endif
14519 char $ac_func ();
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined __stub_$ac_func || defined __stub___$ac_func
14524 choke me
14525 #endif
14528 main ()
14530 return $ac_func ();
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (ac_try="$ac_link"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_link") 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest$ac_exeext &&
14552 $as_test_x conftest$ac_exeext; then
14553 eval "$as_ac_var=yes"
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 eval "$as_ac_var=no"
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14564 ac_res=`eval echo '${'$as_ac_var'}'`
14565 { echo "$as_me:$LINENO: result: $ac_res" >&5
14566 echo "${ECHO_T}$ac_res" >&6; }
14567 if test `eval echo '${'$as_ac_var'}'` = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14570 _ACEOF
14573 done
14576 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14577 # loading of modules.
14579 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14580 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
14581 if test -z "$DYNLOADFILE"
14582 then
14583 case $ac_sys_system/$ac_sys_release in
14584 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14585 if test "$ac_cv_func_dlopen" = yes
14586 then DYNLOADFILE="dynload_shlib.o"
14587 else DYNLOADFILE="dynload_aix.o"
14590 BeOS*) DYNLOADFILE="dynload_beos.o";;
14591 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14592 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14593 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14594 atheos*) DYNLOADFILE="dynload_atheos.o";;
14596 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14597 # out any dynamic loading
14598 if test "$ac_cv_func_dlopen" = yes
14599 then DYNLOADFILE="dynload_shlib.o"
14600 else DYNLOADFILE="dynload_stub.o"
14603 esac
14605 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14606 echo "${ECHO_T}$DYNLOADFILE" >&6; }
14607 if test "$DYNLOADFILE" != "dynload_stub.o"
14608 then
14610 cat >>confdefs.h <<\_ACEOF
14611 #define HAVE_DYNAMIC_LOADING 1
14612 _ACEOF
14616 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14619 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14620 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
14621 if test -z "$MACHDEP_OBJS"
14622 then
14623 MACHDEP_OBJS=$extra_machdep_objs
14624 else
14625 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14627 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14628 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
14630 # checks for library functions
14707 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14708 execv fork fpathconf ftime ftruncate \
14709 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14710 getpriority getpwent getspnam getspent getsid getwd \
14711 kill killpg lchown lstat mkfifo mknod mktime \
14712 mremap nice pathconf pause plock poll pthread_init \
14713 putenv readlink realpath \
14714 select setegid seteuid setgid \
14715 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14716 sigaction siginterrupt sigrelse strftime \
14717 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14718 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h. */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14734 #define $ac_func innocuous_$ac_func
14736 /* System header to define __stub macros and hopefully few prototypes,
14737 which can conflict with char $ac_func (); below.
14738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739 <limits.h> exists even on freestanding compilers. */
14741 #ifdef __STDC__
14742 # include <limits.h>
14743 #else
14744 # include <assert.h>
14745 #endif
14747 #undef $ac_func
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char $ac_func ();
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined __stub_$ac_func || defined __stub___$ac_func
14760 choke me
14761 #endif
14764 main ()
14766 return $ac_func ();
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest$ac_exeext &&
14788 $as_test_x conftest$ac_exeext; then
14789 eval "$as_ac_var=yes"
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 eval "$as_ac_var=no"
14797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14798 conftest$ac_exeext conftest.$ac_ext
14800 ac_res=`eval echo '${'$as_ac_var'}'`
14801 { echo "$as_me:$LINENO: result: $ac_res" >&5
14802 echo "${ECHO_T}$ac_res" >&6; }
14803 if test `eval echo '${'$as_ac_var'}'` = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 _ACEOF
14809 done
14812 # For some functions, having a definition is not sufficient, since
14813 # we want to take their address.
14814 { echo "$as_me:$LINENO: checking for chroot" >&5
14815 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <unistd.h>
14824 main ()
14826 void *x=chroot
14828 return 0;
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_CHROOT 1
14851 _ACEOF
14853 { echo "$as_me:$LINENO: result: yes" >&5
14854 echo "${ECHO_T}yes" >&6; }
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 { echo "$as_me:$LINENO: result: no" >&5
14860 echo "${ECHO_T}no" >&6; }
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: checking for link" >&5
14866 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <unistd.h>
14875 main ()
14877 void *x=link
14879 return 0;
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest.$ac_objext; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_LINK 1
14902 _ACEOF
14904 { echo "$as_me:$LINENO: result: yes" >&5
14905 echo "${ECHO_T}yes" >&6; }
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 { echo "$as_me:$LINENO: result: no" >&5
14911 echo "${ECHO_T}no" >&6; }
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 { echo "$as_me:$LINENO: checking for symlink" >&5
14917 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <unistd.h>
14926 main ()
14928 void *x=symlink
14930 return 0;
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.$ac_objext; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_SYMLINK 1
14953 _ACEOF
14955 { echo "$as_me:$LINENO: result: yes" >&5
14956 echo "${ECHO_T}yes" >&6; }
14957 else
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 { echo "$as_me:$LINENO: result: no" >&5
14962 echo "${ECHO_T}no" >&6; }
14966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967 { echo "$as_me:$LINENO: checking for fchdir" >&5
14968 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 #include <unistd.h>
14977 main ()
14979 void *x=fchdir
14981 return 0;
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.$ac_objext; then
15002 cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_FCHDIR 1
15004 _ACEOF
15006 { echo "$as_me:$LINENO: result: yes" >&5
15007 echo "${ECHO_T}yes" >&6; }
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15012 { echo "$as_me:$LINENO: result: no" >&5
15013 echo "${ECHO_T}no" >&6; }
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { echo "$as_me:$LINENO: checking for fsync" >&5
15019 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <unistd.h>
15028 main ()
15030 void *x=fsync
15032 return 0;
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest.$ac_objext; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_FSYNC 1
15055 _ACEOF
15057 { echo "$as_me:$LINENO: result: yes" >&5
15058 echo "${ECHO_T}yes" >&6; }
15059 else
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 { echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6; }
15068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15070 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h. */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 #include <unistd.h>
15079 main ()
15081 void *x=fdatasync
15083 return 0;
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.$ac_objext; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_FDATASYNC 1
15106 _ACEOF
15108 { echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6; }
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 { echo "$as_me:$LINENO: result: no" >&5
15115 echo "${ECHO_T}no" >&6; }
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 # On some systems (eg. FreeBSD 5), we would find a definition of the
15122 # functions ctermid_r, setgroups in the library, but no prototype
15123 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15124 # address to avoid compiler warnings and potential miscompilations
15125 # because of the missing prototypes.
15127 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15128 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15129 cat >conftest.$ac_ext <<_ACEOF
15130 /* confdefs.h. */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 #include "confdefs.h"
15137 #include <stdio.h>
15140 main ()
15142 void* p = ctermid_r
15144 return 0;
15146 _ACEOF
15147 rm -f conftest.$ac_objext
15148 if { (ac_try="$ac_compile"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_compile") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest.$ac_objext; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define HAVE_CTERMID_R 1
15167 _ACEOF
15169 { echo "$as_me:$LINENO: result: yes" >&5
15170 echo "${ECHO_T}yes" >&6; }
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 { echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6; }
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 { echo "$as_me:$LINENO: checking for flock" >&5
15183 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15191 #include "confdefs.h"
15192 #include <sys/file.h>
15195 main ()
15197 void* p = flock
15199 return 0;
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (ac_try="$ac_compile"
15204 case "(($ac_try" in
15205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_compile") 2>conftest.er1
15210 ac_status=$?
15211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest.$ac_objext; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_FLOCK 1
15222 _ACEOF
15224 { echo "$as_me:$LINENO: result: yes" >&5
15225 echo "${ECHO_T}yes" >&6; }
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 { echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6; }
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15237 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15238 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h. */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 #include "confdefs.h"
15247 #include <unistd.h>
15250 main ()
15252 void* p = getpagesize
15254 return 0;
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (ac_try="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_GETPAGESIZE 1
15277 _ACEOF
15279 { echo "$as_me:$LINENO: result: yes" >&5
15280 echo "${ECHO_T}yes" >&6; }
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 { echo "$as_me:$LINENO: result: no" >&5
15286 echo "${ECHO_T}no" >&6; }
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 for ac_prog in true
15294 # Extract the first word of "$ac_prog", so it can be a program name with args.
15295 set dummy $ac_prog; ac_word=$2
15296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15298 if test "${ac_cv_prog_TRUE+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301 if test -n "$TRUE"; then
15302 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15303 else
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15307 IFS=$as_save_IFS
15308 test -z "$as_dir" && as_dir=.
15309 for ac_exec_ext in '' $ac_executable_extensions; do
15310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15311 ac_cv_prog_TRUE="$ac_prog"
15312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15313 break 2
15315 done
15316 done
15317 IFS=$as_save_IFS
15321 TRUE=$ac_cv_prog_TRUE
15322 if test -n "$TRUE"; then
15323 { echo "$as_me:$LINENO: result: $TRUE" >&5
15324 echo "${ECHO_T}$TRUE" >&6; }
15325 else
15326 { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15331 test -n "$TRUE" && break
15332 done
15333 test -n "$TRUE" || TRUE="/bin/true"
15336 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15337 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15338 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341 ac_check_lib_save_LIBS=$LIBS
15342 LIBS="-lc $LIBS"
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15350 /* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15353 #ifdef __cplusplus
15354 extern "C"
15355 #endif
15356 char inet_aton ();
15358 main ()
15360 return inet_aton ();
15362 return 0;
15364 _ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (ac_try="$ac_link"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_link") 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_c_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest$ac_exeext &&
15382 $as_test_x conftest$ac_exeext; then
15383 ac_cv_lib_c_inet_aton=yes
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_cv_lib_c_inet_aton=no
15391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15392 conftest$ac_exeext conftest.$ac_ext
15393 LIBS=$ac_check_lib_save_LIBS
15395 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15396 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15397 if test $ac_cv_lib_c_inet_aton = yes; then
15398 $ac_cv_prog_TRUE
15399 else
15401 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15402 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15403 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 else
15406 ac_check_lib_save_LIBS=$LIBS
15407 LIBS="-lresolv $LIBS"
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15418 #ifdef __cplusplus
15419 extern "C"
15420 #endif
15421 char inet_aton ();
15423 main ()
15425 return inet_aton ();
15427 return 0;
15429 _ACEOF
15430 rm -f conftest.$ac_objext conftest$ac_exeext
15431 if { (ac_try="$ac_link"
15432 case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_link") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest$ac_exeext &&
15447 $as_test_x conftest$ac_exeext; then
15448 ac_cv_lib_resolv_inet_aton=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_cv_lib_resolv_inet_aton=no
15456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15461 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15462 if test $ac_cv_lib_resolv_inet_aton = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_LIBRESOLV 1
15465 _ACEOF
15467 LIBS="-lresolv $LIBS"
15475 case $ac_sys_system/$ac_sys_release in
15476 Darwin/*)
15477 _CUR_CFLAGS="${CFLAGS}"
15478 _CUR_LDFLAGS="${LDFLAGS}"
15479 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15480 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15482 esac
15484 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15485 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
15486 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 ac_check_lib_save_LIBS=$LIBS
15490 LIBS="-lz $LIBS"
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h. */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15501 #ifdef __cplusplus
15502 extern "C"
15503 #endif
15504 char inflateCopy ();
15506 main ()
15508 return inflateCopy ();
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest$ac_exeext &&
15530 $as_test_x conftest$ac_exeext; then
15531 ac_cv_lib_z_inflateCopy=yes
15532 else
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_cv_lib_z_inflateCopy=no
15539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LIBS=$ac_check_lib_save_LIBS
15543 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15544 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
15545 if test $ac_cv_lib_z_inflateCopy = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_ZLIB_COPY 1
15549 _ACEOF
15554 case $ac_sys_system/$ac_sys_release in
15555 Darwin/*)
15556 CFLAGS="${_CUR_CFLAGS}"
15557 LDFLAGS="${_CUR_LDFLAGS}"
15559 esac
15561 { echo "$as_me:$LINENO: checking for hstrerror" >&5
15562 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 #include "confdefs.h"
15571 #include <netdb.h>
15574 main ()
15576 void* p = hstrerror; hstrerror(0)
15578 return 0;
15580 _ACEOF
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_HSTRERROR 1
15602 _ACEOF
15604 { echo "$as_me:$LINENO: result: yes" >&5
15605 echo "${ECHO_T}yes" >&6; }
15606 else
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 { echo "$as_me:$LINENO: result: no" >&5
15611 echo "${ECHO_T}no" >&6; }
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15618 { echo "$as_me:$LINENO: checking for inet_aton" >&5
15619 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 #include "confdefs.h"
15628 #include <sys/types.h>
15629 #include <sys/socket.h>
15630 #include <netinet/in.h>
15631 #include <arpa/inet.h>
15634 main ()
15636 void* p = inet_aton;inet_aton(0,0)
15638 return 0;
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest$ac_exeext &&
15658 $as_test_x conftest$ac_exeext; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_INET_ATON 1
15662 _ACEOF
15664 { echo "$as_me:$LINENO: result: yes" >&5
15665 echo "${ECHO_T}yes" >&6; }
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 { echo "$as_me:$LINENO: result: no" >&5
15671 echo "${ECHO_T}no" >&6; }
15675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15676 conftest$ac_exeext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: checking for inet_pton" >&5
15679 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15687 #include "confdefs.h"
15688 #include <sys/types.h>
15689 #include <sys/socket.h>
15690 #include <netinet/in.h>
15691 #include <arpa/inet.h>
15694 main ()
15696 void* p = inet_pton
15698 return 0;
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (ac_try="$ac_compile"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_INET_PTON 1
15721 _ACEOF
15723 { echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6; }
15725 else
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 { echo "$as_me:$LINENO: result: no" >&5
15730 echo "${ECHO_T}no" >&6; }
15734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 # On some systems, setgroups is in unistd.h, on others, in grp.h
15737 { echo "$as_me:$LINENO: checking for setgroups" >&5
15738 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 #include "confdefs.h"
15747 #include <unistd.h>
15748 #ifdef HAVE_GRP_H
15749 #include <grp.h>
15750 #endif
15753 main ()
15755 void* p = setgroups
15757 return 0;
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15767 (eval "$ac_compile") 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } && {
15774 test -z "$ac_c_werror_flag" ||
15775 test ! -s conftest.err
15776 } && test -s conftest.$ac_objext; then
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE_SETGROUPS 1
15780 _ACEOF
15782 { echo "$as_me:$LINENO: result: yes" >&5
15783 echo "${ECHO_T}yes" >&6; }
15784 else
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 { echo "$as_me:$LINENO: result: no" >&5
15789 echo "${ECHO_T}no" >&6; }
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 # check for openpty and forkpty
15798 for ac_func in openpty
15800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h. */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15814 #define $ac_func innocuous_$ac_func
15816 /* System header to define __stub macros and hopefully few prototypes,
15817 which can conflict with char $ac_func (); below.
15818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819 <limits.h> exists even on freestanding compilers. */
15821 #ifdef __STDC__
15822 # include <limits.h>
15823 #else
15824 # include <assert.h>
15825 #endif
15827 #undef $ac_func
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 char $ac_func ();
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined __stub_$ac_func || defined __stub___$ac_func
15840 choke me
15841 #endif
15844 main ()
15846 return $ac_func ();
15848 return 0;
15850 _ACEOF
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (ac_try="$ac_link"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_link") 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest$ac_exeext &&
15868 $as_test_x conftest$ac_exeext; then
15869 eval "$as_ac_var=yes"
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 eval "$as_ac_var=no"
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15878 conftest$ac_exeext conftest.$ac_ext
15880 ac_res=`eval echo '${'$as_ac_var'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15883 if test `eval echo '${'$as_ac_var'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15886 _ACEOF
15888 else
15889 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15890 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15891 if test "${ac_cv_lib_util_openpty+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lutil $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15903 /* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15906 #ifdef __cplusplus
15907 extern "C"
15908 #endif
15909 char openpty ();
15911 main ()
15913 return openpty ();
15915 return 0;
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_link") 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest$ac_exeext &&
15935 $as_test_x conftest$ac_exeext; then
15936 ac_cv_lib_util_openpty=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_lib_util_openpty=no
15944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15948 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15949 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15950 if test $ac_cv_lib_util_openpty = yes; then
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_OPENPTY 1
15953 _ACEOF
15954 LIBS="$LIBS -lutil"
15955 else
15956 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15957 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
15958 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 else
15961 ac_check_lib_save_LIBS=$LIBS
15962 LIBS="-lbsd $LIBS"
15963 cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15970 /* Override any GCC internal prototype to avoid an error.
15971 Use char because int might match the return type of a GCC
15972 builtin and then its argument prototype would still apply. */
15973 #ifdef __cplusplus
15974 extern "C"
15975 #endif
15976 char openpty ();
15978 main ()
15980 return openpty ();
15982 return 0;
15984 _ACEOF
15985 rm -f conftest.$ac_objext conftest$ac_exeext
15986 if { (ac_try="$ac_link"
15987 case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990 esac
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992 (eval "$ac_link") 2>conftest.er1
15993 ac_status=$?
15994 grep -v '^ *+' conftest.er1 >conftest.err
15995 rm -f conftest.er1
15996 cat conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && {
15999 test -z "$ac_c_werror_flag" ||
16000 test ! -s conftest.err
16001 } && test -s conftest$ac_exeext &&
16002 $as_test_x conftest$ac_exeext; then
16003 ac_cv_lib_bsd_openpty=yes
16004 else
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_cv_lib_bsd_openpty=no
16011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16012 conftest$ac_exeext conftest.$ac_ext
16013 LIBS=$ac_check_lib_save_LIBS
16015 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16016 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16017 if test $ac_cv_lib_bsd_openpty = yes; then
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAVE_OPENPTY 1
16020 _ACEOF
16021 LIBS="$LIBS -lbsd"
16029 done
16032 for ac_func in forkpty
16034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16048 #define $ac_func innocuous_$ac_func
16050 /* System header to define __stub macros and hopefully few prototypes,
16051 which can conflict with char $ac_func (); below.
16052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16053 <limits.h> exists even on freestanding compilers. */
16055 #ifdef __STDC__
16056 # include <limits.h>
16057 #else
16058 # include <assert.h>
16059 #endif
16061 #undef $ac_func
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16066 #ifdef __cplusplus
16067 extern "C"
16068 #endif
16069 char $ac_func ();
16070 /* The GNU C library defines this for functions which it implements
16071 to always fail with ENOSYS. Some functions are actually named
16072 something starting with __ and the normal name is an alias. */
16073 #if defined __stub_$ac_func || defined __stub___$ac_func
16074 choke me
16075 #endif
16078 main ()
16080 return $ac_func ();
16082 return 0;
16084 _ACEOF
16085 rm -f conftest.$ac_objext conftest$ac_exeext
16086 if { (ac_try="$ac_link"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_link") 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest$ac_exeext &&
16102 $as_test_x conftest$ac_exeext; then
16103 eval "$as_ac_var=yes"
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 eval "$as_ac_var=no"
16111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16112 conftest$ac_exeext conftest.$ac_ext
16114 ac_res=`eval echo '${'$as_ac_var'}'`
16115 { echo "$as_me:$LINENO: result: $ac_res" >&5
16116 echo "${ECHO_T}$ac_res" >&6; }
16117 if test `eval echo '${'$as_ac_var'}'` = yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16120 _ACEOF
16122 else
16123 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16124 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16125 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128 ac_check_lib_save_LIBS=$LIBS
16129 LIBS="-lutil $LIBS"
16130 cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h. */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char forkpty ();
16145 main ()
16147 return forkpty ();
16149 return 0;
16151 _ACEOF
16152 rm -f conftest.$ac_objext conftest$ac_exeext
16153 if { (ac_try="$ac_link"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_c_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest$ac_exeext &&
16169 $as_test_x conftest$ac_exeext; then
16170 ac_cv_lib_util_forkpty=yes
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_cv_lib_util_forkpty=no
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16180 LIBS=$ac_check_lib_save_LIBS
16182 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16183 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16184 if test $ac_cv_lib_util_forkpty = yes; then
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_FORKPTY 1
16187 _ACEOF
16188 LIBS="$LIBS -lutil"
16189 else
16190 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16191 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16192 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195 ac_check_lib_save_LIBS=$LIBS
16196 LIBS="-lbsd $LIBS"
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 char forkpty ();
16212 main ()
16214 return forkpty ();
16216 return 0;
16218 _ACEOF
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext &&
16236 $as_test_x conftest$ac_exeext; then
16237 ac_cv_lib_bsd_forkpty=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_cv_lib_bsd_forkpty=no
16245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16246 conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16249 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16250 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16251 if test $ac_cv_lib_bsd_forkpty = yes; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_FORKPTY 1
16254 _ACEOF
16255 LIBS="$LIBS -lbsd"
16263 done
16266 # check for long file support functions
16273 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16289 #define $ac_func innocuous_$ac_func
16291 /* System header to define __stub macros and hopefully few prototypes,
16292 which can conflict with char $ac_func (); below.
16293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16294 <limits.h> exists even on freestanding compilers. */
16296 #ifdef __STDC__
16297 # include <limits.h>
16298 #else
16299 # include <assert.h>
16300 #endif
16302 #undef $ac_func
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16307 #ifdef __cplusplus
16308 extern "C"
16309 #endif
16310 char $ac_func ();
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined __stub_$ac_func || defined __stub___$ac_func
16315 choke me
16316 #endif
16319 main ()
16321 return $ac_func ();
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_link") 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest$ac_exeext &&
16343 $as_test_x conftest$ac_exeext; then
16344 eval "$as_ac_var=yes"
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 eval "$as_ac_var=no"
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16355 ac_res=`eval echo '${'$as_ac_var'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_var'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16361 _ACEOF
16364 done
16372 for ac_func in dup2 getcwd strdup strerror memmove
16374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16388 #define $ac_func innocuous_$ac_func
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func (); below.
16392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 <limits.h> exists even on freestanding compilers. */
16395 #ifdef __STDC__
16396 # include <limits.h>
16397 #else
16398 # include <assert.h>
16399 #endif
16401 #undef $ac_func
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char $ac_func ();
16410 /* The GNU C library defines this for functions which it implements
16411 to always fail with ENOSYS. Some functions are actually named
16412 something starting with __ and the normal name is an alias. */
16413 #if defined __stub_$ac_func || defined __stub___$ac_func
16414 choke me
16415 #endif
16418 main ()
16420 return $ac_func ();
16422 return 0;
16424 _ACEOF
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_link") 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest$ac_exeext &&
16442 $as_test_x conftest$ac_exeext; then
16443 eval "$as_ac_var=yes"
16444 else
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 eval "$as_ac_var=no"
16451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16452 conftest$ac_exeext conftest.$ac_ext
16454 ac_res=`eval echo '${'$as_ac_var'}'`
16455 { echo "$as_me:$LINENO: result: $ac_res" >&5
16456 echo "${ECHO_T}$ac_res" >&6; }
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 _ACEOF
16462 else
16463 case " $LIBOBJS " in
16464 *" $ac_func.$ac_objext "* ) ;;
16465 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16467 esac
16470 done
16474 for ac_func in getpgrp
16476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define $ac_func innocuous_$ac_func
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16497 #ifdef __STDC__
16498 # include <limits.h>
16499 #else
16500 # include <assert.h>
16501 #endif
16503 #undef $ac_func
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508 #ifdef __cplusplus
16509 extern "C"
16510 #endif
16511 char $ac_func ();
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_$ac_func || defined __stub___$ac_func
16516 choke me
16517 #endif
16520 main ()
16522 return $ac_func ();
16524 return 0;
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest$ac_exeext &&
16544 $as_test_x conftest$ac_exeext; then
16545 eval "$as_ac_var=yes"
16546 else
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 eval "$as_ac_var=no"
16553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16554 conftest$ac_exeext conftest.$ac_ext
16556 ac_res=`eval echo '${'$as_ac_var'}'`
16557 { echo "$as_me:$LINENO: result: $ac_res" >&5
16558 echo "${ECHO_T}$ac_res" >&6; }
16559 if test `eval echo '${'$as_ac_var'}'` = yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 _ACEOF
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <unistd.h>
16571 main ()
16573 getpgrp(0);
16575 return 0;
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } && {
16592 test -z "$ac_c_werror_flag" ||
16593 test ! -s conftest.err
16594 } && test -s conftest.$ac_objext; then
16596 cat >>confdefs.h <<\_ACEOF
16597 #define GETPGRP_HAVE_ARG 1
16598 _ACEOF
16601 else
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 done
16614 for ac_func in setpgrp
16616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16630 #define $ac_func innocuous_$ac_func
16632 /* System header to define __stub macros and hopefully few prototypes,
16633 which can conflict with char $ac_func (); below.
16634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635 <limits.h> exists even on freestanding compilers. */
16637 #ifdef __STDC__
16638 # include <limits.h>
16639 #else
16640 # include <assert.h>
16641 #endif
16643 #undef $ac_func
16645 /* Override any GCC internal prototype to avoid an error.
16646 Use char because int might match the return type of a GCC
16647 builtin and then its argument prototype would still apply. */
16648 #ifdef __cplusplus
16649 extern "C"
16650 #endif
16651 char $ac_func ();
16652 /* The GNU C library defines this for functions which it implements
16653 to always fail with ENOSYS. Some functions are actually named
16654 something starting with __ and the normal name is an alias. */
16655 #if defined __stub_$ac_func || defined __stub___$ac_func
16656 choke me
16657 #endif
16660 main ()
16662 return $ac_func ();
16664 return 0;
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (ac_try="$ac_link"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672 esac
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_link") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && {
16681 test -z "$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16683 } && test -s conftest$ac_exeext &&
16684 $as_test_x conftest$ac_exeext; then
16685 eval "$as_ac_var=yes"
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 eval "$as_ac_var=no"
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 ac_res=`eval echo '${'$as_ac_var'}'`
16697 { echo "$as_me:$LINENO: result: $ac_res" >&5
16698 echo "${ECHO_T}$ac_res" >&6; }
16699 if test `eval echo '${'$as_ac_var'}'` = yes; then
16700 cat >>confdefs.h <<_ACEOF
16701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16702 _ACEOF
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #include <unistd.h>
16711 main ()
16713 setpgrp(0,0);
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16736 cat >>confdefs.h <<\_ACEOF
16737 #define SETPGRP_HAVE_ARG 1
16738 _ACEOF
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 done
16754 for ac_func in gettimeofday
16756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define $ac_func innocuous_$ac_func
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16777 #ifdef __STDC__
16778 # include <limits.h>
16779 #else
16780 # include <assert.h>
16781 #endif
16783 #undef $ac_func
16785 /* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
16788 #ifdef __cplusplus
16789 extern "C"
16790 #endif
16791 char $ac_func ();
16792 /* The GNU C library defines this for functions which it implements
16793 to always fail with ENOSYS. Some functions are actually named
16794 something starting with __ and the normal name is an alias. */
16795 #if defined __stub_$ac_func || defined __stub___$ac_func
16796 choke me
16797 #endif
16800 main ()
16802 return $ac_func ();
16804 return 0;
16806 _ACEOF
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (ac_try="$ac_link"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_link") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest$ac_exeext &&
16824 $as_test_x conftest$ac_exeext; then
16825 eval "$as_ac_var=yes"
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 eval "$as_ac_var=no"
16833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16834 conftest$ac_exeext conftest.$ac_ext
16836 ac_res=`eval echo '${'$as_ac_var'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839 if test `eval echo '${'$as_ac_var'}'` = yes; then
16840 cat >>confdefs.h <<_ACEOF
16841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16842 _ACEOF
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <sys/time.h>
16851 main ()
16853 gettimeofday((struct timeval*)0,(struct timezone*)0);
16855 return 0;
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863 esac
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest.$ac_objext; then
16876 else
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16881 cat >>confdefs.h <<\_ACEOF
16882 #define GETTIMEOFDAY_NO_TZ 1
16883 _ACEOF
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 done
16894 { echo "$as_me:$LINENO: checking for major" >&5
16895 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
16896 cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h. */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 #if defined(MAJOR_IN_MKDEV)
16904 #include <sys/mkdev.h>
16905 #elif defined(MAJOR_IN_SYSMACROS)
16906 #include <sys/sysmacros.h>
16907 #else
16908 #include <sys/types.h>
16909 #endif
16912 main ()
16915 makedev(major(0),minor(0));
16918 return 0;
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926 esac
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_link") 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } && {
16935 test -z "$ac_c_werror_flag" ||
16936 test ! -s conftest.err
16937 } && test -s conftest$ac_exeext &&
16938 $as_test_x conftest$ac_exeext; then
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_DEVICE_MACROS 1
16943 _ACEOF
16945 { echo "$as_me:$LINENO: result: yes" >&5
16946 echo "${ECHO_T}yes" >&6; }
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16953 { echo "$as_me:$LINENO: result: no" >&5
16954 echo "${ECHO_T}no" >&6; }
16958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959 conftest$ac_exeext conftest.$ac_ext
16961 # On OSF/1 V5.1, getaddrinfo is available, but a define
16962 # for [no]getaddrinfo in netdb.h.
16963 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16964 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h. */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 #include <sys/types.h>
16973 #include <sys/socket.h>
16974 #include <netdb.h>
16975 #include <stdio.h>
16978 main ()
16981 getaddrinfo(NULL, NULL, NULL, NULL);
16984 return 0;
16986 _ACEOF
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_link") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest$ac_exeext &&
17004 $as_test_x conftest$ac_exeext; then
17006 { echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6; }
17008 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17009 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17010 if test "$cross_compiling" = yes; then
17011 { echo "$as_me:$LINENO: result: buggy" >&5
17012 echo "${ECHO_T}buggy" >&6; }
17013 buggygetaddrinfo=yes
17014 else
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 #include <sys/types.h>
17023 #include <netdb.h>
17024 #include <string.h>
17025 #include <sys/socket.h>
17026 #include <netinet/in.h>
17028 main()
17030 int passive, gaierr, inet4 = 0, inet6 = 0;
17031 struct addrinfo hints, *ai, *aitop;
17032 char straddr[INET6_ADDRSTRLEN], strport[16];
17034 for (passive = 0; passive <= 1; passive++) {
17035 memset(&hints, 0, sizeof(hints));
17036 hints.ai_family = AF_UNSPEC;
17037 hints.ai_flags = passive ? AI_PASSIVE : 0;
17038 hints.ai_socktype = SOCK_STREAM;
17039 hints.ai_protocol = IPPROTO_TCP;
17040 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17041 (void)gai_strerror(gaierr);
17042 goto bad;
17044 for (ai = aitop; ai; ai = ai->ai_next) {
17045 if (ai->ai_addr == NULL ||
17046 ai->ai_addrlen == 0 ||
17047 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17048 straddr, sizeof(straddr), strport, sizeof(strport),
17049 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17050 goto bad;
17052 switch (ai->ai_family) {
17053 case AF_INET:
17054 if (strcmp(strport, "54321") != 0) {
17055 goto bad;
17057 if (passive) {
17058 if (strcmp(straddr, "0.0.0.0") != 0) {
17059 goto bad;
17061 } else {
17062 if (strcmp(straddr, "127.0.0.1") != 0) {
17063 goto bad;
17066 inet4++;
17067 break;
17068 case AF_INET6:
17069 if (strcmp(strport, "54321") != 0) {
17070 goto bad;
17072 if (passive) {
17073 if (strcmp(straddr, "::") != 0) {
17074 goto bad;
17076 } else {
17077 if (strcmp(straddr, "::1") != 0) {
17078 goto bad;
17081 inet6++;
17082 break;
17083 case AF_UNSPEC:
17084 goto bad;
17085 break;
17086 default:
17087 /* another family support? */
17088 break;
17093 if (!(inet4 == 0 || inet4 == 2))
17094 goto bad;
17095 if (!(inet6 == 0 || inet6 == 2))
17096 goto bad;
17098 if (aitop)
17099 freeaddrinfo(aitop);
17100 exit(0);
17102 bad:
17103 if (aitop)
17104 freeaddrinfo(aitop);
17105 exit(1);
17108 _ACEOF
17109 rm -f conftest$ac_exeext
17110 if { (ac_try="$ac_link"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_link") 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 { echo "$as_me:$LINENO: result: good" >&5
17130 echo "${ECHO_T}good" >&6; }
17131 buggygetaddrinfo=no
17132 else
17133 echo "$as_me: program exited with status $ac_status" >&5
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ( exit $ac_status )
17138 { echo "$as_me:$LINENO: result: buggy" >&5
17139 echo "${ECHO_T}buggy" >&6; }
17140 buggygetaddrinfo=yes
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17153 buggygetaddrinfo=yes
17157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17158 conftest$ac_exeext conftest.$ac_ext
17160 if test "$buggygetaddrinfo" = "yes"; then
17161 if test "$ipv6" = "yes"; then
17162 echo 'Fatal: You must get working getaddrinfo() function.'
17163 echo ' or you can specify "--disable-ipv6"'.
17164 exit 1
17166 else
17168 cat >>confdefs.h <<\_ACEOF
17169 #define HAVE_GETADDRINFO 1
17170 _ACEOF
17174 for ac_func in getnameinfo
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17203 #undef $ac_func
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char $ac_func ();
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17216 choke me
17217 #endif
17220 main ()
17222 return $ac_func ();
17224 return 0;
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 eval "$as_ac_var=yes"
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 eval "$as_ac_var=no"
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257 { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 _ACEOF
17265 done
17268 # checks for structures
17269 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17271 if test "${ac_cv_header_time+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <sys/types.h>
17281 #include <sys/time.h>
17282 #include <time.h>
17285 main ()
17287 if ((struct tm *) 0)
17288 return 0;
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.$ac_objext; then
17310 ac_cv_header_time=yes
17311 else
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_cv_header_time=no
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17321 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17322 if test $ac_cv_header_time = yes; then
17324 cat >>confdefs.h <<\_ACEOF
17325 #define TIME_WITH_SYS_TIME 1
17326 _ACEOF
17330 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17331 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17332 if test "${ac_cv_struct_tm+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 #include <sys/types.h>
17342 #include <time.h>
17345 main ()
17347 struct tm tm;
17348 int *p = &tm.tm_sec;
17349 return !p;
17351 return 0;
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 ac_cv_struct_tm=time.h
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_struct_tm=sys/time.h
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17382 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17383 if test $ac_cv_struct_tm = sys/time.h; then
17385 cat >>confdefs.h <<\_ACEOF
17386 #define TM_IN_SYS_TIME 1
17387 _ACEOF
17391 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17392 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
17393 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h. */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <sys/types.h>
17403 #include <$ac_cv_struct_tm>
17407 main ()
17409 static struct tm ac_aggr;
17410 if (ac_aggr.tm_zone)
17411 return 0;
17413 return 0;
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest.$ac_objext; then
17433 ac_cv_member_struct_tm_tm_zone=yes
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <sys/types.h>
17445 #include <$ac_cv_struct_tm>
17449 main ()
17451 static struct tm ac_aggr;
17452 if (sizeof ac_aggr.tm_zone)
17453 return 0;
17455 return 0;
17457 _ACEOF
17458 rm -f conftest.$ac_objext
17459 if { (ac_try="$ac_compile"
17460 case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_compile") 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && {
17472 test -z "$ac_c_werror_flag" ||
17473 test ! -s conftest.err
17474 } && test -s conftest.$ac_objext; then
17475 ac_cv_member_struct_tm_tm_zone=yes
17476 else
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 ac_cv_member_struct_tm_tm_zone=no
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
17490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_STRUCT_TM_TM_ZONE 1
17494 _ACEOF
17499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17501 cat >>confdefs.h <<\_ACEOF
17502 #define HAVE_TM_ZONE 1
17503 _ACEOF
17505 else
17506 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
17507 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
17508 if test "${ac_cv_have_decl_tzname+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511 cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 #include <time.h>
17520 main ()
17522 #ifndef tzname
17523 (void) tzname;
17524 #endif
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (ac_try="$ac_compile"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_compile") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } && {
17544 test -z "$ac_c_werror_flag" ||
17545 test ! -s conftest.err
17546 } && test -s conftest.$ac_objext; then
17547 ac_cv_have_decl_tzname=yes
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 ac_cv_have_decl_tzname=no
17555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
17558 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
17559 if test $ac_cv_have_decl_tzname = yes; then
17561 cat >>confdefs.h <<_ACEOF
17562 #define HAVE_DECL_TZNAME 1
17563 _ACEOF
17566 else
17567 cat >>confdefs.h <<_ACEOF
17568 #define HAVE_DECL_TZNAME 0
17569 _ACEOF
17575 { echo "$as_me:$LINENO: checking for tzname" >&5
17576 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
17577 if test "${ac_cv_var_tzname+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <time.h>
17587 #if !HAVE_DECL_TZNAME
17588 extern char *tzname[];
17589 #endif
17592 main ()
17594 return tzname[0][0];
17596 return 0;
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest$ac_exeext &&
17616 $as_test_x conftest$ac_exeext; then
17617 ac_cv_var_tzname=yes
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_cv_var_tzname=no
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17629 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
17630 if test $ac_cv_var_tzname = yes; then
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_TZNAME 1
17634 _ACEOF
17639 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17640 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
17641 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 else
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h. */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 $ac_includes_default
17652 main ()
17654 static struct stat ac_aggr;
17655 if (ac_aggr.st_rdev)
17656 return 0;
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (ac_try="$ac_compile"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_compile") 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } && {
17675 test -z "$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 } && test -s conftest.$ac_objext; then
17678 ac_cv_member_struct_stat_st_rdev=yes
17679 else
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17691 main ()
17693 static struct stat ac_aggr;
17694 if (sizeof ac_aggr.st_rdev)
17695 return 0;
17697 return 0;
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_compile") 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest.$ac_objext; then
17717 ac_cv_member_struct_stat_st_rdev=yes
17718 else
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_member_struct_stat_st_rdev=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17731 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
17732 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_STRUCT_STAT_ST_RDEV 1
17736 _ACEOF
17741 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17742 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
17743 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17754 main ()
17756 static struct stat ac_aggr;
17757 if (ac_aggr.st_blksize)
17758 return 0;
17760 return 0;
17762 _ACEOF
17763 rm -f conftest.$ac_objext
17764 if { (ac_try="$ac_compile"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_member_struct_stat_st_blksize=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17793 main ()
17795 static struct stat ac_aggr;
17796 if (sizeof ac_aggr.st_blksize)
17797 return 0;
17799 return 0;
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17819 ac_cv_member_struct_stat_st_blksize=yes
17820 else
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 ac_cv_member_struct_stat_st_blksize=no
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17833 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
17834 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17838 _ACEOF
17843 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17844 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
17845 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17856 main ()
17858 static struct stat ac_aggr;
17859 if (ac_aggr.st_flags)
17860 return 0;
17862 return 0;
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_compile") 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest.$ac_objext; then
17882 ac_cv_member_struct_stat_st_flags=yes
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17895 main ()
17897 static struct stat ac_aggr;
17898 if (sizeof ac_aggr.st_flags)
17899 return 0;
17901 return 0;
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (ac_try="$ac_compile"
17906 case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909 esac
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_compile") 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest.$ac_objext; then
17921 ac_cv_member_struct_stat_st_flags=yes
17922 else
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 ac_cv_member_struct_stat_st_flags=no
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17935 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
17936 if test $ac_cv_member_struct_stat_st_flags = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17940 _ACEOF
17945 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17946 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
17947 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 $ac_includes_default
17958 main ()
17960 static struct stat ac_aggr;
17961 if (ac_aggr.st_gen)
17962 return 0;
17964 return 0;
17966 _ACEOF
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest.$ac_objext; then
17984 ac_cv_member_struct_stat_st_gen=yes
17985 else
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h. */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 $ac_includes_default
17997 main ()
17999 static struct stat ac_aggr;
18000 if (sizeof ac_aggr.st_gen)
18001 return 0;
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (ac_try="$ac_compile"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && {
18020 test -z "$ac_c_werror_flag" ||
18021 test ! -s conftest.err
18022 } && test -s conftest.$ac_objext; then
18023 ac_cv_member_struct_stat_st_gen=yes
18024 else
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 ac_cv_member_struct_stat_st_gen=no
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18037 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18038 if test $ac_cv_member_struct_stat_st_gen = yes; then
18040 cat >>confdefs.h <<_ACEOF
18041 #define HAVE_STRUCT_STAT_ST_GEN 1
18042 _ACEOF
18047 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18048 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18049 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 $ac_includes_default
18060 main ()
18062 static struct stat ac_aggr;
18063 if (ac_aggr.st_birthtime)
18064 return 0;
18066 return 0;
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 ac_cv_member_struct_stat_st_birthtime=yes
18087 else
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 $ac_includes_default
18099 main ()
18101 static struct stat ac_aggr;
18102 if (sizeof ac_aggr.st_birthtime)
18103 return 0;
18105 return 0;
18107 _ACEOF
18108 rm -f conftest.$ac_objext
18109 if { (ac_try="$ac_compile"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_compile") 2>conftest.er1
18116 ac_status=$?
18117 grep -v '^ *+' conftest.er1 >conftest.err
18118 rm -f conftest.er1
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } && {
18122 test -z "$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18124 } && test -s conftest.$ac_objext; then
18125 ac_cv_member_struct_stat_st_birthtime=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_cv_member_struct_stat_st_birthtime=no
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18139 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18140 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18144 _ACEOF
18149 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18150 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18151 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154 cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h. */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 $ac_includes_default
18162 main ()
18164 static struct stat ac_aggr;
18165 if (ac_aggr.st_blocks)
18166 return 0;
18168 return 0;
18170 _ACEOF
18171 rm -f conftest.$ac_objext
18172 if { (ac_try="$ac_compile"
18173 case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_compile") 2>conftest.er1
18179 ac_status=$?
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest.$ac_objext; then
18188 ac_cv_member_struct_stat_st_blocks=yes
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 $ac_includes_default
18201 main ()
18203 static struct stat ac_aggr;
18204 if (sizeof ac_aggr.st_blocks)
18205 return 0;
18207 return 0;
18209 _ACEOF
18210 rm -f conftest.$ac_objext
18211 if { (ac_try="$ac_compile"
18212 case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_compile") 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } && {
18224 test -z "$ac_c_werror_flag" ||
18225 test ! -s conftest.err
18226 } && test -s conftest.$ac_objext; then
18227 ac_cv_member_struct_stat_st_blocks=yes
18228 else
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_cv_member_struct_stat_st_blocks=no
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18241 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18242 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18246 _ACEOF
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_ST_BLOCKS 1
18251 _ACEOF
18253 else
18254 case " $LIBOBJS " in
18255 *" fileblocks.$ac_objext "* ) ;;
18256 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18258 esac
18264 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18265 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18266 if test "${ac_cv_header_time_altzone+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 #include <time.h>
18277 main ()
18279 return altzone;
18281 return 0;
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_cv_header_time_altzone=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_cv_header_time_altzone=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18313 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18314 if test $ac_cv_header_time_altzone = yes; then
18316 cat >>confdefs.h <<\_ACEOF
18317 #define HAVE_ALTZONE 1
18318 _ACEOF
18322 was_it_defined=no
18323 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18324 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 #include <sys/types.h>
18333 #include <sys/select.h>
18334 #include <sys/time.h>
18337 main ()
18341 return 0;
18343 _ACEOF
18344 rm -f conftest.$ac_objext
18345 if { (ac_try="$ac_compile"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18363 cat >>confdefs.h <<\_ACEOF
18364 #define SYS_SELECT_WITH_SYS_TIME 1
18365 _ACEOF
18367 was_it_defined=yes
18369 else
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
18378 echo "${ECHO_T}$was_it_defined" >&6; }
18380 { echo "$as_me:$LINENO: checking for addrinfo" >&5
18381 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
18382 if test "${ac_cv_struct_addrinfo+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 else
18385 cat >conftest.$ac_ext <<_ACEOF
18386 /* confdefs.h. */
18387 _ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 # include <netdb.h>
18394 main ()
18396 struct addrinfo a
18398 return 0;
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406 esac
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.$ac_objext; then
18418 ac_cv_struct_addrinfo=yes
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_cv_struct_addrinfo=no
18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18430 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
18431 if test $ac_cv_struct_addrinfo = yes; then
18433 cat >>confdefs.h <<\_ACEOF
18434 #define HAVE_ADDRINFO 1
18435 _ACEOF
18439 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18440 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
18441 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18451 # include <sys/types.h>
18452 # include <sys/socket.h>
18454 main ()
18456 struct sockaddr_storage s
18458 return 0;
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (ac_try="$ac_compile"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_compile") 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest.$ac_objext; then
18478 ac_cv_struct_sockaddr_storage=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_struct_sockaddr_storage=no
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18489 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18490 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
18491 if test $ac_cv_struct_sockaddr_storage = yes; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_SOCKADDR_STORAGE 1
18495 _ACEOF
18499 # checks for compiler characteristics
18502 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18503 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
18504 if test "${ac_cv_c_char_unsigned+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 $ac_includes_default
18515 main ()
18517 static int test_array [1 - 2 * !(((char) -1) < 0)];
18518 test_array [0] = 0
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.$ac_objext; then
18541 ac_cv_c_char_unsigned=no
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_c_char_unsigned=yes
18549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18552 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
18553 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18554 cat >>confdefs.h <<\_ACEOF
18555 #define __CHAR_UNSIGNED__ 1
18556 _ACEOF
18560 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18561 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18562 if test "${ac_cv_c_const+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18573 main ()
18575 /* FIXME: Include the comments suggested by Paul. */
18576 #ifndef __cplusplus
18577 /* Ultrix mips cc rejects this. */
18578 typedef int charset[2];
18579 const charset cs;
18580 /* SunOS 4.1.1 cc rejects this. */
18581 char const *const *pcpcc;
18582 char **ppc;
18583 /* NEC SVR4.0.2 mips cc rejects this. */
18584 struct point {int x, y;};
18585 static struct point const zero = {0,0};
18586 /* AIX XL C 1.02.0.0 rejects this.
18587 It does not let you subtract one const X* pointer from another in
18588 an arm of an if-expression whose if-part is not a constant
18589 expression */
18590 const char *g = "string";
18591 pcpcc = &g + (g ? g-g : 0);
18592 /* HPUX 7.0 cc rejects these. */
18593 ++pcpcc;
18594 ppc = (char**) pcpcc;
18595 pcpcc = (char const *const *) ppc;
18596 { /* SCO 3.2v4 cc rejects this. */
18597 char *t;
18598 char const *s = 0 ? (char *) 0 : (char const *) 0;
18600 *t++ = 0;
18601 if (s) return 0;
18603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18604 int x[] = {25, 17};
18605 const int *foo = &x[0];
18606 ++foo;
18608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18609 typedef const int *iptr;
18610 iptr p = 0;
18611 ++p;
18613 { /* AIX XL C 1.02.0.0 rejects this saying
18614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18615 struct s { int j; const int *ap[3]; };
18616 struct s *b; b->j = 5;
18618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18619 const int foo = 10;
18620 if (!foo) return 0;
18622 return !cs[0] && !zero.x;
18623 #endif
18626 return 0;
18628 _ACEOF
18629 rm -f conftest.$ac_objext
18630 if { (ac_try="$ac_compile"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634 esac
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_compile") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && {
18643 test -z "$ac_c_werror_flag" ||
18644 test ! -s conftest.err
18645 } && test -s conftest.$ac_objext; then
18646 ac_cv_c_const=yes
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_c_const=no
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18658 if test $ac_cv_c_const = no; then
18660 cat >>confdefs.h <<\_ACEOF
18661 #define const
18662 _ACEOF
18667 works=no
18668 { echo "$as_me:$LINENO: checking for working volatile" >&5
18669 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h. */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18678 main ()
18680 volatile int x; x = 0;
18682 return 0;
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (ac_try="$ac_compile"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_compile") 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest.$ac_objext; then
18702 works=yes
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18708 cat >>confdefs.h <<\_ACEOF
18709 #define volatile
18710 _ACEOF
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 { echo "$as_me:$LINENO: result: $works" >&5
18717 echo "${ECHO_T}$works" >&6; }
18719 works=no
18720 { echo "$as_me:$LINENO: checking for working signed char" >&5
18721 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18730 main ()
18732 signed char c;
18734 return 0;
18736 _ACEOF
18737 rm -f conftest.$ac_objext
18738 if { (ac_try="$ac_compile"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_compile") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest.$ac_objext; then
18754 works=yes
18755 else
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18760 cat >>confdefs.h <<\_ACEOF
18761 #define signed
18762 _ACEOF
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $works" >&5
18769 echo "${ECHO_T}$works" >&6; }
18771 have_prototypes=no
18772 { echo "$as_me:$LINENO: checking for prototypes" >&5
18773 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 int foo(int x) { return 0; }
18782 main ()
18784 return foo(10);
18786 return 0;
18788 _ACEOF
18789 rm -f conftest.$ac_objext
18790 if { (ac_try="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_PROTOTYPES 1
18810 _ACEOF
18812 have_prototypes=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
18823 echo "${ECHO_T}$have_prototypes" >&6; }
18825 works=no
18826 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18827 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 #include <stdarg.h>
18836 int foo(int x, ...) {
18837 va_list va;
18838 va_start(va, x);
18839 va_arg(va, int);
18840 va_arg(va, char *);
18841 va_arg(va, double);
18842 return 0;
18846 main ()
18848 return foo(10, "", 3.14);
18850 return 0;
18852 _ACEOF
18853 rm -f conftest.$ac_objext
18854 if { (ac_try="$ac_compile"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_compile") 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } && {
18867 test -z "$ac_c_werror_flag" ||
18868 test ! -s conftest.err
18869 } && test -s conftest.$ac_objext; then
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE_STDARG_PROTOTYPES 1
18874 _ACEOF
18876 works=yes
18878 else
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 { echo "$as_me:$LINENO: result: $works" >&5
18887 echo "${ECHO_T}$works" >&6; }
18889 # check for socketpair
18890 { echo "$as_me:$LINENO: checking for socketpair" >&5
18891 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 #include <sys/types.h>
18900 #include <sys/socket.h>
18903 main ()
18905 void *x=socketpair
18907 return 0;
18909 _ACEOF
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_compile") 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest.$ac_objext; then
18928 cat >>confdefs.h <<\_ACEOF
18929 #define HAVE_SOCKETPAIR 1
18930 _ACEOF
18932 { echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6; }
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 { echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6; }
18943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18945 # check if sockaddr has sa_len member
18946 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18947 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h. */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18954 #include <sys/types.h>
18955 #include <sys/socket.h>
18957 main ()
18959 struct sockaddr x;
18960 x.sa_len = 0;
18962 return 0;
18964 _ACEOF
18965 rm -f conftest.$ac_objext
18966 if { (ac_try="$ac_compile"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_compile") 2>conftest.er1
18973 ac_status=$?
18974 grep -v '^ *+' conftest.er1 >conftest.err
18975 rm -f conftest.er1
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } && {
18979 test -z "$ac_c_werror_flag" ||
18980 test ! -s conftest.err
18981 } && test -s conftest.$ac_objext; then
18982 { echo "$as_me:$LINENO: result: yes" >&5
18983 echo "${ECHO_T}yes" >&6; }
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_SOCKADDR_SA_LEN 1
18987 _ACEOF
18989 else
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 { echo "$as_me:$LINENO: result: no" >&5
18994 echo "${ECHO_T}no" >&6; }
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 va_list_is_array=no
19000 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19001 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19009 #ifdef HAVE_STDARG_PROTOTYPES
19010 #include <stdarg.h>
19011 #else
19012 #include <varargs.h>
19013 #endif
19016 main ()
19018 va_list list1, list2; list1 = list2;
19020 return 0;
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (ac_try="$ac_compile"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_compile") 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest.$ac_objext; then
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19047 cat >>confdefs.h <<\_ACEOF
19048 #define VA_LIST_IS_ARRAY 1
19049 _ACEOF
19051 va_list_is_array=yes
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19057 echo "${ECHO_T}$va_list_is_array" >&6; }
19059 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19063 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19064 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19065 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h. */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19076 #define gethostbyname_r innocuous_gethostbyname_r
19078 /* System header to define __stub macros and hopefully few prototypes,
19079 which can conflict with char gethostbyname_r (); below.
19080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081 <limits.h> exists even on freestanding compilers. */
19083 #ifdef __STDC__
19084 # include <limits.h>
19085 #else
19086 # include <assert.h>
19087 #endif
19089 #undef gethostbyname_r
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char gethostbyname_r ();
19098 /* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19102 choke me
19103 #endif
19106 main ()
19108 return gethostbyname_r ();
19110 return 0;
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19121 ac_status=$?
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } && {
19127 test -z "$ac_c_werror_flag" ||
19128 test ! -s conftest.err
19129 } && test -s conftest$ac_exeext &&
19130 $as_test_x conftest$ac_exeext; then
19131 ac_cv_func_gethostbyname_r=yes
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_cv_func_gethostbyname_r=no
19139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19140 conftest$ac_exeext conftest.$ac_ext
19142 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19143 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19144 if test $ac_cv_func_gethostbyname_r = yes; then
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_GETHOSTBYNAME_R 1
19148 _ACEOF
19150 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19151 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19152 OLD_CFLAGS=$CFLAGS
19153 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 # include <netdb.h>
19164 main ()
19167 char *name;
19168 struct hostent *he, *res;
19169 char buffer[2048];
19170 int buflen = 2048;
19171 int h_errnop;
19173 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19176 return 0;
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_GETHOSTBYNAME_R 1
19199 _ACEOF
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19204 _ACEOF
19206 { echo "$as_me:$LINENO: result: yes" >&5
19207 echo "${ECHO_T}yes" >&6; }
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19214 { echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6; }
19216 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19217 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19218 cat >conftest.$ac_ext <<_ACEOF
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19225 # include <netdb.h>
19228 main ()
19231 char *name;
19232 struct hostent *he;
19233 char buffer[2048];
19234 int buflen = 2048;
19235 int h_errnop;
19237 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_GETHOSTBYNAME_R 1
19263 _ACEOF
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19268 _ACEOF
19270 { echo "$as_me:$LINENO: result: yes" >&5
19271 echo "${ECHO_T}yes" >&6; }
19273 else
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19278 { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19281 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 # include <netdb.h>
19292 main ()
19295 char *name;
19296 struct hostent *he;
19297 struct hostent_data data;
19299 (void) gethostbyname_r(name, he, &data);
19302 return 0;
19304 _ACEOF
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19310 esac
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_compile") 2>conftest.er1
19313 ac_status=$?
19314 grep -v '^ *+' conftest.er1 >conftest.err
19315 rm -f conftest.er1
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && {
19319 test -z "$ac_c_werror_flag" ||
19320 test ! -s conftest.err
19321 } && test -s conftest.$ac_objext; then
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE_GETHOSTBYNAME_R 1
19325 _ACEOF
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19330 _ACEOF
19332 { echo "$as_me:$LINENO: result: yes" >&5
19333 echo "${ECHO_T}yes" >&6; }
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19340 { echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6; }
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 CFLAGS=$OLD_CFLAGS
19356 else
19359 for ac_func in gethostbyname
19361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h. */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define $ac_func innocuous_$ac_func
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char $ac_func (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19388 #undef $ac_func
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char $ac_func ();
19397 /* The GNU C library defines this for functions which it implements
19398 to always fail with ENOSYS. Some functions are actually named
19399 something starting with __ and the normal name is an alias. */
19400 #if defined __stub_$ac_func || defined __stub___$ac_func
19401 choke me
19402 #endif
19405 main ()
19407 return $ac_func ();
19409 return 0;
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19420 ac_status=$?
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 eval "$as_ac_var=yes"
19431 else
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 eval "$as_ac_var=no"
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 ac_res=`eval echo '${'$as_ac_var'}'`
19442 { echo "$as_me:$LINENO: result: $ac_res" >&5
19443 echo "${ECHO_T}$ac_res" >&6; }
19444 if test `eval echo '${'$as_ac_var'}'` = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19447 _ACEOF
19450 done
19461 # checks for system services
19462 # (none yet)
19464 # Linux requires this for correct f.p. operations
19465 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
19466 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
19467 if test "${ac_cv_func___fpu_control+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470 cat >conftest.$ac_ext <<_ACEOF
19471 /* confdefs.h. */
19472 _ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19478 #define __fpu_control innocuous___fpu_control
19480 /* System header to define __stub macros and hopefully few prototypes,
19481 which can conflict with char __fpu_control (); below.
19482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19483 <limits.h> exists even on freestanding compilers. */
19485 #ifdef __STDC__
19486 # include <limits.h>
19487 #else
19488 # include <assert.h>
19489 #endif
19491 #undef __fpu_control
19493 /* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19496 #ifdef __cplusplus
19497 extern "C"
19498 #endif
19499 char __fpu_control ();
19500 /* The GNU C library defines this for functions which it implements
19501 to always fail with ENOSYS. Some functions are actually named
19502 something starting with __ and the normal name is an alias. */
19503 #if defined __stub___fpu_control || defined __stub_____fpu_control
19504 choke me
19505 #endif
19508 main ()
19510 return __fpu_control ();
19512 return 0;
19514 _ACEOF
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } && {
19529 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest$ac_exeext &&
19532 $as_test_x conftest$ac_exeext; then
19533 ac_cv_func___fpu_control=yes
19534 else
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_cv_func___fpu_control=no
19541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19542 conftest$ac_exeext conftest.$ac_ext
19544 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19545 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
19546 if test $ac_cv_func___fpu_control = yes; then
19548 else
19550 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19551 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555 ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lieee $LIBS"
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19567 #ifdef __cplusplus
19568 extern "C"
19569 #endif
19570 char __fpu_control ();
19572 main ()
19574 return __fpu_control ();
19576 return 0;
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 ac_cv_lib_ieee___fpu_control=yes
19598 else
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_lib_ieee___fpu_control=no
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19610 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
19611 if test $ac_cv_lib_ieee___fpu_control = yes; then
19612 cat >>confdefs.h <<_ACEOF
19613 #define HAVE_LIBIEEE 1
19614 _ACEOF
19616 LIBS="-lieee $LIBS"
19624 # Check for --with-fpectl
19625 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19626 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
19628 # Check whether --with-fpectl was given.
19629 if test "${with_fpectl+set}" = set; then
19630 withval=$with_fpectl;
19631 if test "$withval" != no
19632 then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define WANT_SIGFPE_HANDLER 1
19636 _ACEOF
19638 { echo "$as_me:$LINENO: result: yes" >&5
19639 echo "${ECHO_T}yes" >&6; }
19640 else { echo "$as_me:$LINENO: result: no" >&5
19641 echo "${ECHO_T}no" >&6; }
19643 else
19644 { echo "$as_me:$LINENO: result: no" >&5
19645 echo "${ECHO_T}no" >&6; }
19649 # check for --with-libm=...
19651 case $ac_sys_system in
19652 Darwin) ;;
19653 BeOS) ;;
19654 *) LIBM=-lm
19655 esac
19656 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19657 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
19659 # Check whether --with-libm was given.
19660 if test "${with_libm+set}" = set; then
19661 withval=$with_libm;
19662 if test "$withval" = no
19663 then LIBM=
19664 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
19665 echo "${ECHO_T}force LIBM empty" >&6; }
19666 elif test "$withval" != yes
19667 then LIBM=$withval
19668 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19669 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
19670 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19671 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19672 { (exit 1); exit 1; }; }
19674 else
19675 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19676 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
19680 # check for --with-libc=...
19682 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19683 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
19685 # Check whether --with-libc was given.
19686 if test "${with_libc+set}" = set; then
19687 withval=$with_libc;
19688 if test "$withval" = no
19689 then LIBC=
19690 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
19691 echo "${ECHO_T}force LIBC empty" >&6; }
19692 elif test "$withval" != yes
19693 then LIBC=$withval
19694 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19695 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
19696 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19697 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19698 { (exit 1); exit 1; }; }
19700 else
19701 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19702 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
19706 # check for hypot() in math library
19707 LIBS_SAVE=$LIBS
19708 LIBS="$LIBS $LIBM"
19710 for ac_func in hypot
19712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19726 #define $ac_func innocuous_$ac_func
19728 /* System header to define __stub macros and hopefully few prototypes,
19729 which can conflict with char $ac_func (); below.
19730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19731 <limits.h> exists even on freestanding compilers. */
19733 #ifdef __STDC__
19734 # include <limits.h>
19735 #else
19736 # include <assert.h>
19737 #endif
19739 #undef $ac_func
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19744 #ifdef __cplusplus
19745 extern "C"
19746 #endif
19747 char $ac_func ();
19748 /* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751 #if defined __stub_$ac_func || defined __stub___$ac_func
19752 choke me
19753 #endif
19756 main ()
19758 return $ac_func ();
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_link") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest$ac_exeext &&
19780 $as_test_x conftest$ac_exeext; then
19781 eval "$as_ac_var=yes"
19782 else
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 eval "$as_ac_var=no"
19789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19790 conftest$ac_exeext conftest.$ac_ext
19792 ac_res=`eval echo '${'$as_ac_var'}'`
19793 { echo "$as_me:$LINENO: result: $ac_res" >&5
19794 echo "${ECHO_T}$ac_res" >&6; }
19795 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796 cat >>confdefs.h <<_ACEOF
19797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19798 _ACEOF
19800 else
19801 case " $LIBOBJS " in
19802 *" $ac_func.$ac_objext "* ) ;;
19803 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19805 esac
19808 done
19811 LIBS=$LIBS_SAVE
19813 # check for wchar.h
19814 if test "${ac_cv_header_wchar_h+set}" = set; then
19815 { echo "$as_me:$LINENO: checking for wchar.h" >&5
19816 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
19817 if test "${ac_cv_header_wchar_h+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
19822 else
19823 # Is the header compilable?
19824 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
19825 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h. */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19833 #include <wchar.h>
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (ac_try="$ac_compile"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 ac_header_compiler=yes
19853 else
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_header_compiler=no
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19862 echo "${ECHO_T}$ac_header_compiler" >&6; }
19864 # Is the header present?
19865 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
19866 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <wchar.h>
19874 _ACEOF
19875 if { (ac_try="$ac_cpp conftest.$ac_ext"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19879 esac
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } >/dev/null && {
19888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 }; then
19891 ac_header_preproc=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_header_preproc=no
19899 rm -f conftest.err conftest.$ac_ext
19900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 echo "${ECHO_T}$ac_header_preproc" >&6; }
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 yes:no: )
19906 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19907 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19909 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19910 ac_header_preproc=yes
19912 no:yes:* )
19913 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19914 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19916 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19918 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19920 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19922 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19924 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19925 ( cat <<\_ASBOX
19926 ## ------------------------------------------------ ##
19927 ## Report this to http://www.python.org/python-bugs ##
19928 ## ------------------------------------------------ ##
19929 _ASBOX
19930 ) | sed "s/^/$as_me: WARNING: /" >&2
19932 esac
19933 { echo "$as_me:$LINENO: checking for wchar.h" >&5
19934 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
19935 if test "${ac_cv_header_wchar_h+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938 ac_cv_header_wchar_h=$ac_header_preproc
19940 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19941 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
19944 if test $ac_cv_header_wchar_h = yes; then
19947 cat >>confdefs.h <<\_ACEOF
19948 #define HAVE_WCHAR_H 1
19949 _ACEOF
19951 wchar_h="yes"
19953 else
19954 wchar_h="no"
19960 # determine wchar_t size
19961 if test "$wchar_h" = yes
19962 then
19963 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19964 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19965 if test "${ac_cv_type_wchar_t+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 #include <wchar.h>
19976 typedef wchar_t ac__type_new_;
19978 main ()
19980 if ((ac__type_new_ *) 0)
19981 return 0;
19982 if (sizeof (ac__type_new_))
19983 return 0;
19985 return 0;
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (ac_try="$ac_compile"
19990 case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20005 ac_cv_type_wchar_t=yes
20006 else
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_type_wchar_t=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20016 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20018 # The cast to long int works around a bug in the HP C Compiler
20019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20021 # This bug is HP SR number 8606223364.
20022 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20023 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20024 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027 if test "$cross_compiling" = yes; then
20028 # Depending upon the size, compute the lo and hi bounds.
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 #include <wchar.h>
20037 typedef wchar_t ac__type_sizeof_;
20039 main ()
20041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20042 test_array [0] = 0
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20065 ac_lo=0 ac_mid=0
20066 while :; do
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 #include <wchar.h>
20075 typedef wchar_t ac__type_sizeof_;
20077 main ()
20079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20080 test_array [0] = 0
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 ac_hi=$ac_mid; break
20104 else
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_lo=`expr $ac_mid + 1`
20109 if test $ac_lo -le $ac_mid; then
20110 ac_lo= ac_hi=
20111 break
20113 ac_mid=`expr 2 '*' $ac_mid + 1`
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 done
20118 else
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h. */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 #include <wchar.h>
20130 typedef wchar_t ac__type_sizeof_;
20132 main ()
20134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20135 test_array [0] = 0
20138 return 0;
20140 _ACEOF
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20158 ac_hi=-1 ac_mid=-1
20159 while :; do
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <wchar.h>
20168 typedef wchar_t ac__type_sizeof_;
20170 main ()
20172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20173 test_array [0] = 0
20176 return 0;
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest.$ac_objext; then
20196 ac_lo=$ac_mid; break
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_hi=`expr '(' $ac_mid ')' - 1`
20202 if test $ac_mid -le $ac_hi; then
20203 ac_lo= ac_hi=
20204 break
20206 ac_mid=`expr 2 '*' $ac_mid`
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 done
20211 else
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_lo= ac_hi=
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 # Binary search between lo and hi bounds.
20223 while test "x$ac_lo" != "x$ac_hi"; do
20224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <wchar.h>
20233 typedef wchar_t ac__type_sizeof_;
20235 main ()
20237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20238 test_array [0] = 0
20241 return 0;
20243 _ACEOF
20244 rm -f conftest.$ac_objext
20245 if { (ac_try="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
20261 ac_hi=$ac_mid
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_lo=`expr '(' $ac_mid ')' + 1`
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270 done
20271 case $ac_lo in
20272 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20273 '') if test "$ac_cv_type_wchar_t" = yes; then
20274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20275 See \`config.log' for more details." >&5
20276 echo "$as_me: error: cannot compute sizeof (wchar_t)
20277 See \`config.log' for more details." >&2;}
20278 { (exit 77); exit 77; }; }
20279 else
20280 ac_cv_sizeof_wchar_t=0
20281 fi ;;
20282 esac
20283 else
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 #include <wchar.h>
20292 typedef wchar_t ac__type_sizeof_;
20293 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20294 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20295 #include <stdio.h>
20296 #include <stdlib.h>
20298 main ()
20301 FILE *f = fopen ("conftest.val", "w");
20302 if (! f)
20303 return 1;
20304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20306 long int i = longval ();
20307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20308 return 1;
20309 fprintf (f, "%ld\n", i);
20311 else
20313 unsigned long int i = ulongval ();
20314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20315 return 1;
20316 fprintf (f, "%lu\n", i);
20318 return ferror (f) || fclose (f) != 0;
20321 return 0;
20323 _ACEOF
20324 rm -f conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_sizeof_wchar_t=`cat conftest.val`
20345 else
20346 echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ( exit $ac_status )
20351 if test "$ac_cv_type_wchar_t" = yes; then
20352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20353 See \`config.log' for more details." >&5
20354 echo "$as_me: error: cannot compute sizeof (wchar_t)
20355 See \`config.log' for more details." >&2;}
20356 { (exit 77); exit 77; }; }
20357 else
20358 ac_cv_sizeof_wchar_t=0
20361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20363 rm -f conftest.val
20365 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20366 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
20370 cat >>confdefs.h <<_ACEOF
20371 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20372 _ACEOF
20377 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20378 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
20379 have_ucs4_tcl=no
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h. */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 #include <tcl.h>
20388 #if TCL_UTF_MAX != 6
20389 # error "NOT UCS4_TCL"
20390 #endif
20392 main ()
20396 return 0;
20398 _ACEOF
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20418 cat >>confdefs.h <<\_ACEOF
20419 #define HAVE_UCS4_TCL 1
20420 _ACEOF
20422 have_ucs4_tcl=yes
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20433 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
20435 # check whether wchar_t is signed or not
20436 if test "$wchar_h" = yes
20437 then
20438 # check whether wchar_t is signed or not
20439 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20440 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
20441 if test "${ac_cv_wchar_t_signed+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20445 if test "$cross_compiling" = yes; then
20446 ac_cv_wchar_t_signed=yes
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. */
20455 #include <wchar.h>
20456 int main()
20458 /* Success: exit code 0 */
20459 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20462 _ACEOF
20463 rm -f conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_link") 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_wchar_t_signed=yes
20484 else
20485 echo "$as_me: program exited with status $ac_status" >&5
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ( exit $ac_status )
20490 ac_cv_wchar_t_signed=no
20492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20499 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
20502 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20503 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
20504 # Check whether --enable-unicode was given.
20505 if test "${enable_unicode+set}" = set; then
20506 enableval=$enable_unicode;
20507 else
20508 enable_unicode=yes
20512 if test $enable_unicode = yes
20513 then
20514 # Without any arguments, Py_UNICODE defaults to two-byte mode
20515 case "$have_ucs4_tcl" in
20516 yes) enable_unicode="ucs4"
20518 *) enable_unicode="ucs2"
20520 esac
20525 case "$enable_unicode" in
20526 ucs2) unicode_size="2"
20527 cat >>confdefs.h <<\_ACEOF
20528 #define Py_UNICODE_SIZE 2
20529 _ACEOF
20532 ucs4) unicode_size="4"
20533 cat >>confdefs.h <<\_ACEOF
20534 #define Py_UNICODE_SIZE 4
20535 _ACEOF
20538 esac
20544 if test "$enable_unicode" = "no"
20545 then
20546 UNICODE_OBJS=""
20547 { echo "$as_me:$LINENO: result: not used" >&5
20548 echo "${ECHO_T}not used" >&6; }
20549 else
20550 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20552 cat >>confdefs.h <<\_ACEOF
20553 #define Py_USING_UNICODE 1
20554 _ACEOF
20557 # wchar_t is only usable if it maps to an unsigned type
20558 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20559 -a "$ac_cv_wchar_t_signed" = "no"
20560 then
20561 PY_UNICODE_TYPE="wchar_t"
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_USABLE_WCHAR_T 1
20565 _ACEOF
20567 cat >>confdefs.h <<\_ACEOF
20568 #define PY_UNICODE_TYPE wchar_t
20569 _ACEOF
20571 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20572 then
20573 PY_UNICODE_TYPE="unsigned short"
20574 cat >>confdefs.h <<\_ACEOF
20575 #define PY_UNICODE_TYPE unsigned short
20576 _ACEOF
20578 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20579 then
20580 PY_UNICODE_TYPE="unsigned long"
20581 cat >>confdefs.h <<\_ACEOF
20582 #define PY_UNICODE_TYPE unsigned long
20583 _ACEOF
20585 else
20586 PY_UNICODE_TYPE="no type found"
20588 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20589 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
20592 # check for endianness
20593 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20594 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20595 if test "${ac_cv_c_bigendian+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598 # See if sys/param.h defines the BYTE_ORDER macro.
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 #include <sys/types.h>
20606 #include <sys/param.h>
20609 main ()
20611 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20612 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20613 bogus endian macros
20614 #endif
20617 return 0;
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625 esac
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_compile") 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest.$ac_objext; then
20637 # It does; now see whether it defined to BIG_ENDIAN or not.
20638 cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h. */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20644 #include <sys/types.h>
20645 #include <sys/param.h>
20648 main ()
20650 #if BYTE_ORDER != BIG_ENDIAN
20651 not big endian
20652 #endif
20655 return 0;
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_cv_c_bigendian=yes
20676 else
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_c_bigendian=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 else
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 # It does not; compile a test program.
20689 if test "$cross_compiling" = yes; then
20690 # try to guess the endianness by grepping values into an object file
20691 ac_cv_c_bigendian=unknown
20692 cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h. */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20699 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20700 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20701 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20702 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20703 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20705 main ()
20707 _ascii (); _ebcdic ();
20709 return 0;
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20720 ac_status=$?
20721 grep -v '^ *+' conftest.er1 >conftest.err
20722 rm -f conftest.er1
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } && {
20726 test -z "$ac_c_werror_flag" ||
20727 test ! -s conftest.err
20728 } && test -s conftest.$ac_objext; then
20729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20730 ac_cv_c_bigendian=yes
20732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20733 if test "$ac_cv_c_bigendian" = unknown; then
20734 ac_cv_c_bigendian=no
20735 else
20736 # finding both strings is unlikely to happen, but who knows?
20737 ac_cv_c_bigendian=unknown
20740 else
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 else
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 $ac_includes_default
20757 main ()
20760 /* Are we little or big endian? From Harbison&Steele. */
20761 union
20763 long int l;
20764 char c[sizeof (long int)];
20765 } u;
20766 u.l = 1;
20767 return u.c[sizeof (long int) - 1] == 1;
20770 return 0;
20772 _ACEOF
20773 rm -f conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 ac_cv_c_bigendian=no
20794 else
20795 echo "$as_me: program exited with status $ac_status" >&5
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 ( exit $ac_status )
20800 ac_cv_c_bigendian=yes
20802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20811 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20812 case $ac_cv_c_bigendian in
20813 yes)
20815 cat >>confdefs.h <<\_ACEOF
20816 #define WORDS_BIGENDIAN 1
20817 _ACEOF
20822 { { echo "$as_me:$LINENO: error: unknown endianness
20823 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20824 echo "$as_me: error: unknown endianness
20825 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20826 { (exit 1); exit 1; }; } ;;
20827 esac
20832 # Check whether right shifting a negative integer extends the sign bit
20833 # or fills with zeros (like the Cray J90, according to Tim Peters).
20834 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20835 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
20836 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20840 if test "$cross_compiling" = yes; then
20841 ac_cv_rshift_extends_sign=yes
20842 else
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h. */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20850 int main()
20852 exit(((-1)>>3 == -1) ? 0 : 1);
20855 _ACEOF
20856 rm -f conftest$ac_exeext
20857 if { (ac_try="$ac_link"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_link") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20867 { (case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20870 esac
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_try") 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 ac_cv_rshift_extends_sign=yes
20877 else
20878 echo "$as_me: program exited with status $ac_status" >&5
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ( exit $ac_status )
20883 ac_cv_rshift_extends_sign=no
20885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20891 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20892 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
20893 if test "$ac_cv_rshift_extends_sign" = no
20894 then
20896 cat >>confdefs.h <<\_ACEOF
20897 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20898 _ACEOF
20902 # check for getc_unlocked and related locking functions
20903 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20904 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
20905 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <stdio.h>
20917 main ()
20920 FILE *f = fopen("/dev/null", "r");
20921 flockfile(f);
20922 getc_unlocked(f);
20923 funlockfile(f);
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_link") 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest$ac_exeext &&
20946 $as_test_x conftest$ac_exeext; then
20947 ac_cv_have_getc_unlocked=yes
20948 else
20949 echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20952 ac_cv_have_getc_unlocked=no
20955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20956 conftest$ac_exeext conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20960 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
20961 if test "$ac_cv_have_getc_unlocked" = yes
20962 then
20964 cat >>confdefs.h <<\_ACEOF
20965 #define HAVE_GETC_UNLOCKED 1
20966 _ACEOF
20970 # check where readline lives
20971 # save the value of LIBS so we don't actually link Python with readline
20972 LIBS_no_readline=$LIBS
20974 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20975 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
20976 if test "${ac_cv_lib_readline_readline+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lreadline $LIBS"
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 char readline ();
20996 main ()
20998 return readline ();
21000 return 0;
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_link") 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest$ac_exeext &&
21020 $as_test_x conftest$ac_exeext; then
21021 ac_cv_lib_readline_readline=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_lib_readline_readline=no
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21034 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21035 if test $ac_cv_lib_readline_readline = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_LIBREADLINE 1
21038 _ACEOF
21040 LIBS="-lreadline $LIBS"
21044 if test "$ac_cv_have_readline_readline" = no
21045 then
21047 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21048 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
21049 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052 ac_check_lib_save_LIBS=$LIBS
21053 LIBS="-ltermcap $LIBS"
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21061 /* Override any GCC internal prototype to avoid an error.
21062 Use char because int might match the return type of a GCC
21063 builtin and then its argument prototype would still apply. */
21064 #ifdef __cplusplus
21065 extern "C"
21066 #endif
21067 char readline ();
21069 main ()
21071 return readline ();
21073 return 0;
21075 _ACEOF
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_link") 2>conftest.er1
21084 ac_status=$?
21085 grep -v '^ *+' conftest.er1 >conftest.err
21086 rm -f conftest.er1
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest$ac_exeext &&
21093 $as_test_x conftest$ac_exeext; then
21094 ac_cv_lib_termcap_readline=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_cv_lib_termcap_readline=no
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21104 LIBS=$ac_check_lib_save_LIBS
21106 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21107 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21108 if test $ac_cv_lib_termcap_readline = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define HAVE_LIBTERMCAP 1
21111 _ACEOF
21113 LIBS="-ltermcap $LIBS"
21119 # check for readline 2.1
21120 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21121 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
21122 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125 ac_check_lib_save_LIBS=$LIBS
21126 LIBS="-lreadline $LIBS"
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 /* Override any GCC internal prototype to avoid an error.
21135 Use char because int might match the return type of a GCC
21136 builtin and then its argument prototype would still apply. */
21137 #ifdef __cplusplus
21138 extern "C"
21139 #endif
21140 char rl_callback_handler_install ();
21142 main ()
21144 return rl_callback_handler_install ();
21146 return 0;
21148 _ACEOF
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest$ac_exeext &&
21166 $as_test_x conftest$ac_exeext; then
21167 ac_cv_lib_readline_rl_callback_handler_install=yes
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_lib_readline_rl_callback_handler_install=no
21175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21176 conftest$ac_exeext conftest.$ac_ext
21177 LIBS=$ac_check_lib_save_LIBS
21179 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21180 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21181 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21183 cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_RL_CALLBACK 1
21185 _ACEOF
21190 # check for readline 2.2
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <readline/readline.h>
21198 _ACEOF
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 }; then
21215 have_readline=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 have_readline=no
21223 rm -f conftest.err conftest.$ac_ext
21224 if test $have_readline = yes
21225 then
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <readline/readline.h>
21234 _ACEOF
21235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21236 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21240 _ACEOF
21243 rm -f conftest*
21247 # check for readline 4.0
21248 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21249 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
21250 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253 ac_check_lib_save_LIBS=$LIBS
21254 LIBS="-lreadline $LIBS"
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h. */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21262 /* Override any GCC internal prototype to avoid an error.
21263 Use char because int might match the return type of a GCC
21264 builtin and then its argument prototype would still apply. */
21265 #ifdef __cplusplus
21266 extern "C"
21267 #endif
21268 char rl_pre_input_hook ();
21270 main ()
21272 return rl_pre_input_hook ();
21274 return 0;
21276 _ACEOF
21277 rm -f conftest.$ac_objext conftest$ac_exeext
21278 if { (ac_try="$ac_link"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_link") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext &&
21294 $as_test_x conftest$ac_exeext; then
21295 ac_cv_lib_readline_rl_pre_input_hook=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_cv_lib_readline_rl_pre_input_hook=no
21303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21308 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
21309 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_RL_PRE_INPUT_HOOK 1
21313 _ACEOF
21318 # check for readline 4.2
21319 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21320 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
21321 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324 ac_check_lib_save_LIBS=$LIBS
21325 LIBS="-lreadline $LIBS"
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21333 /* Override any GCC internal prototype to avoid an error.
21334 Use char because int might match the return type of a GCC
21335 builtin and then its argument prototype would still apply. */
21336 #ifdef __cplusplus
21337 extern "C"
21338 #endif
21339 char rl_completion_matches ();
21341 main ()
21343 return rl_completion_matches ();
21345 return 0;
21347 _ACEOF
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_link") 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest$ac_exeext &&
21365 $as_test_x conftest$ac_exeext; then
21366 ac_cv_lib_readline_rl_completion_matches=yes
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_lib_readline_rl_completion_matches=no
21374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21375 conftest$ac_exeext conftest.$ac_ext
21376 LIBS=$ac_check_lib_save_LIBS
21378 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21379 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
21380 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21382 cat >>confdefs.h <<\_ACEOF
21383 #define HAVE_RL_COMPLETION_MATCHES 1
21384 _ACEOF
21389 # also in readline 4.2
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 #include <readline/readline.h>
21397 _ACEOF
21398 if { (ac_try="$ac_cpp conftest.$ac_ext"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21405 ac_status=$?
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } >/dev/null && {
21411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 }; then
21414 have_readline=yes
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 have_readline=no
21422 rm -f conftest.err conftest.$ac_ext
21423 if test $have_readline = yes
21424 then
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 #include <readline/readline.h>
21433 _ACEOF
21434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21435 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_RL_CATCH_SIGNAL 1
21439 _ACEOF
21442 rm -f conftest*
21446 # End of readline checks: restore LIBS
21447 LIBS=$LIBS_no_readline
21449 { echo "$as_me:$LINENO: checking for broken nice()" >&5
21450 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
21451 if test "${ac_cv_broken_nice+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21455 if test "$cross_compiling" = yes; then
21456 ac_cv_broken_nice=no
21457 else
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21465 int main()
21467 int val1 = nice(1);
21468 if (val1 != -1 && val1 == nice(2))
21469 exit(0);
21470 exit(1);
21473 _ACEOF
21474 rm -f conftest$ac_exeext
21475 if { (ac_try="$ac_link"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_link") 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485 { (case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_try") 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 ac_cv_broken_nice=yes
21495 else
21496 echo "$as_me: program exited with status $ac_status" >&5
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ( exit $ac_status )
21501 ac_cv_broken_nice=no
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21509 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21510 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
21511 if test "$ac_cv_broken_nice" = yes
21512 then
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_BROKEN_NICE 1
21516 _ACEOF
21520 { echo "$as_me:$LINENO: checking for broken poll()" >&5
21521 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
21522 if test "$cross_compiling" = yes; then
21523 ac_cv_broken_poll=no
21524 else
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21532 #include <poll.h>
21534 int main (void)
21536 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21538 close (42);
21540 int poll_test = poll (&poll_struct, 1, 0);
21542 if (poll_test < 0)
21544 exit(0);
21546 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21548 exit(0);
21550 else
21552 exit(1);
21556 _ACEOF
21557 rm -f conftest$ac_exeext
21558 if { (ac_try="$ac_link"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_link") 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21568 { (case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_try") 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_broken_poll=yes
21578 else
21579 echo "$as_me: program exited with status $ac_status" >&5
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ( exit $ac_status )
21584 ac_cv_broken_poll=no
21586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21591 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
21592 if test "$ac_cv_broken_poll" = yes
21593 then
21595 cat >>confdefs.h <<\_ACEOF
21596 #define HAVE_BROKEN_POLL 1
21597 _ACEOF
21601 # Before we can test tzset, we need to check if struct tm has a tm_zone
21602 # (which is not required by ISO C or UNIX spec) and/or if we support
21603 # tzname[]
21604 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21605 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21606 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609 cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h. */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <sys/types.h>
21616 #include <$ac_cv_struct_tm>
21620 main ()
21622 static struct tm ac_aggr;
21623 if (ac_aggr.tm_zone)
21624 return 0;
21626 return 0;
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21637 ac_status=$?
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21646 ac_cv_member_struct_tm_tm_zone=yes
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 #include <sys/types.h>
21658 #include <$ac_cv_struct_tm>
21662 main ()
21664 static struct tm ac_aggr;
21665 if (sizeof ac_aggr.tm_zone)
21666 return 0;
21668 return 0;
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
21688 ac_cv_member_struct_tm_tm_zone=yes
21689 else
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_cv_member_struct_tm_tm_zone=no
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21703 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define HAVE_STRUCT_TM_TM_ZONE 1
21707 _ACEOF
21712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21714 cat >>confdefs.h <<\_ACEOF
21715 #define HAVE_TM_ZONE 1
21716 _ACEOF
21718 else
21719 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21720 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21721 if test "${ac_cv_have_decl_tzname+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724 cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h. */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 #include <time.h>
21733 main ()
21735 #ifndef tzname
21736 (void) tzname;
21737 #endif
21740 return 0;
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (ac_try="$ac_compile"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21748 esac
21749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_compile") 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } && {
21757 test -z "$ac_c_werror_flag" ||
21758 test ! -s conftest.err
21759 } && test -s conftest.$ac_objext; then
21760 ac_cv_have_decl_tzname=yes
21761 else
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_cv_have_decl_tzname=no
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21771 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21772 if test $ac_cv_have_decl_tzname = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_DECL_TZNAME 1
21776 _ACEOF
21779 else
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_DECL_TZNAME 0
21782 _ACEOF
21788 { echo "$as_me:$LINENO: checking for tzname" >&5
21789 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21790 if test "${ac_cv_var_tzname+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 #include <time.h>
21800 #if !HAVE_DECL_TZNAME
21801 extern char *tzname[];
21802 #endif
21805 main ()
21807 return tzname[0][0];
21809 return 0;
21811 _ACEOF
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21817 esac
21818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21819 (eval "$ac_link") 2>conftest.er1
21820 ac_status=$?
21821 grep -v '^ *+' conftest.er1 >conftest.err
21822 rm -f conftest.er1
21823 cat conftest.err >&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } && {
21826 test -z "$ac_c_werror_flag" ||
21827 test ! -s conftest.err
21828 } && test -s conftest$ac_exeext &&
21829 $as_test_x conftest$ac_exeext; then
21830 ac_cv_var_tzname=yes
21831 else
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_var_tzname=no
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839 conftest$ac_exeext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21842 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21843 if test $ac_cv_var_tzname = yes; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_TZNAME 1
21847 _ACEOF
21853 # check tzset(3) exists and works like we expect it to
21854 { echo "$as_me:$LINENO: checking for working tzset()" >&5
21855 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
21856 if test "${ac_cv_working_tzset+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21860 if test "$cross_compiling" = yes; then
21861 ac_cv_working_tzset=no
21862 else
21863 cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h. */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21870 #include <stdlib.h>
21871 #include <time.h>
21872 #include <string.h>
21874 #if HAVE_TZNAME
21875 extern char *tzname[];
21876 #endif
21878 int main()
21880 /* Note that we need to ensure that not only does tzset(3)
21881 do 'something' with localtime, but it works as documented
21882 in the library reference and as expected by the test suite.
21883 This includes making sure that tzname is set properly if
21884 tm->tm_zone does not exist since it is the alternative way
21885 of getting timezone info.
21887 Red Hat 6.2 doesn't understand the southern hemisphere
21888 after New Year's Day.
21891 time_t groundhogday = 1044144000; /* GMT-based */
21892 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21894 putenv("TZ=UTC+0");
21895 tzset();
21896 if (localtime(&groundhogday)->tm_hour != 0)
21897 exit(1);
21898 #if HAVE_TZNAME
21899 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21900 if (strcmp(tzname[0], "UTC") ||
21901 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21902 exit(1);
21903 #endif
21905 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21906 tzset();
21907 if (localtime(&groundhogday)->tm_hour != 19)
21908 exit(1);
21909 #if HAVE_TZNAME
21910 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21911 exit(1);
21912 #endif
21914 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21915 tzset();
21916 if (localtime(&groundhogday)->tm_hour != 11)
21917 exit(1);
21918 #if HAVE_TZNAME
21919 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21920 exit(1);
21921 #endif
21923 #if HAVE_STRUCT_TM_TM_ZONE
21924 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21925 exit(1);
21926 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21927 exit(1);
21928 #endif
21930 exit(0);
21933 _ACEOF
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>&5
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_try") 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 ac_cv_working_tzset=yes
21955 else
21956 echo "$as_me: program exited with status $ac_status" >&5
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ( exit $ac_status )
21961 ac_cv_working_tzset=no
21963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21970 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
21971 if test "$ac_cv_working_tzset" = yes
21972 then
21974 cat >>confdefs.h <<\_ACEOF
21975 #define HAVE_WORKING_TZSET 1
21976 _ACEOF
21980 # Look for subsecond timestamps in struct stat
21981 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21982 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
21983 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 else
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h. */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 #include <sys/stat.h>
21994 main ()
21997 struct stat st;
21998 st.st_mtim.tv_nsec = 1;
22001 return 0;
22003 _ACEOF
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_cv_stat_tv_nsec=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_cv_stat_tv_nsec=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22033 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22034 if test "$ac_cv_stat_tv_nsec" = yes
22035 then
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_STAT_TV_NSEC 1
22039 _ACEOF
22043 # Look for BSD style subsecond timestamps in struct stat
22044 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22045 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
22046 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #include <sys/stat.h>
22057 main ()
22060 struct stat st;
22061 st.st_mtimespec.tv_nsec = 1;
22064 return 0;
22066 _ACEOF
22067 rm -f conftest.$ac_objext
22068 if { (ac_try="$ac_compile"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22072 esac
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_compile") 2>conftest.er1
22075 ac_status=$?
22076 grep -v '^ *+' conftest.er1 >conftest.err
22077 rm -f conftest.er1
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && {
22081 test -z "$ac_c_werror_flag" ||
22082 test ! -s conftest.err
22083 } && test -s conftest.$ac_objext; then
22084 ac_cv_stat_tv_nsec2=yes
22085 else
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ac_cv_stat_tv_nsec2=no
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22096 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22097 if test "$ac_cv_stat_tv_nsec2" = yes
22098 then
22100 cat >>confdefs.h <<\_ACEOF
22101 #define HAVE_STAT_TV_NSEC2 1
22102 _ACEOF
22106 # On HP/UX 11.0, mvwdelch is a block with a return statement
22107 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22108 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
22109 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <curses.h>
22120 main ()
22123 int rtn;
22124 rtn = mvwdelch(0,0,0);
22127 return 0;
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest.$ac_objext; then
22147 ac_cv_mvwdelch_is_expression=yes
22148 else
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_cv_mvwdelch_is_expression=no
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22159 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
22161 if test "$ac_cv_mvwdelch_is_expression" = yes
22162 then
22164 cat >>confdefs.h <<\_ACEOF
22165 #define MVWDELCH_IS_EXPRESSION 1
22166 _ACEOF
22170 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22171 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
22172 if test "${ac_cv_window_has_flags+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <curses.h>
22183 main ()
22186 WINDOW *w;
22187 w->_flags = 0;
22190 return 0;
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_cv_window_has_flags=yes
22211 else
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_cv_window_has_flags=no
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22222 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
22225 if test "$ac_cv_window_has_flags" = yes
22226 then
22228 cat >>confdefs.h <<\_ACEOF
22229 #define WINDOW_HAS_FLAGS 1
22230 _ACEOF
22234 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
22235 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 #include <curses.h>
22244 main ()
22246 void *x=is_term_resized
22248 return 0;
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_CURSES_IS_TERM_RESIZED 1
22271 _ACEOF
22273 { echo "$as_me:$LINENO: result: yes" >&5
22274 echo "${ECHO_T}yes" >&6; }
22275 else
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 { echo "$as_me:$LINENO: result: no" >&5
22280 echo "${ECHO_T}no" >&6; }
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: checking for resize_term" >&5
22287 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
22288 cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h. */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <curses.h>
22296 main ()
22298 void *x=resize_term
22300 return 0;
22302 _ACEOF
22303 rm -f conftest.$ac_objext
22304 if { (ac_try="$ac_compile"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_compile") 2>conftest.er1
22311 ac_status=$?
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest.$ac_objext; then
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_CURSES_RESIZE_TERM 1
22323 _ACEOF
22325 { echo "$as_me:$LINENO: result: yes" >&5
22326 echo "${ECHO_T}yes" >&6; }
22327 else
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 { echo "$as_me:$LINENO: result: no" >&5
22332 echo "${ECHO_T}no" >&6; }
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: checking for resizeterm" >&5
22339 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h. */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include <curses.h>
22348 main ()
22350 void *x=resizeterm
22352 return 0;
22354 _ACEOF
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22373 cat >>confdefs.h <<\_ACEOF
22374 #define HAVE_CURSES_RESIZETERM 1
22375 _ACEOF
22377 { echo "$as_me:$LINENO: result: yes" >&5
22378 echo "${ECHO_T}yes" >&6; }
22379 else
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 { echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6; }
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22391 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
22393 if test -r /dev/ptmx
22394 then
22395 { echo "$as_me:$LINENO: result: yes" >&5
22396 echo "${ECHO_T}yes" >&6; }
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_DEV_PTMX 1
22400 _ACEOF
22402 else
22403 { echo "$as_me:$LINENO: result: no" >&5
22404 echo "${ECHO_T}no" >&6; }
22407 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22408 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
22410 if test -r /dev/ptc
22411 then
22412 { echo "$as_me:$LINENO: result: yes" >&5
22413 echo "${ECHO_T}yes" >&6; }
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_DEV_PTC 1
22417 _ACEOF
22419 else
22420 { echo "$as_me:$LINENO: result: no" >&5
22421 echo "${ECHO_T}no" >&6; }
22424 case $MACHDEP in
22425 darwin)
22426 { echo "$as_me:$LINENO: checking for kOSADebuggerCreateSession" >&5
22427 echo $ECHO_N "checking for kOSADebuggerCreateSession... $ECHO_C" >&6; }
22428 OLD_CFLAGS="${CFLAGS}"
22429 CFLAGS="${CFLAGS} -Wall -framework Carbon"
22430 cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h. */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 #include <Carbon/Carbon.h>
22438 main ()
22440 kOSADebuggerCreateSession
22442 return 0;
22444 _ACEOF
22445 rm -f conftest.$ac_objext
22446 if { (ac_try="$ac_compile"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_compile") 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && {
22459 test -z "$ac_c_werror_flag" ||
22460 test ! -s conftest.err
22461 } && test -s conftest.$ac_objext; then
22462 have_osa_debug=yes
22463 else
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 have_osa_debug=no
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 if test $have_osa_debug = yes
22472 then
22473 { echo "$as_me:$LINENO: result: yes" >&5
22474 echo "${ECHO_T}yes" >&6; }
22476 cat >>confdefs.h <<\_ACEOF
22477 #define HAVE_OSA_DEBUG 1
22478 _ACEOF
22480 else
22481 { echo "$as_me:$LINENO: result: no" >&5
22482 echo "${ECHO_T}no" >&6; }
22484 CFLAGS="${OLD_CFLAGS}"
22486 esac
22490 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22491 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
22492 if test "$cross_compiling" = yes; then
22493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22494 See \`config.log' for more details." >&5
22495 echo "$as_me: error: cannot run test program while cross compiling
22496 See \`config.log' for more details." >&2;}
22497 { (exit 1); exit 1; }; }
22498 else
22499 cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h. */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 #include <stdio.h>
22506 #include <stddef.h>
22507 #include <string.h>
22509 #ifdef HAVE_SYS_TYPES_H
22510 #include <sys/types.h>
22511 #endif
22513 #ifdef HAVE_SSIZE_T
22514 typedef ssize_t Py_ssize_t;
22515 #elif SIZEOF_VOID_P == SIZEOF_LONG
22516 typedef long Py_ssize_t;
22517 #else
22518 typedef int Py_ssize_t;
22519 #endif
22521 int main()
22523 char buffer[256];
22525 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22526 return 1;
22528 if (strcmp(buffer, "123"))
22529 return 1;
22531 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22532 return 1;
22534 if (strcmp(buffer, "-123"))
22535 return 1;
22537 return 0;
22539 _ACEOF
22540 rm -f conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22551 { (case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_try") 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 { echo "$as_me:$LINENO: result: yes" >&5
22561 echo "${ECHO_T}yes" >&6; }
22563 cat >>confdefs.h <<\_ACEOF
22564 #define PY_FORMAT_SIZE_T "z"
22565 _ACEOF
22567 else
22568 echo "$as_me: program exited with status $ac_status" >&5
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ( exit $ac_status )
22573 { echo "$as_me:$LINENO: result: no" >&5
22574 echo "${ECHO_T}no" >&6; }
22576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22582 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22583 if test "${ac_cv_type_socklen_t+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h. */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22593 #ifdef HAVE_SYS_TYPES_H
22594 #include <sys/types.h>
22595 #endif
22596 #ifdef HAVE_SYS_SOCKET_H
22597 #include <sys/socket.h>
22598 #endif
22601 typedef socklen_t ac__type_new_;
22603 main ()
22605 if ((ac__type_new_ *) 0)
22606 return 0;
22607 if (sizeof (ac__type_new_))
22608 return 0;
22610 return 0;
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22621 ac_status=$?
22622 grep -v '^ *+' conftest.er1 >conftest.err
22623 rm -f conftest.er1
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_type_socklen_t=yes
22631 else
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_cv_type_socklen_t=no
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22641 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22642 if test $ac_cv_type_socklen_t = yes; then
22644 else
22646 cat >>confdefs.h <<\_ACEOF
22647 #define socklen_t int
22648 _ACEOF
22655 for h in `(cd $srcdir;echo Python/thread_*.h)`
22657 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22658 done
22661 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22662 { echo "$as_me:$LINENO: checking for build directories" >&5
22663 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
22664 for dir in $SRCDIRS; do
22665 if test ! -d $dir; then
22666 mkdir $dir
22668 done
22669 { echo "$as_me:$LINENO: result: done" >&5
22670 echo "${ECHO_T}done" >&6; }
22672 # generate output files
22673 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option --config-cache.
22679 # It is not useful on other systems. If it contains results you don't
22680 # want to keep, you may remove or edit it.
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22689 _ACEOF
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698 eval ac_val=\$$ac_var
22699 case $ac_val in #(
22700 *${as_nl}*)
22701 case $ac_var in #(
22702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22704 esac
22705 case $ac_var in #(
22706 _ | IFS | as_nl) ;; #(
22707 *) $as_unset $ac_var ;;
22708 esac ;;
22709 esac
22710 done
22712 (set) 2>&1 |
22713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714 *${as_nl}ac_space=\ *)
22715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
22717 sed -n \
22718 "s/'/'\\\\''/g;
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720 ;; #(
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
22723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22725 esac |
22726 sort
22728 sed '
22729 /^ac_cv_env_/b end
22730 t clear
22731 :clear
22732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733 t end
22734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735 :end' >>confcache
22736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737 if test -w "$cache_file"; then
22738 test "x$cache_file" != "x/dev/null" &&
22739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741 cat confcache >$cache_file
22742 else
22743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22747 rm -f confcache
22749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22753 DEFS=-DHAVE_CONFIG_H
22755 ac_libobjs=
22756 ac_ltlibobjs=
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758 # 1. Remove the extension, and $U if already installed.
22759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760 ac_i=`echo "$ac_i" | sed "$ac_script"`
22761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
22763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22765 done
22766 LIBOBJS=$ac_libobjs
22768 LTLIBOBJS=$ac_ltlibobjs
22772 : ${CONFIG_STATUS=./config.status}
22773 ac_clean_files_save=$ac_clean_files
22774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22777 cat >$CONFIG_STATUS <<_ACEOF
22778 #! $SHELL
22779 # Generated by $as_me.
22780 # Run this file to recreate the current configuration.
22781 # Compiler output produced by configure, useful for debugging
22782 # configure, is in config.log if it exists.
22784 debug=false
22785 ac_cs_recheck=false
22786 ac_cs_silent=false
22787 SHELL=\${CONFIG_SHELL-$SHELL}
22788 _ACEOF
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22791 ## --------------------- ##
22792 ## M4sh Initialization. ##
22793 ## --------------------- ##
22795 # Be more Bourne compatible
22796 DUALCASE=1; export DUALCASE # for MKS sh
22797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22798 emulate sh
22799 NULLCMD=:
22800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22801 # is contrary to our usage. Disable this feature.
22802 alias -g '${1+"$@"}'='"$@"'
22803 setopt NO_GLOB_SUBST
22804 else
22805 case `(set -o) 2>/dev/null` in
22806 *posix*) set -o posix ;;
22807 esac
22814 # PATH needs CR
22815 # Avoid depending upon Character Ranges.
22816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22819 as_cr_digits='0123456789'
22820 as_cr_alnum=$as_cr_Letters$as_cr_digits
22822 # The user is always right.
22823 if test "${PATH_SEPARATOR+set}" != set; then
22824 echo "#! /bin/sh" >conf$$.sh
22825 echo "exit 0" >>conf$$.sh
22826 chmod +x conf$$.sh
22827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22828 PATH_SEPARATOR=';'
22829 else
22830 PATH_SEPARATOR=:
22832 rm -f conf$$.sh
22835 # Support unset when possible.
22836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22837 as_unset=unset
22838 else
22839 as_unset=false
22843 # IFS
22844 # We need space, tab and new line, in precisely that order. Quoting is
22845 # there to prevent editors from complaining about space-tab.
22846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22847 # splitting by setting IFS to empty value.)
22848 as_nl='
22850 IFS=" "" $as_nl"
22852 # Find who we are. Look in the path if we contain no directory separator.
22853 case $0 in
22854 *[\\/]* ) as_myself=$0 ;;
22855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22856 for as_dir in $PATH
22858 IFS=$as_save_IFS
22859 test -z "$as_dir" && as_dir=.
22860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22861 done
22862 IFS=$as_save_IFS
22865 esac
22866 # We did not find ourselves, most probably we were run as `sh COMMAND'
22867 # in which case we are not to be found in the path.
22868 if test "x$as_myself" = x; then
22869 as_myself=$0
22871 if test ! -f "$as_myself"; then
22872 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22873 { (exit 1); exit 1; }
22876 # Work around bugs in pre-3.0 UWIN ksh.
22877 for as_var in ENV MAIL MAILPATH
22878 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22879 done
22880 PS1='$ '
22881 PS2='> '
22882 PS4='+ '
22884 # NLS nuisances.
22885 for as_var in \
22886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22888 LC_TELEPHONE LC_TIME
22890 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22891 eval $as_var=C; export $as_var
22892 else
22893 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22895 done
22897 # Required to use basename.
22898 if expr a : '\(a\)' >/dev/null 2>&1 &&
22899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22900 as_expr=expr
22901 else
22902 as_expr=false
22905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22906 as_basename=basename
22907 else
22908 as_basename=false
22912 # Name of the executable.
22913 as_me=`$as_basename -- "$0" ||
22914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22915 X"$0" : 'X\(//\)$' \| \
22916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22917 echo X/"$0" |
22918 sed '/^.*\/\([^/][^/]*\)\/*$/{
22919 s//\1/
22922 /^X\/\(\/\/\)$/{
22923 s//\1/
22926 /^X\/\(\/\).*/{
22927 s//\1/
22930 s/.*/./; q'`
22932 # CDPATH.
22933 $as_unset CDPATH
22937 as_lineno_1=$LINENO
22938 as_lineno_2=$LINENO
22939 test "x$as_lineno_1" != "x$as_lineno_2" &&
22940 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22943 # uniformly replaced by the line number. The first 'sed' inserts a
22944 # line-number line after each line using $LINENO; the second 'sed'
22945 # does the real work. The second script uses 'N' to pair each
22946 # line-number line with the line containing $LINENO, and appends
22947 # trailing '-' during substitution so that $LINENO is not a special
22948 # case at line end.
22949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22950 # scripts with optimization help from Paolo Bonzini. Blame Lee
22951 # E. McMahon (1931-1989) for sed's syntax. :-)
22952 sed -n '
22954 /[$]LINENO/=
22955 ' <$as_myself |
22956 sed '
22957 s/[$]LINENO.*/&-/
22958 t lineno
22960 :lineno
22962 :loop
22963 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22964 t loop
22965 s/-\n.*//
22966 ' >$as_me.lineno &&
22967 chmod +x "$as_me.lineno" ||
22968 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22969 { (exit 1); exit 1; }; }
22971 # Don't try to exec as it changes $[0], causing all sort of problems
22972 # (the dirname of $[0] is not the place where we might find the
22973 # original and so on. Autoconf is especially sensitive to this).
22974 . "./$as_me.lineno"
22975 # Exit status is that of the last command.
22976 exit
22980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22981 as_dirname=dirname
22982 else
22983 as_dirname=false
22986 ECHO_C= ECHO_N= ECHO_T=
22987 case `echo -n x` in
22988 -n*)
22989 case `echo 'x\c'` in
22990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22991 *) ECHO_C='\c';;
22992 esac;;
22994 ECHO_N='-n';;
22995 esac
22997 if expr a : '\(a\)' >/dev/null 2>&1 &&
22998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22999 as_expr=expr
23000 else
23001 as_expr=false
23004 rm -f conf$$ conf$$.exe conf$$.file
23005 if test -d conf$$.dir; then
23006 rm -f conf$$.dir/conf$$.file
23007 else
23008 rm -f conf$$.dir
23009 mkdir conf$$.dir
23011 echo >conf$$.file
23012 if ln -s conf$$.file conf$$ 2>/dev/null; then
23013 as_ln_s='ln -s'
23014 # ... but there are two gotchas:
23015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23017 # In both cases, we have to default to `cp -p'.
23018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23019 as_ln_s='cp -p'
23020 elif ln conf$$.file conf$$ 2>/dev/null; then
23021 as_ln_s=ln
23022 else
23023 as_ln_s='cp -p'
23025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23026 rmdir conf$$.dir 2>/dev/null
23028 if mkdir -p . 2>/dev/null; then
23029 as_mkdir_p=:
23030 else
23031 test -d ./-p && rmdir ./-p
23032 as_mkdir_p=false
23035 if test -x / >/dev/null 2>&1; then
23036 as_test_x='test -x'
23037 else
23038 if ls -dL / >/dev/null 2>&1; then
23039 as_ls_L_option=L
23040 else
23041 as_ls_L_option=
23043 as_test_x='
23044 eval sh -c '\''
23045 if test -d "$1"; then
23046 test -d "$1/.";
23047 else
23048 case $1 in
23049 -*)set "./$1";;
23050 esac;
23051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23052 ???[sx]*):;;*)false;;esac;fi
23053 '\'' sh
23056 as_executable_p=$as_test_x
23058 # Sed expression to map a string onto a valid CPP name.
23059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23061 # Sed expression to map a string onto a valid variable name.
23062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23065 exec 6>&1
23067 # Save the log message, to keep $[0] and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling.
23070 ac_log="
23071 This file was extended by python $as_me 2.5, which was
23072 generated by GNU Autoconf 2.61. Invocation command line was
23074 CONFIG_FILES = $CONFIG_FILES
23075 CONFIG_HEADERS = $CONFIG_HEADERS
23076 CONFIG_LINKS = $CONFIG_LINKS
23077 CONFIG_COMMANDS = $CONFIG_COMMANDS
23078 $ $0 $@
23080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23083 _ACEOF
23085 cat >>$CONFIG_STATUS <<_ACEOF
23086 # Files that config.status was made for.
23087 config_files="$ac_config_files"
23088 config_headers="$ac_config_headers"
23090 _ACEOF
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23093 ac_cs_usage="\
23094 \`$as_me' instantiates files from templates according to the
23095 current configuration.
23097 Usage: $0 [OPTIONS] [FILE]...
23099 -h, --help print this help, then exit
23100 -V, --version print version number and configuration settings, then exit
23101 -q, --quiet do not print progress messages
23102 -d, --debug don't remove temporary files
23103 --recheck update $as_me by reconfiguring in the same conditions
23104 --file=FILE[:TEMPLATE]
23105 instantiate the configuration file FILE
23106 --header=FILE[:TEMPLATE]
23107 instantiate the configuration header FILE
23109 Configuration files:
23110 $config_files
23112 Configuration headers:
23113 $config_headers
23115 Report bugs to <bug-autoconf@gnu.org>."
23117 _ACEOF
23118 cat >>$CONFIG_STATUS <<_ACEOF
23119 ac_cs_version="\\
23120 python config.status 2.5
23121 configured by $0, generated by GNU Autoconf 2.61,
23122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23124 Copyright (C) 2006 Free Software Foundation, Inc.
23125 This config.status script is free software; the Free Software Foundation
23126 gives unlimited permission to copy, distribute and modify it."
23128 ac_pwd='$ac_pwd'
23129 srcdir='$srcdir'
23130 INSTALL='$INSTALL'
23131 _ACEOF
23133 cat >>$CONFIG_STATUS <<\_ACEOF
23134 # If no file are specified by the user, then we need to provide default
23135 # value. By we need to know if files were specified by the user.
23136 ac_need_defaults=:
23137 while test $# != 0
23139 case $1 in
23140 --*=*)
23141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23143 ac_shift=:
23146 ac_option=$1
23147 ac_optarg=$2
23148 ac_shift=shift
23150 esac
23152 case $ac_option in
23153 # Handling of the options.
23154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23155 ac_cs_recheck=: ;;
23156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23157 echo "$ac_cs_version"; exit ;;
23158 --debug | --debu | --deb | --de | --d | -d )
23159 debug=: ;;
23160 --file | --fil | --fi | --f )
23161 $ac_shift
23162 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23163 ac_need_defaults=false;;
23164 --header | --heade | --head | --hea )
23165 $ac_shift
23166 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23167 ac_need_defaults=false;;
23168 --he | --h)
23169 # Conflict between --help and --header
23170 { echo "$as_me: error: ambiguous option: $1
23171 Try \`$0 --help' for more information." >&2
23172 { (exit 1); exit 1; }; };;
23173 --help | --hel | -h )
23174 echo "$ac_cs_usage"; exit ;;
23175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23177 ac_cs_silent=: ;;
23179 # This is an error.
23180 -*) { echo "$as_me: error: unrecognized option: $1
23181 Try \`$0 --help' for more information." >&2
23182 { (exit 1); exit 1; }; } ;;
23184 *) ac_config_targets="$ac_config_targets $1"
23185 ac_need_defaults=false ;;
23187 esac
23188 shift
23189 done
23191 ac_configure_extra_args=
23193 if $ac_cs_silent; then
23194 exec 6>/dev/null
23195 ac_configure_extra_args="$ac_configure_extra_args --silent"
23198 _ACEOF
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 if \$ac_cs_recheck; then
23201 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23202 CONFIG_SHELL=$SHELL
23203 export CONFIG_SHELL
23204 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23207 _ACEOF
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23209 exec 5>>config.log
23211 echo
23212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23213 ## Running $as_me. ##
23214 _ASBOX
23215 echo "$ac_log"
23216 } >&5
23218 _ACEOF
23219 cat >>$CONFIG_STATUS <<_ACEOF
23220 _ACEOF
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23224 # Handling of arguments.
23225 for ac_config_target in $ac_config_targets
23227 case $ac_config_target in
23228 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
23229 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
23230 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23231 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23232 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
23233 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
23235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23237 { (exit 1); exit 1; }; };;
23238 esac
23239 done
23242 # If the user did not use the arguments to specify the items to instantiate,
23243 # then the envvar interface is used. Set only those that are not.
23244 # We use the long form for the default assignment because of an extremely
23245 # bizarre bug on SunOS 4.1.3.
23246 if $ac_need_defaults; then
23247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23251 # Have a temporary directory for convenience. Make it in the build tree
23252 # simply because there is no reason against having it here, and in addition,
23253 # creating and moving files from /tmp can sometimes cause problems.
23254 # Hook for its removal unless debugging.
23255 # Note that there is a small window in which the directory will not be cleaned:
23256 # after its creation but before its name has been assigned to `$tmp'.
23257 $debug ||
23259 tmp=
23260 trap 'exit_status=$?
23261 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23263 trap '{ (exit 1); exit 1; }' 1 2 13 15
23265 # Create a (secure) tmp directory for tmp files.
23268 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23269 test -n "$tmp" && test -d "$tmp"
23270 } ||
23272 tmp=./conf$$-$RANDOM
23273 (umask 077 && mkdir "$tmp")
23274 } ||
23276 echo "$me: cannot create a temporary directory in ." >&2
23277 { (exit 1); exit 1; }
23281 # Set up the sed scripts for CONFIG_FILES section.
23284 # No need to generate the scripts if there are no CONFIG_FILES.
23285 # This happens for instance when ./config.status config.h
23286 if test -n "$CONFIG_FILES"; then
23288 _ACEOF
23292 ac_delim='%!_!# '
23293 for ac_last_try in false false false false false :; do
23294 cat >conf$$subs.sed <<_ACEOF
23295 SHELL!$SHELL$ac_delim
23296 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23297 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23298 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23299 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23300 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23301 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23302 exec_prefix!$exec_prefix$ac_delim
23303 prefix!$prefix$ac_delim
23304 program_transform_name!$program_transform_name$ac_delim
23305 bindir!$bindir$ac_delim
23306 sbindir!$sbindir$ac_delim
23307 libexecdir!$libexecdir$ac_delim
23308 datarootdir!$datarootdir$ac_delim
23309 datadir!$datadir$ac_delim
23310 sysconfdir!$sysconfdir$ac_delim
23311 sharedstatedir!$sharedstatedir$ac_delim
23312 localstatedir!$localstatedir$ac_delim
23313 includedir!$includedir$ac_delim
23314 oldincludedir!$oldincludedir$ac_delim
23315 docdir!$docdir$ac_delim
23316 infodir!$infodir$ac_delim
23317 htmldir!$htmldir$ac_delim
23318 dvidir!$dvidir$ac_delim
23319 pdfdir!$pdfdir$ac_delim
23320 psdir!$psdir$ac_delim
23321 libdir!$libdir$ac_delim
23322 localedir!$localedir$ac_delim
23323 mandir!$mandir$ac_delim
23324 DEFS!$DEFS$ac_delim
23325 ECHO_C!$ECHO_C$ac_delim
23326 ECHO_N!$ECHO_N$ac_delim
23327 ECHO_T!$ECHO_T$ac_delim
23328 LIBS!$LIBS$ac_delim
23329 build_alias!$build_alias$ac_delim
23330 host_alias!$host_alias$ac_delim
23331 target_alias!$target_alias$ac_delim
23332 VERSION!$VERSION$ac_delim
23333 SOVERSION!$SOVERSION$ac_delim
23334 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
23335 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
23336 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
23337 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
23338 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
23339 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
23340 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
23341 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
23342 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
23343 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
23344 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
23345 MACHDEP!$MACHDEP$ac_delim
23346 SGI_ABI!$SGI_ABI$ac_delim
23347 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
23348 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
23349 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
23350 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
23351 CC!$CC$ac_delim
23352 CFLAGS!$CFLAGS$ac_delim
23353 LDFLAGS!$LDFLAGS$ac_delim
23354 CPPFLAGS!$CPPFLAGS$ac_delim
23355 ac_ct_CC!$ac_ct_CC$ac_delim
23356 EXEEXT!$EXEEXT$ac_delim
23357 OBJEXT!$OBJEXT$ac_delim
23358 CXX!$CXX$ac_delim
23359 MAINCC!$MAINCC$ac_delim
23360 CPP!$CPP$ac_delim
23361 GREP!$GREP$ac_delim
23362 EGREP!$EGREP$ac_delim
23363 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
23364 LIBRARY!$LIBRARY$ac_delim
23365 LDLIBRARY!$LDLIBRARY$ac_delim
23366 DLLLIBRARY!$DLLLIBRARY$ac_delim
23367 BLDLIBRARY!$BLDLIBRARY$ac_delim
23368 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
23369 INSTSONAME!$INSTSONAME$ac_delim
23370 RUNSHARED!$RUNSHARED$ac_delim
23371 LINKCC!$LINKCC$ac_delim
23372 RANLIB!$RANLIB$ac_delim
23373 AR!$AR$ac_delim
23374 SVNVERSION!$SVNVERSION$ac_delim
23375 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23376 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23377 INSTALL_DATA!$INSTALL_DATA$ac_delim
23378 LN!$LN$ac_delim
23379 OPT!$OPT$ac_delim
23380 BASECFLAGS!$BASECFLAGS$ac_delim
23381 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
23382 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
23383 SO!$SO$ac_delim
23384 LDSHARED!$LDSHARED$ac_delim
23385 BLDSHARED!$BLDSHARED$ac_delim
23386 CCSHARED!$CCSHARED$ac_delim
23387 LINKFORSHARED!$LINKFORSHARED$ac_delim
23388 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
23389 SHLIBS!$SHLIBS$ac_delim
23390 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
23391 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
23392 _ACEOF
23394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23395 break
23396 elif $ac_last_try; then
23397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23399 { (exit 1); exit 1; }; }
23400 else
23401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23403 done
23405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23406 if test -n "$ac_eof"; then
23407 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23408 ac_eof=`expr $ac_eof + 1`
23411 cat >>$CONFIG_STATUS <<_ACEOF
23412 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23414 _ACEOF
23415 sed '
23416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23417 s/^/s,@/; s/!/@,|#_!!_#|/
23420 s/'"$ac_delim"'$/,g/; t
23421 s/$/\\/; p
23422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23423 ' >>$CONFIG_STATUS <conf$$subs.sed
23424 rm -f conf$$subs.sed
23425 cat >>$CONFIG_STATUS <<_ACEOF
23426 CEOF$ac_eof
23427 _ACEOF
23430 ac_delim='%!_!# '
23431 for ac_last_try in false false false false false :; do
23432 cat >conf$$subs.sed <<_ACEOF
23433 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
23434 LDLAST!$LDLAST$ac_delim
23435 THREADOBJ!$THREADOBJ$ac_delim
23436 DLINCLDIR!$DLINCLDIR$ac_delim
23437 DYNLOADFILE!$DYNLOADFILE$ac_delim
23438 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
23439 TRUE!$TRUE$ac_delim
23440 LIBOBJS!$LIBOBJS$ac_delim
23441 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
23442 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
23443 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
23444 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
23445 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
23446 LIBM!$LIBM$ac_delim
23447 LIBC!$LIBC$ac_delim
23448 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
23449 THREADHEADERS!$THREADHEADERS$ac_delim
23450 SRCDIRS!$SRCDIRS$ac_delim
23451 LTLIBOBJS!$LTLIBOBJS$ac_delim
23452 _ACEOF
23454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23455 break
23456 elif $ac_last_try; then
23457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23459 { (exit 1); exit 1; }; }
23460 else
23461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23463 done
23465 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23466 if test -n "$ac_eof"; then
23467 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23468 ac_eof=`expr $ac_eof + 1`
23471 cat >>$CONFIG_STATUS <<_ACEOF
23472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23474 _ACEOF
23475 sed '
23476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23477 s/^/s,@/; s/!/@,|#_!!_#|/
23480 s/'"$ac_delim"'$/,g/; t
23481 s/$/\\/; p
23482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23483 ' >>$CONFIG_STATUS <conf$$subs.sed
23484 rm -f conf$$subs.sed
23485 cat >>$CONFIG_STATUS <<_ACEOF
23486 :end
23487 s/|#_!!_#|//g
23488 CEOF$ac_eof
23489 _ACEOF
23492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23494 # trailing colons and then remove the whole line if VPATH becomes empty
23495 # (actually we leave an empty line to preserve line numbers).
23496 if test "x$srcdir" = x.; then
23497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23498 s/:*\$(srcdir):*/:/
23499 s/:*\${srcdir}:*/:/
23500 s/:*@srcdir@:*/:/
23501 s/^\([^=]*=[ ]*\):*/\1/
23502 s/:*$//
23503 s/^[^=]*=[ ]*$//
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 fi # test -n "$CONFIG_FILES"
23511 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
23513 case $ac_tag in
23514 :[FHLC]) ac_mode=$ac_tag; continue;;
23515 esac
23516 case $ac_mode$ac_tag in
23517 :[FHL]*:*);;
23518 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23520 { (exit 1); exit 1; }; };;
23521 :[FH]-) ac_tag=-:-;;
23522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23523 esac
23524 ac_save_IFS=$IFS
23525 IFS=:
23526 set x $ac_tag
23527 IFS=$ac_save_IFS
23528 shift
23529 ac_file=$1
23530 shift
23532 case $ac_mode in
23533 :L) ac_source=$1;;
23534 :[FH])
23535 ac_file_inputs=
23536 for ac_f
23538 case $ac_f in
23539 -) ac_f="$tmp/stdin";;
23540 *) # Look for the file first in the build tree, then in the source tree
23541 # (if the path is not absolute). The absolute path cannot be DOS-style,
23542 # because $ac_f cannot contain `:'.
23543 test -f "$ac_f" ||
23544 case $ac_f in
23545 [\\/$]*) false;;
23546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23547 esac ||
23548 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23550 { (exit 1); exit 1; }; };;
23551 esac
23552 ac_file_inputs="$ac_file_inputs $ac_f"
23553 done
23555 # Let's still pretend it is `configure' which instantiates (i.e., don't
23556 # use $as_me), people would be surprised to read:
23557 # /* config.h. Generated by config.status. */
23558 configure_input="Generated from "`IFS=:
23559 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23560 if test x"$ac_file" != x-; then
23561 configure_input="$ac_file. $configure_input"
23562 { echo "$as_me:$LINENO: creating $ac_file" >&5
23563 echo "$as_me: creating $ac_file" >&6;}
23566 case $ac_tag in
23567 *:-:* | *:-) cat >"$tmp/stdin";;
23568 esac
23570 esac
23572 ac_dir=`$as_dirname -- "$ac_file" ||
23573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23574 X"$ac_file" : 'X\(//\)[^/]' \| \
23575 X"$ac_file" : 'X\(//\)$' \| \
23576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23577 echo X"$ac_file" |
23578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23579 s//\1/
23582 /^X\(\/\/\)[^/].*/{
23583 s//\1/
23586 /^X\(\/\/\)$/{
23587 s//\1/
23590 /^X\(\/\).*/{
23591 s//\1/
23594 s/.*/./; q'`
23595 { as_dir="$ac_dir"
23596 case $as_dir in #(
23597 -*) as_dir=./$as_dir;;
23598 esac
23599 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23600 as_dirs=
23601 while :; do
23602 case $as_dir in #(
23603 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23604 *) as_qdir=$as_dir;;
23605 esac
23606 as_dirs="'$as_qdir' $as_dirs"
23607 as_dir=`$as_dirname -- "$as_dir" ||
23608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23609 X"$as_dir" : 'X\(//\)[^/]' \| \
23610 X"$as_dir" : 'X\(//\)$' \| \
23611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23612 echo X"$as_dir" |
23613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23614 s//\1/
23617 /^X\(\/\/\)[^/].*/{
23618 s//\1/
23621 /^X\(\/\/\)$/{
23622 s//\1/
23625 /^X\(\/\).*/{
23626 s//\1/
23629 s/.*/./; q'`
23630 test -d "$as_dir" && break
23631 done
23632 test -z "$as_dirs" || eval "mkdir $as_dirs"
23633 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23635 { (exit 1); exit 1; }; }; }
23636 ac_builddir=.
23638 case "$ac_dir" in
23639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23642 # A ".." for each directory in $ac_dir_suffix.
23643 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23644 case $ac_top_builddir_sub in
23645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23647 esac ;;
23648 esac
23649 ac_abs_top_builddir=$ac_pwd
23650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23651 # for backward compatibility:
23652 ac_top_builddir=$ac_top_build_prefix
23654 case $srcdir in
23655 .) # We are building in place.
23656 ac_srcdir=.
23657 ac_top_srcdir=$ac_top_builddir_sub
23658 ac_abs_top_srcdir=$ac_pwd ;;
23659 [\\/]* | ?:[\\/]* ) # Absolute name.
23660 ac_srcdir=$srcdir$ac_dir_suffix;
23661 ac_top_srcdir=$srcdir
23662 ac_abs_top_srcdir=$srcdir ;;
23663 *) # Relative name.
23664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23665 ac_top_srcdir=$ac_top_build_prefix$srcdir
23666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23667 esac
23668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23671 case $ac_mode in
23674 # CONFIG_FILE
23677 case $INSTALL in
23678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23680 esac
23681 _ACEOF
23683 cat >>$CONFIG_STATUS <<\_ACEOF
23684 # If the template does not know about datarootdir, expand it.
23685 # FIXME: This hack should be removed a few years after 2.60.
23686 ac_datarootdir_hack=; ac_datarootdir_seen=
23688 case `sed -n '/datarootdir/ {
23692 /@datadir@/p
23693 /@docdir@/p
23694 /@infodir@/p
23695 /@localedir@/p
23696 /@mandir@/p
23697 ' $ac_file_inputs` in
23698 *datarootdir*) ac_datarootdir_seen=yes;;
23699 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23700 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23701 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23702 _ACEOF
23703 cat >>$CONFIG_STATUS <<_ACEOF
23704 ac_datarootdir_hack='
23705 s&@datadir@&$datadir&g
23706 s&@docdir@&$docdir&g
23707 s&@infodir@&$infodir&g
23708 s&@localedir@&$localedir&g
23709 s&@mandir@&$mandir&g
23710 s&\\\${datarootdir}&$datarootdir&g' ;;
23711 esac
23712 _ACEOF
23714 # Neutralize VPATH when `$srcdir' = `.'.
23715 # Shell code in configure.ac might set extrasub.
23716 # FIXME: do we really want to maintain this feature?
23717 cat >>$CONFIG_STATUS <<_ACEOF
23718 sed "$ac_vpsub
23719 $extrasub
23720 _ACEOF
23721 cat >>$CONFIG_STATUS <<\_ACEOF
23723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23724 s&@configure_input@&$configure_input&;t t
23725 s&@top_builddir@&$ac_top_builddir_sub&;t t
23726 s&@srcdir@&$ac_srcdir&;t t
23727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23728 s&@top_srcdir@&$ac_top_srcdir&;t t
23729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23730 s&@builddir@&$ac_builddir&;t t
23731 s&@abs_builddir@&$ac_abs_builddir&;t t
23732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23733 s&@INSTALL@&$ac_INSTALL&;t t
23734 $ac_datarootdir_hack
23735 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23740 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23741 which seems to be undefined. Please make sure it is defined." >&5
23742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23743 which seems to be undefined. Please make sure it is defined." >&2;}
23745 rm -f "$tmp/stdin"
23746 case $ac_file in
23747 -) cat "$tmp/out"; rm -f "$tmp/out";;
23748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23749 esac
23753 # CONFIG_HEADER
23755 _ACEOF
23757 # Transform confdefs.h into a sed script `conftest.defines', that
23758 # substitutes the proper values into config.h.in to produce config.h.
23759 rm -f conftest.defines conftest.tail
23760 # First, append a space to every undef/define line, to ease matching.
23761 echo 's/$/ /' >conftest.defines
23762 # Then, protect against being on the right side of a sed subst, or in
23763 # an unquoted here document, in config.status. If some macros were
23764 # called several times there might be several #defines for the same
23765 # symbol, which is useless. But do not sort them, since the last
23766 # AC_DEFINE must be honored.
23767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23770 # PARAMS is the parameter list in the macro definition--in most cases, it's
23771 # just an empty string.
23772 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23773 ac_dB='\\)[ (].*,\\1define\\2'
23774 ac_dC=' '
23775 ac_dD=' ,'
23777 uniq confdefs.h |
23778 sed -n '
23779 t rset
23780 :rset
23781 s/^[ ]*#[ ]*define[ ][ ]*//
23782 t ok
23785 s/[\\&,]/\\&/g
23786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23788 ' >>conftest.defines
23790 # Remove the space that was appended to ease matching.
23791 # Then replace #undef with comments. This is necessary, for
23792 # example, in the case of _POSIX_SOURCE, which is predefined and required
23793 # on some systems where configure will not decide to define it.
23794 # (The regexp can be short, since the line contains either #define or #undef.)
23795 echo 's/ $//
23796 s,^[ #]*u.*,/* & */,' >>conftest.defines
23798 # Break up conftest.defines:
23799 ac_max_sed_lines=50
23801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23804 # et cetera.
23805 ac_in='$ac_file_inputs'
23806 ac_out='"$tmp/out1"'
23807 ac_nxt='"$tmp/out2"'
23809 while :
23811 # Write a here document:
23812 cat >>$CONFIG_STATUS <<_ACEOF
23813 # First, check the format of the line:
23814 cat >"\$tmp/defines.sed" <<\\CEOF
23815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23818 :def
23819 _ACEOF
23820 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23821 echo 'CEOF
23822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23823 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23824 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23825 grep . conftest.tail >/dev/null || break
23826 rm -f conftest.defines
23827 mv conftest.tail conftest.defines
23828 done
23829 rm -f conftest.defines conftest.tail
23831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833 if test x"$ac_file" != x-; then
23834 echo "/* $configure_input */" >"$tmp/config.h"
23835 cat "$ac_result" >>"$tmp/config.h"
23836 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23838 echo "$as_me: $ac_file is unchanged" >&6;}
23839 else
23840 rm -f $ac_file
23841 mv "$tmp/config.h" $ac_file
23843 else
23844 echo "/* $configure_input */"
23845 cat "$ac_result"
23847 rm -f "$tmp/out12"
23851 esac
23853 done # for ac_tag
23856 { (exit 0); exit 0; }
23857 _ACEOF
23858 chmod +x $CONFIG_STATUS
23859 ac_clean_files=$ac_clean_files_save
23862 # configure is writing to config.log, and then calls config.status.
23863 # config.status does its own redirection, appending to config.log.
23864 # Unfortunately, on DOS this fails, as config.log is still kept open
23865 # by configure, so config.status won't be able to write to it; its
23866 # output is simply discarded. So we exec the FD to /dev/null,
23867 # effectively closing config.log, so it can be properly (re)opened and
23868 # appended to by config.status. When coming back to configure, we
23869 # need to make the FD available again.
23870 if test "$no_create" != yes; then
23871 ac_cs_success=:
23872 ac_config_status_args=
23873 test "$silent" = yes &&
23874 ac_config_status_args="$ac_config_status_args --quiet"
23875 exec 5>/dev/null
23876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23877 exec 5>>config.log
23878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23879 # would make configure fail if this is the last instruction.
23880 $ac_cs_success || { (exit 1); exit 1; }
23884 echo "creating Modules/Setup"
23885 if test ! -f Modules/Setup
23886 then
23887 cp $srcdir/Modules/Setup.dist Modules/Setup
23890 echo "creating Modules/Setup.local"
23891 if test ! -f Modules/Setup.local
23892 then
23893 echo "# Edit this file for local setup changes" >Modules/Setup.local
23896 echo "creating Makefile"
23897 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23898 -s Modules Modules/Setup.config \
23899 Modules/Setup.local Modules/Setup
23900 mv config.c Modules