Added section about adding contextual information to log output.
[python.git] / configure
blob5929c23aacc6be570b560c00c2aeea0f96edff2f
1 #! /bin/sh
2 # From configure.in Revision: 59611 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKDIR
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
665 FRAMEWORKINSTALLLAST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
669 MACHDEP
670 SGI_ABI
671 EXTRAPLATDIR
672 EXTRAMACHDEPPATH
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 OTHER_LIBTOOL_OPT
706 LIBTOOL_CRUFT
708 LDSHARED
709 BLDSHARED
710 CCSHARED
711 LINKFORSHARED
712 CFLAGSFORSHARED
713 SHLIBS
714 USE_SIGNAL_MODULE
715 SIGNAL_OBJS
716 USE_THREAD_MODULE
717 LDLAST
718 THREADOBJ
719 DLINCLDIR
720 DYNLOADFILE
721 MACHDEP_OBJS
722 TRUE
723 LIBOBJS
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
727 HAVE_GETHOSTBYNAME_R
728 HAVE_GETHOSTBYNAME
729 LIBM
730 LIBC
731 UNICODE_OBJS
732 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 2.6 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 2.6:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[SDKDIR]
1316 Build 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.6
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435 exit
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.6, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1444 $ $0 $@
1446 _ACEOF
1447 exec 5>>config.log
1449 cat <<_ASUNAME
1450 ## --------- ##
1451 ## Platform. ##
1452 ## --------- ##
1454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471 _ASUNAME
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1479 done
1480 IFS=$as_save_IFS
1482 } >&5
1484 cat >&5 <<_ACEOF
1487 ## ----------- ##
1488 ## Core tests. ##
1489 ## ----------- ##
1491 _ACEOF
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_configure_args=
1500 ac_configure_args0=
1501 ac_configure_args1=
1502 ac_must_keep_next=false
1503 for ac_pass in 1 2
1505 for ac_arg
1507 case $ac_arg in
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 continue ;;
1512 *\'*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 esac
1515 case $ac_pass in
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1521 else
1522 case $ac_arg in
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 esac
1531 -* ) ac_must_keep_next=true ;;
1532 esac
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 esac
1537 done
1538 done
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1550 echo
1552 cat <<\_ASBOX
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1556 _ASBOX
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1571 esac ;;
1572 esac
1573 done
1574 (set) 2>&1 |
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1577 sed -n \
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 esac |
1585 sort
1587 echo
1589 cat <<\_ASBOX
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1593 _ASBOX
1594 echo
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 echo "$ac_var='\''$ac_val'\''"
1602 done | sort
1603 echo
1605 if test -n "$ac_subst_files"; then
1606 cat <<\_ASBOX
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1623 if test -s confdefs.h; then
1624 cat <<\_ASBOX
1625 ## ----------- ##
1626 ## confdefs.h. ##
1627 ## ----------- ##
1628 _ASBOX
1629 echo
1630 cat confdefs.h
1631 echo
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1636 } >&5
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 exit $exit_status
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 done
1644 ac_signal=0
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 _ACEOF
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 _ACEOF
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 _ACEOF
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 else
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1686 shift
1687 for ac_site_file
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1693 . "$ac_site_file"
1695 done
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1708 else
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1806 rm confdefs.h
1807 mv confdefs.h.new confdefs.h
1810 VERSION=2.6
1813 SOVERSION=1.0
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1820 _ACEOF
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1825 # them.
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1838 _ACEOF
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_TYPES 1
1846 _ACEOF
1849 define_xopen_source=yes
1851 # Arguments passed to configure.
1853 CONFIG_ARGS="$ac_configure_args"
1855 # Check whether --enable-universalsdk was given.
1856 if test "${enable_universalsdk+set}" = set; then
1857 enableval=$enable_universalsdk;
1858 case $enableval in
1859 yes)
1860 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1862 esac
1863 case $enableval in
1865 UNIVERSALSDK=
1866 enable_universalsdk=
1869 UNIVERSALSDK=$enableval
1871 esac
1873 else
1875 UNIVERSALSDK=
1876 enable_universalsdk=
1882 # Check whether --enable-framework was given.
1883 if test "${enable_framework+set}" = set; then
1884 enableval=$enable_framework;
1885 case $enableval in
1886 yes)
1887 enableval=/Library/Frameworks
1888 esac
1889 case $enableval in
1891 PYTHONFRAMEWORK=
1892 PYTHONFRAMEWORKDIR=no-framework
1893 PYTHONFRAMEWORKPREFIX=
1894 PYTHONFRAMEWORKINSTALLDIR=
1895 FRAMEWORKINSTALLFIRST=
1896 FRAMEWORKINSTALLLAST=
1897 FRAMEWORKALTINSTALLFIRST=
1898 FRAMEWORKALTINSTALLLAST=
1899 if test "x${prefix}" = "xNONE"; then
1900 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1901 else
1902 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1904 enable_framework=
1907 PYTHONFRAMEWORK=Python
1908 PYTHONFRAMEWORKDIR=Python.framework
1909 PYTHONFRAMEWORKPREFIX=$enableval
1910 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1911 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1912 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1913 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1914 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1915 if test "x${prefix}" = "xNONE" ; then
1916 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1917 else
1918 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1920 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1922 # Add makefiles for Mac specific code to the list of output
1923 # files:
1924 ac_config_files="$ac_config_files Mac/Makefile"
1926 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1928 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1930 esac
1932 else
1934 PYTHONFRAMEWORK=
1935 PYTHONFRAMEWORKDIR=no-framework
1936 PYTHONFRAMEWORKPREFIX=
1937 PYTHONFRAMEWORKINSTALLDIR=
1938 FRAMEWORKINSTALLFIRST=
1939 FRAMEWORKINSTALLLAST=
1940 FRAMEWORKALTINSTALLFIRST=
1941 FRAMEWORKALTINSTALLLAST=
1942 if test "x${prefix}" = "xNONE" ; then
1943 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1944 else
1945 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1947 enable_framework=
1961 ##AC_ARG_WITH(dyld,
1962 ## AC_HELP_STRING(--with-dyld,
1963 ## Use (OpenStep|Rhapsody) dynamic linker))
1965 # Set name for machine-dependent library files
1967 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1968 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1969 if test -z "$MACHDEP"
1970 then
1971 ac_sys_system=`uname -s`
1972 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1973 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1974 ac_sys_release=`uname -v`
1975 else
1976 ac_sys_release=`uname -r`
1978 ac_md_system=`echo $ac_sys_system |
1979 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1980 ac_md_release=`echo $ac_sys_release |
1981 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1982 MACHDEP="$ac_md_system$ac_md_release"
1984 case $MACHDEP in
1985 cygwin*) MACHDEP="cygwin";;
1986 darwin*) MACHDEP="darwin";;
1987 atheos*) MACHDEP="atheos";;
1988 irix646) MACHDEP="irix6";;
1989 '') MACHDEP="unknown";;
1990 esac
1993 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1994 # disable features if it is defined, without any means to access these
1995 # features as extensions. For these systems, we skip the definition of
1996 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1997 # some feature, make sure there is no alternative way to access this
1998 # feature. Also, when using wildcards, make sure you have verified the
1999 # need for not defining _XOPEN_SOURCE on all systems matching the
2000 # wildcard, and that the wildcard does not include future systems
2001 # (which may remove their limitations).
2002 case $ac_sys_system/$ac_sys_release in
2003 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2004 # even though select is a POSIX function. Reported by J. Ribbens.
2005 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2006 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2007 define_xopen_source=no
2008 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2009 # also defined. This can be overridden by defining _BSD_SOURCE
2010 # As this has a different meaning on Linux, only define it on OpenBSD
2012 cat >>confdefs.h <<\_ACEOF
2013 #define _BSD_SOURCE 1
2014 _ACEOF
2017 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2018 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2019 # Marc Recht
2020 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2021 define_xopen_source=no;;
2022 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2023 # of union __?sigval. Reported by Stuart Bishop.
2024 SunOS/5.6)
2025 define_xopen_source=no;;
2026 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2027 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2028 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2029 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2030 define_xopen_source=no;;
2031 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2032 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2033 SCO_SV/3.2)
2034 define_xopen_source=no;;
2035 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2036 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2037 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2038 # This should hopefully be fixed in FreeBSD 4.9
2039 FreeBSD/4.8* | Darwin/6* )
2040 define_xopen_source=no;;
2041 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2042 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2043 # or has another value. By not (re)defining it, the defaults come in place.
2044 AIX/4)
2045 define_xopen_source=no;;
2046 AIX/5)
2047 if test `uname -r` -eq 1; then
2048 define_xopen_source=no
2051 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2052 # disables platform specific features beyond repair.
2053 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2054 # has no effect, don't bother defining them
2055 Darwin/[789].*)
2056 define_xopen_source=no
2059 esac
2061 if test $define_xopen_source = yes
2062 then
2063 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2064 # defined precisely as g++ defines it
2065 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2066 # compiler
2067 case $ac_sys_system/$ac_sys_release in
2068 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2070 cat >>confdefs.h <<\_ACEOF
2071 #define _XOPEN_SOURCE 500
2072 _ACEOF
2077 cat >>confdefs.h <<\_ACEOF
2078 #define _XOPEN_SOURCE 600
2079 _ACEOF
2082 esac
2084 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2085 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2086 # several APIs are not declared. Since this is also needed in some
2087 # cases for HP-UX, we define it globally.
2088 # except for Solaris 10, where it must not be defined,
2089 # as it implies XPG4.2
2090 case $ac_sys_system/$ac_sys_release in
2091 SunOS/5.10)
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _XOPEN_SOURCE_EXTENDED 1
2097 _ACEOF
2100 esac
2103 cat >>confdefs.h <<\_ACEOF
2104 #define _POSIX_C_SOURCE 200112L
2105 _ACEOF
2111 # SGI compilers allow the specification of the both the ABI and the
2112 # ISA on the command line. Depending on the values of these switches,
2113 # different and often incompatable code will be generated.
2115 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2116 # thus supply support for various ABI/ISA combinations. The MACHDEP
2117 # variable is also adjusted.
2120 if test ! -z "$SGI_ABI"
2121 then
2122 CC="cc $SGI_ABI"
2123 LDFLAGS="$SGI_ABI $LDFLAGS"
2124 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2126 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2127 echo "${ECHO_T}$MACHDEP" >&6; }
2129 # And add extra plat-mac for darwin
2132 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2133 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2134 if test -z "$EXTRAPLATDIR"
2135 then
2136 case $MACHDEP in
2137 darwin)
2138 EXTRAPLATDIR="\$(PLATMACDIRS)"
2139 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2142 EXTRAPLATDIR=""
2143 EXTRAMACHDEPPATH=""
2145 esac
2147 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2148 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2150 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2151 # it may influence the way we can build extensions, so distutils
2152 # needs to check it
2155 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2156 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2158 # checks for alternative programs
2160 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2161 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2162 # just to get things to compile and link. Users are free to override OPT
2163 # when running configure or make. The build should not break if they do.
2164 # BASECFLAGS should generally not be messed with, however.
2166 # XXX shouldn't some/most/all of this code be merged with the stuff later
2167 # on that fiddles with OPT and BASECFLAGS?
2168 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2169 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2171 # Check whether --with-gcc was given.
2172 if test "${with_gcc+set}" = set; then
2173 withval=$with_gcc;
2174 case $withval in
2175 no) CC=cc
2176 without_gcc=yes;;
2177 yes) CC=gcc
2178 without_gcc=no;;
2179 *) CC=$withval
2180 without_gcc=$withval;;
2181 esac
2182 else
2184 case $ac_sys_system in
2185 AIX*) CC=cc_r
2186 without_gcc=;;
2187 BeOS*)
2188 case $BE_HOST_CPU in
2189 ppc)
2190 CC=mwcc
2191 without_gcc=yes
2192 BASECFLAGS="$BASECFLAGS -export pragma"
2193 OPT="$OPT -O"
2194 LDFLAGS="$LDFLAGS -nodup"
2196 x86)
2197 CC=gcc
2198 without_gcc=no
2199 OPT="$OPT -O"
2202 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2203 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2204 { (exit 1); exit 1; }; }
2206 esac
2207 AR="\$(srcdir)/Modules/ar_beos"
2208 RANLIB=:
2210 Monterey*)
2211 RANLIB=:
2212 without_gcc=;;
2213 *) without_gcc=no;;
2214 esac
2217 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2218 echo "${ECHO_T}$without_gcc" >&6; }
2220 # If the user switches compilers, we can't believe the cache
2221 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2222 then
2223 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2224 (it is also a good idea to do 'make clean' before compiling)" >&5
2225 echo "$as_me: error: cached CC is different -- throw away $cache_file
2226 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2227 { (exit 1); exit 1; }; }
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2274 if test -z "$ac_cv_prog_CC"; then
2275 ac_ct_CC=$CC
2276 # Extract the first word of "gcc", so it can be a program name with args.
2277 set dummy gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2297 done
2298 done
2299 IFS=$as_save_IFS
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325 CC=$ac_ct_CC
2327 else
2328 CC="$ac_cv_prog_CC"
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383 ac_prog_rejected=no
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2393 continue
2395 ac_cv_prog_CC="cc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2406 shift
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2411 shift
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2421 else
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 for ac_prog in cl.exe
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2469 test -n "$CC" && break
2470 done
2472 if test -z "$CC"; then
2473 ac_ct_CC=$CC
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$ac_ct_CC" && break
2514 done
2516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529 CC=$ac_ct_CC
2536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO: checking for C compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (ac_try="$ac_compiler --version >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler --version >&5") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -v >&5"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565 { (ac_try="$ac_compiler -V >&5"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compiler -V >&5") 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2584 main ()
2588 return 0;
2590 _ACEOF
2591 ac_clean_files_save=$ac_clean_files
2592 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2593 # Try to create an executable without -o first, disregard a.out.
2594 # It will help us diagnose broken compilers, and finding out an intuition
2595 # of exeext.
2596 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2597 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600 # List of possible output files, starting from the most likely.
2601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2602 # only as a last resort. b.out is created by i960 compilers.
2603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2605 # The IRIX 6 linker writes into existing files which may not be
2606 # executable, retaining their permissions. Remove them first so a
2607 # subsequent execution test works.
2608 ac_rmfiles=
2609 for ac_file in $ac_files
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2614 esac
2615 done
2616 rm -f $ac_rmfiles
2618 if { (ac_try="$ac_link_default"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link_default") 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2631 # so that the user can short-circuit this test for compilers unknown to
2632 # Autoconf.
2633 for ac_file in $ac_files ''
2635 test -f "$ac_file" || continue
2636 case $ac_file in
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2639 [ab].out )
2640 # We found the default executable, but exeext='' is most
2641 # certainly right.
2642 break;;
2643 *.* )
2644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645 then :; else
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 # We set ac_cv_exeext here because the later test for it is not
2649 # safe: cross compilers may not add the suffix if given an `-o'
2650 # argument, so we may need to know it at that point already.
2651 # Even if this section looks crufty: it has the advantage of
2652 # actually working.
2653 break;;
2655 break;;
2656 esac
2657 done
2658 test "$ac_cv_exeext" = no && ac_cv_exeext=
2660 else
2661 ac_file=''
2664 { echo "$as_me:$LINENO: result: $ac_file" >&5
2665 echo "${ECHO_T}$ac_file" >&6; }
2666 if test -z "$ac_file"; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: C compiler cannot create executables
2673 See \`config.log' for more details." >&2;}
2674 { (exit 77); exit 77; }; }
2677 ac_exeext=$ac_cv_exeext
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2684 # If not cross compiling, check that we can run a simple program.
2685 if test "$cross_compiling" != yes; then
2686 if { ac_try='./$ac_file'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 cross_compiling=no
2697 else
2698 if test "$cross_compiling" = maybe; then
2699 cross_compiling=yes
2700 else
2701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2711 { echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6; }
2714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2720 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2721 echo "${ECHO_T}$cross_compiling" >&6; }
2723 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2724 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2725 if { (ac_try="$ac_link"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 # `rm'.
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2741 case $ac_file in
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2744 break;;
2745 * ) break;;
2746 esac
2747 done
2748 else
2749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2799 break;;
2800 esac
2801 done
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2816 echo "${ECHO_T}$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2818 ac_objext=$OBJEXT
2819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 main ()
2834 #ifndef __GNUC__
2835 choke me
2836 #endif
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2859 ac_compiler_gnu=yes
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_compiler_gnu=no
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2873 GCC=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_cc_g+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 ac_save_c_werror_flag=$ac_c_werror_flag
2882 ac_c_werror_flag=yes
2883 ac_cv_prog_cc_g=no
2884 CFLAGS="-g"
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2893 main ()
2897 return 0;
2899 _ACEOF
2900 rm -f conftest.$ac_objext
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_g=yes
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 CFLAGS=""
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 main ()
2935 return 0;
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.$ac_objext; then
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2961 CFLAGS="-g"
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2994 ac_cv_prog_cc_g=yes
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_c_werror_flag=$ac_save_c_werror_flag
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3013 if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3017 CFLAGS="-g -O2"
3018 else
3019 CFLAGS="-g"
3021 else
3022 if test "$GCC" = yes; then
3023 CFLAGS="-O2"
3024 else
3025 CFLAGS=
3028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_c89+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 ac_cv_prog_cc_c89=no
3034 ac_save_CC=$CC
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3041 #include <stdarg.h>
3042 #include <stdio.h>
3043 #include <sys/types.h>
3044 #include <sys/stat.h>
3045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3046 struct buf { int x; };
3047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3048 static char *e (p, i)
3049 char **p;
3050 int i;
3052 return p[i];
3054 static char *f (char * (*g) (char **, int), char **p, ...)
3056 char *s;
3057 va_list v;
3058 va_start (v,p);
3059 s = g (p, va_arg (v,int));
3060 va_end (v);
3061 return s;
3064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3065 function prototypes and stuff, but not '\xHH' hex character constants.
3066 These don't provoke an error unfortunately, instead are silently treated
3067 as 'x'. The following induces an error, until -std is added to get
3068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3069 array size at least. It's necessary to write '\x00'==0 to get something
3070 that's true only with -std. */
3071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3074 inside strings and character constants. */
3075 #define FOO(x) 'x'
3076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3078 int test (int i, double x);
3079 struct s1 {int (*f) (int a);};
3080 struct s2 {int (*f) (double a);};
3081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3082 int argc;
3083 char **argv;
3085 main ()
3087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3089 return 0;
3091 _ACEOF
3092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3095 CC="$ac_save_CC $ac_arg"
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_prog_cc_c89=$ac_arg
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f core conftest.err conftest.$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 done
3124 rm -f conftest.$ac_ext
3125 CC=$ac_save_CC
3128 # AC_CACHE_VAL
3129 case "x$ac_cv_prog_cc_c89" in
3131 { echo "$as_me:$LINENO: result: none needed" >&5
3132 echo "${ECHO_T}none needed" >&6; } ;;
3133 xno)
3134 { echo "$as_me:$LINENO: result: unsupported" >&5
3135 echo "${ECHO_T}unsupported" >&6; } ;;
3137 CC="$CC $ac_cv_prog_cc_c89"
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3140 esac
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3153 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3155 # Check whether --with-cxx_main was given.
3156 if test "${with_cxx_main+set}" = set; then
3157 withval=$with_cxx_main;
3159 case $withval in
3160 no) with_cxx_main=no
3161 MAINCC='$(CC)';;
3162 yes) with_cxx_main=yes
3163 MAINCC='$(CXX)';;
3164 *) with_cxx_main=yes
3165 MAINCC=$withval
3166 if test -z "$CXX"
3167 then
3168 CXX=$withval
3169 fi;;
3170 esac
3171 else
3173 with_cxx_main=no
3174 MAINCC='$(CC)'
3178 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3179 echo "${ECHO_T}$with_cxx_main" >&6; }
3181 preset_cxx="$CXX"
3182 if test -z "$CXX"
3183 then
3184 case "$CC" in
3185 gcc) # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g++; ac_word=$2
3187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 case $CXX in
3193 [\\/]* | ?:[\\/]*)
3194 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in notfound
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3212 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3214 esac
3216 CXX=$ac_cv_path_CXX
3217 if test -n "$CXX"; then
3218 { echo "$as_me:$LINENO: result: $CXX" >&5
3219 echo "${ECHO_T}$CXX" >&6; }
3220 else
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 cc) # Extract the first word of "c++", so it can be a program name with args.
3227 set dummy c++; ac_word=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_path_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 case $CXX in
3234 [\\/]* | ?:[\\/]*)
3235 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in notfound
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3255 esac
3257 CXX=$ac_cv_path_CXX
3258 if test -n "$CXX"; then
3259 { echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6; }
3261 else
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3267 esac
3268 if test "$CXX" = "notfound"
3269 then
3270 CXX=""
3273 if test -z "$CXX"
3274 then
3275 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX="$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 CXX=$ac_cv_prog_CXX
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3315 done
3316 test -n "$CXX" || CXX="notfound"
3318 if test "$CXX" = "notfound"
3319 then
3320 CXX=""
3323 if test "$preset_cxx" != "$CXX"
3324 then
3325 { echo "$as_me:$LINENO: WARNING:
3327 By default, distutils will build C++ extension modules with \"$CXX\".
3328 If this is not intended, then set CXX on the configure command line.
3329 " >&5
3330 echo "$as_me: WARNING:
3332 By default, distutils will build C++ extension modules with \"$CXX\".
3333 If this is not intended, then set CXX on the configure command line.
3334 " >&2;}
3338 # checks for UNIX variants that set C preprocessor variables
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3349 CPP=
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3358 ac_preproc_ok=false
3359 for ac_c_preproc_warn_flag in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #ifdef __STDC__
3374 # include <limits.h>
3375 #else
3376 # include <assert.h>
3377 #endif
3378 Syntax error
3379 _ACEOF
3380 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 }; then
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3402 continue
3405 rm -f conftest.err conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3416 _ACEOF
3417 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null && {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 }; then
3433 # Broken: success on invalid input.
3434 continue
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3444 rm -f conftest.err conftest.$ac_ext
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3450 break
3453 done
3454 ac_cv_prog_CPP=$CPP
3457 CPP=$ac_cv_prog_CPP
3458 else
3459 ac_cv_prog_CPP=$CPP
3461 { echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6; }
3463 ac_preproc_ok=false
3464 for ac_c_preproc_warn_flag in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 }; then
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3507 continue
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null && {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 }; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3556 else
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576 # Extract the first word of "grep ggrep" to use in msg output
3577 if test -z "$GREP"; then
3578 set dummy grep ggrep; ac_prog_name=$2
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_path_GREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in grep ggrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3599 ac_count=0
3600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3601 while :
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 ac_count=`expr $ac_count + 1`
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP="$ac_path_GREP"
3613 ac_path_GREP_max=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3622 $ac_path_GREP_found && break 3
3623 done
3624 done
3626 done
3627 IFS=$as_save_IFS
3632 GREP="$ac_cv_path_GREP"
3633 if test -z "$GREP"; then
3634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3636 { (exit 1); exit 1; }; }
3639 else
3640 ac_cv_path_GREP=$GREP
3645 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3646 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3647 GREP="$ac_cv_path_GREP"
3650 { echo "$as_me:$LINENO: checking for egrep" >&5
3651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3656 then ac_cv_path_EGREP="$GREP -E"
3657 else
3658 # Extract the first word of "egrep" to use in msg output
3659 if test -z "$EGREP"; then
3660 set dummy egrep; ac_prog_name=$2
3661 if test "${ac_cv_path_EGREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 ac_path_EGREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_prog in egrep; do
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3675 # Check for GNU ac_path_EGREP and select it if it is found.
3676 # Check for GNU $ac_path_EGREP
3677 case `"$ac_path_EGREP" --version 2>&1` in
3678 *GNU*)
3679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3681 ac_count=0
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683 while :
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'EGREP' >> "conftest.nl"
3689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691 ac_count=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_EGREP="$ac_path_EGREP"
3695 ac_path_EGREP_max=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3699 done
3700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 esac
3704 $ac_path_EGREP_found && break 3
3705 done
3706 done
3708 done
3709 IFS=$as_save_IFS
3714 EGREP="$ac_cv_path_EGREP"
3715 if test -z "$EGREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3721 else
3722 ac_cv_path_EGREP=$EGREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3730 EGREP="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for AIX" >&5
3735 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #ifdef _AIX
3744 #endif
3746 _ACEOF
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "yes" >/dev/null 2>&1; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 cat >>confdefs.h <<\_ACEOF
3752 #define _ALL_SOURCE 1
3753 _ACEOF
3755 else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6; }
3759 rm -f conftest*
3763 # Check for unsupported systems
3764 case $ac_sys_system/$ac_sys_release in
3765 atheos*|Linux*/1*)
3766 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3767 echo See README for details.
3768 exit 1;;
3769 esac
3772 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3773 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3775 # Check whether --with-suffix was given.
3776 if test "${with_suffix+set}" = set; then
3777 withval=$with_suffix;
3778 case $withval in
3779 no) EXEEXT=;;
3780 yes) EXEEXT=.exe;;
3781 *) EXEEXT=$withval;;
3782 esac
3785 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3786 echo "${ECHO_T}$EXEEXT" >&6; }
3788 # Test whether we're running on a non-case-sensitive system, in which
3789 # case we give a warning if no ext is given
3791 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3792 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3793 if test ! -d CaseSensitiveTestDir; then
3794 mkdir CaseSensitiveTestDir
3797 if test -d casesensitivetestdir
3798 then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 BUILDEXEEXT=.exe
3802 else
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 BUILDEXEEXT=$EXEEXT
3807 rmdir CaseSensitiveTestDir
3809 case $MACHDEP in
3810 bsdos*)
3811 case $CC in
3812 gcc) CC="$CC -D_HAVE_BSDI";;
3813 esac;;
3814 esac
3816 case $ac_sys_system in
3817 hp*|HP*)
3818 case $CC in
3819 cc|*/cc) CC="$CC -Ae";;
3820 esac;;
3821 Monterey*)
3822 case $CC in
3823 cc) CC="$CC -Wl,-Bexport";;
3824 esac;;
3825 SunOS*)
3826 # Some functions have a prototype only with that define, e.g. confstr
3828 cat >>confdefs.h <<\_ACEOF
3829 #define __EXTENSIONS__ 1
3830 _ACEOF
3833 esac
3837 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3838 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3839 if test -z "$LIBRARY"
3840 then
3841 LIBRARY='libpython$(VERSION).a'
3843 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3844 echo "${ECHO_T}$LIBRARY" >&6; }
3846 # LDLIBRARY is the name of the library to link against (as opposed to the
3847 # name of the library into which to insert object files). BLDLIBRARY is also
3848 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3849 # is blank as the main program is not linked directly against LDLIBRARY.
3850 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3851 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3852 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3853 # DLLLIBRARY is the shared (i.e., DLL) library.
3855 # RUNSHARED is used to run shared python without installed libraries
3857 # INSTSONAME is the name of the shared library that will be use to install
3858 # on the system - some systems like version suffix, others don't
3865 LDLIBRARY="$LIBRARY"
3866 BLDLIBRARY='$(LDLIBRARY)'
3867 INSTSONAME='$(LDLIBRARY)'
3868 DLLLIBRARY=''
3869 LDLIBRARYDIR=''
3870 RUNSHARED=''
3872 # LINKCC is the command that links the python executable -- default is $(CC).
3873 # If CXX is set, and if it is needed to link a main function that was
3874 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3875 # python might then depend on the C++ runtime
3876 # This is altered for AIX in order to build the export list before
3877 # linking.
3879 { echo "$as_me:$LINENO: checking LINKCC" >&5
3880 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3881 if test -z "$LINKCC"
3882 then
3883 LINKCC='$(PURIFY) $(MAINCC)'
3884 case $ac_sys_system in
3885 AIX*)
3886 exp_extra="\"\""
3887 if test $ac_sys_release -ge 5 -o \
3888 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3889 exp_extra="."
3891 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3892 Monterey64*)
3893 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3894 esac
3896 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3897 echo "${ECHO_T}$LINKCC" >&6; }
3899 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3900 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3901 # Check whether --enable-shared was given.
3902 if test "${enable_shared+set}" = set; then
3903 enableval=$enable_shared;
3907 if test -z "$enable_shared"
3908 then
3909 case $ac_sys_system in
3910 CYGWIN* | atheos*)
3911 enable_shared="yes";;
3913 enable_shared="no";;
3914 esac
3916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3917 echo "${ECHO_T}$enable_shared" >&6; }
3919 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3920 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3921 # Check whether --enable-profiling was given.
3922 if test "${enable_profiling+set}" = set; then
3923 enableval=$enable_profiling; ac_save_cc="$CC"
3924 CC="$CC -pg"
3925 if test "$cross_compiling" = yes; then
3926 ac_enable_profiling="no"
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 int main() { return 0; }
3935 _ACEOF
3936 rm -f conftest$ac_exeext
3937 if { (ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947 { (case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_enable_profiling="yes"
3957 else
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 ( exit $ac_status )
3963 ac_enable_profiling="no"
3965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 CC="$ac_save_cc"
3972 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3973 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3975 case "$ac_enable_profiling" in
3976 "yes")
3977 BASECFLAGS="-pg $BASECFLAGS"
3978 LDFLAGS="-pg $LDFLAGS"
3980 esac
3982 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3983 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3985 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3986 # library that we build, but we do not want to link against it (we
3987 # will find it with a -framework option). For this reason there is an
3988 # extra variable BLDLIBRARY against which Python and the extension
3989 # modules are linked, BLDLIBRARY. This is normally the same as
3990 # LDLIBRARY, but empty for MacOSX framework builds.
3991 if test "$enable_framework"
3992 then
3993 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3994 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3995 BLDLIBRARY=''
3996 else
3997 BLDLIBRARY='$(LDLIBRARY)'
4000 # Other platforms follow
4001 if test $enable_shared = "yes"; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define Py_ENABLE_SHARED 1
4005 _ACEOF
4007 case $ac_sys_system in
4008 BeOS*)
4009 LDLIBRARY='libpython$(VERSION).so'
4011 CYGWIN*)
4012 LDLIBRARY='libpython$(VERSION).dll.a'
4013 DLLLIBRARY='libpython$(VERSION).dll'
4015 SunOS*)
4016 LDLIBRARY='libpython$(VERSION).so'
4017 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4018 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4019 INSTSONAME="$LDLIBRARY".$SOVERSION
4021 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4022 LDLIBRARY='libpython$(VERSION).so'
4023 BLDLIBRARY='-L. -lpython$(VERSION)'
4024 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4025 case $ac_sys_system in
4026 FreeBSD*)
4027 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4029 esac
4030 INSTSONAME="$LDLIBRARY".$SOVERSION
4032 hp*|HP*)
4033 case `uname -m` in
4034 ia64)
4035 LDLIBRARY='libpython$(VERSION).so'
4038 LDLIBRARY='libpython$(VERSION).sl'
4040 esac
4041 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4042 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4044 OSF*)
4045 LDLIBRARY='libpython$(VERSION).so'
4046 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4049 atheos*)
4050 LDLIBRARY='libpython$(VERSION).so'
4051 BLDLIBRARY='-L. -lpython$(VERSION)'
4052 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4054 esac
4055 else # shared is disabled
4056 case $ac_sys_system in
4057 CYGWIN*)
4058 BLDLIBRARY='$(LIBRARY)'
4059 LDLIBRARY='libpython$(VERSION).dll.a'
4061 esac
4064 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4065 echo "${ECHO_T}$LDLIBRARY" >&6; }
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4072 if test "${ac_cv_prog_RANLIB+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if test -n "$RANLIB"; then
4076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 RANLIB=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6; }
4099 else
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4106 if test -z "$ac_cv_prog_RANLIB"; then
4107 ac_ct_RANLIB=$RANLIB
4108 # Extract the first word of "ranlib", so it can be a program name with args.
4109 set dummy ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$ac_ct_RANLIB"; then
4116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_RANLIB="ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4139 else
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 if test "x$ac_ct_RANLIB" = x; then
4145 RANLIB=":"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4150 whose name does not start with the host triplet. If you think this
4151 configuration is useful to you, please write to autoconf@gnu.org." >&5
4152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4153 whose name does not start with the host triplet. If you think this
4154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4155 ac_tool_warned=yes ;;
4156 esac
4157 RANLIB=$ac_ct_RANLIB
4159 else
4160 RANLIB="$ac_cv_prog_RANLIB"
4164 for ac_prog in ar aal
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy $ac_prog; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_AR+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR="$AR" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_AR="$ac_prog"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 AR=$ac_cv_prog_AR
4194 if test -n "$AR"; then
4195 { echo "$as_me:$LINENO: result: $AR" >&5
4196 echo "${ECHO_T}$AR" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 test -n "$AR" && break
4204 done
4205 test -n "$AR" || AR="ar"
4209 # Extract the first word of "svnversion", so it can be a program name with args.
4210 set dummy svnversion; ac_word=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$SVNVERSION"; then
4217 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_SVNVERSION="found"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4234 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4237 SVNVERSION=$ac_cv_prog_SVNVERSION
4238 if test -n "$SVNVERSION"; then
4239 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4240 echo "${ECHO_T}$SVNVERSION" >&6; }
4241 else
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test $SVNVERSION = found
4248 then
4249 SVNVERSION="svnversion \$(srcdir)"
4250 else
4251 SVNVERSION="echo exported"
4254 case $MACHDEP in
4255 bsdos*|hp*|HP*)
4256 # install -d does not work on BSDI or HP-UX
4257 if test -z "$INSTALL"
4258 then
4259 INSTALL="${srcdir}/install-sh -c"
4261 esac
4262 ac_aux_dir=
4263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4264 if test -f "$ac_dir/install-sh"; then
4265 ac_aux_dir=$ac_dir
4266 ac_install_sh="$ac_aux_dir/install-sh -c"
4267 break
4268 elif test -f "$ac_dir/install.sh"; then
4269 ac_aux_dir=$ac_dir
4270 ac_install_sh="$ac_aux_dir/install.sh -c"
4271 break
4272 elif test -f "$ac_dir/shtool"; then
4273 ac_aux_dir=$ac_dir
4274 ac_install_sh="$ac_aux_dir/shtool install -c"
4275 break
4277 done
4278 if test -z "$ac_aux_dir"; then
4279 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4280 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4281 { (exit 1); exit 1; }; }
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Find a good install program. We prefer a C program (faster),
4294 # so one script is as good as another. But avoid the broken or
4295 # incompatible versions:
4296 # SysV /etc/install, /usr/sbin/install
4297 # SunOS /usr/etc/install
4298 # IRIX /sbin/install
4299 # AIX /bin/install
4300 # AmigaOS /C/install, which installs bootblocks on floppy discs
4301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4304 # OS/2's system install, which has a completely different semantic
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4308 if test -z "$INSTALL"; then
4309 if test "${ac_cv_path_install+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 # Account for people who put trailing slashes in PATH elements.
4318 case $as_dir/ in
4319 ./ | .// | /cC/* | \
4320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4321 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4322 /usr/ucb/* ) ;;
4324 # OSF1 and SCO ODT 3.0 have their own names for install.
4325 # Don't use installbsd from OSF since it installs stuff as root
4326 # by default.
4327 for ac_prog in ginstall scoinst install; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4330 if test $ac_prog = install &&
4331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4332 # AIX install. It has an incompatible calling convention.
4334 elif test $ac_prog = install &&
4335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4336 # program-specific install script used by HP pwplus--don't use.
4338 else
4339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4340 break 3
4343 done
4344 done
4346 esac
4347 done
4348 IFS=$as_save_IFS
4352 if test "${ac_cv_path_install+set}" = set; then
4353 INSTALL=$ac_cv_path_install
4354 else
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for INSTALL within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 INSTALL=$ac_install_sh
4362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4363 echo "${ECHO_T}$INSTALL" >&6; }
4365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4366 # It thinks the first close brace ends the variable substitution.
4367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374 # Not every filesystem supports hard links
4376 if test -z "$LN" ; then
4377 case $ac_sys_system in
4378 BeOS*) LN="ln -s";;
4379 CYGWIN*) LN="ln -s";;
4380 atheos*) LN="ln -s";;
4381 *) LN=ln;;
4382 esac
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval=$with_pydebug;
4392 if test "$withval" != no
4393 then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define Py_DEBUG 1
4397 _ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4401 Py_DEBUG='true'
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4405 else
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4422 # user set OPT.
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4427 if test -z "$OPT"
4428 then
4429 case $GCC in
4430 yes)
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4436 WRAP="-fwrapv"
4438 case $ac_cv_prog_cc_g in
4439 yes)
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4442 # debug builds.
4443 OPT="-g -Wall $STRICT_PROTO"
4444 else
4445 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT="-O3 -Wall $STRICT_PROTO"
4451 esac
4452 case $ac_sys_system in
4453 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4455 esac
4459 OPT="-O"
4461 esac
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4466 Monterey*)
4467 OPT=""
4469 esac
4474 # tweak BASECFLAGS based on compiler and platform
4475 case $GCC in
4476 yes)
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4482 ac_save_cc="$CC"
4483 CC="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok=no
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4494 _ACEOF
4495 rm -f conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok=yes
4516 else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_no_strict_aliasing_ok=no
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 CC="$ac_save_cc"
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4532 then
4533 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4535 case $ac_sys_system in
4536 SCO_SV*)
4537 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4539 # is there any other compiler on Darwin besides gcc?
4540 Darwin*)
4541 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4542 if test "${enable_universalsdk}"; then
4543 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4547 OSF*)
4548 BASECFLAGS="$BASECFLAGS -mieee"
4550 esac
4554 case $ac_sys_system in
4555 OpenUNIX*|UnixWare*)
4556 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4558 OSF*)
4559 BASECFLAGS="$BASECFLAGS -ieee -std"
4561 SCO_SV*)
4562 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4564 esac
4566 esac
4568 if test "$Py_DEBUG" = 'true'; then
4570 else
4571 OPT="-DNDEBUG $OPT"
4574 if test "$ac_arch_flags"
4575 then
4576 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4579 # disable check for icc since it seems to pass, but generates a warning
4580 if test "$CC" = icc
4581 then
4582 ac_cv_opt_olimit_ok=no
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4586 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4587 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 ac_save_cc="$CC"
4591 CC="$CC -OPT:Olimit=0"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_opt_olimit_ok=no
4594 else
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_opt_olimit_ok=yes
4624 else
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ( exit $ac_status )
4630 ac_cv_opt_olimit_ok=no
4632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 CC="$ac_save_cc"
4639 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4640 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4641 if test $ac_cv_opt_olimit_ok = yes; then
4642 case $ac_sys_system in
4643 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4644 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4645 # environment?
4646 Darwin*)
4649 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4651 esac
4652 else
4653 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4654 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4655 if test "${ac_cv_olimit_ok+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_save_cc="$CC"
4659 CC="$CC -Olimit 1500"
4660 if test "$cross_compiling" = yes; then
4661 ac_cv_olimit_ok=no
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 int main() { return 0; }
4670 _ACEOF
4671 rm -f conftest$ac_exeext
4672 if { (ac_try="$ac_link"
4673 case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_link") 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_olimit_ok=yes
4692 else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ( exit $ac_status )
4698 ac_cv_olimit_ok=no
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704 CC="$ac_save_cc"
4707 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4708 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4709 if test $ac_cv_olimit_ok = yes; then
4710 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4714 # Check whether GCC supports PyArg_ParseTuple format
4715 if test "$GCC" = "yes"
4716 then
4717 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4718 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4719 save_CFLAGS=$CFLAGS
4720 CFLAGS="$CFLAGS -Werror"
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4731 main ()
4735 return 0;
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4758 _ACEOF
4760 { echo "$as_me:$LINENO: result: yes" >&5
4761 echo "${ECHO_T}yes" >&6; }
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 CFLAGS=$save_CFLAGS
4775 # On some compilers, pthreads are available without further options
4776 # (e.g. MacOS X). On some of these systems, the compiler will not
4777 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4778 # So we have to see first whether pthreads are available without
4779 # options before we can check whether -Kpthread improves anything.
4780 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4781 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4782 if test "${ac_cv_pthread_is_default+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test "$cross_compiling" = yes; then
4786 ac_cv_pthread_is_default=no
4787 else
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 #include <pthread.h>
4797 void* routine(void* p){return NULL;}
4799 int main(){
4800 pthread_t p;
4801 if(pthread_create(&p,NULL,routine,NULL)!=0)
4802 return 1;
4803 (void)pthread_detach(p);
4804 return 0;
4807 _ACEOF
4808 rm -f conftest$ac_exeext
4809 if { (ac_try="$ac_link"
4810 case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_link") 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4819 { (case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_try") 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4829 ac_cv_pthread_is_default=yes
4830 ac_cv_kthread=no
4831 ac_cv_pthread=no
4833 else
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ( exit $ac_status )
4839 ac_cv_pthread_is_default=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4848 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4849 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4852 if test $ac_cv_pthread_is_default = yes
4853 then
4854 ac_cv_kpthread=no
4855 else
4856 # -Kpthread, if available, provides the right #defines
4857 # and linker options to make pthread_create available
4858 # Some compilers won't report that they do not support -Kpthread,
4859 # so we need to run a program to see whether it really made the
4860 # function available.
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4862 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4863 if test "${ac_cv_kpthread+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 ac_save_cc="$CC"
4867 CC="$CC -Kpthread"
4868 if test "$cross_compiling" = yes; then
4869 ac_cv_kpthread=no
4870 else
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 #include <pthread.h>
4880 void* routine(void* p){return NULL;}
4882 int main(){
4883 pthread_t p;
4884 if(pthread_create(&p,NULL,routine,NULL)!=0)
4885 return 1;
4886 (void)pthread_detach(p);
4887 return 0;
4890 _ACEOF
4891 rm -f conftest$ac_exeext
4892 if { (ac_try="$ac_link"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_link") 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4902 { (case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_try") 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 ac_cv_kpthread=yes
4912 else
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ( exit $ac_status )
4918 ac_cv_kpthread=no
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924 CC="$ac_save_cc"
4927 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4928 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4931 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4932 then
4933 # -Kthread, if available, provides the right #defines
4934 # and linker options to make pthread_create available
4935 # Some compilers won't report that they do not support -Kthread,
4936 # so we need to run a program to see whether it really made the
4937 # function available.
4938 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4939 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4940 if test "${ac_cv_kthread+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 ac_save_cc="$CC"
4944 CC="$CC -Kthread"
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_kthread=no
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4959 int main(){
4960 pthread_t p;
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4962 return 1;
4963 (void)pthread_detach(p);
4964 return 0;
4967 _ACEOF
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4970 case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_kthread=yes
4989 else
4990 echo "$as_me: program exited with status $ac_status" >&5
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ( exit $ac_status )
4995 ac_cv_kthread=no
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5001 CC="$ac_save_cc"
5004 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5005 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5008 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5009 then
5010 # -pthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -pthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_thread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 ac_save_cc="$CC"
5021 CC="$CC -pthread"
5022 if test "$cross_compiling" = yes; then
5023 ac_cv_pthread=no
5024 else
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5036 int main(){
5037 pthread_t p;
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5039 return 1;
5040 (void)pthread_detach(p);
5041 return 0;
5044 _ACEOF
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_pthread=yes
5066 else
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 ( exit $ac_status )
5072 ac_cv_pthread=no
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5078 CC="$ac_save_cc"
5081 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5082 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5085 # If we have set a CC compiler flag for thread support then
5086 # check if it works for CXX, too.
5087 ac_cv_cxx_thread=no
5088 if test ! -z "$CXX"
5089 then
5090 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5091 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5092 ac_save_cxx="$CXX"
5094 if test "$ac_cv_kpthread" = "yes"
5095 then
5096 CXX="$CXX -Kpthread"
5097 ac_cv_cxx_thread=yes
5098 elif test "$ac_cv_kthread" = "yes"
5099 then
5100 CXX="$CXX -Kthread"
5101 ac_cv_cxx_thread=yes
5102 elif test "$ac_cv_pthread" = "yes"
5103 then
5104 CXX="$CXX -pthread"
5105 ac_cv_cxx_thread=yes
5108 if test $ac_cv_cxx_thread = yes
5109 then
5110 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5111 $CXX -c conftest.$ac_ext 2>&5
5112 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5113 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5114 then
5115 ac_cv_cxx_thread=yes
5116 else
5117 ac_cv_cxx_thread=no
5119 rm -fr conftest*
5121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5122 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5124 CXX="$ac_save_cxx"
5127 # checks for header files
5128 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5130 if test "${ac_cv_header_stdc+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #include <stdlib.h>
5140 #include <stdarg.h>
5141 #include <string.h>
5142 #include <float.h>
5145 main ()
5149 return 0;
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_cv_header_stdc=yes
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ac_cv_header_stdc=no
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <string.h>
5189 _ACEOF
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev/null 2>&1; then
5193 else
5194 ac_cv_header_stdc=no
5196 rm -f conftest*
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <stdlib.h>
5210 _ACEOF
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212 $EGREP "free" >/dev/null 2>&1; then
5214 else
5215 ac_cv_header_stdc=no
5217 rm -f conftest*
5221 if test $ac_cv_header_stdc = yes; then
5222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223 if test "$cross_compiling" = yes; then
5225 else
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <ctype.h>
5233 #include <stdlib.h>
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5237 #else
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5243 #endif
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5247 main ()
5249 int i;
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5253 return 2;
5254 return 0;
5256 _ACEOF
5257 rm -f conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5278 else
5279 echo "$as_me: program exited with status $ac_status" >&5
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5283 ( exit $ac_status )
5284 ac_cv_header_stdc=no
5286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5294 if test $ac_cv_header_stdc = yes; then
5296 cat >>confdefs.h <<\_ACEOF
5297 #define STDC_HEADERS 1
5298 _ACEOF
5302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5313 inttypes.h stdint.h unistd.h
5315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 #include <$ac_header>
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 eval "$as_ac_Header=yes"
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359 { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5362 cat >>confdefs.h <<_ACEOF
5363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364 _ACEOF
5368 done
5421 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5422 fcntl.h grp.h \
5423 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5424 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5425 unistd.h utime.h \
5426 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5427 sys/modem.h \
5428 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5429 sys/time.h \
5430 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5431 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5432 bluetooth/bluetooth.h linux/tipc.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_res=`eval echo '${'$as_ac_Header'}'`
5442 { echo "$as_me:$LINENO: result: $ac_res" >&5
5443 echo "${ECHO_T}$ac_res" >&6; }
5444 else
5445 # Is the header compilable?
5446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5474 ac_header_compiler=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_header_compiler=no
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5484 echo "${ECHO_T}$ac_header_compiler" >&6; }
5486 # Is the header present?
5487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <$ac_header>
5496 _ACEOF
5497 if { (ac_try="$ac_cpp conftest.$ac_ext"
5498 case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null && {
5510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 }; then
5513 ac_header_preproc=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_header_preproc=no
5521 rm -f conftest.err conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5523 echo "${ECHO_T}$ac_header_preproc" >&6; }
5525 # So? What about this header?
5526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5527 yes:no: )
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5532 ac_header_preproc=yes
5534 no:yes:* )
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5547 ( cat <<\_ASBOX
5548 ## ------------------------------------------------ ##
5549 ## Report this to http://www.python.org/python-bugs ##
5550 ## ------------------------------------------------ ##
5551 _ASBOX
5552 ) | sed "s/^/$as_me: WARNING: /" >&2
5554 esac
5555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 eval "$as_ac_Header=\$ac_header_preproc"
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 _ACEOF
5574 done
5581 ac_header_dirent=no
5582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5583 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5596 #include <$ac_hdr>
5599 main ()
5601 if ((DIR *) 0)
5602 return 0;
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 eval "$as_ac_Header=yes"
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 eval "$as_ac_Header=no"
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_res=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5640 _ACEOF
5642 ac_header_dirent=$ac_hdr; break
5645 done
5646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5647 if test $ac_header_dirent = dirent.h; then
5648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5650 if test "${ac_cv_search_opendir+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 ac_func_search_save_LIBS=$LIBS
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5664 #ifdef __cplusplus
5665 extern "C"
5666 #endif
5667 char opendir ();
5669 main ()
5671 return opendir ();
5673 return 0;
5675 _ACEOF
5676 for ac_lib in '' dir; do
5677 if test -z "$ac_lib"; then
5678 ac_res="none required"
5679 else
5680 ac_res=-l$ac_lib
5681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (ac_try="$ac_link"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest$ac_exeext &&
5700 $as_test_x conftest$ac_exeext; then
5701 ac_cv_search_opendir=$ac_res
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5710 conftest$ac_exeext
5711 if test "${ac_cv_search_opendir+set}" = set; then
5712 break
5714 done
5715 if test "${ac_cv_search_opendir+set}" = set; then
5717 else
5718 ac_cv_search_opendir=no
5720 rm conftest.$ac_ext
5721 LIBS=$ac_func_search_save_LIBS
5723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5725 ac_res=$ac_cv_search_opendir
5726 if test "$ac_res" != no; then
5727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5731 else
5732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5734 if test "${ac_cv_search_opendir+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 ac_func_search_save_LIBS=$LIBS
5738 cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h. */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply. */
5748 #ifdef __cplusplus
5749 extern "C"
5750 #endif
5751 char opendir ();
5753 main ()
5755 return opendir ();
5757 return 0;
5759 _ACEOF
5760 for ac_lib in '' x; do
5761 if test -z "$ac_lib"; then
5762 ac_res="none required"
5763 else
5764 ac_res=-l$ac_lib
5765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_link") 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_c_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest$ac_exeext &&
5784 $as_test_x conftest$ac_exeext; then
5785 ac_cv_search_opendir=$ac_res
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794 conftest$ac_exeext
5795 if test "${ac_cv_search_opendir+set}" = set; then
5796 break
5798 done
5799 if test "${ac_cv_search_opendir+set}" = set; then
5801 else
5802 ac_cv_search_opendir=no
5804 rm conftest.$ac_ext
5805 LIBS=$ac_func_search_save_LIBS
5807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5809 ac_res=$ac_cv_search_opendir
5810 if test "$ac_res" != no; then
5811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5830 main ()
5832 return makedev(0, 0);
5834 return 0;
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (ac_try="$ac_link"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_link") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest$ac_exeext &&
5854 $as_test_x conftest$ac_exeext; then
5855 ac_cv_header_sys_types_h_makedev=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_header_sys_types_h_makedev=no
5863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5864 conftest$ac_exeext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5870 if test $ac_cv_header_sys_types_h_makedev = no; then
5871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5872 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5879 else
5880 # Is the header compilable?
5881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 $ac_includes_default
5890 #include <sys/mkdev.h>
5891 _ACEOF
5892 rm -f conftest.$ac_objext
5893 if { (ac_try="$ac_compile"
5894 case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897 esac
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_compile") 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest.$ac_objext; then
5909 ac_header_compiler=yes
5910 else
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_header_compiler=no
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5919 echo "${ECHO_T}$ac_header_compiler" >&6; }
5921 # Is the header present?
5922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/mkdev.h>
5931 _ACEOF
5932 if { (ac_try="$ac_cpp conftest.$ac_ext"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 }; then
5948 ac_header_preproc=yes
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5956 rm -f conftest.err conftest.$ac_ext
5957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5958 echo "${ECHO_T}$ac_header_preproc" >&6; }
5960 # So? What about this header?
5961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5962 yes:no: )
5963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5967 ac_header_preproc=yes
5969 no:yes:* )
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5982 ( cat <<\_ASBOX
5983 ## ------------------------------------------------ ##
5984 ## Report this to http://www.python.org/python-bugs ##
5985 ## ------------------------------------------------ ##
5986 _ASBOX
5987 ) | sed "s/^/$as_me: WARNING: /" >&2
5989 esac
5990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6001 if test $ac_cv_header_sys_mkdev_h = yes; then
6003 cat >>confdefs.h <<\_ACEOF
6004 #define MAJOR_IN_MKDEV 1
6005 _ACEOF
6011 if test $ac_cv_header_sys_mkdev_h = no; then
6012 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6013 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6020 else
6021 # Is the header compilable?
6022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 #include <sys/sysmacros.h>
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 ac_header_compiler=yes
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 ac_header_compiler=no
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6060 echo "${ECHO_T}$ac_header_compiler" >&6; }
6062 # Is the header present?
6063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <sys/sysmacros.h>
6072 _ACEOF
6073 if { (ac_try="$ac_cpp conftest.$ac_ext"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null && {
6086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 }; then
6089 ac_header_preproc=yes
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_header_preproc=no
6097 rm -f conftest.err conftest.$ac_ext
6098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6099 echo "${ECHO_T}$ac_header_preproc" >&6; }
6101 # So? What about this header?
6102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6103 yes:no: )
6104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6108 ac_header_preproc=yes
6110 no:yes:* )
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6123 ( cat <<\_ASBOX
6124 ## ------------------------------------------------ ##
6125 ## Report this to http://www.python.org/python-bugs ##
6126 ## ------------------------------------------------ ##
6127 _ASBOX
6128 ) | sed "s/^/$as_me: WARNING: /" >&2
6130 esac
6131 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6132 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6139 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6142 if test $ac_cv_header_sys_sysmacros_h = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define MAJOR_IN_SYSMACROS 1
6146 _ACEOF
6155 # On Solaris, term.h requires curses.h
6157 for ac_header in term.h
6159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 #ifdef HAVE_CURSES_H
6173 #include <curses.h>
6174 #endif
6177 #include <$ac_header>
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (ac_try="$ac_compile"
6181 case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.$ac_objext; then
6196 eval "$as_ac_Header=yes"
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 eval "$as_ac_Header=no"
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_res=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212 _ACEOF
6216 done
6219 # On Linux, netlink.h requires asm/types.h
6221 for ac_header in linux/netlink.h
6223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 #ifdef HAVE_ASM_TYPES_H
6237 #include <asm/types.h>
6238 #endif
6239 #ifdef HAVE_SYS_SOCKET_H
6240 #include <sys/socket.h>
6241 #endif
6244 #include <$ac_header>
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (ac_try="$ac_compile"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 eval "$as_ac_Header=yes"
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 eval "$as_ac_Header=no"
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6279 _ACEOF
6283 done
6286 # checks for typedefs
6287 was_it_defined=no
6288 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6289 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <time.h>
6298 _ACEOF
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "clock_t" >/dev/null 2>&1; then
6301 was_it_defined=yes
6302 else
6305 cat >>confdefs.h <<\_ACEOF
6306 #define clock_t long
6307 _ACEOF
6311 rm -f conftest*
6313 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6314 echo "${ECHO_T}$was_it_defined" >&6; }
6316 # Check whether using makedev requires defining _OSF_SOURCE
6317 { echo "$as_me:$LINENO: checking for makedev" >&5
6318 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6327 main ()
6329 makedev(0, 0)
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_c_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest$ac_exeext &&
6351 $as_test_x conftest$ac_exeext; then
6352 ac_cv_has_makedev=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_has_makedev=no
6360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6361 conftest$ac_exeext conftest.$ac_ext
6362 if test "$ac_cv_has_makedev" = "no"; then
6363 # we didn't link, try if _OSF_SOURCE will allow us to link
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6371 #define _OSF_SOURCE 1
6372 #include <sys/types.h>
6375 main ()
6377 makedev(0, 0)
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (ac_try="$ac_link"
6384 case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_link") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest$ac_exeext &&
6399 $as_test_x conftest$ac_exeext; then
6400 ac_cv_has_makedev=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_has_makedev=no
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_cv_has_makedev" = "yes"; then
6412 cat >>confdefs.h <<\_ACEOF
6413 #define _OSF_SOURCE 1
6414 _ACEOF
6418 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6419 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6420 if test "$ac_cv_has_makedev" = "yes"; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_MAKEDEV 1
6424 _ACEOF
6428 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6429 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6430 # defined, but the compiler does not support pragma redefine_extname,
6431 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6432 # structures (such as rlimit64) without declaring them. As a
6433 # work-around, disable LFS on such configurations
6435 use_lfs=yes
6436 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6437 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 #define _LARGEFILE_SOURCE 1
6446 #define _FILE_OFFSET_BITS 64
6447 #include <sys/resource.h>
6450 main ()
6452 struct rlimit foo;
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.$ac_objext; then
6474 sol_lfs_bug=no
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 sol_lfs_bug=yes
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6484 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6485 if test "$sol_lfs_bug" = "yes"; then
6486 use_lfs=no
6489 if test "$use_lfs" = "yes"; then
6490 # Two defines needed to enable largefile support on various platforms
6491 # These may affect some typedefs
6493 cat >>confdefs.h <<\_ACEOF
6494 #define _LARGEFILE_SOURCE 1
6495 _ACEOF
6498 cat >>confdefs.h <<\_ACEOF
6499 #define _FILE_OFFSET_BITS 64
6500 _ACEOF
6504 # Add some code to confdefs.h so that the test for off_t works on SCO
6505 cat >> confdefs.h <<\EOF
6506 #if defined(SCO_DS)
6507 #undef _OFF_T
6508 #endif
6511 # Type availability checks
6512 { echo "$as_me:$LINENO: checking for mode_t" >&5
6513 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6514 if test "${ac_cv_type_mode_t+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6524 typedef mode_t ac__type_new_;
6526 main ()
6528 if ((ac__type_new_ *) 0)
6529 return 0;
6530 if (sizeof (ac__type_new_))
6531 return 0;
6533 return 0;
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6538 case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_cv_type_mode_t=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_cv_type_mode_t=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6564 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6565 if test $ac_cv_type_mode_t = yes; then
6567 else
6569 cat >>confdefs.h <<_ACEOF
6570 #define mode_t int
6571 _ACEOF
6575 { echo "$as_me:$LINENO: checking for off_t" >&5
6576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6577 if test "${ac_cv_type_off_t+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 typedef off_t ac__type_new_;
6589 main ()
6591 if ((ac__type_new_ *) 0)
6592 return 0;
6593 if (sizeof (ac__type_new_))
6594 return 0;
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 ac_cv_type_off_t=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_type_off_t=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6627 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6628 if test $ac_cv_type_off_t = yes; then
6630 else
6632 cat >>confdefs.h <<_ACEOF
6633 #define off_t long int
6634 _ACEOF
6638 { echo "$as_me:$LINENO: checking for pid_t" >&5
6639 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6640 if test "${ac_cv_type_pid_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6650 typedef pid_t ac__type_new_;
6652 main ()
6654 if ((ac__type_new_ *) 0)
6655 return 0;
6656 if (sizeof (ac__type_new_))
6657 return 0;
6659 return 0;
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 ac_cv_type_pid_t=yes
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_type_pid_t=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6690 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6691 if test $ac_cv_type_pid_t = yes; then
6693 else
6695 cat >>confdefs.h <<_ACEOF
6696 #define pid_t int
6697 _ACEOF
6701 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6702 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6703 if test "${ac_cv_type_signal+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <signal.h>
6716 main ()
6718 return *(signal (0, 0)) (0) == 1;
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_cv_type_signal=int
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_type_signal=void
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6751 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6753 cat >>confdefs.h <<_ACEOF
6754 #define RETSIGTYPE $ac_cv_type_signal
6755 _ACEOF
6758 { echo "$as_me:$LINENO: checking for size_t" >&5
6759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6760 if test "${ac_cv_type_size_t+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 typedef size_t ac__type_new_;
6772 main ()
6774 if ((ac__type_new_ *) 0)
6775 return 0;
6776 if (sizeof (ac__type_new_))
6777 return 0;
6779 return 0;
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_c_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 ac_cv_type_size_t=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_type_size_t=no
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6811 if test $ac_cv_type_size_t = yes; then
6813 else
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6817 _ACEOF
6821 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6822 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6823 if test "${ac_cv_type_uid_t+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "uid_t" >/dev/null 2>&1; then
6837 ac_cv_type_uid_t=yes
6838 else
6839 ac_cv_type_uid_t=no
6841 rm -f conftest*
6844 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6845 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6846 if test $ac_cv_type_uid_t = no; then
6848 cat >>confdefs.h <<\_ACEOF
6849 #define uid_t int
6850 _ACEOF
6853 cat >>confdefs.h <<\_ACEOF
6854 #define gid_t int
6855 _ACEOF
6859 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6860 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_ssize_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef ssize_t ac__type_new_;
6873 main ()
6875 if ((ac__type_new_ *) 0)
6876 return 0;
6877 if (sizeof (ac__type_new_))
6878 return 0;
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_type_ssize_t=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_type_ssize_t=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6912 if test $ac_cv_type_ssize_t = yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define HAVE_SSIZE_T 1
6916 _ACEOF
6921 # Sizes of various common basic types
6922 # ANSI C requires sizeof(char) == 1, so no need to check it
6923 { echo "$as_me:$LINENO: checking for int" >&5
6924 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6925 if test "${ac_cv_type_int+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 typedef int ac__type_new_;
6937 main ()
6939 if ((ac__type_new_ *) 0)
6940 return 0;
6941 if (sizeof (ac__type_new_))
6942 return 0;
6944 return 0;
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (ac_try="$ac_compile"
6949 case "(($ac_try" in
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 ac_cv_type_int=yes
6965 else
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_type_int=no
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6975 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6977 # The cast to long int works around a bug in the HP C Compiler
6978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6980 # This bug is HP SR number 8606223364.
6981 { echo "$as_me:$LINENO: checking size of int" >&5
6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6983 if test "${ac_cv_sizeof_int+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 if test "$cross_compiling" = yes; then
6987 # Depending upon the size, compute the lo and hi bounds.
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef int ac__type_sizeof_;
6997 main ()
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7000 test_array [0] = 0
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_lo=0 ac_mid=0
7024 while :; do
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 typedef int ac__type_sizeof_;
7034 main ()
7036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7037 test_array [0] = 0
7040 return 0;
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_hi=$ac_mid; break
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_lo=`expr $ac_mid + 1`
7066 if test $ac_lo -le $ac_mid; then
7067 ac_lo= ac_hi=
7068 break
7070 ac_mid=`expr 2 '*' $ac_mid + 1`
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 done
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef int ac__type_sizeof_;
7088 main ()
7090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7091 test_array [0] = 0
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_hi=-1 ac_mid=-1
7115 while :; do
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 typedef int ac__type_sizeof_;
7125 main ()
7127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7128 test_array [0] = 0
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 ac_lo=$ac_mid; break
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_hi=`expr '(' $ac_mid ')' - 1`
7157 if test $ac_mid -le $ac_hi; then
7158 ac_lo= ac_hi=
7159 break
7161 ac_mid=`expr 2 '*' $ac_mid`
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 done
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_lo= ac_hi=
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 # Binary search between lo and hi bounds.
7178 while test "x$ac_lo" != "x$ac_hi"; do
7179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 typedef int ac__type_sizeof_;
7189 main ()
7191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7192 test_array [0] = 0
7195 return 0;
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 ac_hi=$ac_mid
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_lo=`expr '(' $ac_mid ')' + 1`
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 done
7225 case $ac_lo in
7226 ?*) ac_cv_sizeof_int=$ac_lo;;
7227 '') if test "$ac_cv_type_int" = yes; then
7228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7229 See \`config.log' for more details." >&5
7230 echo "$as_me: error: cannot compute sizeof (int)
7231 See \`config.log' for more details." >&2;}
7232 { (exit 77); exit 77; }; }
7233 else
7234 ac_cv_sizeof_int=0
7235 fi ;;
7236 esac
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef int ac__type_sizeof_;
7246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7248 #include <stdio.h>
7249 #include <stdlib.h>
7251 main ()
7254 FILE *f = fopen ("conftest.val", "w");
7255 if (! f)
7256 return 1;
7257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7259 long int i = longval ();
7260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7261 return 1;
7262 fprintf (f, "%ld\n", i);
7264 else
7266 unsigned long int i = ulongval ();
7267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7268 return 1;
7269 fprintf (f, "%lu\n", i);
7271 return ferror (f) || fclose (f) != 0;
7274 return 0;
7276 _ACEOF
7277 rm -f conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7288 { (case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_try") 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_sizeof_int=`cat conftest.val`
7298 else
7299 echo "$as_me: program exited with status $ac_status" >&5
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ( exit $ac_status )
7304 if test "$ac_cv_type_int" = yes; then
7305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int)
7308 See \`config.log' for more details." >&2;}
7309 { (exit 77); exit 77; }; }
7310 else
7311 ac_cv_sizeof_int=0
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7316 rm -f conftest.val
7318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7319 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define SIZEOF_INT $ac_cv_sizeof_int
7325 _ACEOF
7328 { echo "$as_me:$LINENO: checking for long" >&5
7329 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7330 if test "${ac_cv_type_long+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 typedef long ac__type_new_;
7342 main ()
7344 if ((ac__type_new_ *) 0)
7345 return 0;
7346 if (sizeof (ac__type_new_))
7347 return 0;
7349 return 0;
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_cv_type_long=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_type_long=no
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7380 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7382 # The cast to long int works around a bug in the HP C Compiler
7383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7385 # This bug is HP SR number 8606223364.
7386 { echo "$as_me:$LINENO: checking size of long" >&5
7387 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7388 if test "${ac_cv_sizeof_long+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 if test "$cross_compiling" = yes; then
7392 # Depending upon the size, compute the lo and hi bounds.
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef long ac__type_sizeof_;
7402 main ()
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7405 test_array [0] = 0
7408 return 0;
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_lo=0 ac_mid=0
7429 while :; do
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7437 typedef long ac__type_sizeof_;
7439 main ()
7441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7442 test_array [0] = 0
7445 return 0;
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 ac_hi=$ac_mid; break
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_lo=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7472 ac_lo= ac_hi=
7473 break
7475 ac_mid=`expr 2 '*' $ac_mid + 1`
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 done
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef long ac__type_sizeof_;
7493 main ()
7495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7496 test_array [0] = 0
7499 return 0;
7501 _ACEOF
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_hi=-1 ac_mid=-1
7520 while :; do
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 typedef long ac__type_sizeof_;
7530 main ()
7532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7533 test_array [0] = 0
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ac_lo=$ac_mid; break
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_hi=`expr '(' $ac_mid ')' - 1`
7562 if test $ac_mid -le $ac_hi; then
7563 ac_lo= ac_hi=
7564 break
7566 ac_mid=`expr 2 '*' $ac_mid`
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 done
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_lo= ac_hi=
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 # Binary search between lo and hi bounds.
7583 while test "x$ac_lo" != "x$ac_hi"; do
7584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 typedef long ac__type_sizeof_;
7594 main ()
7596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7597 test_array [0] = 0
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7620 ac_hi=$ac_mid
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_lo=`expr '(' $ac_mid ')' + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 done
7630 case $ac_lo in
7631 ?*) ac_cv_sizeof_long=$ac_lo;;
7632 '') if test "$ac_cv_type_long" = yes; then
7633 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7634 See \`config.log' for more details." >&5
7635 echo "$as_me: error: cannot compute sizeof (long)
7636 See \`config.log' for more details." >&2;}
7637 { (exit 77); exit 77; }; }
7638 else
7639 ac_cv_sizeof_long=0
7640 fi ;;
7641 esac
7642 else
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef long ac__type_sizeof_;
7651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7653 #include <stdio.h>
7654 #include <stdlib.h>
7656 main ()
7659 FILE *f = fopen ("conftest.val", "w");
7660 if (! f)
7661 return 1;
7662 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7664 long int i = longval ();
7665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7666 return 1;
7667 fprintf (f, "%ld\n", i);
7669 else
7671 unsigned long int i = ulongval ();
7672 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7673 return 1;
7674 fprintf (f, "%lu\n", i);
7676 return ferror (f) || fclose (f) != 0;
7679 return 0;
7681 _ACEOF
7682 rm -f conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7684 case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_long=`cat conftest.val`
7703 else
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ( exit $ac_status )
7709 if test "$ac_cv_type_long" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7711 See \`config.log' for more details." >&5
7712 echo "$as_me: error: cannot compute sizeof (long)
7713 See \`config.log' for more details." >&2;}
7714 { (exit 77); exit 77; }; }
7715 else
7716 ac_cv_sizeof_long=0
7719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7721 rm -f conftest.val
7723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7728 cat >>confdefs.h <<_ACEOF
7729 #define SIZEOF_LONG $ac_cv_sizeof_long
7730 _ACEOF
7733 { echo "$as_me:$LINENO: checking for void *" >&5
7734 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7735 if test "${ac_cv_type_void_p+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7745 typedef void * ac__type_new_;
7747 main ()
7749 if ((ac__type_new_ *) 0)
7750 return 0;
7751 if (sizeof (ac__type_new_))
7752 return 0;
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_type_void_p=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_type_void_p=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7785 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7787 # The cast to long int works around a bug in the HP C Compiler
7788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7790 # This bug is HP SR number 8606223364.
7791 { echo "$as_me:$LINENO: checking size of void *" >&5
7792 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7793 if test "${ac_cv_sizeof_void_p+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 if test "$cross_compiling" = yes; then
7797 # Depending upon the size, compute the lo and hi bounds.
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 $ac_includes_default
7805 typedef void * ac__type_sizeof_;
7807 main ()
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7810 test_array [0] = 0
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_lo=0 ac_mid=0
7834 while :; do
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 typedef void * ac__type_sizeof_;
7844 main ()
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7847 test_array [0] = 0
7850 return 0;
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.$ac_objext; then
7870 ac_hi=$ac_mid; break
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_lo=`expr $ac_mid + 1`
7876 if test $ac_lo -le $ac_mid; then
7877 ac_lo= ac_hi=
7878 break
7880 ac_mid=`expr 2 '*' $ac_mid + 1`
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 done
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void * ac__type_sizeof_;
7898 main ()
7900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7901 test_array [0] = 0
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_hi=-1 ac_mid=-1
7925 while :; do
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 $ac_includes_default
7933 typedef void * ac__type_sizeof_;
7935 main ()
7937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7938 test_array [0] = 0
7941 return 0;
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7946 case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 ac_lo=$ac_mid; break
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_hi=`expr '(' $ac_mid ')' - 1`
7967 if test $ac_mid -le $ac_hi; then
7968 ac_lo= ac_hi=
7969 break
7971 ac_mid=`expr 2 '*' $ac_mid`
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 done
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_lo= ac_hi=
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 # Binary search between lo and hi bounds.
7988 while test "x$ac_lo" != "x$ac_hi"; do
7989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 $ac_includes_default
7997 typedef void * ac__type_sizeof_;
7999 main ()
8001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8002 test_array [0] = 0
8005 return 0;
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (ac_try="$ac_compile"
8010 case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013 esac
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8025 ac_hi=$ac_mid
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_lo=`expr '(' $ac_mid ')' + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 done
8035 case $ac_lo in
8036 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8037 '') if test "$ac_cv_type_void_p" = yes; then
8038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8039 See \`config.log' for more details." >&5
8040 echo "$as_me: error: cannot compute sizeof (void *)
8041 See \`config.log' for more details." >&2;}
8042 { (exit 77); exit 77; }; }
8043 else
8044 ac_cv_sizeof_void_p=0
8045 fi ;;
8046 esac
8047 else
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 typedef void * ac__type_sizeof_;
8056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8058 #include <stdio.h>
8059 #include <stdlib.h>
8061 main ()
8064 FILE *f = fopen ("conftest.val", "w");
8065 if (! f)
8066 return 1;
8067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8069 long int i = longval ();
8070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8071 return 1;
8072 fprintf (f, "%ld\n", i);
8074 else
8076 unsigned long int i = ulongval ();
8077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8078 return 1;
8079 fprintf (f, "%lu\n", i);
8081 return ferror (f) || fclose (f) != 0;
8084 return 0;
8086 _ACEOF
8087 rm -f conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101 esac
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_sizeof_void_p=`cat conftest.val`
8108 else
8109 echo "$as_me: program exited with status $ac_status" >&5
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ( exit $ac_status )
8114 if test "$ac_cv_type_void_p" = yes; then
8115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8116 See \`config.log' for more details." >&5
8117 echo "$as_me: error: cannot compute sizeof (void *)
8118 See \`config.log' for more details." >&2;}
8119 { (exit 77); exit 77; }; }
8120 else
8121 ac_cv_sizeof_void_p=0
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 rm -f conftest.val
8128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8129 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8133 cat >>confdefs.h <<_ACEOF
8134 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8135 _ACEOF
8138 { echo "$as_me:$LINENO: checking for short" >&5
8139 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8140 if test "${ac_cv_type_short+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 typedef short ac__type_new_;
8152 main ()
8154 if ((ac__type_new_ *) 0)
8155 return 0;
8156 if (sizeof (ac__type_new_))
8157 return 0;
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_type_short=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_type_short=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8190 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8192 # The cast to long int works around a bug in the HP C Compiler
8193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195 # This bug is HP SR number 8606223364.
8196 { echo "$as_me:$LINENO: checking size of short" >&5
8197 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8198 if test "${ac_cv_sizeof_short+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 typedef short ac__type_sizeof_;
8212 main ()
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8215 test_array [0] = 0
8218 return 0;
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_lo=0 ac_mid=0
8239 while :; do
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 typedef short ac__type_sizeof_;
8249 main ()
8251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8252 test_array [0] = 0
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.$ac_objext; then
8275 ac_hi=$ac_mid; break
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 ac_lo=`expr $ac_mid + 1`
8281 if test $ac_lo -le $ac_mid; then
8282 ac_lo= ac_hi=
8283 break
8285 ac_mid=`expr 2 '*' $ac_mid + 1`
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 done
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8301 typedef short ac__type_sizeof_;
8303 main ()
8305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8306 test_array [0] = 0
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8314 case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8329 ac_hi=-1 ac_mid=-1
8330 while :; do
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef short ac__type_sizeof_;
8340 main ()
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8343 test_array [0] = 0
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_lo=$ac_mid; break
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_hi=`expr '(' $ac_mid ')' - 1`
8372 if test $ac_mid -le $ac_hi; then
8373 ac_lo= ac_hi=
8374 break
8376 ac_mid=`expr 2 '*' $ac_mid`
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 done
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_lo= ac_hi=
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 # Binary search between lo and hi bounds.
8393 while test "x$ac_lo" != "x$ac_hi"; do
8394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 typedef short ac__type_sizeof_;
8404 main ()
8406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8407 test_array [0] = 0
8410 return 0;
8412 _ACEOF
8413 rm -f conftest.$ac_objext
8414 if { (ac_try="$ac_compile"
8415 case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_hi=$ac_mid
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_lo=`expr '(' $ac_mid ')' + 1`
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 done
8440 case $ac_lo in
8441 ?*) ac_cv_sizeof_short=$ac_lo;;
8442 '') if test "$ac_cv_type_short" = yes; then
8443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8444 See \`config.log' for more details." >&5
8445 echo "$as_me: error: cannot compute sizeof (short)
8446 See \`config.log' for more details." >&2;}
8447 { (exit 77); exit 77; }; }
8448 else
8449 ac_cv_sizeof_short=0
8450 fi ;;
8451 esac
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 typedef short ac__type_sizeof_;
8461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8463 #include <stdio.h>
8464 #include <stdlib.h>
8466 main ()
8469 FILE *f = fopen ("conftest.val", "w");
8470 if (! f)
8471 return 1;
8472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8474 long int i = longval ();
8475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8476 return 1;
8477 fprintf (f, "%ld\n", i);
8479 else
8481 unsigned long int i = ulongval ();
8482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8483 return 1;
8484 fprintf (f, "%lu\n", i);
8486 return ferror (f) || fclose (f) != 0;
8489 return 0;
8491 _ACEOF
8492 rm -f conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_sizeof_short=`cat conftest.val`
8513 else
8514 echo "$as_me: program exited with status $ac_status" >&5
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ( exit $ac_status )
8519 if test "$ac_cv_type_short" = yes; then
8520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8521 See \`config.log' for more details." >&5
8522 echo "$as_me: error: cannot compute sizeof (short)
8523 See \`config.log' for more details." >&2;}
8524 { (exit 77); exit 77; }; }
8525 else
8526 ac_cv_sizeof_short=0
8529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8531 rm -f conftest.val
8533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8534 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8538 cat >>confdefs.h <<_ACEOF
8539 #define SIZEOF_SHORT $ac_cv_sizeof_short
8540 _ACEOF
8543 { echo "$as_me:$LINENO: checking for float" >&5
8544 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8545 if test "${ac_cv_type_float+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 typedef float ac__type_new_;
8557 main ()
8559 if ((ac__type_new_ *) 0)
8560 return 0;
8561 if (sizeof (ac__type_new_))
8562 return 0;
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8584 ac_cv_type_float=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_type_float=no
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8595 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8597 # The cast to long int works around a bug in the HP C Compiler
8598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8600 # This bug is HP SR number 8606223364.
8601 { echo "$as_me:$LINENO: checking size of float" >&5
8602 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8603 if test "${ac_cv_sizeof_float+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 if test "$cross_compiling" = yes; then
8607 # Depending upon the size, compute the lo and hi bounds.
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 typedef float ac__type_sizeof_;
8617 main ()
8619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8620 test_array [0] = 0
8623 return 0;
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_lo=0 ac_mid=0
8644 while :; do
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 typedef float ac__type_sizeof_;
8654 main ()
8656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8657 test_array [0] = 0
8660 return 0;
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8665 case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.$ac_objext; then
8680 ac_hi=$ac_mid; break
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_lo=`expr $ac_mid + 1`
8686 if test $ac_lo -le $ac_mid; then
8687 ac_lo= ac_hi=
8688 break
8690 ac_mid=`expr 2 '*' $ac_mid + 1`
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 done
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 typedef float ac__type_sizeof_;
8708 main ()
8710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8711 test_array [0] = 0
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8719 case "(($ac_try" in
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_hi=-1 ac_mid=-1
8735 while :; do
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 typedef float ac__type_sizeof_;
8745 main ()
8747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8748 test_array [0] = 0
8751 return 0;
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 ac_lo=$ac_mid; break
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_hi=`expr '(' $ac_mid ')' - 1`
8777 if test $ac_mid -le $ac_hi; then
8778 ac_lo= ac_hi=
8779 break
8781 ac_mid=`expr 2 '*' $ac_mid`
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 done
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_lo= ac_hi=
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 # Binary search between lo and hi bounds.
8798 while test "x$ac_lo" != "x$ac_hi"; do
8799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 typedef float ac__type_sizeof_;
8809 main ()
8811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8812 test_array [0] = 0
8815 return 0;
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_hi=$ac_mid
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_lo=`expr '(' $ac_mid ')' + 1`
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 done
8845 case $ac_lo in
8846 ?*) ac_cv_sizeof_float=$ac_lo;;
8847 '') if test "$ac_cv_type_float" = yes; then
8848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8849 See \`config.log' for more details." >&5
8850 echo "$as_me: error: cannot compute sizeof (float)
8851 See \`config.log' for more details." >&2;}
8852 { (exit 77); exit 77; }; }
8853 else
8854 ac_cv_sizeof_float=0
8855 fi ;;
8856 esac
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8865 typedef float ac__type_sizeof_;
8866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8868 #include <stdio.h>
8869 #include <stdlib.h>
8871 main ()
8874 FILE *f = fopen ("conftest.val", "w");
8875 if (! f)
8876 return 1;
8877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8879 long int i = longval ();
8880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8881 return 1;
8882 fprintf (f, "%ld\n", i);
8884 else
8886 unsigned long int i = ulongval ();
8887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8888 return 1;
8889 fprintf (f, "%lu\n", i);
8891 return ferror (f) || fclose (f) != 0;
8894 return 0;
8896 _ACEOF
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_sizeof_float=`cat conftest.val`
8918 else
8919 echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ( exit $ac_status )
8924 if test "$ac_cv_type_float" = yes; then
8925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8926 See \`config.log' for more details." >&5
8927 echo "$as_me: error: cannot compute sizeof (float)
8928 See \`config.log' for more details." >&2;}
8929 { (exit 77); exit 77; }; }
8930 else
8931 ac_cv_sizeof_float=0
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 rm -f conftest.val
8938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8939 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8945 _ACEOF
8948 { echo "$as_me:$LINENO: checking for double" >&5
8949 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8950 if test "${ac_cv_type_double+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 typedef double ac__type_new_;
8962 main ()
8964 if ((ac__type_new_ *) 0)
8965 return 0;
8966 if (sizeof (ac__type_new_))
8967 return 0;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8974 case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_cv_type_double=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_type_double=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9000 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9002 # The cast to long int works around a bug in the HP C Compiler
9003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9005 # This bug is HP SR number 8606223364.
9006 { echo "$as_me:$LINENO: checking size of double" >&5
9007 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9008 if test "${ac_cv_sizeof_double+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011 if test "$cross_compiling" = yes; then
9012 # Depending upon the size, compute the lo and hi bounds.
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9020 typedef double ac__type_sizeof_;
9022 main ()
9024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9025 test_array [0] = 0
9028 return 0;
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (ac_try="$ac_compile"
9033 case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9048 ac_lo=0 ac_mid=0
9049 while :; do
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 $ac_includes_default
9057 typedef double ac__type_sizeof_;
9059 main ()
9061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9062 test_array [0] = 0
9065 return 0;
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (ac_try="$ac_compile"
9070 case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_compile") 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest.$ac_objext; then
9085 ac_hi=$ac_mid; break
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_lo=`expr $ac_mid + 1`
9091 if test $ac_lo -le $ac_mid; then
9092 ac_lo= ac_hi=
9093 break
9095 ac_mid=`expr 2 '*' $ac_mid + 1`
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 done
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $ac_includes_default
9111 typedef double ac__type_sizeof_;
9113 main ()
9115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9116 test_array [0] = 0
9119 return 0;
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9124 case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9139 ac_hi=-1 ac_mid=-1
9140 while :; do
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 $ac_includes_default
9148 typedef double ac__type_sizeof_;
9150 main ()
9152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9153 test_array [0] = 0
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.$ac_objext; then
9176 ac_lo=$ac_mid; break
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_hi=`expr '(' $ac_mid ')' - 1`
9182 if test $ac_mid -le $ac_hi; then
9183 ac_lo= ac_hi=
9184 break
9186 ac_mid=`expr 2 '*' $ac_mid`
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 done
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_lo= ac_hi=
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 # Binary search between lo and hi bounds.
9203 while test "x$ac_lo" != "x$ac_hi"; do
9204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 typedef double ac__type_sizeof_;
9214 main ()
9216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9217 test_array [0] = 0
9220 return 0;
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (ac_try="$ac_compile"
9225 case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9240 ac_hi=$ac_mid
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_lo=`expr '(' $ac_mid ')' + 1`
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 done
9250 case $ac_lo in
9251 ?*) ac_cv_sizeof_double=$ac_lo;;
9252 '') if test "$ac_cv_type_double" = yes; then
9253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9254 See \`config.log' for more details." >&5
9255 echo "$as_me: error: cannot compute sizeof (double)
9256 See \`config.log' for more details." >&2;}
9257 { (exit 77); exit 77; }; }
9258 else
9259 ac_cv_sizeof_double=0
9260 fi ;;
9261 esac
9262 else
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 typedef double ac__type_sizeof_;
9271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9273 #include <stdio.h>
9274 #include <stdlib.h>
9276 main ()
9279 FILE *f = fopen ("conftest.val", "w");
9280 if (! f)
9281 return 1;
9282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9284 long int i = longval ();
9285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9286 return 1;
9287 fprintf (f, "%ld\n", i);
9289 else
9291 unsigned long int i = ulongval ();
9292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9293 return 1;
9294 fprintf (f, "%lu\n", i);
9296 return ferror (f) || fclose (f) != 0;
9299 return 0;
9301 _ACEOF
9302 rm -f conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9304 case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_sizeof_double=`cat conftest.val`
9323 else
9324 echo "$as_me: program exited with status $ac_status" >&5
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ( exit $ac_status )
9329 if test "$ac_cv_type_double" = yes; then
9330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9331 See \`config.log' for more details." >&5
9332 echo "$as_me: error: cannot compute sizeof (double)
9333 See \`config.log' for more details." >&2;}
9334 { (exit 77); exit 77; }; }
9335 else
9336 ac_cv_sizeof_double=0
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9341 rm -f conftest.val
9343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9344 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9348 cat >>confdefs.h <<_ACEOF
9349 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9350 _ACEOF
9353 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9354 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9355 if test "${ac_cv_type_fpos_t+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 typedef fpos_t ac__type_new_;
9367 main ()
9369 if ((ac__type_new_ *) 0)
9370 return 0;
9371 if (sizeof (ac__type_new_))
9372 return 0;
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_compile") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest.$ac_objext; then
9394 ac_cv_type_fpos_t=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9399 ac_cv_type_fpos_t=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9405 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9407 # The cast to long int works around a bug in the HP C Compiler
9408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9410 # This bug is HP SR number 8606223364.
9411 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9412 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9413 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 if test "$cross_compiling" = yes; then
9417 # Depending upon the size, compute the lo and hi bounds.
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9425 typedef fpos_t ac__type_sizeof_;
9427 main ()
9429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9430 test_array [0] = 0
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_lo=0 ac_mid=0
9454 while :; do
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 typedef fpos_t ac__type_sizeof_;
9464 main ()
9466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9467 test_array [0] = 0
9470 return 0;
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.$ac_objext; then
9490 ac_hi=$ac_mid; break
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_lo=`expr $ac_mid + 1`
9496 if test $ac_lo -le $ac_mid; then
9497 ac_lo= ac_hi=
9498 break
9500 ac_mid=`expr 2 '*' $ac_mid + 1`
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 done
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 typedef fpos_t ac__type_sizeof_;
9518 main ()
9520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9521 test_array [0] = 0
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_hi=-1 ac_mid=-1
9545 while :; do
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef fpos_t ac__type_sizeof_;
9555 main ()
9557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9558 test_array [0] = 0
9561 return 0;
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9566 case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.$ac_objext; then
9581 ac_lo=$ac_mid; break
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_hi=`expr '(' $ac_mid ')' - 1`
9587 if test $ac_mid -le $ac_hi; then
9588 ac_lo= ac_hi=
9589 break
9591 ac_mid=`expr 2 '*' $ac_mid`
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 done
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_lo= ac_hi=
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 # Binary search between lo and hi bounds.
9608 while test "x$ac_lo" != "x$ac_hi"; do
9609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 typedef fpos_t ac__type_sizeof_;
9619 main ()
9621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9622 test_array [0] = 0
9625 return 0;
9627 _ACEOF
9628 rm -f conftest.$ac_objext
9629 if { (ac_try="$ac_compile"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_hi=$ac_mid
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_lo=`expr '(' $ac_mid ')' + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 done
9655 case $ac_lo in
9656 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9657 '') if test "$ac_cv_type_fpos_t" = yes; then
9658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9659 See \`config.log' for more details." >&5
9660 echo "$as_me: error: cannot compute sizeof (fpos_t)
9661 See \`config.log' for more details." >&2;}
9662 { (exit 77); exit 77; }; }
9663 else
9664 ac_cv_sizeof_fpos_t=0
9665 fi ;;
9666 esac
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 typedef fpos_t ac__type_sizeof_;
9676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9678 #include <stdio.h>
9679 #include <stdlib.h>
9681 main ()
9684 FILE *f = fopen ("conftest.val", "w");
9685 if (! f)
9686 return 1;
9687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9689 long int i = longval ();
9690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9691 return 1;
9692 fprintf (f, "%ld\n", i);
9694 else
9696 unsigned long int i = ulongval ();
9697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9698 return 1;
9699 fprintf (f, "%lu\n", i);
9701 return ferror (f) || fclose (f) != 0;
9704 return 0;
9706 _ACEOF
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_sizeof_fpos_t=`cat conftest.val`
9728 else
9729 echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ( exit $ac_status )
9734 if test "$ac_cv_type_fpos_t" = yes; then
9735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9736 See \`config.log' for more details." >&5
9737 echo "$as_me: error: cannot compute sizeof (fpos_t)
9738 See \`config.log' for more details." >&2;}
9739 { (exit 77); exit 77; }; }
9740 else
9741 ac_cv_sizeof_fpos_t=0
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9746 rm -f conftest.val
9748 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9749 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9755 _ACEOF
9758 { echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 typedef size_t ac__type_new_;
9772 main ()
9774 if ((ac__type_new_ *) 0)
9775 return 0;
9776 if (sizeof (ac__type_new_))
9777 return 0;
9779 return 0;
9781 _ACEOF
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_cv_type_size_t=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_type_size_t=no
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9812 # The cast to long int works around a bug in the HP C Compiler
9813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9815 # This bug is HP SR number 8606223364.
9816 { echo "$as_me:$LINENO: checking size of size_t" >&5
9817 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9818 if test "${ac_cv_sizeof_size_t+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 if test "$cross_compiling" = yes; then
9822 # Depending upon the size, compute the lo and hi bounds.
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 typedef size_t ac__type_sizeof_;
9832 main ()
9834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9835 test_array [0] = 0
9838 return 0;
9840 _ACEOF
9841 rm -f conftest.$ac_objext
9842 if { (ac_try="$ac_compile"
9843 case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_compile") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest.$ac_objext; then
9858 ac_lo=0 ac_mid=0
9859 while :; do
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 $ac_includes_default
9867 typedef size_t ac__type_sizeof_;
9869 main ()
9871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9872 test_array [0] = 0
9875 return 0;
9877 _ACEOF
9878 rm -f conftest.$ac_objext
9879 if { (ac_try="$ac_compile"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.$ac_objext; then
9895 ac_hi=$ac_mid; break
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_lo=`expr $ac_mid + 1`
9901 if test $ac_lo -le $ac_mid; then
9902 ac_lo= ac_hi=
9903 break
9905 ac_mid=`expr 2 '*' $ac_mid + 1`
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 done
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 typedef size_t ac__type_sizeof_;
9923 main ()
9925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9926 test_array [0] = 0
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_hi=-1 ac_mid=-1
9950 while :; do
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 $ac_includes_default
9958 typedef size_t ac__type_sizeof_;
9960 main ()
9962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9963 test_array [0] = 0
9966 return 0;
9968 _ACEOF
9969 rm -f conftest.$ac_objext
9970 if { (ac_try="$ac_compile"
9971 case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 ac_lo=$ac_mid; break
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_hi=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9993 ac_lo= ac_hi=
9994 break
9996 ac_mid=`expr 2 '*' $ac_mid`
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000 done
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_lo= ac_hi=
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 # Binary search between lo and hi bounds.
10013 while test "x$ac_lo" != "x$ac_hi"; do
10014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 typedef size_t ac__type_sizeof_;
10024 main ()
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10027 test_array [0] = 0
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext
10034 if { (ac_try="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_compile") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest.$ac_objext; then
10050 ac_hi=$ac_mid
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_lo=`expr '(' $ac_mid ')' + 1`
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 done
10060 case $ac_lo in
10061 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10062 '') if test "$ac_cv_type_size_t" = yes; then
10063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10064 See \`config.log' for more details." >&5
10065 echo "$as_me: error: cannot compute sizeof (size_t)
10066 See \`config.log' for more details." >&2;}
10067 { (exit 77); exit 77; }; }
10068 else
10069 ac_cv_sizeof_size_t=0
10070 fi ;;
10071 esac
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 typedef size_t ac__type_sizeof_;
10081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10083 #include <stdio.h>
10084 #include <stdlib.h>
10086 main ()
10089 FILE *f = fopen ("conftest.val", "w");
10090 if (! f)
10091 return 1;
10092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10094 long int i = longval ();
10095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10096 return 1;
10097 fprintf (f, "%ld\n", i);
10099 else
10101 unsigned long int i = ulongval ();
10102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10103 return 1;
10104 fprintf (f, "%lu\n", i);
10106 return ferror (f) || fclose (f) != 0;
10109 return 0;
10111 _ACEOF
10112 rm -f conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117 esac
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_sizeof_size_t=`cat conftest.val`
10133 else
10134 echo "$as_me: program exited with status $ac_status" >&5
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ( exit $ac_status )
10139 if test "$ac_cv_type_size_t" = yes; then
10140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10141 See \`config.log' for more details." >&5
10142 echo "$as_me: error: cannot compute sizeof (size_t)
10143 See \`config.log' for more details." >&2;}
10144 { (exit 77); exit 77; }; }
10145 else
10146 ac_cv_sizeof_size_t=0
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10151 rm -f conftest.val
10153 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10154 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10160 _ACEOF
10164 { echo "$as_me:$LINENO: checking for long long support" >&5
10165 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10166 have_long_long=no
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10175 main ()
10177 long long x; x = (long long)0;
10179 return 0;
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (ac_try="$ac_compile"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest.$ac_objext; then
10201 cat >>confdefs.h <<\_ACEOF
10202 #define HAVE_LONG_LONG 1
10203 _ACEOF
10205 have_long_long=yes
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10216 echo "${ECHO_T}$have_long_long" >&6; }
10217 if test "$have_long_long" = yes ; then
10218 { echo "$as_me:$LINENO: checking for long long" >&5
10219 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10220 if test "${ac_cv_type_long_long+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef long long ac__type_new_;
10232 main ()
10234 if ((ac__type_new_ *) 0)
10235 return 0;
10236 if (sizeof (ac__type_new_))
10237 return 0;
10239 return 0;
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_compile") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest.$ac_objext; then
10259 ac_cv_type_long_long=yes
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_cv_type_long_long=no
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10270 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10272 # The cast to long int works around a bug in the HP C Compiler
10273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10275 # This bug is HP SR number 8606223364.
10276 { echo "$as_me:$LINENO: checking size of long long" >&5
10277 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10278 if test "${ac_cv_sizeof_long_long+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 if test "$cross_compiling" = yes; then
10282 # Depending upon the size, compute the lo and hi bounds.
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 typedef long long ac__type_sizeof_;
10292 main ()
10294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10295 test_array [0] = 0
10298 return 0;
10300 _ACEOF
10301 rm -f conftest.$ac_objext
10302 if { (ac_try="$ac_compile"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 ac_lo=0 ac_mid=0
10319 while :; do
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 $ac_includes_default
10327 typedef long long ac__type_sizeof_;
10329 main ()
10331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10332 test_array [0] = 0
10335 return 0;
10337 _ACEOF
10338 rm -f conftest.$ac_objext
10339 if { (ac_try="$ac_compile"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 ac_hi=$ac_mid; break
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_lo=`expr $ac_mid + 1`
10361 if test $ac_lo -le $ac_mid; then
10362 ac_lo= ac_hi=
10363 break
10365 ac_mid=`expr 2 '*' $ac_mid + 1`
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 done
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 $ac_includes_default
10381 typedef long long ac__type_sizeof_;
10383 main ()
10385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10386 test_array [0] = 0
10389 return 0;
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (ac_try="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_compile") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest.$ac_objext; then
10409 ac_hi=-1 ac_mid=-1
10410 while :; do
10411 cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h. */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef long long ac__type_sizeof_;
10420 main ()
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10423 test_array [0] = 0
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10446 ac_lo=$ac_mid; break
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_hi=`expr '(' $ac_mid ')' - 1`
10452 if test $ac_mid -le $ac_hi; then
10453 ac_lo= ac_hi=
10454 break
10456 ac_mid=`expr 2 '*' $ac_mid`
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 done
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_lo= ac_hi=
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 # Binary search between lo and hi bounds.
10473 while test "x$ac_lo" != "x$ac_hi"; do
10474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 typedef long long ac__type_sizeof_;
10484 main ()
10486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10487 test_array [0] = 0
10490 return 0;
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (ac_try="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest.$ac_objext; then
10510 ac_hi=$ac_mid
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ac_lo=`expr '(' $ac_mid ')' + 1`
10518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 done
10520 case $ac_lo in
10521 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10522 '') if test "$ac_cv_type_long_long" = yes; then
10523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10524 See \`config.log' for more details." >&5
10525 echo "$as_me: error: cannot compute sizeof (long long)
10526 See \`config.log' for more details." >&2;}
10527 { (exit 77); exit 77; }; }
10528 else
10529 ac_cv_sizeof_long_long=0
10530 fi ;;
10531 esac
10532 else
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 $ac_includes_default
10540 typedef long long ac__type_sizeof_;
10541 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10542 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10543 #include <stdio.h>
10544 #include <stdlib.h>
10546 main ()
10549 FILE *f = fopen ("conftest.val", "w");
10550 if (! f)
10551 return 1;
10552 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10554 long int i = longval ();
10555 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10556 return 1;
10557 fprintf (f, "%ld\n", i);
10559 else
10561 unsigned long int i = ulongval ();
10562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10563 return 1;
10564 fprintf (f, "%lu\n", i);
10566 return ferror (f) || fclose (f) != 0;
10569 return 0;
10571 _ACEOF
10572 rm -f conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_sizeof_long_long=`cat conftest.val`
10593 else
10594 echo "$as_me: program exited with status $ac_status" >&5
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ( exit $ac_status )
10599 if test "$ac_cv_type_long_long" = yes; then
10600 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10601 See \`config.log' for more details." >&5
10602 echo "$as_me: error: cannot compute sizeof (long long)
10603 See \`config.log' for more details." >&2;}
10604 { (exit 77); exit 77; }; }
10605 else
10606 ac_cv_sizeof_long_long=0
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10611 rm -f conftest.val
10613 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10618 cat >>confdefs.h <<_ACEOF
10619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10620 _ACEOF
10625 { echo "$as_me:$LINENO: checking for _Bool support" >&5
10626 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
10627 have_c99_bool=no
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10636 main ()
10638 _Bool x; x = (_Bool)0;
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_compile") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest.$ac_objext; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_C99_BOOL 1
10664 _ACEOF
10666 have_c99_bool=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10677 echo "${ECHO_T}$have_c99_bool" >&6; }
10678 if test "$have_c99_bool" = yes ; then
10679 { echo "$as_me:$LINENO: checking for _Bool" >&5
10680 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10681 if test "${ac_cv_type__Bool+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 $ac_includes_default
10691 typedef _Bool ac__type_new_;
10693 main ()
10695 if ((ac__type_new_ *) 0)
10696 return 0;
10697 if (sizeof (ac__type_new_))
10698 return 0;
10700 return 0;
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_cv_type__Bool=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_type__Bool=no
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10731 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10733 # The cast to long int works around a bug in the HP C Compiler
10734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10736 # This bug is HP SR number 8606223364.
10737 { echo "$as_me:$LINENO: checking size of _Bool" >&5
10738 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
10739 if test "${ac_cv_sizeof__Bool+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 if test "$cross_compiling" = yes; then
10743 # Depending upon the size, compute the lo and hi bounds.
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 typedef _Bool ac__type_sizeof_;
10753 main ()
10755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10756 test_array [0] = 0
10759 return 0;
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (ac_try="$ac_compile"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_compile") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest.$ac_objext; then
10779 ac_lo=0 ac_mid=0
10780 while :; do
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 _Bool ac__type_sizeof_;
10790 main ()
10792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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=$ac_mid; break
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_lo=`expr $ac_mid + 1`
10822 if test $ac_lo -le $ac_mid; then
10823 ac_lo= ac_hi=
10824 break
10826 ac_mid=`expr 2 '*' $ac_mid + 1`
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 done
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 $ac_includes_default
10842 typedef _Bool ac__type_sizeof_;
10844 main ()
10846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10847 test_array [0] = 0
10850 return 0;
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest.$ac_objext; then
10870 ac_hi=-1 ac_mid=-1
10871 while :; do
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 $ac_includes_default
10879 typedef _Bool ac__type_sizeof_;
10881 main ()
10883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10884 test_array [0] = 0
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.$ac_objext; then
10907 ac_lo=$ac_mid; break
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_hi=`expr '(' $ac_mid ')' - 1`
10913 if test $ac_mid -le $ac_hi; then
10914 ac_lo= ac_hi=
10915 break
10917 ac_mid=`expr 2 '*' $ac_mid`
10920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 done
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_lo= ac_hi=
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 # Binary search between lo and hi bounds.
10934 while test "x$ac_lo" != "x$ac_hi"; do
10935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 $ac_includes_default
10943 typedef _Bool ac__type_sizeof_;
10945 main ()
10947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10948 test_array [0] = 0
10951 return 0;
10953 _ACEOF
10954 rm -f conftest.$ac_objext
10955 if { (ac_try="$ac_compile"
10956 case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_compile") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest.$ac_objext; then
10971 ac_hi=$ac_mid
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_lo=`expr '(' $ac_mid ')' + 1`
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 done
10981 case $ac_lo in
10982 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10983 '') if test "$ac_cv_type__Bool" = yes; then
10984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
10985 See \`config.log' for more details." >&5
10986 echo "$as_me: error: cannot compute sizeof (_Bool)
10987 See \`config.log' for more details." >&2;}
10988 { (exit 77); exit 77; }; }
10989 else
10990 ac_cv_sizeof__Bool=0
10991 fi ;;
10992 esac
10993 else
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 typedef _Bool ac__type_sizeof_;
11002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11004 #include <stdio.h>
11005 #include <stdlib.h>
11007 main ()
11010 FILE *f = fopen ("conftest.val", "w");
11011 if (! f)
11012 return 1;
11013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11015 long int i = longval ();
11016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11017 return 1;
11018 fprintf (f, "%ld\n", i);
11020 else
11022 unsigned long int i = ulongval ();
11023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11024 return 1;
11025 fprintf (f, "%lu\n", i);
11027 return ferror (f) || fclose (f) != 0;
11030 return 0;
11032 _ACEOF
11033 rm -f conftest$ac_exeext
11034 if { (ac_try="$ac_link"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_sizeof__Bool=`cat conftest.val`
11054 else
11055 echo "$as_me: program exited with status $ac_status" >&5
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ( exit $ac_status )
11060 if test "$ac_cv_type__Bool" = yes; then
11061 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11062 See \`config.log' for more details." >&5
11063 echo "$as_me: error: cannot compute sizeof (_Bool)
11064 See \`config.log' for more details." >&2;}
11065 { (exit 77); exit 77; }; }
11066 else
11067 ac_cv_sizeof__Bool=0
11070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11072 rm -f conftest.val
11074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11075 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11079 cat >>confdefs.h <<_ACEOF
11080 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11081 _ACEOF
11086 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11087 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11088 if test "${ac_cv_type_uintptr_t+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #ifdef HAVE_STDINT_H
11098 #include <stdint.h>
11099 #endif
11101 typedef uintptr_t ac__type_new_;
11103 main ()
11105 if ((ac__type_new_ *) 0)
11106 return 0;
11107 if (sizeof (ac__type_new_))
11108 return 0;
11110 return 0;
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (ac_try="$ac_compile"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && {
11127 test -z "$ac_c_werror_flag" ||
11128 test ! -s conftest.err
11129 } && test -s conftest.$ac_objext; then
11130 ac_cv_type_uintptr_t=yes
11131 else
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_type_uintptr_t=no
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11141 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11142 if test $ac_cv_type_uintptr_t = yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define HAVE_UINTPTR_T 1
11146 _ACEOF
11148 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11149 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11150 if test "${ac_cv_type_uintptr_t+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 typedef uintptr_t ac__type_new_;
11162 main ()
11164 if ((ac__type_new_ *) 0)
11165 return 0;
11166 if (sizeof (ac__type_new_))
11167 return 0;
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11189 ac_cv_type_uintptr_t=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_cv_type_uintptr_t=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11200 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11202 # The cast to long int works around a bug in the HP C Compiler
11203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11205 # This bug is HP SR number 8606223364.
11206 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11207 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11208 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 if test "$cross_compiling" = yes; then
11212 # Depending upon the size, compute the lo and hi bounds.
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 typedef uintptr_t ac__type_sizeof_;
11222 main ()
11224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11225 test_array [0] = 0
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11248 ac_lo=0 ac_mid=0
11249 while :; do
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11257 typedef uintptr_t ac__type_sizeof_;
11259 main ()
11261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11262 test_array [0] = 0
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.$ac_objext; then
11285 ac_hi=$ac_mid; break
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_lo=`expr $ac_mid + 1`
11291 if test $ac_lo -le $ac_mid; then
11292 ac_lo= ac_hi=
11293 break
11295 ac_mid=`expr 2 '*' $ac_mid + 1`
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 done
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 $ac_includes_default
11311 typedef uintptr_t ac__type_sizeof_;
11313 main ()
11315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11316 test_array [0] = 0
11319 return 0;
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_hi=-1 ac_mid=-1
11340 while :; do
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 typedef uintptr_t ac__type_sizeof_;
11350 main ()
11352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11353 test_array [0] = 0
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (ac_try="$ac_compile"
11361 case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.$ac_objext; then
11376 ac_lo=$ac_mid; break
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_hi=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11383 ac_lo= ac_hi=
11384 break
11386 ac_mid=`expr 2 '*' $ac_mid`
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 done
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_lo= ac_hi=
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 # Binary search between lo and hi bounds.
11403 while test "x$ac_lo" != "x$ac_hi"; do
11404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h. */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 typedef uintptr_t ac__type_sizeof_;
11414 main ()
11416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11417 test_array [0] = 0
11420 return 0;
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11440 ac_hi=$ac_mid
11441 else
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_lo=`expr '(' $ac_mid ')' + 1`
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449 done
11450 case $ac_lo in
11451 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11452 '') if test "$ac_cv_type_uintptr_t" = yes; then
11453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11454 See \`config.log' for more details." >&5
11455 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11456 See \`config.log' for more details." >&2;}
11457 { (exit 77); exit 77; }; }
11458 else
11459 ac_cv_sizeof_uintptr_t=0
11460 fi ;;
11461 esac
11462 else
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 typedef uintptr_t ac__type_sizeof_;
11471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11473 #include <stdio.h>
11474 #include <stdlib.h>
11476 main ()
11479 FILE *f = fopen ("conftest.val", "w");
11480 if (! f)
11481 return 1;
11482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11484 long int i = longval ();
11485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11486 return 1;
11487 fprintf (f, "%ld\n", i);
11489 else
11491 unsigned long int i = ulongval ();
11492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11493 return 1;
11494 fprintf (f, "%lu\n", i);
11496 return ferror (f) || fclose (f) != 0;
11499 return 0;
11501 _ACEOF
11502 rm -f conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_link") 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11523 else
11524 echo "$as_me: program exited with status $ac_status" >&5
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ( exit $ac_status )
11529 if test "$ac_cv_type_uintptr_t" = yes; then
11530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11531 See \`config.log' for more details." >&5
11532 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11533 See \`config.log' for more details." >&2;}
11534 { (exit 77); exit 77; }; }
11535 else
11536 ac_cv_sizeof_uintptr_t=0
11539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11541 rm -f conftest.val
11543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11544 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11548 cat >>confdefs.h <<_ACEOF
11549 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11550 _ACEOF
11557 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11558 { echo "$as_me:$LINENO: checking size of off_t" >&5
11559 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11560 if test "${ac_cv_sizeof_off_t+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563 if test "$cross_compiling" = yes; then
11564 ac_cv_sizeof_off_t=4
11565 else
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 #include <stdio.h>
11573 #include <sys/types.h>
11574 main()
11576 FILE *f=fopen("conftestval", "w");
11577 if (!f) exit(1);
11578 fprintf(f, "%d\n", sizeof(off_t));
11579 exit(0);
11581 _ACEOF
11582 rm -f conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_sizeof_off_t=`cat conftestval`
11603 else
11604 echo "$as_me: program exited with status $ac_status" >&5
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 ( exit $ac_status )
11609 ac_cv_sizeof_off_t=0
11611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11619 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11621 cat >>confdefs.h <<_ACEOF
11622 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11623 _ACEOF
11626 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11627 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11628 if test "$have_long_long" = yes -a \
11629 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11630 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_LARGEFILE_SUPPORT 1
11634 _ACEOF
11636 { echo "$as_me:$LINENO: result: yes" >&5
11637 echo "${ECHO_T}yes" >&6; }
11638 else
11639 { echo "$as_me:$LINENO: result: no" >&5
11640 echo "${ECHO_T}no" >&6; }
11643 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11644 { echo "$as_me:$LINENO: checking size of time_t" >&5
11645 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11646 if test "${ac_cv_sizeof_time_t+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 if test "$cross_compiling" = yes; then
11650 ac_cv_sizeof_time_t=4
11651 else
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 #include <stdio.h>
11659 #include <time.h>
11660 main()
11662 FILE *f=fopen("conftestval", "w");
11663 if (!f) exit(1);
11664 fprintf(f, "%d\n", sizeof(time_t));
11665 exit(0);
11667 _ACEOF
11668 rm -f conftest$ac_exeext
11669 if { (ac_try="$ac_link"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_link") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_sizeof_time_t=`cat conftestval`
11689 else
11690 echo "$as_me: program exited with status $ac_status" >&5
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ( exit $ac_status )
11695 ac_cv_sizeof_time_t=0
11697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11705 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11707 cat >>confdefs.h <<_ACEOF
11708 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11709 _ACEOF
11713 # if have pthread_t then define SIZEOF_PTHREAD_T
11714 ac_save_cc="$CC"
11715 if test "$ac_cv_kpthread" = "yes"
11716 then CC="$CC -Kpthread"
11717 elif test "$ac_cv_kthread" = "yes"
11718 then CC="$CC -Kthread"
11719 elif test "$ac_cv_pthread" = "yes"
11720 then CC="$CC -pthread"
11722 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11723 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11724 have_pthread_t=no
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 #include <pthread.h>
11733 main ()
11735 pthread_t x; x = *(pthread_t*)0;
11737 return 0;
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (ac_try="$ac_compile"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_compile") 2>conftest.er1
11748 ac_status=$?
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } && {
11754 test -z "$ac_c_werror_flag" ||
11755 test ! -s conftest.err
11756 } && test -s conftest.$ac_objext; then
11757 have_pthread_t=yes
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11767 echo "${ECHO_T}$have_pthread_t" >&6; }
11768 if test "$have_pthread_t" = yes ; then
11769 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11770 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11771 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11772 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 if test "$cross_compiling" = yes; then
11776 ac_cv_sizeof_pthread_t=4
11777 else
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h. */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 #include <stdio.h>
11785 #include <pthread.h>
11786 main()
11788 FILE *f=fopen("conftestval", "w");
11789 if (!f) exit(1);
11790 fprintf(f, "%d\n", sizeof(pthread_t));
11791 exit(0);
11793 _ACEOF
11794 rm -f conftest$ac_exeext
11795 if { (ac_try="$ac_link"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_link") 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_sizeof_pthread_t=`cat conftestval`
11815 else
11816 echo "$as_me: program exited with status $ac_status" >&5
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11820 ( exit $ac_status )
11821 ac_cv_sizeof_pthread_t=0
11823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11830 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11831 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11833 cat >>confdefs.h <<_ACEOF
11834 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11835 _ACEOF
11838 CC="$ac_save_cc"
11840 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11841 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11842 # Check whether --enable-toolbox-glue was given.
11843 if test "${enable_toolbox_glue+set}" = set; then
11844 enableval=$enable_toolbox_glue;
11848 if test -z "$enable_toolbox_glue"
11849 then
11850 case $ac_sys_system/$ac_sys_release in
11851 Darwin/*)
11852 enable_toolbox_glue="yes";;
11854 enable_toolbox_glue="no";;
11855 esac
11857 case "$enable_toolbox_glue" in
11858 yes)
11859 extra_machdep_objs="Python/mactoolboxglue.o"
11860 extra_undefs="-u _PyMac_Error"
11862 cat >>confdefs.h <<\_ACEOF
11863 #define USE_TOOLBOX_OBJECT_GLUE 1
11864 _ACEOF
11868 extra_machdep_objs=""
11869 extra_undefs=""
11871 esac
11872 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11873 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11876 case $ac_sys_system/$ac_sys_release in
11877 Darwin/[01567]\..*)
11878 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11880 Darwin/*)
11881 OTHER_LIBTOOL_OPT=""
11883 esac
11886 case $ac_sys_system/$ac_sys_release in
11887 Darwin/[01567]\..*)
11888 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11889 if test "${enable_universalsdk}"; then
11891 else
11892 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11894 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11895 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11896 Darwin/*)
11897 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11898 if test ${gcc_version} '<' 4.0
11899 then
11900 LIBTOOL_CRUFT="-lcc_dynamic"
11901 else
11902 LIBTOOL_CRUFT=""
11904 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11905 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11906 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11907 esac
11909 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11910 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11911 if test "$enable_framework"
11912 then
11913 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11914 # -F. is needed to allow linking to the framework while
11915 # in the build location.
11917 cat >>confdefs.h <<\_ACEOF
11918 #define WITH_NEXT_FRAMEWORK 1
11919 _ACEOF
11921 { echo "$as_me:$LINENO: result: yes" >&5
11922 echo "${ECHO_T}yes" >&6; }
11923 else
11924 { echo "$as_me:$LINENO: result: no" >&5
11925 echo "${ECHO_T}no" >&6; }
11928 { echo "$as_me:$LINENO: checking for dyld" >&5
11929 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11930 case $ac_sys_system/$ac_sys_release in
11931 Darwin/*)
11933 cat >>confdefs.h <<\_ACEOF
11934 #define WITH_DYLD 1
11935 _ACEOF
11937 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11938 echo "${ECHO_T}always on for Darwin" >&6; }
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11944 esac
11946 # Set info about shared libraries.
11952 # SO is the extension of shared libraries `(including the dot!)
11953 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11954 { echo "$as_me:$LINENO: checking SO" >&5
11955 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11956 if test -z "$SO"
11957 then
11958 case $ac_sys_system in
11959 hp*|HP*)
11960 case `uname -m` in
11961 ia64) SO=.so;;
11962 *) SO=.sl;;
11963 esac
11965 CYGWIN*) SO=.dll;;
11966 *) SO=.so;;
11967 esac
11968 else
11969 # this might also be a termcap variable, see #610332
11970 echo
11971 echo '====================================================================='
11972 echo '+ +'
11973 echo '+ WARNING: You have set SO in your environment. +'
11974 echo '+ Do you really mean to change the extension for shared libraries? +'
11975 echo '+ Continuing in 10 seconds to let you to ponder. +'
11976 echo '+ +'
11977 echo '====================================================================='
11978 sleep 10
11980 { echo "$as_me:$LINENO: result: $SO" >&5
11981 echo "${ECHO_T}$SO" >&6; }
11983 cat >>confdefs.h <<_ACEOF
11984 #define SHLIB_EXT "$SO"
11985 _ACEOF
11987 # LDSHARED is the ld *command* used to create shared library
11988 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11989 # (Shared libraries in this instance are shared modules to be loaded into
11990 # Python, as opposed to building Python itself as a shared library.)
11991 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11992 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11993 if test -z "$LDSHARED"
11994 then
11995 case $ac_sys_system/$ac_sys_release in
11996 AIX*)
11997 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11998 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12000 BeOS*)
12001 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12002 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12004 IRIX/5*) LDSHARED="ld -shared";;
12005 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12006 SunOS/5*)
12007 if test "$GCC" = "yes"
12008 then LDSHARED='$(CC) -shared'
12009 else LDSHARED='$(CC) -G';
12010 fi ;;
12011 hp*|HP*) LDSHARED="ld -b";;
12012 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12013 Darwin/1.3*)
12014 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12015 if test "$enable_framework" ; then
12016 # Link against the framework. All externals should be defined.
12017 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12018 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12019 else
12020 # No framework. Ignore undefined symbols, assuming they come from Python
12021 LDSHARED="$LDSHARED -undefined suppress"
12022 fi ;;
12023 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12024 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12025 if test "$enable_framework" ; then
12026 # Link against the framework. All externals should be defined.
12027 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12028 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12029 else
12030 # No framework, use the Python app as bundle-loader
12031 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12032 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12033 fi ;;
12034 Darwin/*)
12035 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12036 # This allows an extension to be used in any Python
12037 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12038 if test ${cur_target} '>' 10.2; then
12039 cur_target=10.3
12041 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12043 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12044 # environment with a value that is the same as what we'll use
12045 # in the Makefile to ensure that we'll get the same compiler
12046 # environment during configure and build time.
12047 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12048 export MACOSX_DEPLOYMENT_TARGET
12050 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12051 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12052 then
12053 if test "${enable_universalsdk}"; then
12054 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12056 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12057 BLDSHARED="$LDSHARED"
12058 else
12059 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12060 if test "$enable_framework" ; then
12061 # Link against the framework. All externals should be defined.
12062 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12063 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12064 else
12065 # No framework, use the Python app as bundle-loader
12066 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12067 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12071 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12072 BSD/OS*/4*) LDSHARED="gcc -shared";;
12073 FreeBSD*)
12074 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12075 then
12076 LDSHARED="$CC -shared ${LDFLAGS}"
12077 else
12078 LDSHARED="ld -Bshareable ${LDFLAGS}"
12079 fi;;
12080 OpenBSD*)
12081 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12082 then
12083 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12084 else
12085 case `uname -r` in
12086 [01].* | 2.[0-7] | 2.[0-7].*)
12087 LDSHARED="ld -Bshareable ${LDFLAGS}"
12090 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12092 esac
12093 fi;;
12094 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12095 OpenUNIX*|UnixWare*)
12096 if test "$GCC" = "yes"
12097 then LDSHARED='$(CC) -shared'
12098 else LDSHARED='$(CC) -G'
12099 fi;;
12100 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12101 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12102 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12103 atheos*) LDSHARED="gcc -shared";;
12104 *) LDSHARED="ld";;
12105 esac
12107 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12108 echo "${ECHO_T}$LDSHARED" >&6; }
12109 BLDSHARED=${BLDSHARED-$LDSHARED}
12110 # CCSHARED are the C *flags* used to create objects to go into a shared
12111 # library (module) -- this is only needed for a few systems
12112 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12113 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12114 if test -z "$CCSHARED"
12115 then
12116 case $ac_sys_system/$ac_sys_release in
12117 SunOS*) if test "$GCC" = yes;
12118 then CCSHARED="-fPIC";
12119 elif test `uname -p` = sparc;
12120 then CCSHARED="-xcode=pic32";
12121 else CCSHARED="-Kpic";
12122 fi;;
12123 hp*|HP*) if test "$GCC" = yes;
12124 then CCSHARED="-fPIC";
12125 else CCSHARED="+z";
12126 fi;;
12127 Linux*|GNU*) CCSHARED="-fPIC";;
12128 BSD/OS*/4*) CCSHARED="-fpic";;
12129 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12130 OpenUNIX*|UnixWare*)
12131 if test "$GCC" = "yes"
12132 then CCSHARED="-fPIC"
12133 else CCSHARED="-KPIC"
12134 fi;;
12135 SCO_SV*)
12136 if test "$GCC" = "yes"
12137 then CCSHARED="-fPIC"
12138 else CCSHARED="-Kpic -belf"
12139 fi;;
12140 Monterey*) CCSHARED="-G";;
12141 IRIX*/6*) case $CC in
12142 *gcc*) CCSHARED="-shared";;
12143 *) CCSHARED="";;
12144 esac;;
12145 atheos*) CCSHARED="-fPIC";;
12146 esac
12148 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12149 echo "${ECHO_T}$CCSHARED" >&6; }
12150 # LINKFORSHARED are the flags passed to the $(CC) command that links
12151 # the python executable -- this is only needed for a few systems
12152 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12153 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12154 if test -z "$LINKFORSHARED"
12155 then
12156 case $ac_sys_system/$ac_sys_release in
12157 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12158 hp*|HP*)
12159 LINKFORSHARED="-Wl,-E -Wl,+s";;
12160 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12161 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12162 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12163 # -u libsys_s pulls in all symbols in libsys
12164 Darwin/*)
12165 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12166 # which is
12167 # not used by the core itself but which needs to be in the core so
12168 # that dynamically loaded extension modules have access to it.
12169 # -prebind is no longer used, because it actually seems to give a
12170 # slowdown in stead of a speedup, maybe due to the large number of
12171 # dynamic loads Python does.
12173 LINKFORSHARED="$extra_undefs"
12174 if test "$enable_framework"
12175 then
12176 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12178 LINKFORSHARED="$LINKFORSHARED";;
12179 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12180 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12181 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12182 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12183 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12184 then
12185 LINKFORSHARED="-Wl,--export-dynamic"
12186 fi;;
12187 SunOS/5*) case $CC in
12188 *gcc*)
12189 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12190 then
12191 LINKFORSHARED="-Xlinker --export-dynamic"
12192 fi;;
12193 esac;;
12194 CYGWIN*)
12195 if test $enable_shared = "no"
12196 then
12197 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12198 fi;;
12199 esac
12201 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12202 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12205 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12206 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12207 if test ! "$LIBRARY" = "$LDLIBRARY"
12208 then
12209 case $ac_sys_system in
12210 CYGWIN*)
12211 # Cygwin needs CCSHARED when building extension DLLs
12212 # but not when building the interpreter DLL.
12213 CFLAGSFORSHARED='';;
12215 CFLAGSFORSHARED='$(CCSHARED)'
12216 esac
12218 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12219 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12221 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12222 # library (with --enable-shared).
12223 # For platforms on which shared libraries are not allowed to have unresolved
12224 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12225 # if it is not required, since it creates a dependency of the shared library
12226 # to LIBS. This, in turn, means that applications linking the shared libpython
12227 # don't need to link LIBS explicitly. The default should be only changed
12228 # on systems where this approach causes problems.
12230 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12231 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12232 case "$ac_sys_system" in
12234 SHLIBS='$(LIBS)';;
12235 esac
12236 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12237 echo "${ECHO_T}$SHLIBS" >&6; }
12240 # checks for libraries
12242 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-ldl $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char dlopen ();
12264 main ()
12266 return dlopen ();
12268 return 0;
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext &&
12288 $as_test_x conftest$ac_exeext; then
12289 ac_cv_lib_dl_dlopen=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_lib_dl_dlopen=no
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_LIBDL 1
12306 _ACEOF
12308 LIBS="-ldl $LIBS"
12311 # Dynamic linking for SunOS/Solaris and SYSV
12313 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldld $LIBS"
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char shl_load ();
12335 main ()
12337 return shl_load ();
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext &&
12359 $as_test_x conftest$ac_exeext; then
12360 ac_cv_lib_dld_shl_load=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dld_shl_load=no
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12374 if test $ac_cv_lib_dld_shl_load = yes; then
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_LIBDLD 1
12377 _ACEOF
12379 LIBS="-ldld $LIBS"
12382 # Dynamic linking for HP-UX
12384 # only check for sem_ini if thread support is requested
12385 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12386 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12387 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12388 if test "${ac_cv_search_sem_init+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 ac_func_search_save_LIBS=$LIBS
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char sem_init ();
12407 main ()
12409 return sem_init ();
12411 return 0;
12413 _ACEOF
12414 for ac_lib in '' pthread rt posix4; do
12415 if test -z "$ac_lib"; then
12416 ac_res="none required"
12417 else
12418 ac_res=-l$ac_lib
12419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_search_sem_init=$ac_res
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext
12449 if test "${ac_cv_search_sem_init+set}" = set; then
12450 break
12452 done
12453 if test "${ac_cv_search_sem_init+set}" = set; then
12455 else
12456 ac_cv_search_sem_init=no
12458 rm conftest.$ac_ext
12459 LIBS=$ac_func_search_save_LIBS
12461 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12462 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12463 ac_res=$ac_cv_search_sem_init
12464 if test "$ac_res" != no; then
12465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12468 # 'Real Time' functions on Solaris
12469 # posix4 on Solaris 2.6
12470 # pthread (first!) on Linux
12473 # check if we need libintl for locale functions
12474 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12475 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12476 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lintl $LIBS"
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12491 #ifdef __cplusplus
12492 extern "C"
12493 #endif
12494 char textdomain ();
12496 main ()
12498 return textdomain ();
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext &&
12520 $as_test_x conftest$ac_exeext; then
12521 ac_cv_lib_intl_textdomain=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_cv_lib_intl_textdomain=no
12529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12530 conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_check_lib_save_LIBS
12533 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12534 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12535 if test $ac_cv_lib_intl_textdomain = yes; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define WITH_LIBINTL 1
12539 _ACEOF
12544 # checks for system dependent C++ extensions support
12545 case "$ac_sys_system" in
12546 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12547 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include "/usr/lpp/xlC/include/load.h"
12556 main ()
12558 loadAndInit("", 0, "")
12560 return 0;
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (ac_try="$ac_link"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_link") 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 } && test -s conftest$ac_exeext &&
12580 $as_test_x conftest$ac_exeext; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define AIX_GENUINE_CPLUSPLUS 1
12584 _ACEOF
12586 { echo "$as_me:$LINENO: result: yes" >&5
12587 echo "${ECHO_T}yes" >&6; }
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12597 conftest$ac_exeext conftest.$ac_ext;;
12598 *) ;;
12599 esac
12601 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12602 # BeOS' sockets are stashed in libnet.
12603 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12604 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12605 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-lnsl $LIBS"
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12617 /* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12620 #ifdef __cplusplus
12621 extern "C"
12622 #endif
12623 char t_open ();
12625 main ()
12627 return t_open ();
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12640 ac_status=$?
12641 grep -v '^ *+' conftest.er1 >conftest.err
12642 rm -f conftest.er1
12643 cat conftest.err >&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && {
12646 test -z "$ac_c_werror_flag" ||
12647 test ! -s conftest.err
12648 } && test -s conftest$ac_exeext &&
12649 $as_test_x conftest$ac_exeext; then
12650 ac_cv_lib_nsl_t_open=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_cv_lib_nsl_t_open=no
12658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12662 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12663 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12664 if test $ac_cv_lib_nsl_t_open = yes; then
12665 LIBS="-lnsl $LIBS"
12667 # SVR4
12668 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12669 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12670 if test "${ac_cv_lib_socket_socket+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-lsocket $LIBS $LIBS"
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char socket ();
12690 main ()
12692 return socket ();
12694 return 0;
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_link") 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest$ac_exeext &&
12714 $as_test_x conftest$ac_exeext; then
12715 ac_cv_lib_socket_socket=yes
12716 else
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_lib_socket_socket=no
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12728 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12729 if test $ac_cv_lib_socket_socket = yes; then
12730 LIBS="-lsocket $LIBS"
12732 # SVR4 sockets
12734 case "$ac_sys_system" in
12735 BeOS*)
12736 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12737 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12738 if test "${ac_cv_lib_net_socket+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lnet $LIBS $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char socket ();
12758 main ()
12760 return socket ();
12762 return 0;
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest$ac_exeext &&
12782 $as_test_x conftest$ac_exeext; then
12783 ac_cv_lib_net_socket=yes
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_cv_lib_net_socket=no
12791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12796 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12797 if test $ac_cv_lib_net_socket = yes; then
12798 LIBS="-lnet $LIBS"
12800 # BeOS
12802 esac
12804 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12805 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12807 # Check whether --with-libs was given.
12808 if test "${with_libs+set}" = set; then
12809 withval=$with_libs;
12810 { echo "$as_me:$LINENO: result: $withval" >&5
12811 echo "${ECHO_T}$withval" >&6; }
12812 LIBS="$withval $LIBS"
12814 else
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12820 # Check for use of the system libffi library
12821 if test "${ac_cv_header_ffi_h+set}" = set; then
12822 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12823 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12824 if test "${ac_cv_header_ffi_h+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12828 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12829 else
12830 # Is the header compilable?
12831 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
12832 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12840 #include <ffi.h>
12841 _ACEOF
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest.$ac_objext; then
12859 ac_header_compiler=yes
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_compiler=no
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869 echo "${ECHO_T}$ac_header_compiler" >&6; }
12871 # Is the header present?
12872 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
12873 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 #include <ffi.h>
12881 _ACEOF
12882 if { (ac_try="$ac_cpp conftest.$ac_ext"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null && {
12895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12897 }; then
12898 ac_header_preproc=yes
12899 else
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 ac_header_preproc=no
12906 rm -f conftest.err conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12908 echo "${ECHO_T}$ac_header_preproc" >&6; }
12910 # So? What about this header?
12911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12912 yes:no: )
12913 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12914 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
12916 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
12917 ac_header_preproc=yes
12919 no:yes:* )
12920 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
12921 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
12923 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
12925 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
12927 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12929 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
12931 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
12932 ( cat <<\_ASBOX
12933 ## ------------------------------------------------ ##
12934 ## Report this to http://www.python.org/python-bugs ##
12935 ## ------------------------------------------------ ##
12936 _ASBOX
12937 ) | sed "s/^/$as_me: WARNING: /" >&2
12939 esac
12940 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12941 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12942 if test "${ac_cv_header_ffi_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 ac_cv_header_ffi_h=$ac_header_preproc
12947 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12948 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12953 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12954 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12956 # Check whether --with-system_ffi was given.
12957 if test "${with_system_ffi+set}" = set; then
12958 withval=$with_system_ffi;
12962 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
12963 case "$ac_sys_system/`uname -m`" in
12964 Linux/alpha*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
12965 Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
12966 Linux/ppc*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
12967 Linux/s390*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
12968 *) with_system_ffi="no"
12969 esac
12971 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12972 echo "${ECHO_T}$with_system_ffi" >&6; }
12974 # Determine if signalmodule should be used.
12977 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12978 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12980 # Check whether --with-signal-module was given.
12981 if test "${with_signal_module+set}" = set; then
12982 withval=$with_signal_module;
12986 if test -z "$with_signal_module"
12987 then with_signal_module="yes"
12989 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12990 echo "${ECHO_T}$with_signal_module" >&6; }
12992 if test "${with_signal_module}" = "yes"; then
12993 USE_SIGNAL_MODULE=""
12994 SIGNAL_OBJS=""
12995 else
12996 USE_SIGNAL_MODULE="#"
12997 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13000 # This is used to generate Setup.config
13002 USE_THREAD_MODULE=""
13004 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13005 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13008 # Check whether --with-dec-threads was given.
13009 if test "${with_dec_threads+set}" = set; then
13010 withval=$with_dec_threads;
13011 { echo "$as_me:$LINENO: result: $withval" >&5
13012 echo "${ECHO_T}$withval" >&6; }
13013 LDLAST=-threads
13014 if test "${with_thread+set}" != set; then
13015 with_thread="$withval";
13017 else
13018 { echo "$as_me:$LINENO: result: no" >&5
13019 echo "${ECHO_T}no" >&6; }
13023 # Templates for things AC_DEFINEd more than once.
13024 # For a single AC_DEFINE, no template is needed.
13032 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13033 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13035 # Check whether --with-threads was given.
13036 if test "${with_threads+set}" = set; then
13037 withval=$with_threads;
13041 # --with-thread is deprecated, but check for it anyway
13043 # Check whether --with-thread was given.
13044 if test "${with_thread+set}" = set; then
13045 withval=$with_thread; with_threads=$with_thread
13049 if test -z "$with_threads"
13050 then with_threads="yes"
13052 { echo "$as_me:$LINENO: result: $with_threads" >&5
13053 echo "${ECHO_T}$with_threads" >&6; }
13056 if test "$with_threads" = "no"
13057 then
13058 USE_THREAD_MODULE="#"
13059 elif test "$ac_cv_pthread_is_default" = yes
13060 then
13061 cat >>confdefs.h <<\_ACEOF
13062 #define WITH_THREAD 1
13063 _ACEOF
13065 # Defining _REENTRANT on system with POSIX threads should not hurt.
13066 cat >>confdefs.h <<\_ACEOF
13067 #define _REENTRANT 1
13068 _ACEOF
13070 posix_threads=yes
13071 THREADOBJ="Python/thread.o"
13072 elif test "$ac_cv_kpthread" = "yes"
13073 then
13074 CC="$CC -Kpthread"
13075 if test "$ac_cv_cxx_thread" = "yes"; then
13076 CXX="$CXX -Kpthread"
13078 cat >>confdefs.h <<\_ACEOF
13079 #define WITH_THREAD 1
13080 _ACEOF
13082 posix_threads=yes
13083 THREADOBJ="Python/thread.o"
13084 elif test "$ac_cv_kthread" = "yes"
13085 then
13086 CC="$CC -Kthread"
13087 if test "$ac_cv_cxx_thread" = "yes"; then
13088 CXX="$CXX -Kthread"
13090 cat >>confdefs.h <<\_ACEOF
13091 #define WITH_THREAD 1
13092 _ACEOF
13094 posix_threads=yes
13095 THREADOBJ="Python/thread.o"
13096 elif test "$ac_cv_pthread" = "yes"
13097 then
13098 CC="$CC -pthread"
13099 if test "$ac_cv_cxx_thread" = "yes"; then
13100 CXX="$CXX -pthread"
13102 cat >>confdefs.h <<\_ACEOF
13103 #define WITH_THREAD 1
13104 _ACEOF
13106 posix_threads=yes
13107 THREADOBJ="Python/thread.o"
13108 else
13109 if test ! -z "$with_threads" -a -d "$with_threads"
13110 then LDFLAGS="$LDFLAGS -L$with_threads"
13112 if test ! -z "$withval" -a -d "$withval"
13113 then LDFLAGS="$LDFLAGS -L$withval"
13116 # According to the POSIX spec, a pthreads implementation must
13117 # define _POSIX_THREADS in unistd.h. Some apparently don't
13118 # (e.g. gnu pth with pthread emulation)
13119 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13120 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 #include <unistd.h>
13129 #ifdef _POSIX_THREADS
13131 #endif
13133 _ACEOF
13134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13135 $EGREP "yes" >/dev/null 2>&1; then
13136 unistd_defines_pthreads=yes
13137 else
13138 unistd_defines_pthreads=no
13140 rm -f conftest*
13142 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13143 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13145 cat >>confdefs.h <<\_ACEOF
13146 #define _REENTRANT 1
13147 _ACEOF
13149 if test "${ac_cv_header_cthreads_h+set}" = set; then
13150 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13151 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13152 if test "${ac_cv_header_cthreads_h+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13156 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13157 else
13158 # Is the header compilable?
13159 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13160 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13161 cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h. */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 $ac_includes_default
13168 #include <cthreads.h>
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.$ac_objext; then
13187 ac_header_compiler=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_header_compiler=no
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13197 echo "${ECHO_T}$ac_header_compiler" >&6; }
13199 # Is the header present?
13200 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13201 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <cthreads.h>
13209 _ACEOF
13210 if { (ac_try="$ac_cpp conftest.$ac_ext"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } >/dev/null && {
13223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13224 test ! -s conftest.err
13225 }; then
13226 ac_header_preproc=yes
13227 else
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13231 ac_header_preproc=no
13234 rm -f conftest.err conftest.$ac_ext
13235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13236 echo "${ECHO_T}$ac_header_preproc" >&6; }
13238 # So? What about this header?
13239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13240 yes:no: )
13241 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13242 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13244 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13245 ac_header_preproc=yes
13247 no:yes:* )
13248 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13249 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13251 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13253 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13255 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13257 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13259 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13260 ( cat <<\_ASBOX
13261 ## ------------------------------------------------ ##
13262 ## Report this to http://www.python.org/python-bugs ##
13263 ## ------------------------------------------------ ##
13264 _ASBOX
13265 ) | sed "s/^/$as_me: WARNING: /" >&2
13267 esac
13268 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13269 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13270 if test "${ac_cv_header_cthreads_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 ac_cv_header_cthreads_h=$ac_header_preproc
13275 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13276 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13279 if test $ac_cv_header_cthreads_h = yes; then
13280 cat >>confdefs.h <<\_ACEOF
13281 #define WITH_THREAD 1
13282 _ACEOF
13284 cat >>confdefs.h <<\_ACEOF
13285 #define C_THREADS 1
13286 _ACEOF
13289 cat >>confdefs.h <<\_ACEOF
13290 #define HURD_C_THREADS 1
13291 _ACEOF
13293 LIBS="$LIBS -lthreads"
13294 THREADOBJ="Python/thread.o"
13295 else
13297 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13298 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13299 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13300 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13304 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13305 else
13306 # Is the header compilable?
13307 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13308 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <mach/cthreads.h>
13317 _ACEOF
13318 rm -f conftest.$ac_objext
13319 if { (ac_try="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_compile") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest.$ac_objext; then
13335 ac_header_compiler=yes
13336 else
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_header_compiler=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345 echo "${ECHO_T}$ac_header_compiler" >&6; }
13347 # Is the header present?
13348 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13349 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <mach/cthreads.h>
13357 _ACEOF
13358 if { (ac_try="$ac_cpp conftest.$ac_ext"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev/null && {
13371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 }; then
13374 ac_header_preproc=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_header_preproc=no
13382 rm -f conftest.err conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384 echo "${ECHO_T}$ac_header_preproc" >&6; }
13386 # So? What about this header?
13387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13388 yes:no: )
13389 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13390 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13392 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13393 ac_header_preproc=yes
13395 no:yes:* )
13396 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13397 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13399 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13401 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13403 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13405 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13407 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13408 ( cat <<\_ASBOX
13409 ## ------------------------------------------------ ##
13410 ## Report this to http://www.python.org/python-bugs ##
13411 ## ------------------------------------------------ ##
13412 _ASBOX
13413 ) | sed "s/^/$as_me: WARNING: /" >&2
13415 esac
13416 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13417 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13423 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13424 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13427 if test $ac_cv_header_mach_cthreads_h = yes; then
13428 cat >>confdefs.h <<\_ACEOF
13429 #define WITH_THREAD 1
13430 _ACEOF
13432 cat >>confdefs.h <<\_ACEOF
13433 #define C_THREADS 1
13434 _ACEOF
13437 cat >>confdefs.h <<\_ACEOF
13438 #define MACH_C_THREADS 1
13439 _ACEOF
13441 THREADOBJ="Python/thread.o"
13442 else
13444 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13445 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13447 # Check whether --with-pth was given.
13448 if test "${with_pth+set}" = set; then
13449 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13450 echo "${ECHO_T}$withval" >&6; }
13451 cat >>confdefs.h <<\_ACEOF
13452 #define WITH_THREAD 1
13453 _ACEOF
13456 cat >>confdefs.h <<\_ACEOF
13457 #define HAVE_PTH 1
13458 _ACEOF
13460 LIBS="-lpth $LIBS"
13461 THREADOBJ="Python/thread.o"
13462 else
13463 { echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6; }
13466 # Just looking for pthread_create in libpthread is not enough:
13467 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13468 # So we really have to include pthread.h, and then link.
13469 _libs=$LIBS
13470 LIBS="$LIBS -lpthread"
13471 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13472 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <pthread.h>
13481 void * start_routine (void *arg) { exit (0); }
13483 main ()
13486 pthread_create (NULL, NULL, start_routine, NULL)
13488 return 0;
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_link") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest$ac_exeext &&
13508 $as_test_x conftest$ac_exeext; then
13510 { echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6; }
13512 cat >>confdefs.h <<\_ACEOF
13513 #define WITH_THREAD 1
13514 _ACEOF
13516 posix_threads=yes
13517 THREADOBJ="Python/thread.o"
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13523 LIBS=$_libs
13524 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13525 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13526 if test "${ac_cv_func_pthread_detach+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13537 #define pthread_detach innocuous_pthread_detach
13539 /* System header to define __stub macros and hopefully few prototypes,
13540 which can conflict with char pthread_detach (); below.
13541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13542 <limits.h> exists even on freestanding compilers. */
13544 #ifdef __STDC__
13545 # include <limits.h>
13546 #else
13547 # include <assert.h>
13548 #endif
13550 #undef pthread_detach
13552 /* Override any GCC internal prototype to avoid an error.
13553 Use char because int might match the return type of a GCC
13554 builtin and then its argument prototype would still apply. */
13555 #ifdef __cplusplus
13556 extern "C"
13557 #endif
13558 char pthread_detach ();
13559 /* The GNU C library defines this for functions which it implements
13560 to always fail with ENOSYS. Some functions are actually named
13561 something starting with __ and the normal name is an alias. */
13562 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13563 choke me
13564 #endif
13567 main ()
13569 return pthread_detach ();
13571 return 0;
13573 _ACEOF
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (ac_try="$ac_link"
13576 case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_link") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest$ac_exeext &&
13591 $as_test_x conftest$ac_exeext; then
13592 ac_cv_func_pthread_detach=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_func_pthread_detach=no
13600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13601 conftest$ac_exeext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13604 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13605 if test $ac_cv_func_pthread_detach = yes; then
13606 cat >>confdefs.h <<\_ACEOF
13607 #define WITH_THREAD 1
13608 _ACEOF
13610 posix_threads=yes
13611 THREADOBJ="Python/thread.o"
13612 else
13614 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13615 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13616 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13617 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13621 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13622 else
13623 # Is the header compilable?
13624 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13625 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13633 #include <atheos/threads.h>
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (ac_try="$ac_compile"
13637 case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13640 esac
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_compile") 2>conftest.er1
13643 ac_status=$?
13644 grep -v '^ *+' conftest.er1 >conftest.err
13645 rm -f conftest.er1
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } && {
13649 test -z "$ac_c_werror_flag" ||
13650 test ! -s conftest.err
13651 } && test -s conftest.$ac_objext; then
13652 ac_header_compiler=yes
13653 else
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_header_compiler=no
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13662 echo "${ECHO_T}$ac_header_compiler" >&6; }
13664 # Is the header present?
13665 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13666 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 #include <atheos/threads.h>
13674 _ACEOF
13675 if { (ac_try="$ac_cpp conftest.$ac_ext"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } >/dev/null && {
13688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 }; then
13691 ac_header_preproc=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_header_preproc=no
13699 rm -f conftest.err conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13701 echo "${ECHO_T}$ac_header_preproc" >&6; }
13703 # So? What about this header?
13704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13705 yes:no: )
13706 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13707 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13709 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13710 ac_header_preproc=yes
13712 no:yes:* )
13713 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13714 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13716 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13718 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13720 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13722 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13724 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13725 ( cat <<\_ASBOX
13726 ## ------------------------------------------------ ##
13727 ## Report this to http://www.python.org/python-bugs ##
13728 ## ------------------------------------------------ ##
13729 _ASBOX
13730 ) | sed "s/^/$as_me: WARNING: /" >&2
13732 esac
13733 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13734 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13735 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 ac_cv_header_atheos_threads_h=$ac_header_preproc
13740 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13744 if test $ac_cv_header_atheos_threads_h = yes; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define WITH_THREAD 1
13747 _ACEOF
13750 cat >>confdefs.h <<\_ACEOF
13751 #define ATHEOS_THREADS 1
13752 _ACEOF
13754 THREADOBJ="Python/thread.o"
13755 else
13757 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13758 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13759 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13760 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13764 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13765 else
13766 # Is the header compilable?
13767 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13768 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
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. */
13775 $ac_includes_default
13776 #include <kernel/OS.h>
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (ac_try="$ac_compile"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 ac_header_compiler=yes
13796 else
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_header_compiler=no
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 echo "${ECHO_T}$ac_header_compiler" >&6; }
13807 # Is the header present?
13808 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13809 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <kernel/OS.h>
13817 _ACEOF
13818 if { (ac_try="$ac_cpp conftest.$ac_ext"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } >/dev/null && {
13831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 }; then
13834 ac_header_preproc=yes
13835 else
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_header_preproc=no
13842 rm -f conftest.err conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13844 echo "${ECHO_T}$ac_header_preproc" >&6; }
13846 # So? What about this header?
13847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13848 yes:no: )
13849 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13850 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13852 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13853 ac_header_preproc=yes
13855 no:yes:* )
13856 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13857 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13859 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13861 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13863 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13865 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13867 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13868 ( cat <<\_ASBOX
13869 ## ------------------------------------------------ ##
13870 ## Report this to http://www.python.org/python-bugs ##
13871 ## ------------------------------------------------ ##
13872 _ASBOX
13873 ) | sed "s/^/$as_me: WARNING: /" >&2
13875 esac
13876 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13877 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13878 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 ac_cv_header_kernel_OS_h=$ac_header_preproc
13883 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13887 if test $ac_cv_header_kernel_OS_h = yes; then
13888 cat >>confdefs.h <<\_ACEOF
13889 #define WITH_THREAD 1
13890 _ACEOF
13893 cat >>confdefs.h <<\_ACEOF
13894 #define BEOS_THREADS 1
13895 _ACEOF
13897 THREADOBJ="Python/thread.o"
13898 else
13900 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13901 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13902 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lpthreads $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h. */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13917 #ifdef __cplusplus
13918 extern "C"
13919 #endif
13920 char pthread_create ();
13922 main ()
13924 return pthread_create ();
13926 return 0;
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_lib_pthreads_pthread_create=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_lib_pthreads_pthread_create=no
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13960 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13961 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define WITH_THREAD 1
13964 _ACEOF
13966 posix_threads=yes
13967 LIBS="$LIBS -lpthreads"
13968 THREADOBJ="Python/thread.o"
13969 else
13971 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13972 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13973 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 ac_check_lib_save_LIBS=$LIBS
13977 LIBS="-lc_r $LIBS"
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
13988 #ifdef __cplusplus
13989 extern "C"
13990 #endif
13991 char pthread_create ();
13993 main ()
13995 return pthread_create ();
13997 return 0;
13999 _ACEOF
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (ac_try="$ac_link"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest$ac_exeext &&
14017 $as_test_x conftest$ac_exeext; then
14018 ac_cv_lib_c_r_pthread_create=yes
14019 else
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_cv_lib_c_r_pthread_create=no
14026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14027 conftest$ac_exeext conftest.$ac_ext
14028 LIBS=$ac_check_lib_save_LIBS
14030 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14031 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14032 if test $ac_cv_lib_c_r_pthread_create = yes; then
14033 cat >>confdefs.h <<\_ACEOF
14034 #define WITH_THREAD 1
14035 _ACEOF
14037 posix_threads=yes
14038 LIBS="$LIBS -lc_r"
14039 THREADOBJ="Python/thread.o"
14040 else
14042 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14043 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14044 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047 ac_check_lib_save_LIBS=$LIBS
14048 LIBS="-lpthread $LIBS"
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14059 #ifdef __cplusplus
14060 extern "C"
14061 #endif
14062 char __pthread_create_system ();
14064 main ()
14066 return __pthread_create_system ();
14068 return 0;
14070 _ACEOF
14071 rm -f conftest.$ac_objext conftest$ac_exeext
14072 if { (ac_try="$ac_link"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest$ac_exeext &&
14088 $as_test_x conftest$ac_exeext; then
14089 ac_cv_lib_pthread___pthread_create_system=yes
14090 else
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_lib_pthread___pthread_create_system=no
14097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14098 conftest$ac_exeext conftest.$ac_ext
14099 LIBS=$ac_check_lib_save_LIBS
14101 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14102 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14103 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14104 cat >>confdefs.h <<\_ACEOF
14105 #define WITH_THREAD 1
14106 _ACEOF
14108 posix_threads=yes
14109 LIBS="$LIBS -lpthread"
14110 THREADOBJ="Python/thread.o"
14111 else
14113 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14114 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14115 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 ac_check_lib_save_LIBS=$LIBS
14119 LIBS="-lcma $LIBS"
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14127 /* Override any GCC internal prototype to avoid an error.
14128 Use char because int might match the return type of a GCC
14129 builtin and then its argument prototype would still apply. */
14130 #ifdef __cplusplus
14131 extern "C"
14132 #endif
14133 char pthread_create ();
14135 main ()
14137 return pthread_create ();
14139 return 0;
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (ac_try="$ac_link"
14144 case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_link") 2>conftest.er1
14150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest$ac_exeext &&
14159 $as_test_x conftest$ac_exeext; then
14160 ac_cv_lib_cma_pthread_create=yes
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14165 ac_cv_lib_cma_pthread_create=no
14168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14172 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14173 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14174 if test $ac_cv_lib_cma_pthread_create = yes; then
14175 cat >>confdefs.h <<\_ACEOF
14176 #define WITH_THREAD 1
14177 _ACEOF
14179 posix_threads=yes
14180 LIBS="$LIBS -lcma"
14181 THREADOBJ="Python/thread.o"
14182 else
14184 USE_THREAD_MODULE="#"
14204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14205 conftest$ac_exeext conftest.$ac_ext
14215 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14216 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lmpc $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14232 #ifdef __cplusplus
14233 extern "C"
14234 #endif
14235 char usconfig ();
14237 main ()
14239 return usconfig ();
14241 return 0;
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_mpc_usconfig=yes
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_lib_mpc_usconfig=no
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14275 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14276 if test $ac_cv_lib_mpc_usconfig = yes; then
14277 cat >>confdefs.h <<\_ACEOF
14278 #define WITH_THREAD 1
14279 _ACEOF
14281 LIBS="$LIBS -lmpc"
14282 THREADOBJ="Python/thread.o"
14283 USE_THREAD_MODULE=""
14287 if test "$posix_threads" != "yes"; then
14288 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14289 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14290 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lthread $LIBS"
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14305 #ifdef __cplusplus
14306 extern "C"
14307 #endif
14308 char thr_create ();
14310 main ()
14312 return thr_create ();
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest$ac_exeext &&
14334 $as_test_x conftest$ac_exeext; then
14335 ac_cv_lib_thread_thr_create=yes
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_lib_thread_thr_create=no
14343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14344 conftest$ac_exeext conftest.$ac_ext
14345 LIBS=$ac_check_lib_save_LIBS
14347 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14348 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14349 if test $ac_cv_lib_thread_thr_create = yes; then
14350 cat >>confdefs.h <<\_ACEOF
14351 #define WITH_THREAD 1
14352 _ACEOF
14354 LIBS="$LIBS -lthread"
14355 THREADOBJ="Python/thread.o"
14356 USE_THREAD_MODULE=""
14361 if test "$USE_THREAD_MODULE" != "#"
14362 then
14363 # If the above checks didn't disable threads, (at least) OSF1
14364 # needs this '-threads' argument during linking.
14365 case $ac_sys_system in
14366 OSF1) LDLAST=-threads;;
14367 esac
14371 if test "$posix_threads" = "yes"; then
14372 if test "$unistd_defines_pthreads" = "no"; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define _POSIX_THREADS 1
14376 _ACEOF
14380 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14381 case $ac_sys_system/$ac_sys_release in
14382 SunOS/5.6)
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_PTHREAD_DESTRUCTOR 1
14385 _ACEOF
14388 SunOS/5.8)
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14391 _ACEOF
14394 esac
14396 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14397 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14398 if test "${ac_cv_pthread_system_supported+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 if test "$cross_compiling" = yes; then
14402 ac_cv_pthread_system_supported=no
14403 else
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 #include <pthread.h>
14411 void *foo(void *parm) {
14412 return NULL;
14414 main() {
14415 pthread_attr_t attr;
14416 pthread_t id;
14417 if (pthread_attr_init(&attr)) exit(-1);
14418 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14419 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14420 exit(0);
14422 _ACEOF
14423 rm -f conftest$ac_exeext
14424 if { (ac_try="$ac_link"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_link") 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14434 { (case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_try") 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_pthread_system_supported=yes
14444 else
14445 echo "$as_me: program exited with status $ac_status" >&5
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ( exit $ac_status )
14450 ac_cv_pthread_system_supported=no
14452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14460 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14461 if test "$ac_cv_pthread_system_supported" = "yes"; then
14463 cat >>confdefs.h <<\_ACEOF
14464 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14465 _ACEOF
14469 for ac_func in pthread_sigmask
14471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 else
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h. */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14485 #define $ac_func innocuous_$ac_func
14487 /* System header to define __stub macros and hopefully few prototypes,
14488 which can conflict with char $ac_func (); below.
14489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14490 <limits.h> exists even on freestanding compilers. */
14492 #ifdef __STDC__
14493 # include <limits.h>
14494 #else
14495 # include <assert.h>
14496 #endif
14498 #undef $ac_func
14500 /* Override any GCC internal prototype to avoid an error.
14501 Use char because int might match the return type of a GCC
14502 builtin and then its argument prototype would still apply. */
14503 #ifdef __cplusplus
14504 extern "C"
14505 #endif
14506 char $ac_func ();
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined __stub_$ac_func || defined __stub___$ac_func
14511 choke me
14512 #endif
14515 main ()
14517 return $ac_func ();
14519 return 0;
14521 _ACEOF
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (ac_try="$ac_link"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_link") 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && {
14536 test -z "$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14538 } && test -s conftest$ac_exeext &&
14539 $as_test_x conftest$ac_exeext; then
14540 eval "$as_ac_var=yes"
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 eval "$as_ac_var=no"
14548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549 conftest$ac_exeext conftest.$ac_ext
14551 ac_res=`eval echo '${'$as_ac_var'}'`
14552 { echo "$as_me:$LINENO: result: $ac_res" >&5
14553 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 _ACEOF
14558 case $ac_sys_system in
14559 CYGWIN*)
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14563 _ACEOF
14566 esac
14568 done
14573 # Check for enable-ipv6
14576 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14577 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14578 # Check whether --enable-ipv6 was given.
14579 if test "${enable_ipv6+set}" = set; then
14580 enableval=$enable_ipv6; case "$enableval" in
14582 { echo "$as_me:$LINENO: result: no" >&5
14583 echo "${ECHO_T}no" >&6; }
14584 ipv6=no
14586 *) { echo "$as_me:$LINENO: result: yes" >&5
14587 echo "${ECHO_T}yes" >&6; }
14588 cat >>confdefs.h <<\_ACEOF
14589 #define ENABLE_IPV6 1
14590 _ACEOF
14592 ipv6=yes
14594 esac
14595 else
14597 if test "$cross_compiling" = yes; then
14598 { echo "$as_me:$LINENO: result: no" >&5
14599 echo "${ECHO_T}no" >&6; }
14600 ipv6=no
14602 else
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 /* AF_INET6 available check */
14610 #include <sys/types.h>
14611 #include <sys/socket.h>
14612 main()
14614 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14615 exit(1);
14616 else
14617 exit(0);
14620 _ACEOF
14621 rm -f conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_link") 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 { echo "$as_me:$LINENO: result: yes" >&5
14642 echo "${ECHO_T}yes" >&6; }
14643 ipv6=yes
14644 else
14645 echo "$as_me: program exited with status $ac_status" >&5
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ( exit $ac_status )
14650 { echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6; }
14652 ipv6=no
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14659 if test "$ipv6" = "yes"; then
14660 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14661 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <sys/types.h>
14669 #include <netinet/in.h>
14671 main ()
14673 struct sockaddr_in6 x;
14674 x.sin6_scope_id;
14676 return 0;
14678 _ACEOF
14679 rm -f conftest.$ac_objext
14680 if { (ac_try="$ac_compile"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_compile") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest.$ac_objext; then
14696 { echo "$as_me:$LINENO: result: yes" >&5
14697 echo "${ECHO_T}yes" >&6; }
14698 ipv6=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 { echo "$as_me:$LINENO: result: no" >&5
14704 echo "${ECHO_T}no" >&6; }
14705 ipv6=no
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 if test "$ipv6" = "yes"; then
14712 cat >>confdefs.h <<\_ACEOF
14713 #define ENABLE_IPV6 1
14714 _ACEOF
14721 ipv6type=unknown
14722 ipv6lib=none
14723 ipv6trylibc=no
14725 if test "$ipv6" = "yes"; then
14726 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14727 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14728 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14730 case $i in
14731 inria)
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14739 #include <netinet/in.h>
14740 #ifdef IPV6_INRIA_VERSION
14742 #endif
14743 _ACEOF
14744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745 $EGREP "yes" >/dev/null 2>&1; then
14746 ipv6type=$i
14748 rm -f conftest*
14751 kame)
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14759 #include <netinet/in.h>
14760 #ifdef __KAME__
14762 #endif
14763 _ACEOF
14764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14765 $EGREP "yes" >/dev/null 2>&1; then
14766 ipv6type=$i;
14767 ipv6lib=inet6
14768 ipv6libdir=/usr/local/v6/lib
14769 ipv6trylibc=yes
14771 rm -f conftest*
14774 linux-glibc)
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h. */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 #include <features.h>
14783 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14785 #endif
14786 _ACEOF
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788 $EGREP "yes" >/dev/null 2>&1; then
14789 ipv6type=$i;
14790 ipv6trylibc=yes
14792 rm -f conftest*
14795 linux-inet6)
14796 if test -d /usr/inet6; then
14797 ipv6type=$i
14798 ipv6lib=inet6
14799 ipv6libdir=/usr/inet6/lib
14800 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14803 solaris)
14804 if test -f /etc/netconfig; then
14805 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14806 ipv6type=$i
14807 ipv6trylibc=yes
14811 toshiba)
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14819 #include <sys/param.h>
14820 #ifdef _TOSHIBA_INET6
14822 #endif
14823 _ACEOF
14824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14825 $EGREP "yes" >/dev/null 2>&1; then
14826 ipv6type=$i;
14827 ipv6lib=inet6;
14828 ipv6libdir=/usr/local/v6/lib
14830 rm -f conftest*
14833 v6d)
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14841 #include </usr/local/v6/include/sys/v6config.h>
14842 #ifdef __V6D__
14844 #endif
14845 _ACEOF
14846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14847 $EGREP "yes" >/dev/null 2>&1; then
14848 ipv6type=$i;
14849 ipv6lib=v6;
14850 ipv6libdir=/usr/local/v6/lib;
14851 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14853 rm -f conftest*
14856 zeta)
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h. */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 #include <sys/param.h>
14865 #ifdef _ZETA_MINAMI_INET6
14867 #endif
14868 _ACEOF
14869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "yes" >/dev/null 2>&1; then
14871 ipv6type=$i;
14872 ipv6lib=inet6;
14873 ipv6libdir=/usr/local/v6/lib
14875 rm -f conftest*
14878 esac
14879 if test "$ipv6type" != "unknown"; then
14880 break
14882 done
14883 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14884 echo "${ECHO_T}$ipv6type" >&6; }
14887 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14888 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14889 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14890 echo "using lib$ipv6lib"
14891 else
14892 if test $ipv6trylibc = "yes"; then
14893 echo "using libc"
14894 else
14895 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14896 echo "You need to fetch lib$ipv6lib.a from appropriate"
14897 echo 'ipv6 kit and compile beforehand.'
14898 exit 1
14903 # Check for --with-doc-strings
14904 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14905 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14907 # Check whether --with-doc-strings was given.
14908 if test "${with_doc_strings+set}" = set; then
14909 withval=$with_doc_strings;
14913 if test -z "$with_doc_strings"
14914 then with_doc_strings="yes"
14916 if test "$with_doc_strings" != "no"
14917 then
14919 cat >>confdefs.h <<\_ACEOF
14920 #define WITH_DOC_STRINGS 1
14921 _ACEOF
14924 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14925 echo "${ECHO_T}$with_doc_strings" >&6; }
14927 # Check for Python-specific malloc support
14928 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14929 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14931 # Check whether --with-tsc was given.
14932 if test "${with_tsc+set}" = set; then
14933 withval=$with_tsc;
14934 if test "$withval" != no
14935 then
14937 cat >>confdefs.h <<\_ACEOF
14938 #define WITH_TSC 1
14939 _ACEOF
14941 { echo "$as_me:$LINENO: result: yes" >&5
14942 echo "${ECHO_T}yes" >&6; }
14943 else { echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6; }
14946 else
14947 { echo "$as_me:$LINENO: result: no" >&5
14948 echo "${ECHO_T}no" >&6; }
14952 # Check for Python-specific malloc support
14953 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14954 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14956 # Check whether --with-pymalloc was given.
14957 if test "${with_pymalloc+set}" = set; then
14958 withval=$with_pymalloc;
14962 if test -z "$with_pymalloc"
14963 then with_pymalloc="yes"
14965 if test "$with_pymalloc" != "no"
14966 then
14968 cat >>confdefs.h <<\_ACEOF
14969 #define WITH_PYMALLOC 1
14970 _ACEOF
14973 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14974 echo "${ECHO_T}$with_pymalloc" >&6; }
14976 # Check for --with-wctype-functions
14977 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14978 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14980 # Check whether --with-wctype-functions was given.
14981 if test "${with_wctype_functions+set}" = set; then
14982 withval=$with_wctype_functions;
14983 if test "$withval" != no
14984 then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define WANT_WCTYPE_FUNCTIONS 1
14988 _ACEOF
14990 { echo "$as_me:$LINENO: result: yes" >&5
14991 echo "${ECHO_T}yes" >&6; }
14992 else { echo "$as_me:$LINENO: result: no" >&5
14993 echo "${ECHO_T}no" >&6; }
14995 else
14996 { echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6; }
15001 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15003 DLINCLDIR=.
15005 # the dlopen() function means we might want to use dynload_shlib.o. some
15006 # platforms, such as AIX, have dlopen(), but don't want to use it.
15008 for ac_func in dlopen
15010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15024 #define $ac_func innocuous_$ac_func
15026 /* System header to define __stub macros and hopefully few prototypes,
15027 which can conflict with char $ac_func (); below.
15028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029 <limits.h> exists even on freestanding compilers. */
15031 #ifdef __STDC__
15032 # include <limits.h>
15033 #else
15034 # include <assert.h>
15035 #endif
15037 #undef $ac_func
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char $ac_func ();
15046 /* The GNU C library defines this for functions which it implements
15047 to always fail with ENOSYS. Some functions are actually named
15048 something starting with __ and the normal name is an alias. */
15049 #if defined __stub_$ac_func || defined __stub___$ac_func
15050 choke me
15051 #endif
15054 main ()
15056 return $ac_func ();
15058 return 0;
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 eval "$as_ac_var=yes"
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 eval "$as_ac_var=no"
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15090 ac_res=`eval echo '${'$as_ac_var'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093 if test `eval echo '${'$as_ac_var'}'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15096 _ACEOF
15099 done
15102 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15103 # loading of modules.
15105 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15106 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15107 if test -z "$DYNLOADFILE"
15108 then
15109 case $ac_sys_system/$ac_sys_release in
15110 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15111 if test "$ac_cv_func_dlopen" = yes
15112 then DYNLOADFILE="dynload_shlib.o"
15113 else DYNLOADFILE="dynload_aix.o"
15116 BeOS*) DYNLOADFILE="dynload_beos.o";;
15117 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15118 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15119 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15120 atheos*) DYNLOADFILE="dynload_atheos.o";;
15122 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15123 # out any dynamic loading
15124 if test "$ac_cv_func_dlopen" = yes
15125 then DYNLOADFILE="dynload_shlib.o"
15126 else DYNLOADFILE="dynload_stub.o"
15129 esac
15131 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15132 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15133 if test "$DYNLOADFILE" != "dynload_stub.o"
15134 then
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_DYNAMIC_LOADING 1
15138 _ACEOF
15142 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15145 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15146 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15147 if test -z "$MACHDEP_OBJS"
15148 then
15149 MACHDEP_OBJS=$extra_machdep_objs
15150 else
15151 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15153 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15154 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15156 # checks for library functions
15236 for ac_func in alarm bind_textdomain_codeset chown clock confstr \
15237 ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15238 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15239 getpriority getpwent getspnam getspent getsid getwd \
15240 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15241 mremap nice pathconf pause plock poll pthread_init \
15242 putenv readlink realpath \
15243 select setegid seteuid setgid \
15244 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15245 sigaction siginterrupt sigrelse strftime \
15246 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15247 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15263 #define $ac_func innocuous_$ac_func
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char $ac_func (); below.
15267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15268 <limits.h> exists even on freestanding compilers. */
15270 #ifdef __STDC__
15271 # include <limits.h>
15272 #else
15273 # include <assert.h>
15274 #endif
15276 #undef $ac_func
15278 /* Override any GCC internal prototype to avoid an error.
15279 Use char because int might match the return type of a GCC
15280 builtin and then its argument prototype would still apply. */
15281 #ifdef __cplusplus
15282 extern "C"
15283 #endif
15284 char $ac_func ();
15285 /* The GNU C library defines this for functions which it implements
15286 to always fail with ENOSYS. Some functions are actually named
15287 something starting with __ and the normal name is an alias. */
15288 #if defined __stub_$ac_func || defined __stub___$ac_func
15289 choke me
15290 #endif
15293 main ()
15295 return $ac_func ();
15297 return 0;
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest$ac_exeext &&
15317 $as_test_x conftest$ac_exeext; then
15318 eval "$as_ac_var=yes"
15319 else
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 eval "$as_ac_var=no"
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327 conftest$ac_exeext conftest.$ac_ext
15329 ac_res=`eval echo '${'$as_ac_var'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15335 _ACEOF
15338 done
15341 # For some functions, having a definition is not sufficient, since
15342 # we want to take their address.
15343 { echo "$as_me:$LINENO: checking for chroot" >&5
15344 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15345 cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h. */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <unistd.h>
15353 main ()
15355 void *x=chroot
15357 return 0;
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_compile") 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest.$ac_objext; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_CHROOT 1
15380 _ACEOF
15382 { echo "$as_me:$LINENO: result: yes" >&5
15383 echo "${ECHO_T}yes" >&6; }
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 { echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6; }
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 { echo "$as_me:$LINENO: checking for link" >&5
15395 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <unistd.h>
15404 main ()
15406 void *x=link
15408 return 0;
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest.$ac_objext; then
15429 cat >>confdefs.h <<\_ACEOF
15430 #define HAVE_LINK 1
15431 _ACEOF
15433 { echo "$as_me:$LINENO: result: yes" >&5
15434 echo "${ECHO_T}yes" >&6; }
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 { echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6; }
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 { echo "$as_me:$LINENO: checking for symlink" >&5
15446 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <unistd.h>
15455 main ()
15457 void *x=symlink
15459 return 0;
15461 _ACEOF
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_compile") 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest.$ac_objext; then
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_SYMLINK 1
15482 _ACEOF
15484 { echo "$as_me:$LINENO: result: yes" >&5
15485 echo "${ECHO_T}yes" >&6; }
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 { echo "$as_me:$LINENO: result: no" >&5
15491 echo "${ECHO_T}no" >&6; }
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 { echo "$as_me:$LINENO: checking for fchdir" >&5
15497 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 #include <unistd.h>
15506 main ()
15508 void *x=fchdir
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15531 cat >>confdefs.h <<\_ACEOF
15532 #define HAVE_FCHDIR 1
15533 _ACEOF
15535 { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 { echo "$as_me:$LINENO: result: no" >&5
15542 echo "${ECHO_T}no" >&6; }
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: checking for fsync" >&5
15548 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <unistd.h>
15557 main ()
15559 void *x=fsync
15561 return 0;
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest.$ac_objext; then
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_FSYNC 1
15584 _ACEOF
15586 { echo "$as_me:$LINENO: result: yes" >&5
15587 echo "${ECHO_T}yes" >&6; }
15588 else
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 { echo "$as_me:$LINENO: result: no" >&5
15593 echo "${ECHO_T}no" >&6; }
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15599 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <unistd.h>
15608 main ()
15610 void *x=fdatasync
15612 return 0;
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (ac_try="$ac_compile"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620 esac
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_compile") 2>conftest.er1
15623 ac_status=$?
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } && {
15629 test -z "$ac_c_werror_flag" ||
15630 test ! -s conftest.err
15631 } && test -s conftest.$ac_objext; then
15633 cat >>confdefs.h <<\_ACEOF
15634 #define HAVE_FDATASYNC 1
15635 _ACEOF
15637 { echo "$as_me:$LINENO: result: yes" >&5
15638 echo "${ECHO_T}yes" >&6; }
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 { echo "$as_me:$LINENO: result: no" >&5
15644 echo "${ECHO_T}no" >&6; }
15648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 # On some systems (eg. FreeBSD 5), we would find a definition of the
15651 # functions ctermid_r, setgroups in the library, but no prototype
15652 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15653 # address to avoid compiler warnings and potential miscompilations
15654 # because of the missing prototypes.
15656 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15657 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 #include "confdefs.h"
15666 #include <stdio.h>
15669 main ()
15671 void* p = ctermid_r
15673 return 0;
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (ac_try="$ac_compile"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_compile") 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest.$ac_objext; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_CTERMID_R 1
15696 _ACEOF
15698 { echo "$as_me:$LINENO: result: yes" >&5
15699 echo "${ECHO_T}yes" >&6; }
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 { echo "$as_me:$LINENO: result: no" >&5
15705 echo "${ECHO_T}no" >&6; }
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: checking for flock" >&5
15712 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15720 #include "confdefs.h"
15721 #include <sys/file.h>
15724 main ()
15726 void* p = flock
15728 return 0;
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && {
15745 test -z "$ac_c_werror_flag" ||
15746 test ! -s conftest.err
15747 } && test -s conftest.$ac_objext; then
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_FLOCK 1
15751 _ACEOF
15753 { echo "$as_me:$LINENO: result: yes" >&5
15754 echo "${ECHO_T}yes" >&6; }
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 { echo "$as_me:$LINENO: result: no" >&5
15760 echo "${ECHO_T}no" >&6; }
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15767 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 #include "confdefs.h"
15776 #include <unistd.h>
15779 main ()
15781 void* p = getpagesize
15783 return 0;
15785 _ACEOF
15786 rm -f conftest.$ac_objext
15787 if { (ac_try="$ac_compile"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_compile") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest.$ac_objext; then
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_GETPAGESIZE 1
15806 _ACEOF
15808 { echo "$as_me:$LINENO: result: yes" >&5
15809 echo "${ECHO_T}yes" >&6; }
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 { echo "$as_me:$LINENO: result: no" >&5
15815 echo "${ECHO_T}no" >&6; }
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 for ac_prog in true
15823 # Extract the first word of "$ac_prog", so it can be a program name with args.
15824 set dummy $ac_prog; ac_word=$2
15825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15827 if test "${ac_cv_prog_TRUE+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830 if test -n "$TRUE"; then
15831 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15832 else
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15840 ac_cv_prog_TRUE="$ac_prog"
15841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15844 done
15845 done
15846 IFS=$as_save_IFS
15850 TRUE=$ac_cv_prog_TRUE
15851 if test -n "$TRUE"; then
15852 { echo "$as_me:$LINENO: result: $TRUE" >&5
15853 echo "${ECHO_T}$TRUE" >&6; }
15854 else
15855 { echo "$as_me:$LINENO: result: no" >&5
15856 echo "${ECHO_T}no" >&6; }
15860 test -n "$TRUE" && break
15861 done
15862 test -n "$TRUE" || TRUE="/bin/true"
15865 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15866 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15867 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 ac_check_lib_save_LIBS=$LIBS
15871 LIBS="-lc $LIBS"
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char inet_aton ();
15887 main ()
15889 return inet_aton ();
15891 return 0;
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest$ac_exeext &&
15911 $as_test_x conftest$ac_exeext; then
15912 ac_cv_lib_c_inet_aton=yes
15913 else
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_cv_lib_c_inet_aton=no
15920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15921 conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15924 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15925 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15926 if test $ac_cv_lib_c_inet_aton = yes; then
15927 $ac_cv_prog_TRUE
15928 else
15930 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15931 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15932 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935 ac_check_lib_save_LIBS=$LIBS
15936 LIBS="-lresolv $LIBS"
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15944 /* Override any GCC internal prototype to avoid an error.
15945 Use char because int might match the return type of a GCC
15946 builtin and then its argument prototype would still apply. */
15947 #ifdef __cplusplus
15948 extern "C"
15949 #endif
15950 char inet_aton ();
15952 main ()
15954 return inet_aton ();
15956 return 0;
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (ac_try="$ac_link"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_link") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } && {
15973 test -z "$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 } && test -s conftest$ac_exeext &&
15976 $as_test_x conftest$ac_exeext; then
15977 ac_cv_lib_resolv_inet_aton=yes
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ac_cv_lib_resolv_inet_aton=no
15985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LIBS=$ac_check_lib_save_LIBS
15989 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15990 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15991 if test $ac_cv_lib_resolv_inet_aton = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define HAVE_LIBRESOLV 1
15994 _ACEOF
15996 LIBS="-lresolv $LIBS"
16004 # On Tru64, chflags seems to be present, but calling it will
16005 # exit Python
16006 { echo "$as_me:$LINENO: checking for chflags" >&5
16007 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16008 if test "$cross_compiling" = yes; then
16009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16010 See \`config.log' for more details." >&5
16011 echo "$as_me: error: cannot run test program while cross compiling
16012 See \`config.log' for more details." >&2;}
16013 { (exit 1); exit 1; }; }
16014 else
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16022 #include <sys/stat.h>
16023 #include <unistd.h>
16024 int main(int argc, char*argv[])
16026 if(chflags(argv[0], 0) != 0)
16027 return 1;
16028 return 0;
16031 _ACEOF
16032 rm -f conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16053 cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_CHFLAGS 1
16055 _ACEOF
16057 { echo "$as_me:$LINENO: result: yes" >&5
16058 echo "${ECHO_T}yes" >&6; }
16059 else
16060 echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ( exit $ac_status )
16065 { echo "$as_me:$LINENO: result: no" >&5
16066 echo "${ECHO_T}no" >&6; }
16069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: checking for lchflags" >&5
16075 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16076 if test "$cross_compiling" = yes; then
16077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16078 See \`config.log' for more details." >&5
16079 echo "$as_me: error: cannot run test program while cross compiling
16080 See \`config.log' for more details." >&2;}
16081 { (exit 1); exit 1; }; }
16082 else
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h. */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16090 #include <sys/stat.h>
16091 #include <unistd.h>
16092 int main(int argc, char*argv[])
16094 if(lchflags(argv[0], 0) != 0)
16095 return 1;
16096 return 0;
16099 _ACEOF
16100 rm -f conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_LCHFLAGS 1
16123 _ACEOF
16125 { echo "$as_me:$LINENO: result: yes" >&5
16126 echo "${ECHO_T}yes" >&6; }
16127 else
16128 echo "$as_me: program exited with status $ac_status" >&5
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ( exit $ac_status )
16133 { echo "$as_me:$LINENO: result: no" >&5
16134 echo "${ECHO_T}no" >&6; }
16137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16142 case $ac_sys_system/$ac_sys_release in
16143 Darwin/*)
16144 _CUR_CFLAGS="${CFLAGS}"
16145 _CUR_LDFLAGS="${LDFLAGS}"
16146 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16147 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16149 esac
16151 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16152 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16153 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 ac_check_lib_save_LIBS=$LIBS
16157 LIBS="-lz $LIBS"
16158 cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h. */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16165 /* Override any GCC internal prototype to avoid an error.
16166 Use char because int might match the return type of a GCC
16167 builtin and then its argument prototype would still apply. */
16168 #ifdef __cplusplus
16169 extern "C"
16170 #endif
16171 char inflateCopy ();
16173 main ()
16175 return inflateCopy ();
16177 return 0;
16179 _ACEOF
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_link") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest$ac_exeext &&
16197 $as_test_x conftest$ac_exeext; then
16198 ac_cv_lib_z_inflateCopy=yes
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_cv_lib_z_inflateCopy=no
16206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16207 conftest$ac_exeext conftest.$ac_ext
16208 LIBS=$ac_check_lib_save_LIBS
16210 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16211 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16212 if test $ac_cv_lib_z_inflateCopy = yes; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_ZLIB_COPY 1
16216 _ACEOF
16221 case $ac_sys_system/$ac_sys_release in
16222 Darwin/*)
16223 CFLAGS="${_CUR_CFLAGS}"
16224 LDFLAGS="${_CUR_LDFLAGS}"
16226 esac
16228 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16229 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16237 #include "confdefs.h"
16238 #include <netdb.h>
16241 main ()
16243 void* p = hstrerror; hstrerror(0)
16245 return 0;
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (ac_try="$ac_link"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_HSTRERROR 1
16269 _ACEOF
16271 { echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6; }
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16286 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16294 #include "confdefs.h"
16295 #include <sys/types.h>
16296 #include <sys/socket.h>
16297 #include <netinet/in.h>
16298 #include <arpa/inet.h>
16301 main ()
16303 void* p = inet_aton;inet_aton(0,0)
16305 return 0;
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_link") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext &&
16325 $as_test_x conftest$ac_exeext; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE_INET_ATON 1
16329 _ACEOF
16331 { echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6; }
16333 else
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 { echo "$as_me:$LINENO: result: no" >&5
16338 echo "${ECHO_T}no" >&6; }
16342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16343 conftest$ac_exeext conftest.$ac_ext
16345 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16346 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16354 #include "confdefs.h"
16355 #include <sys/types.h>
16356 #include <sys/socket.h>
16357 #include <netinet/in.h>
16358 #include <arpa/inet.h>
16361 main ()
16363 void* p = inet_pton
16365 return 0;
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
16384 } && test -s conftest.$ac_objext; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_INET_PTON 1
16388 _ACEOF
16390 { echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6; }
16392 else
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 # On some systems, setgroups is in unistd.h, on others, in grp.h
16404 { echo "$as_me:$LINENO: checking for setgroups" >&5
16405 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h. */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 #include "confdefs.h"
16414 #include <unistd.h>
16415 #ifdef HAVE_GRP_H
16416 #include <grp.h>
16417 #endif
16420 main ()
16422 void* p = setgroups
16424 return 0;
16426 _ACEOF
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest.$ac_objext; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_SETGROUPS 1
16447 _ACEOF
16449 { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 # check for openpty and forkpty
16465 for ac_func in openpty
16467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16481 #define $ac_func innocuous_$ac_func
16483 /* System header to define __stub macros and hopefully few prototypes,
16484 which can conflict with char $ac_func (); below.
16485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16486 <limits.h> exists even on freestanding compilers. */
16488 #ifdef __STDC__
16489 # include <limits.h>
16490 #else
16491 # include <assert.h>
16492 #endif
16494 #undef $ac_func
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char $ac_func ();
16503 /* The GNU C library defines this for functions which it implements
16504 to always fail with ENOSYS. Some functions are actually named
16505 something starting with __ and the normal name is an alias. */
16506 #if defined __stub_$ac_func || defined __stub___$ac_func
16507 choke me
16508 #endif
16511 main ()
16513 return $ac_func ();
16515 return 0;
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_link") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext &&
16535 $as_test_x conftest$ac_exeext; then
16536 eval "$as_ac_var=yes"
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 eval "$as_ac_var=no"
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16547 ac_res=`eval echo '${'$as_ac_var'}'`
16548 { echo "$as_me:$LINENO: result: $ac_res" >&5
16549 echo "${ECHO_T}$ac_res" >&6; }
16550 if test `eval echo '${'$as_ac_var'}'` = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16553 _ACEOF
16555 else
16556 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16557 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16558 if test "${ac_cv_lib_util_openpty+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561 ac_check_lib_save_LIBS=$LIBS
16562 LIBS="-lutil $LIBS"
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. */
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16573 #ifdef __cplusplus
16574 extern "C"
16575 #endif
16576 char openpty ();
16578 main ()
16580 return openpty ();
16582 return 0;
16584 _ACEOF
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590 esac
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && {
16599 test -z "$ac_c_werror_flag" ||
16600 test ! -s conftest.err
16601 } && test -s conftest$ac_exeext &&
16602 $as_test_x conftest$ac_exeext; then
16603 ac_cv_lib_util_openpty=yes
16604 else
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_cv_lib_util_openpty=no
16611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16612 conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16615 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16616 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16617 if test $ac_cv_lib_util_openpty = yes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_OPENPTY 1
16620 _ACEOF
16621 LIBS="$LIBS -lutil"
16622 else
16623 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16624 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
16625 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lbsd $LIBS"
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h. */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 /* Override any GCC internal prototype to avoid an error.
16638 Use char because int might match the return type of a GCC
16639 builtin and then its argument prototype would still apply. */
16640 #ifdef __cplusplus
16641 extern "C"
16642 #endif
16643 char openpty ();
16645 main ()
16647 return openpty ();
16649 return 0;
16651 _ACEOF
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (ac_try="$ac_link"
16654 case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_link") 2>conftest.er1
16660 ac_status=$?
16661 grep -v '^ *+' conftest.er1 >conftest.err
16662 rm -f conftest.er1
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } && {
16666 test -z "$ac_c_werror_flag" ||
16667 test ! -s conftest.err
16668 } && test -s conftest$ac_exeext &&
16669 $as_test_x conftest$ac_exeext; then
16670 ac_cv_lib_bsd_openpty=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_lib_bsd_openpty=no
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16683 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16684 if test $ac_cv_lib_bsd_openpty = yes; then
16685 cat >>confdefs.h <<\_ACEOF
16686 #define HAVE_OPENPTY 1
16687 _ACEOF
16688 LIBS="$LIBS -lbsd"
16696 done
16699 for ac_func in forkpty
16701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h. */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16715 #define $ac_func innocuous_$ac_func
16717 /* System header to define __stub macros and hopefully few prototypes,
16718 which can conflict with char $ac_func (); below.
16719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16720 <limits.h> exists even on freestanding compilers. */
16722 #ifdef __STDC__
16723 # include <limits.h>
16724 #else
16725 # include <assert.h>
16726 #endif
16728 #undef $ac_func
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16733 #ifdef __cplusplus
16734 extern "C"
16735 #endif
16736 char $ac_func ();
16737 /* The GNU C library defines this for functions which it implements
16738 to always fail with ENOSYS. Some functions are actually named
16739 something starting with __ and the normal name is an alias. */
16740 #if defined __stub_$ac_func || defined __stub___$ac_func
16741 choke me
16742 #endif
16745 main ()
16747 return $ac_func ();
16749 return 0;
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_link") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext &&
16769 $as_test_x conftest$ac_exeext; then
16770 eval "$as_ac_var=yes"
16771 else
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16775 eval "$as_ac_var=no"
16778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16781 ac_res=`eval echo '${'$as_ac_var'}'`
16782 { echo "$as_me:$LINENO: result: $ac_res" >&5
16783 echo "${ECHO_T}$ac_res" >&6; }
16784 if test `eval echo '${'$as_ac_var'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16787 _ACEOF
16789 else
16790 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16791 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16792 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795 ac_check_lib_save_LIBS=$LIBS
16796 LIBS="-lutil $LIBS"
16797 cat >conftest.$ac_ext <<_ACEOF
16798 /* confdefs.h. */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16804 /* Override any GCC internal prototype to avoid an error.
16805 Use char because int might match the return type of a GCC
16806 builtin and then its argument prototype would still apply. */
16807 #ifdef __cplusplus
16808 extern "C"
16809 #endif
16810 char forkpty ();
16812 main ()
16814 return forkpty ();
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext &&
16836 $as_test_x conftest$ac_exeext; then
16837 ac_cv_lib_util_forkpty=yes
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_cv_lib_util_forkpty=no
16845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16846 conftest$ac_exeext conftest.$ac_ext
16847 LIBS=$ac_check_lib_save_LIBS
16849 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16850 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16851 if test $ac_cv_lib_util_forkpty = yes; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_FORKPTY 1
16854 _ACEOF
16855 LIBS="$LIBS -lutil"
16856 else
16857 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16858 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16859 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lbsd $LIBS"
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16874 #ifdef __cplusplus
16875 extern "C"
16876 #endif
16877 char forkpty ();
16879 main ()
16881 return forkpty ();
16883 return 0;
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (ac_try="$ac_link"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_link") 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest$ac_exeext &&
16903 $as_test_x conftest$ac_exeext; then
16904 ac_cv_lib_bsd_forkpty=yes
16905 else
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16909 ac_cv_lib_bsd_forkpty=no
16912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16916 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16917 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16918 if test $ac_cv_lib_bsd_forkpty = yes; then
16919 cat >>confdefs.h <<\_ACEOF
16920 #define HAVE_FORKPTY 1
16921 _ACEOF
16922 LIBS="$LIBS -lbsd"
16930 done
16933 # check for long file support functions
16940 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define $ac_func innocuous_$ac_func
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char $ac_func (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16969 #undef $ac_func
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char $ac_func ();
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_$ac_func || defined __stub___$ac_func
16982 choke me
16983 #endif
16986 main ()
16988 return $ac_func ();
16990 return 0;
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest$ac_exeext &&
17010 $as_test_x conftest$ac_exeext; then
17011 eval "$as_ac_var=yes"
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 eval "$as_ac_var=no"
17019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17020 conftest$ac_exeext conftest.$ac_ext
17022 ac_res=`eval echo '${'$as_ac_var'}'`
17023 { echo "$as_me:$LINENO: result: $ac_res" >&5
17024 echo "${ECHO_T}$ac_res" >&6; }
17025 if test `eval echo '${'$as_ac_var'}'` = yes; then
17026 cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17028 _ACEOF
17031 done
17039 for ac_func in dup2 getcwd strdup strerror memmove
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055 #define $ac_func innocuous_$ac_func
17057 /* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17062 #ifdef __STDC__
17063 # include <limits.h>
17064 #else
17065 # include <assert.h>
17066 #endif
17068 #undef $ac_func
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char $ac_func ();
17077 /* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17081 choke me
17082 #endif
17085 main ()
17087 return $ac_func ();
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 eval "$as_ac_var=yes"
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 _ACEOF
17129 else
17130 case " $LIBOBJS " in
17131 *" $ac_func.$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17134 esac
17137 done
17141 for ac_func in getpgrp
17143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17157 #define $ac_func innocuous_$ac_func
17159 /* System header to define __stub macros and hopefully few prototypes,
17160 which can conflict with char $ac_func (); below.
17161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17162 <limits.h> exists even on freestanding compilers. */
17164 #ifdef __STDC__
17165 # include <limits.h>
17166 #else
17167 # include <assert.h>
17168 #endif
17170 #undef $ac_func
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 char $ac_func ();
17179 /* The GNU C library defines this for functions which it implements
17180 to always fail with ENOSYS. Some functions are actually named
17181 something starting with __ and the normal name is an alias. */
17182 #if defined __stub_$ac_func || defined __stub___$ac_func
17183 choke me
17184 #endif
17187 main ()
17189 return $ac_func ();
17191 return 0;
17193 _ACEOF
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (ac_try="$ac_link"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_link") 2>conftest.er1
17202 ac_status=$?
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest$ac_exeext &&
17211 $as_test_x conftest$ac_exeext; then
17212 eval "$as_ac_var=yes"
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 eval "$as_ac_var=no"
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
17223 ac_res=`eval echo '${'$as_ac_var'}'`
17224 { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17229 _ACEOF
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h. */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <unistd.h>
17238 main ()
17240 getpgrp(0);
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_compile") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest.$ac_objext; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define GETPGRP_HAVE_ARG 1
17265 _ACEOF
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 done
17281 for ac_func in setpgrp
17283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297 #define $ac_func innocuous_$ac_func
17299 /* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17304 #ifdef __STDC__
17305 # include <limits.h>
17306 #else
17307 # include <assert.h>
17308 #endif
17310 #undef $ac_func
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char $ac_func ();
17319 /* The GNU C library defines this for functions which it implements
17320 to always fail with ENOSYS. Some functions are actually named
17321 something starting with __ and the normal name is an alias. */
17322 #if defined __stub_$ac_func || defined __stub___$ac_func
17323 choke me
17324 #endif
17327 main ()
17329 return $ac_func ();
17331 return 0;
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext &&
17351 $as_test_x conftest$ac_exeext; then
17352 eval "$as_ac_var=yes"
17353 else
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 eval "$as_ac_var=no"
17360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17361 conftest$ac_exeext conftest.$ac_ext
17363 ac_res=`eval echo '${'$as_ac_var'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17366 if test `eval echo '${'$as_ac_var'}'` = yes; then
17367 cat >>confdefs.h <<_ACEOF
17368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17369 _ACEOF
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <unistd.h>
17378 main ()
17380 setpgrp(0,0);
17382 return 0;
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (ac_try="$ac_compile"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_compile") 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest.$ac_objext; then
17403 cat >>confdefs.h <<\_ACEOF
17404 #define SETPGRP_HAVE_ARG 1
17405 _ACEOF
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 done
17421 for ac_func in gettimeofday
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429 cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h. */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17444 #ifdef __STDC__
17445 # include <limits.h>
17446 #else
17447 # include <assert.h>
17448 #endif
17450 #undef $ac_func
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char $ac_func ();
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17463 choke me
17464 #endif
17467 main ()
17469 return $ac_func ();
17471 return 0;
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && {
17488 test -z "$ac_c_werror_flag" ||
17489 test ! -s conftest.err
17490 } && test -s conftest$ac_exeext &&
17491 $as_test_x conftest$ac_exeext; then
17492 eval "$as_ac_var=yes"
17493 else
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 eval "$as_ac_var=no"
17500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17501 conftest$ac_exeext conftest.$ac_ext
17503 ac_res=`eval echo '${'$as_ac_var'}'`
17504 { echo "$as_me:$LINENO: result: $ac_res" >&5
17505 echo "${ECHO_T}$ac_res" >&6; }
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507 cat >>confdefs.h <<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 _ACEOF
17510 cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <sys/time.h>
17518 main ()
17520 gettimeofday((struct timeval*)0,(struct timezone*)0);
17522 return 0;
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17533 ac_status=$?
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && {
17539 test -z "$ac_c_werror_flag" ||
17540 test ! -s conftest.err
17541 } && test -s conftest.$ac_objext; then
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17548 cat >>confdefs.h <<\_ACEOF
17549 #define GETTIMEOFDAY_NO_TZ 1
17550 _ACEOF
17555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 done
17561 { echo "$as_me:$LINENO: checking for major" >&5
17562 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 #if defined(MAJOR_IN_MKDEV)
17571 #include <sys/mkdev.h>
17572 #elif defined(MAJOR_IN_SYSMACROS)
17573 #include <sys/sysmacros.h>
17574 #else
17575 #include <sys/types.h>
17576 #endif
17579 main ()
17582 makedev(major(0),minor(0));
17585 return 0;
17587 _ACEOF
17588 rm -f conftest.$ac_objext conftest$ac_exeext
17589 if { (ac_try="$ac_link"
17590 case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_link") 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } && {
17602 test -z "$ac_c_werror_flag" ||
17603 test ! -s conftest.err
17604 } && test -s conftest$ac_exeext &&
17605 $as_test_x conftest$ac_exeext; then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_DEVICE_MACROS 1
17610 _ACEOF
17612 { echo "$as_me:$LINENO: result: yes" >&5
17613 echo "${ECHO_T}yes" >&6; }
17615 else
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17620 { echo "$as_me:$LINENO: result: no" >&5
17621 echo "${ECHO_T}no" >&6; }
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17628 # On OSF/1 V5.1, getaddrinfo is available, but a define
17629 # for [no]getaddrinfo in netdb.h.
17630 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17631 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 #include <sys/types.h>
17640 #include <sys/socket.h>
17641 #include <netdb.h>
17642 #include <stdio.h>
17645 main ()
17648 getaddrinfo(NULL, NULL, NULL, NULL);
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17673 { echo "$as_me:$LINENO: result: yes" >&5
17674 echo "${ECHO_T}yes" >&6; }
17675 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17676 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17677 if test "$cross_compiling" = yes; then
17678 { echo "$as_me:$LINENO: result: buggy" >&5
17679 echo "${ECHO_T}buggy" >&6; }
17680 buggygetaddrinfo=yes
17681 else
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 #include <sys/types.h>
17690 #include <netdb.h>
17691 #include <string.h>
17692 #include <sys/socket.h>
17693 #include <netinet/in.h>
17695 main()
17697 int passive, gaierr, inet4 = 0, inet6 = 0;
17698 struct addrinfo hints, *ai, *aitop;
17699 char straddr[INET6_ADDRSTRLEN], strport[16];
17701 for (passive = 0; passive <= 1; passive++) {
17702 memset(&hints, 0, sizeof(hints));
17703 hints.ai_family = AF_UNSPEC;
17704 hints.ai_flags = passive ? AI_PASSIVE : 0;
17705 hints.ai_socktype = SOCK_STREAM;
17706 hints.ai_protocol = IPPROTO_TCP;
17707 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17708 (void)gai_strerror(gaierr);
17709 goto bad;
17711 for (ai = aitop; ai; ai = ai->ai_next) {
17712 if (ai->ai_addr == NULL ||
17713 ai->ai_addrlen == 0 ||
17714 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17715 straddr, sizeof(straddr), strport, sizeof(strport),
17716 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17717 goto bad;
17719 switch (ai->ai_family) {
17720 case AF_INET:
17721 if (strcmp(strport, "54321") != 0) {
17722 goto bad;
17724 if (passive) {
17725 if (strcmp(straddr, "0.0.0.0") != 0) {
17726 goto bad;
17728 } else {
17729 if (strcmp(straddr, "127.0.0.1") != 0) {
17730 goto bad;
17733 inet4++;
17734 break;
17735 case AF_INET6:
17736 if (strcmp(strport, "54321") != 0) {
17737 goto bad;
17739 if (passive) {
17740 if (strcmp(straddr, "::") != 0) {
17741 goto bad;
17743 } else {
17744 if (strcmp(straddr, "::1") != 0) {
17745 goto bad;
17748 inet6++;
17749 break;
17750 case AF_UNSPEC:
17751 goto bad;
17752 break;
17753 default:
17754 /* another family support? */
17755 break;
17760 if (!(inet4 == 0 || inet4 == 2))
17761 goto bad;
17762 if (!(inet6 == 0 || inet6 == 2))
17763 goto bad;
17765 if (aitop)
17766 freeaddrinfo(aitop);
17767 exit(0);
17769 bad:
17770 if (aitop)
17771 freeaddrinfo(aitop);
17772 exit(1);
17775 _ACEOF
17776 rm -f conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17787 { (case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_try") 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 { echo "$as_me:$LINENO: result: good" >&5
17797 echo "${ECHO_T}good" >&6; }
17798 buggygetaddrinfo=no
17799 else
17800 echo "$as_me: program exited with status $ac_status" >&5
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ( exit $ac_status )
17805 { echo "$as_me:$LINENO: result: buggy" >&5
17806 echo "${ECHO_T}buggy" >&6; }
17807 buggygetaddrinfo=yes
17809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17813 else
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17818 { echo "$as_me:$LINENO: result: no" >&5
17819 echo "${ECHO_T}no" >&6; }
17820 buggygetaddrinfo=yes
17824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17825 conftest$ac_exeext conftest.$ac_ext
17827 if test "$buggygetaddrinfo" = "yes"; then
17828 if test "$ipv6" = "yes"; then
17829 echo 'Fatal: You must get working getaddrinfo() function.'
17830 echo ' or you can specify "--disable-ipv6"'.
17831 exit 1
17833 else
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_GETADDRINFO 1
17837 _ACEOF
17841 for ac_func in getnameinfo
17843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17857 #define $ac_func innocuous_$ac_func
17859 /* System header to define __stub macros and hopefully few prototypes,
17860 which can conflict with char $ac_func (); below.
17861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17862 <limits.h> exists even on freestanding compilers. */
17864 #ifdef __STDC__
17865 # include <limits.h>
17866 #else
17867 # include <assert.h>
17868 #endif
17870 #undef $ac_func
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char $ac_func ();
17879 /* The GNU C library defines this for functions which it implements
17880 to always fail with ENOSYS. Some functions are actually named
17881 something starting with __ and the normal name is an alias. */
17882 #if defined __stub_$ac_func || defined __stub___$ac_func
17883 choke me
17884 #endif
17887 main ()
17889 return $ac_func ();
17891 return 0;
17893 _ACEOF
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (ac_try="$ac_link"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_link") 2>conftest.er1
17902 ac_status=$?
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest$ac_exeext &&
17911 $as_test_x conftest$ac_exeext; then
17912 eval "$as_ac_var=yes"
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 eval "$as_ac_var=no"
17920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17921 conftest$ac_exeext conftest.$ac_ext
17923 ac_res=`eval echo '${'$as_ac_var'}'`
17924 { echo "$as_me:$LINENO: result: $ac_res" >&5
17925 echo "${ECHO_T}$ac_res" >&6; }
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 _ACEOF
17932 done
17935 # checks for structures
17936 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17938 if test "${ac_cv_header_time+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 #include <sys/types.h>
17948 #include <sys/time.h>
17949 #include <time.h>
17952 main ()
17954 if ((struct tm *) 0)
17955 return 0;
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17977 ac_cv_header_time=yes
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ac_cv_header_time=no
17985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17988 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17989 if test $ac_cv_header_time = yes; then
17991 cat >>confdefs.h <<\_ACEOF
17992 #define TIME_WITH_SYS_TIME 1
17993 _ACEOF
17997 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17998 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17999 if test "${ac_cv_struct_tm+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 #include <sys/types.h>
18009 #include <time.h>
18012 main ()
18014 struct tm tm;
18015 int *p = &tm.tm_sec;
18016 return !p;
18018 return 0;
18020 _ACEOF
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest.$ac_objext; then
18038 ac_cv_struct_tm=time.h
18039 else
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ac_cv_struct_tm=sys/time.h
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18049 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18050 if test $ac_cv_struct_tm = sys/time.h; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define TM_IN_SYS_TIME 1
18054 _ACEOF
18058 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18059 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18060 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h. */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 #include <sys/types.h>
18070 #include <$ac_cv_struct_tm>
18074 main ()
18076 static struct tm ac_aggr;
18077 if (ac_aggr.tm_zone)
18078 return 0;
18080 return 0;
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_cv_member_struct_tm_tm_zone=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <sys/types.h>
18112 #include <$ac_cv_struct_tm>
18116 main ()
18118 static struct tm ac_aggr;
18119 if (sizeof ac_aggr.tm_zone)
18120 return 0;
18122 return 0;
18124 _ACEOF
18125 rm -f conftest.$ac_objext
18126 if { (ac_try="$ac_compile"
18127 case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_compile") 2>conftest.er1
18133 ac_status=$?
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && {
18139 test -z "$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18141 } && test -s conftest.$ac_objext; then
18142 ac_cv_member_struct_tm_tm_zone=yes
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 ac_cv_member_struct_tm_tm_zone=no
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18156 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18157 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_STRUCT_TM_TM_ZONE 1
18161 _ACEOF
18166 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18168 cat >>confdefs.h <<\_ACEOF
18169 #define HAVE_TM_ZONE 1
18170 _ACEOF
18172 else
18173 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18174 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18175 if test "${ac_cv_have_decl_tzname+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h. */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 #include <time.h>
18187 main ()
18189 #ifndef tzname
18190 (void) tzname;
18191 #endif
18194 return 0;
18196 _ACEOF
18197 rm -f conftest.$ac_objext
18198 if { (ac_try="$ac_compile"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_compile") 2>conftest.er1
18205 ac_status=$?
18206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && {
18211 test -z "$ac_c_werror_flag" ||
18212 test ! -s conftest.err
18213 } && test -s conftest.$ac_objext; then
18214 ac_cv_have_decl_tzname=yes
18215 else
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 ac_cv_have_decl_tzname=no
18222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18225 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18226 if test $ac_cv_have_decl_tzname = yes; then
18228 cat >>confdefs.h <<_ACEOF
18229 #define HAVE_DECL_TZNAME 1
18230 _ACEOF
18233 else
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_TZNAME 0
18236 _ACEOF
18242 { echo "$as_me:$LINENO: checking for tzname" >&5
18243 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18244 if test "${ac_cv_var_tzname+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 #include <time.h>
18254 #if !HAVE_DECL_TZNAME
18255 extern char *tzname[];
18256 #endif
18259 main ()
18261 return tzname[0][0];
18263 return 0;
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest$ac_exeext &&
18283 $as_test_x conftest$ac_exeext; then
18284 ac_cv_var_tzname=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_var_tzname=no
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18296 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18297 if test $ac_cv_var_tzname = yes; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_TZNAME 1
18301 _ACEOF
18306 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18307 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18308 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 $ac_includes_default
18319 main ()
18321 static struct stat ac_aggr;
18322 if (ac_aggr.st_rdev)
18323 return 0;
18325 return 0;
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } && {
18342 test -z "$ac_c_werror_flag" ||
18343 test ! -s conftest.err
18344 } && test -s conftest.$ac_objext; then
18345 ac_cv_member_struct_stat_st_rdev=yes
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h. */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18358 main ()
18360 static struct stat ac_aggr;
18361 if (sizeof ac_aggr.st_rdev)
18362 return 0;
18364 return 0;
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (ac_try="$ac_compile"
18369 case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18372 esac
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_compile") 2>conftest.er1
18375 ac_status=$?
18376 grep -v '^ *+' conftest.er1 >conftest.err
18377 rm -f conftest.er1
18378 cat conftest.err >&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && {
18381 test -z "$ac_c_werror_flag" ||
18382 test ! -s conftest.err
18383 } && test -s conftest.$ac_objext; then
18384 ac_cv_member_struct_stat_st_rdev=yes
18385 else
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ac_cv_member_struct_stat_st_rdev=no
18392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18398 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18399 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_STRUCT_STAT_ST_RDEV 1
18403 _ACEOF
18408 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18409 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18410 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 $ac_includes_default
18421 main ()
18423 static struct stat ac_aggr;
18424 if (ac_aggr.st_blksize)
18425 return 0;
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext
18431 if { (ac_try="$ac_compile"
18432 case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_compile") 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest.$ac_objext; then
18447 ac_cv_member_struct_stat_st_blksize=yes
18448 else
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 $ac_includes_default
18460 main ()
18462 static struct stat ac_aggr;
18463 if (sizeof ac_aggr.st_blksize)
18464 return 0;
18466 return 0;
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_compile") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest.$ac_objext; then
18486 ac_cv_member_struct_stat_st_blksize=yes
18487 else
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 ac_cv_member_struct_stat_st_blksize=no
18494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18501 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18505 _ACEOF
18510 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18511 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18512 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 $ac_includes_default
18523 main ()
18525 static struct stat ac_aggr;
18526 if (ac_aggr.st_flags)
18527 return 0;
18529 return 0;
18531 _ACEOF
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_compile") 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } && {
18546 test -z "$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18548 } && test -s conftest.$ac_objext; then
18549 ac_cv_member_struct_stat_st_flags=yes
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 $ac_includes_default
18562 main ()
18564 static struct stat ac_aggr;
18565 if (sizeof ac_aggr.st_flags)
18566 return 0;
18568 return 0;
18570 _ACEOF
18571 rm -f conftest.$ac_objext
18572 if { (ac_try="$ac_compile"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest.$ac_objext; then
18588 ac_cv_member_struct_stat_st_flags=yes
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_cv_member_struct_stat_st_flags=no
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18602 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
18603 if test $ac_cv_member_struct_stat_st_flags = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18607 _ACEOF
18612 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18613 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
18614 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18625 main ()
18627 static struct stat ac_aggr;
18628 if (ac_aggr.st_gen)
18629 return 0;
18631 return 0;
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_compile") 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && {
18648 test -z "$ac_c_werror_flag" ||
18649 test ! -s conftest.err
18650 } && test -s conftest.$ac_objext; then
18651 ac_cv_member_struct_stat_st_gen=yes
18652 else
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 $ac_includes_default
18664 main ()
18666 static struct stat ac_aggr;
18667 if (sizeof ac_aggr.st_gen)
18668 return 0;
18670 return 0;
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest.$ac_objext; then
18690 ac_cv_member_struct_stat_st_gen=yes
18691 else
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 ac_cv_member_struct_stat_st_gen=no
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18705 if test $ac_cv_member_struct_stat_st_gen = yes; then
18707 cat >>confdefs.h <<_ACEOF
18708 #define HAVE_STRUCT_STAT_ST_GEN 1
18709 _ACEOF
18714 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18715 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18716 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18727 main ()
18729 static struct stat ac_aggr;
18730 if (ac_aggr.st_birthtime)
18731 return 0;
18733 return 0;
18735 _ACEOF
18736 rm -f conftest.$ac_objext
18737 if { (ac_try="$ac_compile"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_compile") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && {
18750 test -z "$ac_c_werror_flag" ||
18751 test ! -s conftest.err
18752 } && test -s conftest.$ac_objext; then
18753 ac_cv_member_struct_stat_st_birthtime=yes
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 $ac_includes_default
18766 main ()
18768 static struct stat ac_aggr;
18769 if (sizeof ac_aggr.st_birthtime)
18770 return 0;
18772 return 0;
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (ac_try="$ac_compile"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_compile") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest.$ac_objext; then
18792 ac_cv_member_struct_stat_st_birthtime=yes
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 ac_cv_member_struct_stat_st_birthtime=no
18800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18807 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18811 _ACEOF
18816 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18817 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18818 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 $ac_includes_default
18829 main ()
18831 static struct stat ac_aggr;
18832 if (ac_aggr.st_blocks)
18833 return 0;
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_compile") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest.$ac_objext; then
18855 ac_cv_member_struct_stat_st_blocks=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 $ac_includes_default
18868 main ()
18870 static struct stat ac_aggr;
18871 if (sizeof ac_aggr.st_blocks)
18872 return 0;
18874 return 0;
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (ac_try="$ac_compile"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_compile") 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } && {
18891 test -z "$ac_c_werror_flag" ||
18892 test ! -s conftest.err
18893 } && test -s conftest.$ac_objext; then
18894 ac_cv_member_struct_stat_st_blocks=yes
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_member_struct_stat_st_blocks=no
18902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18908 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18909 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18913 _ACEOF
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_ST_BLOCKS 1
18918 _ACEOF
18920 else
18921 case " $LIBOBJS " in
18922 *" fileblocks.$ac_objext "* ) ;;
18923 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18925 esac
18931 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18932 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18933 if test "${ac_cv_header_time_altzone+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include <time.h>
18944 main ()
18946 return altzone;
18948 return 0;
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (ac_try="$ac_compile"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_compile") 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest.$ac_objext; then
18968 ac_cv_header_time_altzone=yes
18969 else
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_header_time_altzone=no
18976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18980 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18981 if test $ac_cv_header_time_altzone = yes; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_ALTZONE 1
18985 _ACEOF
18989 was_it_defined=no
18990 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18991 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18992 cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h. */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18999 #include <sys/types.h>
19000 #include <sys/select.h>
19001 #include <sys/time.h>
19004 main ()
19008 return 0;
19010 _ACEOF
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_compile") 2>conftest.er1
19019 ac_status=$?
19020 grep -v '^ *+' conftest.er1 >conftest.err
19021 rm -f conftest.er1
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest.$ac_objext; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define SYS_SELECT_WITH_SYS_TIME 1
19032 _ACEOF
19034 was_it_defined=yes
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19045 echo "${ECHO_T}$was_it_defined" >&6; }
19047 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19048 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19049 if test "${ac_cv_struct_addrinfo+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19059 # include <netdb.h>
19061 main ()
19063 struct addrinfo a
19065 return 0;
19067 _ACEOF
19068 rm -f conftest.$ac_objext
19069 if { (ac_try="$ac_compile"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_compile") 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } && {
19082 test -z "$ac_c_werror_flag" ||
19083 test ! -s conftest.err
19084 } && test -s conftest.$ac_objext; then
19085 ac_cv_struct_addrinfo=yes
19086 else
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_struct_addrinfo=no
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19097 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19098 if test $ac_cv_struct_addrinfo = yes; then
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ADDRINFO 1
19102 _ACEOF
19106 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19107 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19108 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19118 # include <sys/types.h>
19119 # include <sys/socket.h>
19121 main ()
19123 struct sockaddr_storage s
19125 return 0;
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_cv_struct_sockaddr_storage=yes
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_cv_struct_sockaddr_storage=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19157 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19158 if test $ac_cv_struct_sockaddr_storage = yes; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_SOCKADDR_STORAGE 1
19162 _ACEOF
19166 # checks for compiler characteristics
19169 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19170 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19171 if test "${ac_cv_c_char_unsigned+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174 cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h. */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19182 main ()
19184 static int test_array [1 - 2 * !(((char) -1) < 0)];
19185 test_array [0] = 0
19188 return 0;
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_compile") 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && {
19205 test -z "$ac_c_werror_flag" ||
19206 test ! -s conftest.err
19207 } && test -s conftest.$ac_objext; then
19208 ac_cv_c_char_unsigned=no
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_c_char_unsigned=yes
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19219 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19220 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define __CHAR_UNSIGNED__ 1
19223 _ACEOF
19227 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19228 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19229 if test "${ac_cv_c_const+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19240 main ()
19242 /* FIXME: Include the comments suggested by Paul. */
19243 #ifndef __cplusplus
19244 /* Ultrix mips cc rejects this. */
19245 typedef int charset[2];
19246 const charset cs;
19247 /* SunOS 4.1.1 cc rejects this. */
19248 char const *const *pcpcc;
19249 char **ppc;
19250 /* NEC SVR4.0.2 mips cc rejects this. */
19251 struct point {int x, y;};
19252 static struct point const zero = {0,0};
19253 /* AIX XL C 1.02.0.0 rejects this.
19254 It does not let you subtract one const X* pointer from another in
19255 an arm of an if-expression whose if-part is not a constant
19256 expression */
19257 const char *g = "string";
19258 pcpcc = &g + (g ? g-g : 0);
19259 /* HPUX 7.0 cc rejects these. */
19260 ++pcpcc;
19261 ppc = (char**) pcpcc;
19262 pcpcc = (char const *const *) ppc;
19263 { /* SCO 3.2v4 cc rejects this. */
19264 char *t;
19265 char const *s = 0 ? (char *) 0 : (char const *) 0;
19267 *t++ = 0;
19268 if (s) return 0;
19270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19271 int x[] = {25, 17};
19272 const int *foo = &x[0];
19273 ++foo;
19275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19276 typedef const int *iptr;
19277 iptr p = 0;
19278 ++p;
19280 { /* AIX XL C 1.02.0.0 rejects this saying
19281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19282 struct s { int j; const int *ap[3]; };
19283 struct s *b; b->j = 5;
19285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19286 const int foo = 10;
19287 if (!foo) return 0;
19289 return !cs[0] && !zero.x;
19290 #endif
19293 return 0;
19295 _ACEOF
19296 rm -f conftest.$ac_objext
19297 if { (ac_try="$ac_compile"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_compile") 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } && {
19310 test -z "$ac_c_werror_flag" ||
19311 test ! -s conftest.err
19312 } && test -s conftest.$ac_objext; then
19313 ac_cv_c_const=yes
19314 else
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19318 ac_cv_c_const=no
19321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19324 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19325 if test $ac_cv_c_const = no; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define const
19329 _ACEOF
19334 works=no
19335 { echo "$as_me:$LINENO: checking for working volatile" >&5
19336 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h. */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19345 main ()
19347 volatile int x; x = 0;
19349 return 0;
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (ac_try="$ac_compile"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357 esac
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_compile") 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest.$ac_objext; then
19369 works=yes
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19375 cat >>confdefs.h <<\_ACEOF
19376 #define volatile
19377 _ACEOF
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 { echo "$as_me:$LINENO: result: $works" >&5
19384 echo "${ECHO_T}$works" >&6; }
19386 works=no
19387 { echo "$as_me:$LINENO: checking for working signed char" >&5
19388 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19397 main ()
19399 signed char c;
19401 return 0;
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest.$ac_objext; then
19421 works=yes
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19427 cat >>confdefs.h <<\_ACEOF
19428 #define signed
19429 _ACEOF
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result: $works" >&5
19436 echo "${ECHO_T}$works" >&6; }
19438 have_prototypes=no
19439 { echo "$as_me:$LINENO: checking for prototypes" >&5
19440 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h. */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 int foo(int x) { return 0; }
19449 main ()
19451 return foo(10);
19453 return 0;
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (ac_try="$ac_compile"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_PROTOTYPES 1
19477 _ACEOF
19479 have_prototypes=yes
19481 else
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19490 echo "${ECHO_T}$have_prototypes" >&6; }
19492 works=no
19493 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19494 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 #include <stdarg.h>
19503 int foo(int x, ...) {
19504 va_list va;
19505 va_start(va, x);
19506 va_arg(va, int);
19507 va_arg(va, char *);
19508 va_arg(va, double);
19509 return 0;
19513 main ()
19515 return foo(10, "", 3.14);
19517 return 0;
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && {
19534 test -z "$ac_c_werror_flag" ||
19535 test ! -s conftest.err
19536 } && test -s conftest.$ac_objext; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_STDARG_PROTOTYPES 1
19541 _ACEOF
19543 works=yes
19545 else
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 { echo "$as_me:$LINENO: result: $works" >&5
19554 echo "${ECHO_T}$works" >&6; }
19556 # check for socketpair
19557 { echo "$as_me:$LINENO: checking for socketpair" >&5
19558 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 #include <sys/types.h>
19567 #include <sys/socket.h>
19570 main ()
19572 void *x=socketpair
19574 return 0;
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (ac_try="$ac_compile"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19582 esac
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } && {
19591 test -z "$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19593 } && test -s conftest.$ac_objext; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_SOCKETPAIR 1
19597 _ACEOF
19599 { echo "$as_me:$LINENO: result: yes" >&5
19600 echo "${ECHO_T}yes" >&6; }
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 # check if sockaddr has sa_len member
19613 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19614 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
19615 cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h. */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <sys/types.h>
19622 #include <sys/socket.h>
19624 main ()
19626 struct sockaddr x;
19627 x.sa_len = 0;
19629 return 0;
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_compile") 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && {
19646 test -z "$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 } && test -s conftest.$ac_objext; then
19649 { echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6; }
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_SOCKADDR_SA_LEN 1
19654 _ACEOF
19656 else
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 { echo "$as_me:$LINENO: result: no" >&5
19661 echo "${ECHO_T}no" >&6; }
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 va_list_is_array=no
19667 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19668 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h. */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 #ifdef HAVE_STDARG_PROTOTYPES
19677 #include <stdarg.h>
19678 #else
19679 #include <varargs.h>
19680 #endif
19683 main ()
19685 va_list list1, list2; list1 = list2;
19687 return 0;
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19708 else
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19714 cat >>confdefs.h <<\_ACEOF
19715 #define VA_LIST_IS_ARRAY 1
19716 _ACEOF
19718 va_list_is_array=yes
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19724 echo "${ECHO_T}$va_list_is_array" >&6; }
19726 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19730 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19731 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735 cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h. */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19743 #define gethostbyname_r innocuous_gethostbyname_r
19745 /* System header to define __stub macros and hopefully few prototypes,
19746 which can conflict with char gethostbyname_r (); below.
19747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19748 <limits.h> exists even on freestanding compilers. */
19750 #ifdef __STDC__
19751 # include <limits.h>
19752 #else
19753 # include <assert.h>
19754 #endif
19756 #undef gethostbyname_r
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 char gethostbyname_r ();
19765 /* The GNU C library defines this for functions which it implements
19766 to always fail with ENOSYS. Some functions are actually named
19767 something starting with __ and the normal name is an alias. */
19768 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19769 choke me
19770 #endif
19773 main ()
19775 return gethostbyname_r ();
19777 return 0;
19779 _ACEOF
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest$ac_exeext &&
19797 $as_test_x conftest$ac_exeext; then
19798 ac_cv_func_gethostbyname_r=yes
19799 else
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_func_gethostbyname_r=no
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19809 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19810 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19811 if test $ac_cv_func_gethostbyname_r = yes; then
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_GETHOSTBYNAME_R 1
19815 _ACEOF
19817 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19818 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19819 OLD_CFLAGS=$CFLAGS
19820 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h. */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19828 # include <netdb.h>
19831 main ()
19834 char *name;
19835 struct hostent *he, *res;
19836 char buffer[2048];
19837 int buflen = 2048;
19838 int h_errnop;
19840 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19843 return 0;
19845 _ACEOF
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest.$ac_objext; then
19864 cat >>confdefs.h <<\_ACEOF
19865 #define HAVE_GETHOSTBYNAME_R 1
19866 _ACEOF
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19871 _ACEOF
19873 { echo "$as_me:$LINENO: result: yes" >&5
19874 echo "${ECHO_T}yes" >&6; }
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19881 { echo "$as_me:$LINENO: result: no" >&5
19882 echo "${ECHO_T}no" >&6; }
19883 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19884 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19892 # include <netdb.h>
19895 main ()
19898 char *name;
19899 struct hostent *he;
19900 char buffer[2048];
19901 int buflen = 2048;
19902 int h_errnop;
19904 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19907 return 0;
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE_GETHOSTBYNAME_R 1
19930 _ACEOF
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19935 _ACEOF
19937 { echo "$as_me:$LINENO: result: yes" >&5
19938 echo "${ECHO_T}yes" >&6; }
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19945 { echo "$as_me:$LINENO: result: no" >&5
19946 echo "${ECHO_T}no" >&6; }
19947 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19948 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h. */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 # include <netdb.h>
19959 main ()
19962 char *name;
19963 struct hostent *he;
19964 struct hostent_data data;
19966 (void) gethostbyname_r(name, he, &data);
19969 return 0;
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (ac_try="$ac_compile"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_compile") 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest.$ac_objext; then
19990 cat >>confdefs.h <<\_ACEOF
19991 #define HAVE_GETHOSTBYNAME_R 1
19992 _ACEOF
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19997 _ACEOF
19999 { echo "$as_me:$LINENO: result: yes" >&5
20000 echo "${ECHO_T}yes" >&6; }
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20007 { echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6; }
20012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 CFLAGS=$OLD_CFLAGS
20023 else
20026 for ac_func in gethostbyname
20028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20042 #define $ac_func innocuous_$ac_func
20044 /* System header to define __stub macros and hopefully few prototypes,
20045 which can conflict with char $ac_func (); below.
20046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20047 <limits.h> exists even on freestanding compilers. */
20049 #ifdef __STDC__
20050 # include <limits.h>
20051 #else
20052 # include <assert.h>
20053 #endif
20055 #undef $ac_func
20057 /* Override any GCC internal prototype to avoid an error.
20058 Use char because int might match the return type of a GCC
20059 builtin and then its argument prototype would still apply. */
20060 #ifdef __cplusplus
20061 extern "C"
20062 #endif
20063 char $ac_func ();
20064 /* The GNU C library defines this for functions which it implements
20065 to always fail with ENOSYS. Some functions are actually named
20066 something starting with __ and the normal name is an alias. */
20067 #if defined __stub_$ac_func || defined __stub___$ac_func
20068 choke me
20069 #endif
20072 main ()
20074 return $ac_func ();
20076 return 0;
20078 _ACEOF
20079 rm -f conftest.$ac_objext conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext &&
20096 $as_test_x conftest$ac_exeext; then
20097 eval "$as_ac_var=yes"
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 eval "$as_ac_var=no"
20105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20106 conftest$ac_exeext conftest.$ac_ext
20108 ac_res=`eval echo '${'$as_ac_var'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111 if test `eval echo '${'$as_ac_var'}'` = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20114 _ACEOF
20117 done
20128 # checks for system services
20129 # (none yet)
20131 # Linux requires this for correct f.p. operations
20132 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20133 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20134 if test "${ac_cv_func___fpu_control+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20145 #define __fpu_control innocuous___fpu_control
20147 /* System header to define __stub macros and hopefully few prototypes,
20148 which can conflict with char __fpu_control (); below.
20149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20150 <limits.h> exists even on freestanding compilers. */
20152 #ifdef __STDC__
20153 # include <limits.h>
20154 #else
20155 # include <assert.h>
20156 #endif
20158 #undef __fpu_control
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char __fpu_control ();
20167 /* The GNU C library defines this for functions which it implements
20168 to always fail with ENOSYS. Some functions are actually named
20169 something starting with __ and the normal name is an alias. */
20170 #if defined __stub___fpu_control || defined __stub_____fpu_control
20171 choke me
20172 #endif
20175 main ()
20177 return __fpu_control ();
20179 return 0;
20181 _ACEOF
20182 rm -f conftest.$ac_objext conftest$ac_exeext
20183 if { (ac_try="$ac_link"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_link") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest$ac_exeext &&
20199 $as_test_x conftest$ac_exeext; then
20200 ac_cv_func___fpu_control=yes
20201 else
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ac_cv_func___fpu_control=no
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209 conftest$ac_exeext conftest.$ac_ext
20211 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20212 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20213 if test $ac_cv_func___fpu_control = yes; then
20215 else
20217 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20218 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20219 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222 ac_check_lib_save_LIBS=$LIBS
20223 LIBS="-lieee $LIBS"
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h. */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20231 /* Override any GCC internal prototype to avoid an error.
20232 Use char because int might match the return type of a GCC
20233 builtin and then its argument prototype would still apply. */
20234 #ifdef __cplusplus
20235 extern "C"
20236 #endif
20237 char __fpu_control ();
20239 main ()
20241 return __fpu_control ();
20243 return 0;
20245 _ACEOF
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_link") 2>conftest.er1
20254 ac_status=$?
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest$ac_exeext &&
20263 $as_test_x conftest$ac_exeext; then
20264 ac_cv_lib_ieee___fpu_control=yes
20265 else
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 ac_cv_lib_ieee___fpu_control=no
20272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20273 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20276 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20277 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20278 if test $ac_cv_lib_ieee___fpu_control = yes; then
20279 cat >>confdefs.h <<_ACEOF
20280 #define HAVE_LIBIEEE 1
20281 _ACEOF
20283 LIBS="-lieee $LIBS"
20291 # Check for --with-fpectl
20292 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20293 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20295 # Check whether --with-fpectl was given.
20296 if test "${with_fpectl+set}" = set; then
20297 withval=$with_fpectl;
20298 if test "$withval" != no
20299 then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define WANT_SIGFPE_HANDLER 1
20303 _ACEOF
20305 { echo "$as_me:$LINENO: result: yes" >&5
20306 echo "${ECHO_T}yes" >&6; }
20307 else { echo "$as_me:$LINENO: result: no" >&5
20308 echo "${ECHO_T}no" >&6; }
20310 else
20311 { echo "$as_me:$LINENO: result: no" >&5
20312 echo "${ECHO_T}no" >&6; }
20316 # check for --with-libm=...
20318 case $ac_sys_system in
20319 Darwin) ;;
20320 BeOS) ;;
20321 *) LIBM=-lm
20322 esac
20323 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20324 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20326 # Check whether --with-libm was given.
20327 if test "${with_libm+set}" = set; then
20328 withval=$with_libm;
20329 if test "$withval" = no
20330 then LIBM=
20331 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20332 echo "${ECHO_T}force LIBM empty" >&6; }
20333 elif test "$withval" != yes
20334 then LIBM=$withval
20335 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20336 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20337 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20338 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20339 { (exit 1); exit 1; }; }
20341 else
20342 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20343 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20347 # check for --with-libc=...
20349 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20350 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20352 # Check whether --with-libc was given.
20353 if test "${with_libc+set}" = set; then
20354 withval=$with_libc;
20355 if test "$withval" = no
20356 then LIBC=
20357 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20358 echo "${ECHO_T}force LIBC empty" >&6; }
20359 elif test "$withval" != yes
20360 then LIBC=$withval
20361 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20362 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20363 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20364 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20365 { (exit 1); exit 1; }; }
20367 else
20368 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20369 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20373 # ************************************
20374 # * Check for mathematical functions *
20375 # ************************************
20376 # check for hypot() in math library
20377 LIBS_SAVE=$LIBS
20378 LIBS="$LIBS $LIBM"
20380 for ac_func in hypot
20382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20396 #define $ac_func innocuous_$ac_func
20398 /* System header to define __stub macros and hopefully few prototypes,
20399 which can conflict with char $ac_func (); below.
20400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20401 <limits.h> exists even on freestanding compilers. */
20403 #ifdef __STDC__
20404 # include <limits.h>
20405 #else
20406 # include <assert.h>
20407 #endif
20409 #undef $ac_func
20411 /* Override any GCC internal prototype to avoid an error.
20412 Use char because int might match the return type of a GCC
20413 builtin and then its argument prototype would still apply. */
20414 #ifdef __cplusplus
20415 extern "C"
20416 #endif
20417 char $ac_func ();
20418 /* The GNU C library defines this for functions which it implements
20419 to always fail with ENOSYS. Some functions are actually named
20420 something starting with __ and the normal name is an alias. */
20421 #if defined __stub_$ac_func || defined __stub___$ac_func
20422 choke me
20423 #endif
20426 main ()
20428 return $ac_func ();
20430 return 0;
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 eval "$as_ac_var=yes"
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 eval "$as_ac_var=no"
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20462 ac_res=`eval echo '${'$as_ac_var'}'`
20463 { echo "$as_me:$LINENO: result: $ac_res" >&5
20464 echo "${ECHO_T}$ac_res" >&6; }
20465 if test `eval echo '${'$as_ac_var'}'` = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20468 _ACEOF
20470 else
20471 case " $LIBOBJS " in
20472 *" $ac_func.$ac_objext "* ) ;;
20473 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20475 esac
20478 done
20486 for ac_func in copysign isfinite isnan isinf
20488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 else
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20502 #define $ac_func innocuous_$ac_func
20504 /* System header to define __stub macros and hopefully few prototypes,
20505 which can conflict with char $ac_func (); below.
20506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20507 <limits.h> exists even on freestanding compilers. */
20509 #ifdef __STDC__
20510 # include <limits.h>
20511 #else
20512 # include <assert.h>
20513 #endif
20515 #undef $ac_func
20517 /* Override any GCC internal prototype to avoid an error.
20518 Use char because int might match the return type of a GCC
20519 builtin and then its argument prototype would still apply. */
20520 #ifdef __cplusplus
20521 extern "C"
20522 #endif
20523 char $ac_func ();
20524 /* The GNU C library defines this for functions which it implements
20525 to always fail with ENOSYS. Some functions are actually named
20526 something starting with __ and the normal name is an alias. */
20527 #if defined __stub_$ac_func || defined __stub___$ac_func
20528 choke me
20529 #endif
20532 main ()
20534 return $ac_func ();
20536 return 0;
20538 _ACEOF
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (ac_try="$ac_link"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_link") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest$ac_exeext &&
20556 $as_test_x conftest$ac_exeext; then
20557 eval "$as_ac_var=yes"
20558 else
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 eval "$as_ac_var=no"
20565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20566 conftest$ac_exeext conftest.$ac_ext
20568 ac_res=`eval echo '${'$as_ac_var'}'`
20569 { echo "$as_me:$LINENO: result: $ac_res" >&5
20570 echo "${ECHO_T}$ac_res" >&6; }
20571 if test `eval echo '${'$as_ac_var'}'` = yes; then
20572 cat >>confdefs.h <<_ACEOF
20573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20574 _ACEOF
20577 done
20580 LIBS=$LIBS_SAVE
20582 # check for wchar.h
20583 if test "${ac_cv_header_wchar_h+set}" = set; then
20584 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20585 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20586 if test "${ac_cv_header_wchar_h+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20590 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20591 else
20592 # Is the header compilable?
20593 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
20594 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
20595 cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h. */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 $ac_includes_default
20602 #include <wchar.h>
20603 _ACEOF
20604 rm -f conftest.$ac_objext
20605 if { (ac_try="$ac_compile"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_compile") 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } && {
20618 test -z "$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20620 } && test -s conftest.$ac_objext; then
20621 ac_header_compiler=yes
20622 else
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_header_compiler=no
20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6; }
20633 # Is the header present?
20634 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
20635 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 #include <wchar.h>
20643 _ACEOF
20644 if { (ac_try="$ac_cpp conftest.$ac_ext"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } >/dev/null && {
20657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 }; then
20660 ac_header_preproc=yes
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ac_header_preproc=no
20668 rm -f conftest.err conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20670 echo "${ECHO_T}$ac_header_preproc" >&6; }
20672 # So? What about this header?
20673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20674 yes:no: )
20675 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20676 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20678 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20679 ac_header_preproc=yes
20681 no:yes:* )
20682 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20683 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20685 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20687 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20689 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20691 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20693 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20694 ( cat <<\_ASBOX
20695 ## ------------------------------------------------ ##
20696 ## Report this to http://www.python.org/python-bugs ##
20697 ## ------------------------------------------------ ##
20698 _ASBOX
20699 ) | sed "s/^/$as_me: WARNING: /" >&2
20701 esac
20702 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20703 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20704 if test "${ac_cv_header_wchar_h+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707 ac_cv_header_wchar_h=$ac_header_preproc
20709 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20710 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20713 if test $ac_cv_header_wchar_h = yes; then
20716 cat >>confdefs.h <<\_ACEOF
20717 #define HAVE_WCHAR_H 1
20718 _ACEOF
20720 wchar_h="yes"
20722 else
20723 wchar_h="no"
20729 # determine wchar_t size
20730 if test "$wchar_h" = yes
20731 then
20732 { echo "$as_me:$LINENO: checking for wchar_t" >&5
20733 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
20734 if test "${ac_cv_type_wchar_t+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #include <wchar.h>
20745 typedef wchar_t ac__type_new_;
20747 main ()
20749 if ((ac__type_new_ *) 0)
20750 return 0;
20751 if (sizeof (ac__type_new_))
20752 return 0;
20754 return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 ac_cv_type_wchar_t=yes
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ac_cv_type_wchar_t=no
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20785 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20787 # The cast to long int works around a bug in the HP C Compiler
20788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20790 # This bug is HP SR number 8606223364.
20791 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20792 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20793 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796 if test "$cross_compiling" = yes; then
20797 # Depending upon the size, compute the lo and hi bounds.
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <wchar.h>
20806 typedef wchar_t ac__type_sizeof_;
20808 main ()
20810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20811 test_array [0] = 0
20814 return 0;
20816 _ACEOF
20817 rm -f conftest.$ac_objext
20818 if { (ac_try="$ac_compile"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_compile") 2>conftest.er1
20825 ac_status=$?
20826 grep -v '^ *+' conftest.er1 >conftest.err
20827 rm -f conftest.er1
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && {
20831 test -z "$ac_c_werror_flag" ||
20832 test ! -s conftest.err
20833 } && test -s conftest.$ac_objext; then
20834 ac_lo=0 ac_mid=0
20835 while :; do
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <wchar.h>
20844 typedef wchar_t ac__type_sizeof_;
20846 main ()
20848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20849 test_array [0] = 0
20852 return 0;
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859 *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_compile") 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && {
20869 test -z "$ac_c_werror_flag" ||
20870 test ! -s conftest.err
20871 } && test -s conftest.$ac_objext; then
20872 ac_hi=$ac_mid; break
20873 else
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 ac_lo=`expr $ac_mid + 1`
20878 if test $ac_lo -le $ac_mid; then
20879 ac_lo= ac_hi=
20880 break
20882 ac_mid=`expr 2 '*' $ac_mid + 1`
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 done
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <wchar.h>
20899 typedef wchar_t ac__type_sizeof_;
20901 main ()
20903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20904 test_array [0] = 0
20907 return 0;
20909 _ACEOF
20910 rm -f conftest.$ac_objext
20911 if { (ac_try="$ac_compile"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_compile") 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && {
20924 test -z "$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 } && test -s conftest.$ac_objext; then
20927 ac_hi=-1 ac_mid=-1
20928 while :; do
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 #include <wchar.h>
20937 typedef wchar_t ac__type_sizeof_;
20939 main ()
20941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20942 test_array [0] = 0
20945 return 0;
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_compile") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest.$ac_objext; then
20965 ac_lo=$ac_mid; break
20966 else
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_hi=`expr '(' $ac_mid ')' - 1`
20971 if test $ac_mid -le $ac_hi; then
20972 ac_lo= ac_hi=
20973 break
20975 ac_mid=`expr 2 '*' $ac_mid`
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979 done
20980 else
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 ac_lo= ac_hi=
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 # Binary search between lo and hi bounds.
20992 while test "x$ac_lo" != "x$ac_hi"; do
20993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 #include <wchar.h>
21002 typedef wchar_t ac__type_sizeof_;
21004 main ()
21006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21007 test_array [0] = 0
21010 return 0;
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_hi=$ac_mid
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_lo=`expr '(' $ac_mid ')' + 1`
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 done
21040 case $ac_lo in
21041 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21042 '') if test "$ac_cv_type_wchar_t" = yes; then
21043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21044 See \`config.log' for more details." >&5
21045 echo "$as_me: error: cannot compute sizeof (wchar_t)
21046 See \`config.log' for more details." >&2;}
21047 { (exit 77); exit 77; }; }
21048 else
21049 ac_cv_sizeof_wchar_t=0
21050 fi ;;
21051 esac
21052 else
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <wchar.h>
21061 typedef wchar_t ac__type_sizeof_;
21062 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21063 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21064 #include <stdio.h>
21065 #include <stdlib.h>
21067 main ()
21070 FILE *f = fopen ("conftest.val", "w");
21071 if (! f)
21072 return 1;
21073 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21075 long int i = longval ();
21076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21077 return 1;
21078 fprintf (f, "%ld\n", i);
21080 else
21082 unsigned long int i = ulongval ();
21083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21084 return 1;
21085 fprintf (f, "%lu\n", i);
21087 return ferror (f) || fclose (f) != 0;
21090 return 0;
21092 _ACEOF
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104 { (case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_try") 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_sizeof_wchar_t=`cat conftest.val`
21114 else
21115 echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 ( exit $ac_status )
21120 if test "$ac_cv_type_wchar_t" = yes; then
21121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21122 See \`config.log' for more details." >&5
21123 echo "$as_me: error: cannot compute sizeof (wchar_t)
21124 See \`config.log' for more details." >&2;}
21125 { (exit 77); exit 77; }; }
21126 else
21127 ac_cv_sizeof_wchar_t=0
21130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21132 rm -f conftest.val
21134 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21135 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21139 cat >>confdefs.h <<_ACEOF
21140 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21141 _ACEOF
21146 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21147 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21148 have_ucs4_tcl=no
21149 cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h. */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21156 #include <tcl.h>
21157 #if TCL_UTF_MAX != 6
21158 # error "NOT UCS4_TCL"
21159 #endif
21161 main ()
21165 return 0;
21167 _ACEOF
21168 rm -f conftest.$ac_objext
21169 if { (ac_try="$ac_compile"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_compile") 2>conftest.er1
21176 ac_status=$?
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest.$ac_objext; then
21187 cat >>confdefs.h <<\_ACEOF
21188 #define HAVE_UCS4_TCL 1
21189 _ACEOF
21191 have_ucs4_tcl=yes
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21202 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21204 # check whether wchar_t is signed or not
21205 if test "$wchar_h" = yes
21206 then
21207 # check whether wchar_t is signed or not
21208 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21209 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21210 if test "${ac_cv_wchar_t_signed+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21214 if test "$cross_compiling" = yes; then
21215 ac_cv_wchar_t_signed=yes
21216 else
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h. */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21224 #include <wchar.h>
21225 int main()
21227 /* Success: exit code 0 */
21228 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21231 _ACEOF
21232 rm -f conftest$ac_exeext
21233 if { (ac_try="$ac_link"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_link") 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21243 { (case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_try") 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; }; then
21252 ac_cv_wchar_t_signed=yes
21253 else
21254 echo "$as_me: program exited with status $ac_status" >&5
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ( exit $ac_status )
21259 ac_cv_wchar_t_signed=no
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21268 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21271 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21272 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21273 # Check whether --enable-unicode was given.
21274 if test "${enable_unicode+set}" = set; then
21275 enableval=$enable_unicode;
21276 else
21277 enable_unicode=yes
21281 if test $enable_unicode = yes
21282 then
21283 # Without any arguments, Py_UNICODE defaults to two-byte mode
21284 case "$have_ucs4_tcl" in
21285 yes) enable_unicode="ucs4"
21287 *) enable_unicode="ucs2"
21289 esac
21294 case "$enable_unicode" in
21295 ucs2) unicode_size="2"
21296 cat >>confdefs.h <<\_ACEOF
21297 #define Py_UNICODE_SIZE 2
21298 _ACEOF
21301 ucs4) unicode_size="4"
21302 cat >>confdefs.h <<\_ACEOF
21303 #define Py_UNICODE_SIZE 4
21304 _ACEOF
21307 esac
21313 if test "$enable_unicode" = "no"
21314 then
21315 UNICODE_OBJS=""
21316 { echo "$as_me:$LINENO: result: not used" >&5
21317 echo "${ECHO_T}not used" >&6; }
21318 else
21319 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21321 cat >>confdefs.h <<\_ACEOF
21322 #define Py_USING_UNICODE 1
21323 _ACEOF
21326 # wchar_t is only usable if it maps to an unsigned type
21327 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21328 -a "$ac_cv_wchar_t_signed" = "no"
21329 then
21330 PY_UNICODE_TYPE="wchar_t"
21332 cat >>confdefs.h <<\_ACEOF
21333 #define HAVE_USABLE_WCHAR_T 1
21334 _ACEOF
21336 cat >>confdefs.h <<\_ACEOF
21337 #define PY_UNICODE_TYPE wchar_t
21338 _ACEOF
21340 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21341 then
21342 PY_UNICODE_TYPE="unsigned short"
21343 cat >>confdefs.h <<\_ACEOF
21344 #define PY_UNICODE_TYPE unsigned short
21345 _ACEOF
21347 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21348 then
21349 PY_UNICODE_TYPE="unsigned long"
21350 cat >>confdefs.h <<\_ACEOF
21351 #define PY_UNICODE_TYPE unsigned long
21352 _ACEOF
21354 else
21355 PY_UNICODE_TYPE="no type found"
21357 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21358 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21361 # check for endianness
21362 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21363 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21364 if test "${ac_cv_c_bigendian+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 # See if sys/param.h defines the BYTE_ORDER macro.
21368 cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h. */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 #include <sys/types.h>
21375 #include <sys/param.h>
21378 main ()
21380 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21381 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21382 bogus endian macros
21383 #endif
21386 return 0;
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394 esac
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest.$ac_objext; then
21406 # It does; now see whether it defined to BIG_ENDIAN or not.
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <sys/types.h>
21414 #include <sys/param.h>
21417 main ()
21419 #if BYTE_ORDER != BIG_ENDIAN
21420 not big endian
21421 #endif
21424 return 0;
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_cv_c_bigendian=yes
21445 else
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_cv_c_bigendian=no
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 else
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 # It does not; compile a test program.
21458 if test "$cross_compiling" = yes; then
21459 # try to guess the endianness by grepping values into an object file
21460 ac_cv_c_bigendian=unknown
21461 cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h. */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21468 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21469 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21470 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21471 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21472 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21474 main ()
21476 _ascii (); _ebcdic ();
21478 return 0;
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21498 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21499 ac_cv_c_bigendian=yes
21501 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21502 if test "$ac_cv_c_bigendian" = unknown; then
21503 ac_cv_c_bigendian=no
21504 else
21505 # finding both strings is unlikely to happen, but who knows?
21506 ac_cv_c_bigendian=unknown
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 else
21518 cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h. */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 $ac_includes_default
21526 main ()
21529 /* Are we little or big endian? From Harbison&Steele. */
21530 union
21532 long int l;
21533 char c[sizeof (long int)];
21534 } u;
21535 u.l = 1;
21536 return u.c[sizeof (long int) - 1] == 1;
21539 return 0;
21541 _ACEOF
21542 rm -f conftest$ac_exeext
21543 if { (ac_try="$ac_link"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_link") 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21553 { (case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_try") 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_c_bigendian=no
21563 else
21564 echo "$as_me: program exited with status $ac_status" >&5
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ( exit $ac_status )
21569 ac_cv_c_bigendian=yes
21571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21581 case $ac_cv_c_bigendian in
21582 yes)
21584 cat >>confdefs.h <<\_ACEOF
21585 #define WORDS_BIGENDIAN 1
21586 _ACEOF
21591 { { echo "$as_me:$LINENO: error: unknown endianness
21592 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21593 echo "$as_me: error: unknown endianness
21594 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21595 { (exit 1); exit 1; }; } ;;
21596 esac
21601 # Check whether right shifting a negative integer extends the sign bit
21602 # or fills with zeros (like the Cray J90, according to Tim Peters).
21603 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21604 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
21605 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21609 if test "$cross_compiling" = yes; then
21610 ac_cv_rshift_extends_sign=yes
21611 else
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21619 int main()
21621 exit(((-1)>>3 == -1) ? 0 : 1);
21624 _ACEOF
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_link") 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_cv_rshift_extends_sign=yes
21646 else
21647 echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ( exit $ac_status )
21652 ac_cv_rshift_extends_sign=no
21654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21661 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
21662 if test "$ac_cv_rshift_extends_sign" = no
21663 then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21667 _ACEOF
21671 # check for getc_unlocked and related locking functions
21672 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21673 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
21674 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h. */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 #include <stdio.h>
21686 main ()
21689 FILE *f = fopen("/dev/null", "r");
21690 flockfile(f);
21691 getc_unlocked(f);
21692 funlockfile(f);
21695 return 0;
21697 _ACEOF
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_link") 2>conftest.er1
21706 ac_status=$?
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest$ac_exeext &&
21715 $as_test_x conftest$ac_exeext; then
21716 ac_cv_have_getc_unlocked=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_have_getc_unlocked=no
21724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21725 conftest$ac_exeext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21729 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
21730 if test "$ac_cv_have_getc_unlocked" = yes
21731 then
21733 cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_GETC_UNLOCKED 1
21735 _ACEOF
21739 # check where readline lives
21740 # save the value of LIBS so we don't actually link Python with readline
21741 LIBS_no_readline=$LIBS
21743 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21744 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
21745 if test "${ac_cv_lib_readline_readline+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748 ac_check_lib_save_LIBS=$LIBS
21749 LIBS="-lreadline $LIBS"
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21757 /* Override any GCC internal prototype to avoid an error.
21758 Use char because int might match the return type of a GCC
21759 builtin and then its argument prototype would still apply. */
21760 #ifdef __cplusplus
21761 extern "C"
21762 #endif
21763 char readline ();
21765 main ()
21767 return readline ();
21769 return 0;
21771 _ACEOF
21772 rm -f conftest.$ac_objext conftest$ac_exeext
21773 if { (ac_try="$ac_link"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_link") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest$ac_exeext &&
21789 $as_test_x conftest$ac_exeext; then
21790 ac_cv_lib_readline_readline=yes
21791 else
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_cv_lib_readline_readline=no
21798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21799 conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_lib_save_LIBS
21802 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21803 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21804 if test $ac_cv_lib_readline_readline = yes; then
21805 cat >>confdefs.h <<_ACEOF
21806 #define HAVE_LIBREADLINE 1
21807 _ACEOF
21809 LIBS="-lreadline $LIBS"
21813 if test "$ac_cv_have_readline_readline" = no
21814 then
21816 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21817 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
21818 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 else
21821 ac_check_lib_save_LIBS=$LIBS
21822 LIBS="-ltermcap $LIBS"
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21830 /* Override any GCC internal prototype to avoid an error.
21831 Use char because int might match the return type of a GCC
21832 builtin and then its argument prototype would still apply. */
21833 #ifdef __cplusplus
21834 extern "C"
21835 #endif
21836 char readline ();
21838 main ()
21840 return readline ();
21842 return 0;
21844 _ACEOF
21845 rm -f conftest.$ac_objext conftest$ac_exeext
21846 if { (ac_try="$ac_link"
21847 case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21850 esac
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852 (eval "$ac_link") 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } && {
21859 test -z "$ac_c_werror_flag" ||
21860 test ! -s conftest.err
21861 } && test -s conftest$ac_exeext &&
21862 $as_test_x conftest$ac_exeext; then
21863 ac_cv_lib_termcap_readline=yes
21864 else
21865 echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21868 ac_cv_lib_termcap_readline=no
21871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21872 conftest$ac_exeext conftest.$ac_ext
21873 LIBS=$ac_check_lib_save_LIBS
21875 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21876 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21877 if test $ac_cv_lib_termcap_readline = yes; then
21878 cat >>confdefs.h <<_ACEOF
21879 #define HAVE_LIBTERMCAP 1
21880 _ACEOF
21882 LIBS="-ltermcap $LIBS"
21888 # check for readline 2.1
21889 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21890 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
21891 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894 ac_check_lib_save_LIBS=$LIBS
21895 LIBS="-lreadline $LIBS"
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h. */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21903 /* Override any GCC internal prototype to avoid an error.
21904 Use char because int might match the return type of a GCC
21905 builtin and then its argument prototype would still apply. */
21906 #ifdef __cplusplus
21907 extern "C"
21908 #endif
21909 char rl_callback_handler_install ();
21911 main ()
21913 return rl_callback_handler_install ();
21915 return 0;
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest$ac_exeext &&
21935 $as_test_x conftest$ac_exeext; then
21936 ac_cv_lib_readline_rl_callback_handler_install=yes
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 ac_cv_lib_readline_rl_callback_handler_install=no
21944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21945 conftest$ac_exeext conftest.$ac_ext
21946 LIBS=$ac_check_lib_save_LIBS
21948 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21949 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21950 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_RL_CALLBACK 1
21954 _ACEOF
21959 # check for readline 2.2
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 #include <readline/readline.h>
21967 _ACEOF
21968 if { (ac_try="$ac_cpp conftest.$ac_ext"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21975 ac_status=$?
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } >/dev/null && {
21981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21982 test ! -s conftest.err
21983 }; then
21984 have_readline=yes
21985 else
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 have_readline=no
21992 rm -f conftest.err conftest.$ac_ext
21993 if test $have_readline = yes
21994 then
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <readline/readline.h>
22003 _ACEOF
22004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22005 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
22007 cat >>confdefs.h <<\_ACEOF
22008 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22009 _ACEOF
22012 rm -f conftest*
22016 # check for readline 4.0
22017 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22018 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22019 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022 ac_check_lib_save_LIBS=$LIBS
22023 LIBS="-lreadline $LIBS"
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h. */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22031 /* Override any GCC internal prototype to avoid an error.
22032 Use char because int might match the return type of a GCC
22033 builtin and then its argument prototype would still apply. */
22034 #ifdef __cplusplus
22035 extern "C"
22036 #endif
22037 char rl_pre_input_hook ();
22039 main ()
22041 return rl_pre_input_hook ();
22043 return 0;
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>conftest.er1
22054 ac_status=$?
22055 grep -v '^ *+' conftest.er1 >conftest.err
22056 rm -f conftest.er1
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && {
22060 test -z "$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22062 } && test -s conftest$ac_exeext &&
22063 $as_test_x conftest$ac_exeext; then
22064 ac_cv_lib_readline_rl_pre_input_hook=yes
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_cv_lib_readline_rl_pre_input_hook=no
22072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22073 conftest$ac_exeext conftest.$ac_ext
22074 LIBS=$ac_check_lib_save_LIBS
22076 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22077 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22078 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_RL_PRE_INPUT_HOOK 1
22082 _ACEOF
22087 # also in 4.0
22088 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22089 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22090 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 else
22093 ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-lreadline $LIBS"
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22102 /* Override any GCC internal prototype to avoid an error.
22103 Use char because int might match the return type of a GCC
22104 builtin and then its argument prototype would still apply. */
22105 #ifdef __cplusplus
22106 extern "C"
22107 #endif
22108 char rl_completion_display_matches_hook ();
22110 main ()
22112 return rl_completion_display_matches_hook ();
22114 return 0;
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_link") 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest$ac_exeext &&
22134 $as_test_x conftest$ac_exeext; then
22135 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22144 conftest$ac_exeext conftest.$ac_ext
22145 LIBS=$ac_check_lib_save_LIBS
22147 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22148 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22149 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22151 cat >>confdefs.h <<\_ACEOF
22152 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22153 _ACEOF
22158 # check for readline 4.2
22159 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22160 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22161 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164 ac_check_lib_save_LIBS=$LIBS
22165 LIBS="-lreadline $LIBS"
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22173 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22176 #ifdef __cplusplus
22177 extern "C"
22178 #endif
22179 char rl_completion_matches ();
22181 main ()
22183 return rl_completion_matches ();
22185 return 0;
22187 _ACEOF
22188 rm -f conftest.$ac_objext conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest$ac_exeext &&
22205 $as_test_x conftest$ac_exeext; then
22206 ac_cv_lib_readline_rl_completion_matches=yes
22207 else
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_cv_lib_readline_rl_completion_matches=no
22214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22215 conftest$ac_exeext conftest.$ac_ext
22216 LIBS=$ac_check_lib_save_LIBS
22218 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22219 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22220 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22222 cat >>confdefs.h <<\_ACEOF
22223 #define HAVE_RL_COMPLETION_MATCHES 1
22224 _ACEOF
22229 # also in readline 4.2
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <readline/readline.h>
22237 _ACEOF
22238 if { (ac_try="$ac_cpp conftest.$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 }; then
22254 have_readline=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 have_readline=no
22262 rm -f conftest.err conftest.$ac_ext
22263 if test $have_readline = yes
22264 then
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h. */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 #include <readline/readline.h>
22273 _ACEOF
22274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22275 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_RL_CATCH_SIGNAL 1
22279 _ACEOF
22282 rm -f conftest*
22286 # End of readline checks: restore LIBS
22287 LIBS=$LIBS_no_readline
22289 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22290 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22291 if test "${ac_cv_broken_nice+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22295 if test "$cross_compiling" = yes; then
22296 ac_cv_broken_nice=no
22297 else
22298 cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h. */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22305 int main()
22307 int val1 = nice(1);
22308 if (val1 != -1 && val1 == nice(2))
22309 exit(0);
22310 exit(1);
22313 _ACEOF
22314 rm -f conftest$ac_exeext
22315 if { (ac_try="$ac_link"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_link") 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_cv_broken_nice=yes
22335 else
22336 echo "$as_me: program exited with status $ac_status" >&5
22337 echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22340 ( exit $ac_status )
22341 ac_cv_broken_nice=no
22343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22349 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22350 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22351 if test "$ac_cv_broken_nice" = yes
22352 then
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_BROKEN_NICE 1
22356 _ACEOF
22360 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22361 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22362 if test "$cross_compiling" = yes; then
22363 ac_cv_broken_poll=no
22364 else
22365 cat >conftest.$ac_ext <<_ACEOF
22366 /* confdefs.h. */
22367 _ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22372 #include <poll.h>
22374 int main (void)
22376 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22378 close (42);
22380 int poll_test = poll (&poll_struct, 1, 0);
22382 if (poll_test < 0)
22384 exit(0);
22386 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22388 exit(0);
22390 else
22392 exit(1);
22396 _ACEOF
22397 rm -f conftest$ac_exeext
22398 if { (ac_try="$ac_link"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_link") 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_try") 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; }; then
22417 ac_cv_broken_poll=yes
22418 else
22419 echo "$as_me: program exited with status $ac_status" >&5
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ( exit $ac_status )
22424 ac_cv_broken_poll=no
22426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22430 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22431 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22432 if test "$ac_cv_broken_poll" = yes
22433 then
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_BROKEN_POLL 1
22437 _ACEOF
22441 # Before we can test tzset, we need to check if struct tm has a tm_zone
22442 # (which is not required by ISO C or UNIX spec) and/or if we support
22443 # tzname[]
22444 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22445 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22446 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <sys/types.h>
22456 #include <$ac_cv_struct_tm>
22460 main ()
22462 static struct tm ac_aggr;
22463 if (ac_aggr.tm_zone)
22464 return 0;
22466 return 0;
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_compile") 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest.$ac_objext; then
22486 ac_cv_member_struct_tm_tm_zone=yes
22487 else
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 #include <sys/types.h>
22498 #include <$ac_cv_struct_tm>
22502 main ()
22504 static struct tm ac_aggr;
22505 if (sizeof ac_aggr.tm_zone)
22506 return 0;
22508 return 0;
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest.$ac_objext; then
22528 ac_cv_member_struct_tm_tm_zone=yes
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_cv_member_struct_tm_tm_zone=no
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22542 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22543 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22545 cat >>confdefs.h <<_ACEOF
22546 #define HAVE_STRUCT_TM_TM_ZONE 1
22547 _ACEOF
22552 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22554 cat >>confdefs.h <<\_ACEOF
22555 #define HAVE_TM_ZONE 1
22556 _ACEOF
22558 else
22559 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22560 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22561 if test "${ac_cv_have_decl_tzname+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 else
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h. */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 #include <time.h>
22573 main ()
22575 #ifndef tzname
22576 (void) tzname;
22577 #endif
22580 return 0;
22582 _ACEOF
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
22591 ac_status=$?
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
22600 ac_cv_have_decl_tzname=yes
22601 else
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_have_decl_tzname=no
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22611 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22612 if test $ac_cv_have_decl_tzname = yes; then
22614 cat >>confdefs.h <<_ACEOF
22615 #define HAVE_DECL_TZNAME 1
22616 _ACEOF
22619 else
22620 cat >>confdefs.h <<_ACEOF
22621 #define HAVE_DECL_TZNAME 0
22622 _ACEOF
22628 { echo "$as_me:$LINENO: checking for tzname" >&5
22629 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22630 if test "${ac_cv_var_tzname+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h. */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 #include <time.h>
22640 #if !HAVE_DECL_TZNAME
22641 extern char *tzname[];
22642 #endif
22645 main ()
22647 return tzname[0][0];
22649 return 0;
22651 _ACEOF
22652 rm -f conftest.$ac_objext conftest$ac_exeext
22653 if { (ac_try="$ac_link"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22657 esac
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_link") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest$ac_exeext &&
22669 $as_test_x conftest$ac_exeext; then
22670 ac_cv_var_tzname=yes
22671 else
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22675 ac_cv_var_tzname=no
22678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22679 conftest$ac_exeext conftest.$ac_ext
22681 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22682 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22683 if test $ac_cv_var_tzname = yes; then
22685 cat >>confdefs.h <<\_ACEOF
22686 #define HAVE_TZNAME 1
22687 _ACEOF
22693 # check tzset(3) exists and works like we expect it to
22694 { echo "$as_me:$LINENO: checking for working tzset()" >&5
22695 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
22696 if test "${ac_cv_working_tzset+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 else
22700 if test "$cross_compiling" = yes; then
22701 ac_cv_working_tzset=no
22702 else
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h. */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22710 #include <stdlib.h>
22711 #include <time.h>
22712 #include <string.h>
22714 #if HAVE_TZNAME
22715 extern char *tzname[];
22716 #endif
22718 int main()
22720 /* Note that we need to ensure that not only does tzset(3)
22721 do 'something' with localtime, but it works as documented
22722 in the library reference and as expected by the test suite.
22723 This includes making sure that tzname is set properly if
22724 tm->tm_zone does not exist since it is the alternative way
22725 of getting timezone info.
22727 Red Hat 6.2 doesn't understand the southern hemisphere
22728 after New Year's Day.
22731 time_t groundhogday = 1044144000; /* GMT-based */
22732 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22734 putenv("TZ=UTC+0");
22735 tzset();
22736 if (localtime(&groundhogday)->tm_hour != 0)
22737 exit(1);
22738 #if HAVE_TZNAME
22739 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22740 if (strcmp(tzname[0], "UTC") ||
22741 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22742 exit(1);
22743 #endif
22745 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22746 tzset();
22747 if (localtime(&groundhogday)->tm_hour != 19)
22748 exit(1);
22749 #if HAVE_TZNAME
22750 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22751 exit(1);
22752 #endif
22754 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22755 tzset();
22756 if (localtime(&groundhogday)->tm_hour != 11)
22757 exit(1);
22758 #if HAVE_TZNAME
22759 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22760 exit(1);
22761 #endif
22763 #if HAVE_STRUCT_TM_TM_ZONE
22764 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22765 exit(1);
22766 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22767 exit(1);
22768 #endif
22770 exit(0);
22773 _ACEOF
22774 rm -f conftest$ac_exeext
22775 if { (ac_try="$ac_link"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_link") 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22785 { (case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_try") 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ac_cv_working_tzset=yes
22795 else
22796 echo "$as_me: program exited with status $ac_status" >&5
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22800 ( exit $ac_status )
22801 ac_cv_working_tzset=no
22803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22809 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22810 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
22811 if test "$ac_cv_working_tzset" = yes
22812 then
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_WORKING_TZSET 1
22816 _ACEOF
22820 # Look for subsecond timestamps in struct stat
22821 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22822 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
22823 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h. */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 #include <sys/stat.h>
22834 main ()
22837 struct stat st;
22838 st.st_mtim.tv_nsec = 1;
22841 return 0;
22843 _ACEOF
22844 rm -f conftest.$ac_objext
22845 if { (ac_try="$ac_compile"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_compile") 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
22855 cat conftest.err >&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest.$ac_objext; then
22861 ac_cv_stat_tv_nsec=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 ac_cv_stat_tv_nsec=no
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22873 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22874 if test "$ac_cv_stat_tv_nsec" = yes
22875 then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_STAT_TV_NSEC 1
22879 _ACEOF
22883 # Look for BSD style subsecond timestamps in struct stat
22884 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22885 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
22886 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 #include <sys/stat.h>
22897 main ()
22900 struct stat st;
22901 st.st_mtimespec.tv_nsec = 1;
22904 return 0;
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_compile") 2>conftest.er1
22915 ac_status=$?
22916 grep -v '^ *+' conftest.er1 >conftest.err
22917 rm -f conftest.er1
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest.$ac_objext; then
22924 ac_cv_stat_tv_nsec2=yes
22925 else
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 ac_cv_stat_tv_nsec2=no
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22936 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22937 if test "$ac_cv_stat_tv_nsec2" = yes
22938 then
22940 cat >>confdefs.h <<\_ACEOF
22941 #define HAVE_STAT_TV_NSEC2 1
22942 _ACEOF
22946 # On HP/UX 11.0, mvwdelch is a block with a return statement
22947 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22948 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
22949 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952 cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h. */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 #include <curses.h>
22960 main ()
22963 int rtn;
22964 rtn = mvwdelch(0,0,0);
22967 return 0;
22969 _ACEOF
22970 rm -f conftest.$ac_objext
22971 if { (ac_try="$ac_compile"
22972 case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22975 esac
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_compile") 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest.$ac_objext; then
22987 ac_cv_mvwdelch_is_expression=yes
22988 else
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_cv_mvwdelch_is_expression=no
22995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22999 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23001 if test "$ac_cv_mvwdelch_is_expression" = yes
23002 then
23004 cat >>confdefs.h <<\_ACEOF
23005 #define MVWDELCH_IS_EXPRESSION 1
23006 _ACEOF
23010 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23011 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23012 if test "${ac_cv_window_has_flags+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h. */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 #include <curses.h>
23023 main ()
23026 WINDOW *w;
23027 w->_flags = 0;
23030 return 0;
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23041 ac_status=$?
23042 grep -v '^ *+' conftest.er1 >conftest.err
23043 rm -f conftest.er1
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.$ac_objext; then
23050 ac_cv_window_has_flags=yes
23051 else
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_cv_window_has_flags=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23062 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23065 if test "$ac_cv_window_has_flags" = yes
23066 then
23068 cat >>confdefs.h <<\_ACEOF
23069 #define WINDOW_HAS_FLAGS 1
23070 _ACEOF
23074 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23075 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23076 cat >conftest.$ac_ext <<_ACEOF
23077 /* confdefs.h. */
23078 _ACEOF
23079 cat confdefs.h >>conftest.$ac_ext
23080 cat >>conftest.$ac_ext <<_ACEOF
23081 /* end confdefs.h. */
23082 #include <curses.h>
23084 main ()
23086 void *x=is_term_resized
23088 return 0;
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_CURSES_IS_TERM_RESIZED 1
23111 _ACEOF
23113 { echo "$as_me:$LINENO: result: yes" >&5
23114 echo "${ECHO_T}yes" >&6; }
23115 else
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 { echo "$as_me:$LINENO: result: no" >&5
23120 echo "${ECHO_T}no" >&6; }
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126 { echo "$as_me:$LINENO: checking for resize_term" >&5
23127 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h. */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <curses.h>
23136 main ()
23138 void *x=resize_term
23140 return 0;
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23161 cat >>confdefs.h <<\_ACEOF
23162 #define HAVE_CURSES_RESIZE_TERM 1
23163 _ACEOF
23165 { echo "$as_me:$LINENO: result: yes" >&5
23166 echo "${ECHO_T}yes" >&6; }
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 { echo "$as_me:$LINENO: result: no" >&5
23172 echo "${ECHO_T}no" >&6; }
23176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23178 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23179 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <curses.h>
23188 main ()
23190 void *x=resizeterm
23192 return 0;
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23203 ac_status=$?
23204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23213 cat >>confdefs.h <<\_ACEOF
23214 #define HAVE_CURSES_RESIZETERM 1
23215 _ACEOF
23217 { echo "$as_me:$LINENO: result: yes" >&5
23218 echo "${ECHO_T}yes" >&6; }
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 { echo "$as_me:$LINENO: result: no" >&5
23224 echo "${ECHO_T}no" >&6; }
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23231 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23233 if test -r /dev/ptmx
23234 then
23235 { echo "$as_me:$LINENO: result: yes" >&5
23236 echo "${ECHO_T}yes" >&6; }
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_DEV_PTMX 1
23240 _ACEOF
23242 else
23243 { echo "$as_me:$LINENO: result: no" >&5
23244 echo "${ECHO_T}no" >&6; }
23247 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23248 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23250 if test -r /dev/ptc
23251 then
23252 { echo "$as_me:$LINENO: result: yes" >&5
23253 echo "${ECHO_T}yes" >&6; }
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_DEV_PTC 1
23257 _ACEOF
23259 else
23260 { echo "$as_me:$LINENO: result: no" >&5
23261 echo "${ECHO_T}no" >&6; }
23264 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23265 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23266 if test "$cross_compiling" = yes; then
23267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23268 See \`config.log' for more details." >&5
23269 echo "$as_me: error: cannot run test program while cross compiling
23270 See \`config.log' for more details." >&2;}
23271 { (exit 1); exit 1; }; }
23272 else
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h. */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 #include <stdio.h>
23280 #include <stddef.h>
23281 #include <string.h>
23283 #ifdef HAVE_SYS_TYPES_H
23284 #include <sys/types.h>
23285 #endif
23287 #ifdef HAVE_SSIZE_T
23288 typedef ssize_t Py_ssize_t;
23289 #elif SIZEOF_VOID_P == SIZEOF_LONG
23290 typedef long Py_ssize_t;
23291 #else
23292 typedef int Py_ssize_t;
23293 #endif
23295 int main()
23297 char buffer[256];
23299 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23300 return 1;
23302 if (strcmp(buffer, "123"))
23303 return 1;
23305 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23306 return 1;
23308 if (strcmp(buffer, "-123"))
23309 return 1;
23311 return 0;
23313 _ACEOF
23314 rm -f conftest$ac_exeext
23315 if { (ac_try="$ac_link"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_link") 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23325 { (case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_try") 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 { echo "$as_me:$LINENO: result: yes" >&5
23335 echo "${ECHO_T}yes" >&6; }
23337 cat >>confdefs.h <<\_ACEOF
23338 #define PY_FORMAT_SIZE_T "z"
23339 _ACEOF
23341 else
23342 echo "$as_me: program exited with status $ac_status" >&5
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ( exit $ac_status )
23347 { echo "$as_me:$LINENO: result: no" >&5
23348 echo "${ECHO_T}no" >&6; }
23350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23355 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23356 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23357 if test "${ac_cv_type_socklen_t+set}" = set; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360 cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h. */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 #ifdef HAVE_SYS_TYPES_H
23368 #include <sys/types.h>
23369 #endif
23370 #ifdef HAVE_SYS_SOCKET_H
23371 #include <sys/socket.h>
23372 #endif
23375 typedef socklen_t ac__type_new_;
23377 main ()
23379 if ((ac__type_new_ *) 0)
23380 return 0;
23381 if (sizeof (ac__type_new_))
23382 return 0;
23384 return 0;
23386 _ACEOF
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_compile") 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && {
23401 test -z "$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 } && test -s conftest.$ac_objext; then
23404 ac_cv_type_socklen_t=yes
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_cv_type_socklen_t=no
23412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23415 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23416 if test $ac_cv_type_socklen_t = yes; then
23418 else
23420 cat >>confdefs.h <<\_ACEOF
23421 #define socklen_t int
23422 _ACEOF
23429 for h in `(cd $srcdir;echo Python/thread_*.h)`
23431 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
23432 done
23435 SRCDIRS="Parser Grammar Objects Python Modules Mac"
23436 { echo "$as_me:$LINENO: checking for build directories" >&5
23437 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
23438 for dir in $SRCDIRS; do
23439 if test ! -d $dir; then
23440 mkdir $dir
23442 done
23443 { echo "$as_me:$LINENO: result: done" >&5
23444 echo "${ECHO_T}done" >&6; }
23446 # generate output files
23447 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
23449 cat >confcache <<\_ACEOF
23450 # This file is a shell script that caches the results of configure
23451 # tests run on this system so they can be shared between configure
23452 # scripts and configure runs, see configure's option --config-cache.
23453 # It is not useful on other systems. If it contains results you don't
23454 # want to keep, you may remove or edit it.
23456 # config.status only pays attention to the cache file if you give it
23457 # the --recheck option to rerun configure.
23459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23461 # following values.
23463 _ACEOF
23465 # The following way of writing the cache mishandles newlines in values,
23466 # but we know of no workaround that is simple, portable, and efficient.
23467 # So, we kill variables containing newlines.
23468 # Ultrix sh set writes to stderr and can't be redirected directly,
23469 # and sets the high bit in the cache file unless we assign to the vars.
23471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23472 eval ac_val=\$$ac_var
23473 case $ac_val in #(
23474 *${as_nl}*)
23475 case $ac_var in #(
23476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23478 esac
23479 case $ac_var in #(
23480 _ | IFS | as_nl) ;; #(
23481 *) $as_unset $ac_var ;;
23482 esac ;;
23483 esac
23484 done
23486 (set) 2>&1 |
23487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23488 *${as_nl}ac_space=\ *)
23489 # `set' does not quote correctly, so add quotes (double-quote
23490 # substitution turns \\\\ into \\, and sed turns \\ into \).
23491 sed -n \
23492 "s/'/'\\\\''/g;
23493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23494 ;; #(
23496 # `set' quotes correctly as required by POSIX, so do not add quotes.
23497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23499 esac |
23500 sort
23502 sed '
23503 /^ac_cv_env_/b end
23504 t clear
23505 :clear
23506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23507 t end
23508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23509 :end' >>confcache
23510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23511 if test -w "$cache_file"; then
23512 test "x$cache_file" != "x/dev/null" &&
23513 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23514 echo "$as_me: updating cache $cache_file" >&6;}
23515 cat confcache >$cache_file
23516 else
23517 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23518 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23521 rm -f confcache
23523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23524 # Let make expand exec_prefix.
23525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23527 DEFS=-DHAVE_CONFIG_H
23529 ac_libobjs=
23530 ac_ltlibobjs=
23531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23532 # 1. Remove the extension, and $U if already installed.
23533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23534 ac_i=`echo "$ac_i" | sed "$ac_script"`
23535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23536 # will be set to the directory where LIBOBJS objects are built.
23537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23539 done
23540 LIBOBJS=$ac_libobjs
23542 LTLIBOBJS=$ac_ltlibobjs
23546 : ${CONFIG_STATUS=./config.status}
23547 ac_clean_files_save=$ac_clean_files
23548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23550 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23551 cat >$CONFIG_STATUS <<_ACEOF
23552 #! $SHELL
23553 # Generated by $as_me.
23554 # Run this file to recreate the current configuration.
23555 # Compiler output produced by configure, useful for debugging
23556 # configure, is in config.log if it exists.
23558 debug=false
23559 ac_cs_recheck=false
23560 ac_cs_silent=false
23561 SHELL=\${CONFIG_SHELL-$SHELL}
23562 _ACEOF
23564 cat >>$CONFIG_STATUS <<\_ACEOF
23565 ## --------------------- ##
23566 ## M4sh Initialization. ##
23567 ## --------------------- ##
23569 # Be more Bourne compatible
23570 DUALCASE=1; export DUALCASE # for MKS sh
23571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23572 emulate sh
23573 NULLCMD=:
23574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23575 # is contrary to our usage. Disable this feature.
23576 alias -g '${1+"$@"}'='"$@"'
23577 setopt NO_GLOB_SUBST
23578 else
23579 case `(set -o) 2>/dev/null` in
23580 *posix*) set -o posix ;;
23581 esac
23588 # PATH needs CR
23589 # Avoid depending upon Character Ranges.
23590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23593 as_cr_digits='0123456789'
23594 as_cr_alnum=$as_cr_Letters$as_cr_digits
23596 # The user is always right.
23597 if test "${PATH_SEPARATOR+set}" != set; then
23598 echo "#! /bin/sh" >conf$$.sh
23599 echo "exit 0" >>conf$$.sh
23600 chmod +x conf$$.sh
23601 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23602 PATH_SEPARATOR=';'
23603 else
23604 PATH_SEPARATOR=:
23606 rm -f conf$$.sh
23609 # Support unset when possible.
23610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23611 as_unset=unset
23612 else
23613 as_unset=false
23617 # IFS
23618 # We need space, tab and new line, in precisely that order. Quoting is
23619 # there to prevent editors from complaining about space-tab.
23620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23621 # splitting by setting IFS to empty value.)
23622 as_nl='
23624 IFS=" "" $as_nl"
23626 # Find who we are. Look in the path if we contain no directory separator.
23627 case $0 in
23628 *[\\/]* ) as_myself=$0 ;;
23629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23630 for as_dir in $PATH
23632 IFS=$as_save_IFS
23633 test -z "$as_dir" && as_dir=.
23634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23635 done
23636 IFS=$as_save_IFS
23639 esac
23640 # We did not find ourselves, most probably we were run as `sh COMMAND'
23641 # in which case we are not to be found in the path.
23642 if test "x$as_myself" = x; then
23643 as_myself=$0
23645 if test ! -f "$as_myself"; then
23646 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23647 { (exit 1); exit 1; }
23650 # Work around bugs in pre-3.0 UWIN ksh.
23651 for as_var in ENV MAIL MAILPATH
23652 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23653 done
23654 PS1='$ '
23655 PS2='> '
23656 PS4='+ '
23658 # NLS nuisances.
23659 for as_var in \
23660 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23661 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23662 LC_TELEPHONE LC_TIME
23664 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23665 eval $as_var=C; export $as_var
23666 else
23667 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23669 done
23671 # Required to use basename.
23672 if expr a : '\(a\)' >/dev/null 2>&1 &&
23673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23674 as_expr=expr
23675 else
23676 as_expr=false
23679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23680 as_basename=basename
23681 else
23682 as_basename=false
23686 # Name of the executable.
23687 as_me=`$as_basename -- "$0" ||
23688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23689 X"$0" : 'X\(//\)$' \| \
23690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23691 echo X/"$0" |
23692 sed '/^.*\/\([^/][^/]*\)\/*$/{
23693 s//\1/
23696 /^X\/\(\/\/\)$/{
23697 s//\1/
23700 /^X\/\(\/\).*/{
23701 s//\1/
23704 s/.*/./; q'`
23706 # CDPATH.
23707 $as_unset CDPATH
23711 as_lineno_1=$LINENO
23712 as_lineno_2=$LINENO
23713 test "x$as_lineno_1" != "x$as_lineno_2" &&
23714 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23717 # uniformly replaced by the line number. The first 'sed' inserts a
23718 # line-number line after each line using $LINENO; the second 'sed'
23719 # does the real work. The second script uses 'N' to pair each
23720 # line-number line with the line containing $LINENO, and appends
23721 # trailing '-' during substitution so that $LINENO is not a special
23722 # case at line end.
23723 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23724 # scripts with optimization help from Paolo Bonzini. Blame Lee
23725 # E. McMahon (1931-1989) for sed's syntax. :-)
23726 sed -n '
23728 /[$]LINENO/=
23729 ' <$as_myself |
23730 sed '
23731 s/[$]LINENO.*/&-/
23732 t lineno
23734 :lineno
23736 :loop
23737 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23738 t loop
23739 s/-\n.*//
23740 ' >$as_me.lineno &&
23741 chmod +x "$as_me.lineno" ||
23742 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23743 { (exit 1); exit 1; }; }
23745 # Don't try to exec as it changes $[0], causing all sort of problems
23746 # (the dirname of $[0] is not the place where we might find the
23747 # original and so on. Autoconf is especially sensitive to this).
23748 . "./$as_me.lineno"
23749 # Exit status is that of the last command.
23750 exit
23754 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23755 as_dirname=dirname
23756 else
23757 as_dirname=false
23760 ECHO_C= ECHO_N= ECHO_T=
23761 case `echo -n x` in
23762 -n*)
23763 case `echo 'x\c'` in
23764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23765 *) ECHO_C='\c';;
23766 esac;;
23768 ECHO_N='-n';;
23769 esac
23771 if expr a : '\(a\)' >/dev/null 2>&1 &&
23772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23773 as_expr=expr
23774 else
23775 as_expr=false
23778 rm -f conf$$ conf$$.exe conf$$.file
23779 if test -d conf$$.dir; then
23780 rm -f conf$$.dir/conf$$.file
23781 else
23782 rm -f conf$$.dir
23783 mkdir conf$$.dir
23785 echo >conf$$.file
23786 if ln -s conf$$.file conf$$ 2>/dev/null; then
23787 as_ln_s='ln -s'
23788 # ... but there are two gotchas:
23789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23791 # In both cases, we have to default to `cp -p'.
23792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23793 as_ln_s='cp -p'
23794 elif ln conf$$.file conf$$ 2>/dev/null; then
23795 as_ln_s=ln
23796 else
23797 as_ln_s='cp -p'
23799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23800 rmdir conf$$.dir 2>/dev/null
23802 if mkdir -p . 2>/dev/null; then
23803 as_mkdir_p=:
23804 else
23805 test -d ./-p && rmdir ./-p
23806 as_mkdir_p=false
23809 if test -x / >/dev/null 2>&1; then
23810 as_test_x='test -x'
23811 else
23812 if ls -dL / >/dev/null 2>&1; then
23813 as_ls_L_option=L
23814 else
23815 as_ls_L_option=
23817 as_test_x='
23818 eval sh -c '\''
23819 if test -d "$1"; then
23820 test -d "$1/.";
23821 else
23822 case $1 in
23823 -*)set "./$1";;
23824 esac;
23825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23826 ???[sx]*):;;*)false;;esac;fi
23827 '\'' sh
23830 as_executable_p=$as_test_x
23832 # Sed expression to map a string onto a valid CPP name.
23833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23835 # Sed expression to map a string onto a valid variable name.
23836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23839 exec 6>&1
23841 # Save the log message, to keep $[0] and so on meaningful, and to
23842 # report actual input values of CONFIG_FILES etc. instead of their
23843 # values after options handling.
23844 ac_log="
23845 This file was extended by python $as_me 2.6, which was
23846 generated by GNU Autoconf 2.61. Invocation command line was
23848 CONFIG_FILES = $CONFIG_FILES
23849 CONFIG_HEADERS = $CONFIG_HEADERS
23850 CONFIG_LINKS = $CONFIG_LINKS
23851 CONFIG_COMMANDS = $CONFIG_COMMANDS
23852 $ $0 $@
23854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23857 _ACEOF
23859 cat >>$CONFIG_STATUS <<_ACEOF
23860 # Files that config.status was made for.
23861 config_files="$ac_config_files"
23862 config_headers="$ac_config_headers"
23864 _ACEOF
23866 cat >>$CONFIG_STATUS <<\_ACEOF
23867 ac_cs_usage="\
23868 \`$as_me' instantiates files from templates according to the
23869 current configuration.
23871 Usage: $0 [OPTIONS] [FILE]...
23873 -h, --help print this help, then exit
23874 -V, --version print version number and configuration settings, then exit
23875 -q, --quiet do not print progress messages
23876 -d, --debug don't remove temporary files
23877 --recheck update $as_me by reconfiguring in the same conditions
23878 --file=FILE[:TEMPLATE]
23879 instantiate the configuration file FILE
23880 --header=FILE[:TEMPLATE]
23881 instantiate the configuration header FILE
23883 Configuration files:
23884 $config_files
23886 Configuration headers:
23887 $config_headers
23889 Report bugs to <bug-autoconf@gnu.org>."
23891 _ACEOF
23892 cat >>$CONFIG_STATUS <<_ACEOF
23893 ac_cs_version="\\
23894 python config.status 2.6
23895 configured by $0, generated by GNU Autoconf 2.61,
23896 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23898 Copyright (C) 2006 Free Software Foundation, Inc.
23899 This config.status script is free software; the Free Software Foundation
23900 gives unlimited permission to copy, distribute and modify it."
23902 ac_pwd='$ac_pwd'
23903 srcdir='$srcdir'
23904 INSTALL='$INSTALL'
23905 _ACEOF
23907 cat >>$CONFIG_STATUS <<\_ACEOF
23908 # If no file are specified by the user, then we need to provide default
23909 # value. By we need to know if files were specified by the user.
23910 ac_need_defaults=:
23911 while test $# != 0
23913 case $1 in
23914 --*=*)
23915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23917 ac_shift=:
23920 ac_option=$1
23921 ac_optarg=$2
23922 ac_shift=shift
23924 esac
23926 case $ac_option in
23927 # Handling of the options.
23928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23929 ac_cs_recheck=: ;;
23930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23931 echo "$ac_cs_version"; exit ;;
23932 --debug | --debu | --deb | --de | --d | -d )
23933 debug=: ;;
23934 --file | --fil | --fi | --f )
23935 $ac_shift
23936 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23937 ac_need_defaults=false;;
23938 --header | --heade | --head | --hea )
23939 $ac_shift
23940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23941 ac_need_defaults=false;;
23942 --he | --h)
23943 # Conflict between --help and --header
23944 { echo "$as_me: error: ambiguous option: $1
23945 Try \`$0 --help' for more information." >&2
23946 { (exit 1); exit 1; }; };;
23947 --help | --hel | -h )
23948 echo "$ac_cs_usage"; exit ;;
23949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23951 ac_cs_silent=: ;;
23953 # This is an error.
23954 -*) { echo "$as_me: error: unrecognized option: $1
23955 Try \`$0 --help' for more information." >&2
23956 { (exit 1); exit 1; }; } ;;
23958 *) ac_config_targets="$ac_config_targets $1"
23959 ac_need_defaults=false ;;
23961 esac
23962 shift
23963 done
23965 ac_configure_extra_args=
23967 if $ac_cs_silent; then
23968 exec 6>/dev/null
23969 ac_configure_extra_args="$ac_configure_extra_args --silent"
23972 _ACEOF
23973 cat >>$CONFIG_STATUS <<_ACEOF
23974 if \$ac_cs_recheck; then
23975 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23976 CONFIG_SHELL=$SHELL
23977 export CONFIG_SHELL
23978 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23981 _ACEOF
23982 cat >>$CONFIG_STATUS <<\_ACEOF
23983 exec 5>>config.log
23985 echo
23986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23987 ## Running $as_me. ##
23988 _ASBOX
23989 echo "$ac_log"
23990 } >&5
23992 _ACEOF
23993 cat >>$CONFIG_STATUS <<_ACEOF
23994 _ACEOF
23996 cat >>$CONFIG_STATUS <<\_ACEOF
23998 # Handling of arguments.
23999 for ac_config_target in $ac_config_targets
24001 case $ac_config_target in
24002 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
24003 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
24004 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24005 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24006 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
24007 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
24009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24011 { (exit 1); exit 1; }; };;
24012 esac
24013 done
24016 # If the user did not use the arguments to specify the items to instantiate,
24017 # then the envvar interface is used. Set only those that are not.
24018 # We use the long form for the default assignment because of an extremely
24019 # bizarre bug on SunOS 4.1.3.
24020 if $ac_need_defaults; then
24021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24025 # Have a temporary directory for convenience. Make it in the build tree
24026 # simply because there is no reason against having it here, and in addition,
24027 # creating and moving files from /tmp can sometimes cause problems.
24028 # Hook for its removal unless debugging.
24029 # Note that there is a small window in which the directory will not be cleaned:
24030 # after its creation but before its name has been assigned to `$tmp'.
24031 $debug ||
24033 tmp=
24034 trap 'exit_status=$?
24035 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24037 trap '{ (exit 1); exit 1; }' 1 2 13 15
24039 # Create a (secure) tmp directory for tmp files.
24042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24043 test -n "$tmp" && test -d "$tmp"
24044 } ||
24046 tmp=./conf$$-$RANDOM
24047 (umask 077 && mkdir "$tmp")
24048 } ||
24050 echo "$me: cannot create a temporary directory in ." >&2
24051 { (exit 1); exit 1; }
24055 # Set up the sed scripts for CONFIG_FILES section.
24058 # No need to generate the scripts if there are no CONFIG_FILES.
24059 # This happens for instance when ./config.status config.h
24060 if test -n "$CONFIG_FILES"; then
24062 _ACEOF
24066 ac_delim='%!_!# '
24067 for ac_last_try in false false false false false :; do
24068 cat >conf$$subs.sed <<_ACEOF
24069 SHELL!$SHELL$ac_delim
24070 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24071 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24072 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24073 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24074 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24075 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24076 exec_prefix!$exec_prefix$ac_delim
24077 prefix!$prefix$ac_delim
24078 program_transform_name!$program_transform_name$ac_delim
24079 bindir!$bindir$ac_delim
24080 sbindir!$sbindir$ac_delim
24081 libexecdir!$libexecdir$ac_delim
24082 datarootdir!$datarootdir$ac_delim
24083 datadir!$datadir$ac_delim
24084 sysconfdir!$sysconfdir$ac_delim
24085 sharedstatedir!$sharedstatedir$ac_delim
24086 localstatedir!$localstatedir$ac_delim
24087 includedir!$includedir$ac_delim
24088 oldincludedir!$oldincludedir$ac_delim
24089 docdir!$docdir$ac_delim
24090 infodir!$infodir$ac_delim
24091 htmldir!$htmldir$ac_delim
24092 dvidir!$dvidir$ac_delim
24093 pdfdir!$pdfdir$ac_delim
24094 psdir!$psdir$ac_delim
24095 libdir!$libdir$ac_delim
24096 localedir!$localedir$ac_delim
24097 mandir!$mandir$ac_delim
24098 DEFS!$DEFS$ac_delim
24099 ECHO_C!$ECHO_C$ac_delim
24100 ECHO_N!$ECHO_N$ac_delim
24101 ECHO_T!$ECHO_T$ac_delim
24102 LIBS!$LIBS$ac_delim
24103 build_alias!$build_alias$ac_delim
24104 host_alias!$host_alias$ac_delim
24105 target_alias!$target_alias$ac_delim
24106 VERSION!$VERSION$ac_delim
24107 SOVERSION!$SOVERSION$ac_delim
24108 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24109 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24110 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24111 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24112 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24113 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24114 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24115 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24116 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24117 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24118 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24119 MACHDEP!$MACHDEP$ac_delim
24120 SGI_ABI!$SGI_ABI$ac_delim
24121 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24122 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24123 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24124 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24125 CC!$CC$ac_delim
24126 CFLAGS!$CFLAGS$ac_delim
24127 LDFLAGS!$LDFLAGS$ac_delim
24128 CPPFLAGS!$CPPFLAGS$ac_delim
24129 ac_ct_CC!$ac_ct_CC$ac_delim
24130 EXEEXT!$EXEEXT$ac_delim
24131 OBJEXT!$OBJEXT$ac_delim
24132 CXX!$CXX$ac_delim
24133 MAINCC!$MAINCC$ac_delim
24134 CPP!$CPP$ac_delim
24135 GREP!$GREP$ac_delim
24136 EGREP!$EGREP$ac_delim
24137 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24138 LIBRARY!$LIBRARY$ac_delim
24139 LDLIBRARY!$LDLIBRARY$ac_delim
24140 DLLLIBRARY!$DLLLIBRARY$ac_delim
24141 BLDLIBRARY!$BLDLIBRARY$ac_delim
24142 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24143 INSTSONAME!$INSTSONAME$ac_delim
24144 RUNSHARED!$RUNSHARED$ac_delim
24145 LINKCC!$LINKCC$ac_delim
24146 RANLIB!$RANLIB$ac_delim
24147 AR!$AR$ac_delim
24148 SVNVERSION!$SVNVERSION$ac_delim
24149 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24150 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24151 INSTALL_DATA!$INSTALL_DATA$ac_delim
24152 LN!$LN$ac_delim
24153 OPT!$OPT$ac_delim
24154 BASECFLAGS!$BASECFLAGS$ac_delim
24155 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24156 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24157 SO!$SO$ac_delim
24158 LDSHARED!$LDSHARED$ac_delim
24159 BLDSHARED!$BLDSHARED$ac_delim
24160 CCSHARED!$CCSHARED$ac_delim
24161 LINKFORSHARED!$LINKFORSHARED$ac_delim
24162 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24163 SHLIBS!$SHLIBS$ac_delim
24164 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24165 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24166 _ACEOF
24168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24169 break
24170 elif $ac_last_try; then
24171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24173 { (exit 1); exit 1; }; }
24174 else
24175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24177 done
24179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24180 if test -n "$ac_eof"; then
24181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24182 ac_eof=`expr $ac_eof + 1`
24185 cat >>$CONFIG_STATUS <<_ACEOF
24186 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24188 _ACEOF
24189 sed '
24190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24191 s/^/s,@/; s/!/@,|#_!!_#|/
24194 s/'"$ac_delim"'$/,g/; t
24195 s/$/\\/; p
24196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24197 ' >>$CONFIG_STATUS <conf$$subs.sed
24198 rm -f conf$$subs.sed
24199 cat >>$CONFIG_STATUS <<_ACEOF
24200 CEOF$ac_eof
24201 _ACEOF
24204 ac_delim='%!_!# '
24205 for ac_last_try in false false false false false :; do
24206 cat >conf$$subs.sed <<_ACEOF
24207 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24208 LDLAST!$LDLAST$ac_delim
24209 THREADOBJ!$THREADOBJ$ac_delim
24210 DLINCLDIR!$DLINCLDIR$ac_delim
24211 DYNLOADFILE!$DYNLOADFILE$ac_delim
24212 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24213 TRUE!$TRUE$ac_delim
24214 LIBOBJS!$LIBOBJS$ac_delim
24215 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24216 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24217 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24218 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24219 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24220 LIBM!$LIBM$ac_delim
24221 LIBC!$LIBC$ac_delim
24222 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24223 THREADHEADERS!$THREADHEADERS$ac_delim
24224 SRCDIRS!$SRCDIRS$ac_delim
24225 LTLIBOBJS!$LTLIBOBJS$ac_delim
24226 _ACEOF
24228 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24229 break
24230 elif $ac_last_try; then
24231 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24232 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24233 { (exit 1); exit 1; }; }
24234 else
24235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24237 done
24239 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24240 if test -n "$ac_eof"; then
24241 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24242 ac_eof=`expr $ac_eof + 1`
24245 cat >>$CONFIG_STATUS <<_ACEOF
24246 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24248 _ACEOF
24249 sed '
24250 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24251 s/^/s,@/; s/!/@,|#_!!_#|/
24254 s/'"$ac_delim"'$/,g/; t
24255 s/$/\\/; p
24256 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24257 ' >>$CONFIG_STATUS <conf$$subs.sed
24258 rm -f conf$$subs.sed
24259 cat >>$CONFIG_STATUS <<_ACEOF
24260 :end
24261 s/|#_!!_#|//g
24262 CEOF$ac_eof
24263 _ACEOF
24266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24268 # trailing colons and then remove the whole line if VPATH becomes empty
24269 # (actually we leave an empty line to preserve line numbers).
24270 if test "x$srcdir" = x.; then
24271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24272 s/:*\$(srcdir):*/:/
24273 s/:*\${srcdir}:*/:/
24274 s/:*@srcdir@:*/:/
24275 s/^\([^=]*=[ ]*\):*/\1/
24276 s/:*$//
24277 s/^[^=]*=[ ]*$//
24281 cat >>$CONFIG_STATUS <<\_ACEOF
24282 fi # test -n "$CONFIG_FILES"
24285 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24287 case $ac_tag in
24288 :[FHLC]) ac_mode=$ac_tag; continue;;
24289 esac
24290 case $ac_mode$ac_tag in
24291 :[FHL]*:*);;
24292 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24293 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24294 { (exit 1); exit 1; }; };;
24295 :[FH]-) ac_tag=-:-;;
24296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24297 esac
24298 ac_save_IFS=$IFS
24299 IFS=:
24300 set x $ac_tag
24301 IFS=$ac_save_IFS
24302 shift
24303 ac_file=$1
24304 shift
24306 case $ac_mode in
24307 :L) ac_source=$1;;
24308 :[FH])
24309 ac_file_inputs=
24310 for ac_f
24312 case $ac_f in
24313 -) ac_f="$tmp/stdin";;
24314 *) # Look for the file first in the build tree, then in the source tree
24315 # (if the path is not absolute). The absolute path cannot be DOS-style,
24316 # because $ac_f cannot contain `:'.
24317 test -f "$ac_f" ||
24318 case $ac_f in
24319 [\\/$]*) false;;
24320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24321 esac ||
24322 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24323 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24324 { (exit 1); exit 1; }; };;
24325 esac
24326 ac_file_inputs="$ac_file_inputs $ac_f"
24327 done
24329 # Let's still pretend it is `configure' which instantiates (i.e., don't
24330 # use $as_me), people would be surprised to read:
24331 # /* config.h. Generated by config.status. */
24332 configure_input="Generated from "`IFS=:
24333 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24334 if test x"$ac_file" != x-; then
24335 configure_input="$ac_file. $configure_input"
24336 { echo "$as_me:$LINENO: creating $ac_file" >&5
24337 echo "$as_me: creating $ac_file" >&6;}
24340 case $ac_tag in
24341 *:-:* | *:-) cat >"$tmp/stdin";;
24342 esac
24344 esac
24346 ac_dir=`$as_dirname -- "$ac_file" ||
24347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24348 X"$ac_file" : 'X\(//\)[^/]' \| \
24349 X"$ac_file" : 'X\(//\)$' \| \
24350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24351 echo X"$ac_file" |
24352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24353 s//\1/
24356 /^X\(\/\/\)[^/].*/{
24357 s//\1/
24360 /^X\(\/\/\)$/{
24361 s//\1/
24364 /^X\(\/\).*/{
24365 s//\1/
24368 s/.*/./; q'`
24369 { as_dir="$ac_dir"
24370 case $as_dir in #(
24371 -*) as_dir=./$as_dir;;
24372 esac
24373 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24374 as_dirs=
24375 while :; do
24376 case $as_dir in #(
24377 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24378 *) as_qdir=$as_dir;;
24379 esac
24380 as_dirs="'$as_qdir' $as_dirs"
24381 as_dir=`$as_dirname -- "$as_dir" ||
24382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24383 X"$as_dir" : 'X\(//\)[^/]' \| \
24384 X"$as_dir" : 'X\(//\)$' \| \
24385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24386 echo X"$as_dir" |
24387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24388 s//\1/
24391 /^X\(\/\/\)[^/].*/{
24392 s//\1/
24395 /^X\(\/\/\)$/{
24396 s//\1/
24399 /^X\(\/\).*/{
24400 s//\1/
24403 s/.*/./; q'`
24404 test -d "$as_dir" && break
24405 done
24406 test -z "$as_dirs" || eval "mkdir $as_dirs"
24407 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24409 { (exit 1); exit 1; }; }; }
24410 ac_builddir=.
24412 case "$ac_dir" in
24413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24416 # A ".." for each directory in $ac_dir_suffix.
24417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24418 case $ac_top_builddir_sub in
24419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24421 esac ;;
24422 esac
24423 ac_abs_top_builddir=$ac_pwd
24424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24425 # for backward compatibility:
24426 ac_top_builddir=$ac_top_build_prefix
24428 case $srcdir in
24429 .) # We are building in place.
24430 ac_srcdir=.
24431 ac_top_srcdir=$ac_top_builddir_sub
24432 ac_abs_top_srcdir=$ac_pwd ;;
24433 [\\/]* | ?:[\\/]* ) # Absolute name.
24434 ac_srcdir=$srcdir$ac_dir_suffix;
24435 ac_top_srcdir=$srcdir
24436 ac_abs_top_srcdir=$srcdir ;;
24437 *) # Relative name.
24438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24439 ac_top_srcdir=$ac_top_build_prefix$srcdir
24440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24441 esac
24442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24445 case $ac_mode in
24448 # CONFIG_FILE
24451 case $INSTALL in
24452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24453 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24454 esac
24455 _ACEOF
24457 cat >>$CONFIG_STATUS <<\_ACEOF
24458 # If the template does not know about datarootdir, expand it.
24459 # FIXME: This hack should be removed a few years after 2.60.
24460 ac_datarootdir_hack=; ac_datarootdir_seen=
24462 case `sed -n '/datarootdir/ {
24466 /@datadir@/p
24467 /@docdir@/p
24468 /@infodir@/p
24469 /@localedir@/p
24470 /@mandir@/p
24471 ' $ac_file_inputs` in
24472 *datarootdir*) ac_datarootdir_seen=yes;;
24473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24474 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24475 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24476 _ACEOF
24477 cat >>$CONFIG_STATUS <<_ACEOF
24478 ac_datarootdir_hack='
24479 s&@datadir@&$datadir&g
24480 s&@docdir@&$docdir&g
24481 s&@infodir@&$infodir&g
24482 s&@localedir@&$localedir&g
24483 s&@mandir@&$mandir&g
24484 s&\\\${datarootdir}&$datarootdir&g' ;;
24485 esac
24486 _ACEOF
24488 # Neutralize VPATH when `$srcdir' = `.'.
24489 # Shell code in configure.ac might set extrasub.
24490 # FIXME: do we really want to maintain this feature?
24491 cat >>$CONFIG_STATUS <<_ACEOF
24492 sed "$ac_vpsub
24493 $extrasub
24494 _ACEOF
24495 cat >>$CONFIG_STATUS <<\_ACEOF
24497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24498 s&@configure_input@&$configure_input&;t t
24499 s&@top_builddir@&$ac_top_builddir_sub&;t t
24500 s&@srcdir@&$ac_srcdir&;t t
24501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24502 s&@top_srcdir@&$ac_top_srcdir&;t t
24503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24504 s&@builddir@&$ac_builddir&;t t
24505 s&@abs_builddir@&$ac_abs_builddir&;t t
24506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24507 s&@INSTALL@&$ac_INSTALL&;t t
24508 $ac_datarootdir_hack
24509 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24511 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24512 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24514 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24515 which seems to be undefined. Please make sure it is defined." >&5
24516 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24517 which seems to be undefined. Please make sure it is defined." >&2;}
24519 rm -f "$tmp/stdin"
24520 case $ac_file in
24521 -) cat "$tmp/out"; rm -f "$tmp/out";;
24522 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24523 esac
24527 # CONFIG_HEADER
24529 _ACEOF
24531 # Transform confdefs.h into a sed script `conftest.defines', that
24532 # substitutes the proper values into config.h.in to produce config.h.
24533 rm -f conftest.defines conftest.tail
24534 # First, append a space to every undef/define line, to ease matching.
24535 echo 's/$/ /' >conftest.defines
24536 # Then, protect against being on the right side of a sed subst, or in
24537 # an unquoted here document, in config.status. If some macros were
24538 # called several times there might be several #defines for the same
24539 # symbol, which is useless. But do not sort them, since the last
24540 # AC_DEFINE must be honored.
24541 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24542 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24543 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24544 # PARAMS is the parameter list in the macro definition--in most cases, it's
24545 # just an empty string.
24546 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24547 ac_dB='\\)[ (].*,\\1define\\2'
24548 ac_dC=' '
24549 ac_dD=' ,'
24551 uniq confdefs.h |
24552 sed -n '
24553 t rset
24554 :rset
24555 s/^[ ]*#[ ]*define[ ][ ]*//
24556 t ok
24559 s/[\\&,]/\\&/g
24560 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24561 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24562 ' >>conftest.defines
24564 # Remove the space that was appended to ease matching.
24565 # Then replace #undef with comments. This is necessary, for
24566 # example, in the case of _POSIX_SOURCE, which is predefined and required
24567 # on some systems where configure will not decide to define it.
24568 # (The regexp can be short, since the line contains either #define or #undef.)
24569 echo 's/ $//
24570 s,^[ #]*u.*,/* & */,' >>conftest.defines
24572 # Break up conftest.defines:
24573 ac_max_sed_lines=50
24575 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24576 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24577 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24578 # et cetera.
24579 ac_in='$ac_file_inputs'
24580 ac_out='"$tmp/out1"'
24581 ac_nxt='"$tmp/out2"'
24583 while :
24585 # Write a here document:
24586 cat >>$CONFIG_STATUS <<_ACEOF
24587 # First, check the format of the line:
24588 cat >"\$tmp/defines.sed" <<\\CEOF
24589 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24590 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24592 :def
24593 _ACEOF
24594 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24595 echo 'CEOF
24596 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24597 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24598 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24599 grep . conftest.tail >/dev/null || break
24600 rm -f conftest.defines
24601 mv conftest.tail conftest.defines
24602 done
24603 rm -f conftest.defines conftest.tail
24605 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24606 cat >>$CONFIG_STATUS <<\_ACEOF
24607 if test x"$ac_file" != x-; then
24608 echo "/* $configure_input */" >"$tmp/config.h"
24609 cat "$ac_result" >>"$tmp/config.h"
24610 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24611 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24612 echo "$as_me: $ac_file is unchanged" >&6;}
24613 else
24614 rm -f $ac_file
24615 mv "$tmp/config.h" $ac_file
24617 else
24618 echo "/* $configure_input */"
24619 cat "$ac_result"
24621 rm -f "$tmp/out12"
24625 esac
24627 done # for ac_tag
24630 { (exit 0); exit 0; }
24631 _ACEOF
24632 chmod +x $CONFIG_STATUS
24633 ac_clean_files=$ac_clean_files_save
24636 # configure is writing to config.log, and then calls config.status.
24637 # config.status does its own redirection, appending to config.log.
24638 # Unfortunately, on DOS this fails, as config.log is still kept open
24639 # by configure, so config.status won't be able to write to it; its
24640 # output is simply discarded. So we exec the FD to /dev/null,
24641 # effectively closing config.log, so it can be properly (re)opened and
24642 # appended to by config.status. When coming back to configure, we
24643 # need to make the FD available again.
24644 if test "$no_create" != yes; then
24645 ac_cs_success=:
24646 ac_config_status_args=
24647 test "$silent" = yes &&
24648 ac_config_status_args="$ac_config_status_args --quiet"
24649 exec 5>/dev/null
24650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24651 exec 5>>config.log
24652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24653 # would make configure fail if this is the last instruction.
24654 $ac_cs_success || { (exit 1); exit 1; }
24658 echo "creating Modules/Setup"
24659 if test ! -f Modules/Setup
24660 then
24661 cp $srcdir/Modules/Setup.dist Modules/Setup
24664 echo "creating Modules/Setup.local"
24665 if test ! -f Modules/Setup.local
24666 then
24667 echo "# Edit this file for local setup changes" >Modules/Setup.local
24670 echo "creating Makefile"
24671 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
24672 -s Modules Modules/Setup.config \
24673 Modules/Setup.local Modules/Setup
24675 case $ac_sys_system in
24676 BeOS)
24677 { echo "$as_me:$LINENO: WARNING:
24679 Support for BeOS is deprecated as of Python 2.6.
24680 See PEP 11 for the gory details.
24681 " >&5
24682 echo "$as_me: WARNING:
24684 Support for BeOS is deprecated as of Python 2.6.
24685 See PEP 11 for the gory details.
24686 " >&2;}
24688 *) ;;
24689 esac
24691 mv config.c Modules