Merged revisions 78965 via svnmerge from
[python/dscho.git] / configure
blob38a3e44df709658d6f89a072fbcdbd34319cf760
1 #! /bin/sh
2 # From configure.in Revision: 80577 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='python'
599 PACKAGE_TARNAME='python'
600 PACKAGE_VERSION='3.1'
601 PACKAGE_STRING='python 3.1'
602 PACKAGE_BUGREPORT='http://bugs.python.org/'
604 ac_unique_file="Include/object.h"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
641 ac_subst_vars='LTLIBOBJS
642 SRCDIRS
643 THREADHEADERS
644 LIBC
645 LIBM
646 HAVE_GETHOSTBYNAME
647 HAVE_GETHOSTBYNAME_R
648 HAVE_GETHOSTBYNAME_R_3_ARG
649 HAVE_GETHOSTBYNAME_R_5_ARG
650 HAVE_GETHOSTBYNAME_R_6_ARG
651 LIBOBJS
652 TRUE
653 MACHDEP_OBJS
654 DYNLOADFILE
655 DLINCLDIR
656 THREADOBJ
657 LDLAST
658 USE_THREAD_MODULE
659 SIGNAL_OBJS
660 USE_SIGNAL_MODULE
661 SHLIBS
662 CFLAGSFORSHARED
663 LINKFORSHARED
664 CCSHARED
665 BLDSHARED
666 LDSHARED
668 LIBTOOL_CRUFT
669 OTHER_LIBTOOL_OPT
670 UNIVERSAL_ARCH_FLAGS
671 BASECFLAGS
674 INSTALL_DATA
675 INSTALL_SCRIPT
676 INSTALL_PROGRAM
677 SVNVERSION
678 ARFLAGS
680 RANLIB
681 GNULD
682 LINKCC
683 RUNSHARED
684 INSTSONAME
685 LDLIBRARYDIR
686 BLDLIBRARY
687 DLLLIBRARY
688 LDLIBRARY
689 LIBRARY
690 BUILDEXEEXT
691 EGREP
692 GREP
694 MAINCC
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
703 EXPORT_MACOSX_DEPLOYMENT_TARGET
704 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
705 SGI_ABI
706 MACHDEP
707 FRAMEWORKUNIXTOOLSPREFIX
708 FRAMEWORKALTINSTALLLAST
709 FRAMEWORKALTINSTALLFIRST
710 FRAMEWORKINSTALLLAST
711 FRAMEWORKINSTALLFIRST
712 PYTHONFRAMEWORKINSTALLDIR
713 PYTHONFRAMEWORKPREFIX
714 PYTHONFRAMEWORKDIR
715 PYTHONFRAMEWORKIDENTIFIER
716 PYTHONFRAMEWORK
717 LIPO_64BIT_FLAGS
718 LIPO_32BIT_FLAGS
719 ARCH_RUN_32BIT
720 UNIVERSALSDK
721 CONFIG_ARGS
722 SOVERSION
723 VERSION
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_universalsdk
765 with_universal_archs
766 with_framework_name
767 enable_framework
768 with_gcc
769 with_cxx_main
770 with_suffix
771 enable_shared
772 enable_profiling
773 with_pydebug
774 with_libs
775 with_system_ffi
776 with_dbmliborder
777 with_signal_module
778 with_dec_threads
779 with_threads
780 with_thread
781 with_pth
782 enable_ipv6
783 with_doc_strings
784 with_tsc
785 with_pymalloc
786 with_wctype_functions
787 with_fpectl
788 with_libm
789 with_libc
790 enable_big_digits
791 with_wide_unicode
792 with_computed_gotos
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP'
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
853 ac_prev=
854 ac_dashdash=
855 for ac_option
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
864 case $ac_option in
865 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *) ac_optarg=yes ;;
867 esac
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
873 ac_dashdash=yes ;;
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
892 --config-cache | -C)
893 cache_file=config.cache ;;
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
912 { (exit 1); exit 1; }; }
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
939 { (exit 1); exit 1; }; }
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1192 Try \`$0 --help' for more information." >&2
1193 { (exit 1); exit 1; }; }
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1200 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1201 { (exit 1); exit 1; }; }
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 esac
1214 done
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1219 { (exit 1); exit 1; }; }
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1226 { (exit 1); exit 1; }; } ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250 { (exit 1); exit 1; }; }
1251 done
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1281 { (exit 1); exit 1; }; }
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1284 { (exit 1); exit 1; }; }
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1305 /^X\(\/\/\)$/{
1306 s//\1/
1309 /^X\(\/\).*/{
1310 s//\1/
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1318 else
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324 { (exit 1); exit 1; }; }
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1329 { (exit 1); exit 1; }; }
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures python 3.1 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1410 cat <<\_ACEOF
1411 _ACEOF
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of python 3.1:";;
1417 esac
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-universalsdk[=SDKDIR]
1425 Build against Mac OS X 10.4u SDK (ppc/i386)
1426 --enable-framework[=INSTALLDIR]
1427 Build (MacOSX|Darwin) framework
1428 --enable-shared disable/enable building shared python library
1429 --enable-profiling enable C-level code profiling
1430 --enable-ipv6 Enable ipv6 (with ipv4) support
1431 --disable-ipv6 Disable ipv6 support
1432 --enable-big-digits[=BITS]
1433 use big digits for Python longs [BITS=30]
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-universal-archs=ARCH
1439 select architectures for universal build ("32-bit",
1440 "64-bit", "3-way", "intel" or "all")
1441 --with-framework-name=FRAMEWORK
1442 specify an alternate name of the framework built
1443 with --enable-framework
1444 --without-gcc never use gcc
1445 --with-cxx-main=<compiler>
1446 compile main() and link python executable with C++
1447 compiler
1448 --with-suffix=.exe set executable suffix
1449 --with-pydebug build with Py_DEBUG defined
1450 --with-libs='lib1 ...' link against additional libs
1451 --with-system-ffi build _ctypes module using an installed ffi library
1452 --with-dbmliborder=db1:db2:...
1453 order to check db backends for dbm. Valid value is a
1454 colon separated string with the backend names
1455 `ndbm', `gdbm' and `bdb'.
1456 --with-signal-module disable/enable signal module
1457 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1458 --with(out)-threads[=DIRECTORY]
1459 disable/enable thread support
1460 --with(out)-thread[=DIRECTORY]
1461 deprecated; use --with(out)-threads
1462 --with-pth use GNU pth threading libraries
1463 --with(out)-doc-strings disable/enable documentation strings
1464 --with(out)-tsc enable/disable timestamp counter profile
1465 --with(out)-pymalloc disable/enable specialized mallocs
1466 --with-wctype-functions use wctype.h functions
1467 --with-fpectl enable SIGFPE catching
1468 --with-libm=STRING math library
1469 --with-libc=STRING C library
1470 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1471 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1472 loop (not available on all compilers)
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to <http://bugs.python.org/>.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 python configure 3.1
1551 generated by GNU Autoconf 2.63
1553 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1554 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558 exit
1560 cat >config.log <<_ACEOF
1561 This file contains any messages produced by compilers while
1562 running configure, to aid debugging if configure makes a mistake.
1564 It was created by python $as_me 3.1, which was
1565 generated by GNU Autoconf 2.63. Invocation command line was
1567 $ $0 $@
1569 _ACEOF
1570 exec 5>>config.log
1572 cat <<_ASUNAME
1573 ## --------- ##
1574 ## Platform. ##
1575 ## --------- ##
1577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1587 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1590 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1591 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1592 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594 _ASUNAME
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 $as_echo "PATH: $as_dir"
1602 done
1603 IFS=$as_save_IFS
1605 } >&5
1607 cat >&5 <<_ACEOF
1610 ## ----------- ##
1611 ## Core tests. ##
1612 ## ----------- ##
1614 _ACEOF
1617 # Keep a trace of the command line.
1618 # Strip out --no-create and --no-recursion so they do not pile up.
1619 # Strip out --silent because we don't want to record it for future runs.
1620 # Also quote any args containing shell meta-characters.
1621 # Make two passes to allow for proper duplicate-argument suppression.
1622 ac_configure_args=
1623 ac_configure_args0=
1624 ac_configure_args1=
1625 ac_must_keep_next=false
1626 for ac_pass in 1 2
1628 for ac_arg
1630 case $ac_arg in
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1634 continue ;;
1635 *\'*)
1636 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 esac
1638 case $ac_pass in
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1644 else
1645 case $ac_arg in
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 esac
1654 -* ) ac_must_keep_next=true ;;
1655 esac
1657 ac_configure_args="$ac_configure_args '$ac_arg'"
1659 esac
1660 done
1661 done
1662 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1665 # When interrupted or exit'd, cleanup temporary files, and complete
1666 # config.log. We remove comments because anyway the quotes in there
1667 # would cause problems or look ugly.
1668 # WARNING: Use '\'' to represent an apostrophe within the trap.
1669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670 trap 'exit_status=$?
1671 # Save into config.log some information that might help in debugging.
1673 echo
1675 cat <<\_ASBOX
1676 ## ---------------- ##
1677 ## Cache variables. ##
1678 ## ---------------- ##
1679 _ASBOX
1680 echo
1681 # The following way of writing the cache mishandles newlines in values,
1683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684 eval ac_val=\$$ac_var
1685 case $ac_val in #(
1686 *${as_nl}*)
1687 case $ac_var in #(
1688 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1690 esac
1691 case $ac_var in #(
1692 _ | IFS | as_nl) ;; #(
1693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1694 *) $as_unset $ac_var ;;
1695 esac ;;
1696 esac
1697 done
1698 (set) 2>&1 |
1699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1701 sed -n \
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 ;; #(
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1708 esac |
1709 sort
1711 echo
1713 cat <<\_ASBOX
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1717 _ASBOX
1718 echo
1719 for ac_var in $ac_subst_vars
1721 eval ac_val=\$$ac_var
1722 case $ac_val in
1723 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 esac
1725 $as_echo "$ac_var='\''$ac_val'\''"
1726 done | sort
1727 echo
1729 if test -n "$ac_subst_files"; then
1730 cat <<\_ASBOX
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_files
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 $as_echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1747 if test -s confdefs.h; then
1748 cat <<\_ASBOX
1749 ## ----------- ##
1750 ## confdefs.h. ##
1751 ## ----------- ##
1752 _ASBOX
1753 echo
1754 cat confdefs.h
1755 echo
1757 test "$ac_signal" != 0 &&
1758 $as_echo "$as_me: caught signal $ac_signal"
1759 $as_echo "$as_me: exit $exit_status"
1760 } >&5
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 exit $exit_status
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 done
1768 ac_signal=0
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 # Predefined preprocessor variables.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 _ACEOF
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 _ACEOF
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 _ACEOF
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer an explicitly selected file to automatically selected ones.
1802 ac_site_file1=NONE
1803 ac_site_file2=NONE
1804 if test -n "$CONFIG_SITE"; then
1805 ac_site_file1=$CONFIG_SITE
1806 elif test "x$prefix" != xNONE; then
1807 ac_site_file1=$prefix/share/config.site
1808 ac_site_file2=$prefix/etc/config.site
1809 else
1810 ac_site_file1=$ac_default_prefix/share/config.site
1811 ac_site_file2=$ac_default_prefix/etc/config.site
1813 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1815 test "x$ac_site_file" = xNONE && continue
1816 if test -r "$ac_site_file"; then
1817 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1820 . "$ac_site_file"
1822 done
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 $as_echo "$as_me: loading cache $cache_file" >&6;}
1830 case $cache_file in
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1833 esac
1835 else
1836 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 $as_echo "$as_me: creating cache $cache_file" >&6;}
1838 >$cache_file
1841 # Check that the precious variables saved in the cache have kept the same
1842 # value.
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1850 set,)
1851 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,set)
1855 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,);;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 # differences in whitespace do not lead to failure.
1862 ac_old_val_w=`echo x $ac_old_val`
1863 ac_new_val_w=`echo x $ac_new_val`
1864 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1865 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 ac_cache_corrupted=:
1868 else
1869 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1870 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1871 eval $ac_var=\$ac_old_val
1873 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1874 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1875 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1876 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1877 fi;;
1878 esac
1879 # Pass precious variables to config.status.
1880 if test "$ac_new_set" = set; then
1881 case $ac_new_val in
1882 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 *) ac_arg=$ac_var=$ac_new_val ;;
1884 esac
1885 case " $ac_configure_args " in
1886 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1887 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 esac
1890 done
1891 if $ac_cache_corrupted; then
1892 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1894 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 ac_config_headers="$ac_config_headers pyconfig.h"
1937 if test "$prefix" != "/"; then
1938 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1946 # We don't use PACKAGE_ variables, and they cause conflicts
1947 # with other autoconf-based packages that include Python.h
1948 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1949 rm confdefs.h
1950 mv confdefs.h.new confdefs.h
1953 VERSION=3.1
1956 SOVERSION=1.0
1958 # The later defininition of _XOPEN_SOURCE disables certain features
1959 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1961 cat >>confdefs.h <<\_ACEOF
1962 #define _GNU_SOURCE 1
1963 _ACEOF
1966 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1967 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1968 # them.
1970 cat >>confdefs.h <<\_ACEOF
1971 #define _NETBSD_SOURCE 1
1972 _ACEOF
1975 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1976 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1977 # them.
1979 cat >>confdefs.h <<\_ACEOF
1980 #define __BSD_VISIBLE 1
1981 _ACEOF
1984 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1985 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1987 cat >>confdefs.h <<\_ACEOF
1988 #define _BSD_TYPES 1
1989 _ACEOF
1992 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1993 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1994 # them.
1996 cat >>confdefs.h <<\_ACEOF
1997 #define _DARWIN_C_SOURCE 1
1998 _ACEOF
2002 define_xopen_source=yes
2004 # Arguments passed to configure.
2006 CONFIG_ARGS="$ac_configure_args"
2008 { $as_echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
2009 $as_echo_n "checking for --enable-universalsdk... " >&6; }
2010 # Check whether --enable-universalsdk was given.
2011 if test "${enable_universalsdk+set}" = set; then
2012 enableval=$enable_universalsdk;
2013 case $enableval in
2014 yes)
2015 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2016 if test ! -d "${enableval}"
2017 then
2018 enableval=/
2021 esac
2022 case $enableval in
2024 UNIVERSALSDK=
2025 enable_universalsdk=
2028 UNIVERSALSDK=$enableval
2029 if test ! -d "${UNIVERSALSDK}"
2030 then
2031 { { $as_echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
2032 $as_echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
2033 { (exit 1); exit 1; }; }
2036 esac
2039 else
2041 UNIVERSALSDK=
2042 enable_universalsdk=
2046 if test -n "${UNIVERSALSDK}"
2047 then
2048 { $as_echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
2049 $as_echo "${UNIVERSALSDK}" >&6; }
2050 else
2051 { $as_echo "$as_me:$LINENO: result: no" >&5
2052 $as_echo "no" >&6; }
2058 UNIVERSAL_ARCHS="32-bit"
2061 { $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
2062 $as_echo_n "checking for --with-universal-archs... " >&6; }
2064 # Check whether --with-universal-archs was given.
2065 if test "${with_universal_archs+set}" = set; then
2066 withval=$with_universal_archs;
2067 { $as_echo "$as_me:$LINENO: result: $withval" >&5
2068 $as_echo "$withval" >&6; }
2069 UNIVERSAL_ARCHS="$withval"
2071 else
2073 { $as_echo "$as_me:$LINENO: result: 32-bit" >&5
2074 $as_echo "32-bit" >&6; }
2082 # Check whether --with-framework-name was given.
2083 if test "${with_framework_name+set}" = set; then
2084 withval=$with_framework_name;
2085 PYTHONFRAMEWORK=${withval}
2086 PYTHONFRAMEWORKDIR=${withval}.framework
2087 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2089 else
2091 PYTHONFRAMEWORK=Python
2092 PYTHONFRAMEWORKDIR=Python.framework
2093 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2097 # Check whether --enable-framework was given.
2098 if test "${enable_framework+set}" = set; then
2099 enableval=$enable_framework;
2100 case $enableval in
2101 yes)
2102 enableval=/Library/Frameworks
2103 esac
2104 case $enableval in
2106 PYTHONFRAMEWORK=
2107 PYTHONFRAMEWORKDIR=no-framework
2108 PYTHONFRAMEWORKPREFIX=
2109 PYTHONFRAMEWORKINSTALLDIR=
2110 FRAMEWORKINSTALLFIRST=
2111 FRAMEWORKINSTALLLAST=
2112 FRAMEWORKALTINSTALLFIRST=
2113 FRAMEWORKALTINSTALLLAST=
2114 if test "x${prefix}" = "xNONE"; then
2115 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2116 else
2117 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2119 enable_framework=
2122 PYTHONFRAMEWORKPREFIX=$enableval
2123 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2124 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2125 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2126 case "${UNIVERSAL_ARCHS}" in
2127 all|3-way|intel)
2128 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2129 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2132 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2133 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2135 esac
2137 if test "x${prefix}" = "xNONE" ; then
2138 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2139 else
2140 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2142 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2144 # Add files for Mac specific code to the list of output
2145 # files:
2146 ac_config_files="$ac_config_files Mac/Makefile"
2148 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2150 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2152 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2154 esac
2156 else
2158 PYTHONFRAMEWORK=
2159 PYTHONFRAMEWORKDIR=no-framework
2160 PYTHONFRAMEWORKPREFIX=
2161 PYTHONFRAMEWORKINSTALLDIR=
2162 FRAMEWORKINSTALLFIRST=
2163 FRAMEWORKINSTALLLAST=
2164 FRAMEWORKALTINSTALLFIRST=
2165 FRAMEWORKALTINSTALLLAST=
2166 if test "x${prefix}" = "xNONE" ; then
2167 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2168 else
2169 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2171 enable_framework=
2173 if test "$UNIVERSAL_ARCHS" = "all"
2174 then
2175 FRAMEWORKINSTALLLAST=update4wayuniversal
2176 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2192 ##AC_ARG_WITH(dyld,
2193 ## AC_HELP_STRING(--with-dyld,
2194 ## Use (OpenStep|Rhapsody) dynamic linker))
2196 # Set name for machine-dependent library files
2198 { $as_echo "$as_me:$LINENO: checking MACHDEP" >&5
2199 $as_echo_n "checking MACHDEP... " >&6; }
2200 if test -z "$MACHDEP"
2201 then
2202 ac_sys_system=`uname -s`
2203 if test "$ac_sys_system" = "AIX" \
2204 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2205 ac_sys_release=`uname -v`
2206 else
2207 ac_sys_release=`uname -r`
2209 ac_md_system=`echo $ac_sys_system |
2210 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2211 ac_md_release=`echo $ac_sys_release |
2212 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2213 MACHDEP="$ac_md_system$ac_md_release"
2215 case $MACHDEP in
2216 cygwin*) MACHDEP="cygwin";;
2217 darwin*) MACHDEP="darwin";;
2218 atheos*) MACHDEP="atheos";;
2219 irix646) MACHDEP="irix6";;
2220 '') MACHDEP="unknown";;
2221 esac
2224 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2225 # disable features if it is defined, without any means to access these
2226 # features as extensions. For these systems, we skip the definition of
2227 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2228 # some feature, make sure there is no alternative way to access this
2229 # feature. Also, when using wildcards, make sure you have verified the
2230 # need for not defining _XOPEN_SOURCE on all systems matching the
2231 # wildcard, and that the wildcard does not include future systems
2232 # (which may remove their limitations).
2233 case $ac_sys_system/$ac_sys_release in
2234 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2235 # even though select is a POSIX function. Reported by J. Ribbens.
2236 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2237 # In addition, Stefan Krah confirms that issue #1244610 exists through
2238 # OpenBSD 4.6, but is fixed in 4.7.
2239 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2240 define_xopen_source=no
2241 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2242 # also defined. This can be overridden by defining _BSD_SOURCE
2243 # As this has a different meaning on Linux, only define it on OpenBSD
2245 cat >>confdefs.h <<\_ACEOF
2246 #define _BSD_SOURCE 1
2247 _ACEOF
2250 OpenBSD/4.[789])
2251 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2252 # also defined. This can be overridden by defining _BSD_SOURCE
2253 # As this has a different meaning on Linux, only define it on OpenBSD
2255 cat >>confdefs.h <<\_ACEOF
2256 #define _BSD_SOURCE 1
2257 _ACEOF
2260 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2261 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2262 # Marc Recht
2263 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2264 define_xopen_source=no;;
2265 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2266 # of union __?sigval. Reported by Stuart Bishop.
2267 SunOS/5.6)
2268 define_xopen_source=no;;
2269 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2270 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2271 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2272 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2273 define_xopen_source=no;;
2274 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2275 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2276 SCO_SV/3.2)
2277 define_xopen_source=no;;
2278 # On FreeBSD 4, the math functions C89 does not cover are never defined
2279 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2280 FreeBSD/4.*)
2281 define_xopen_source=no;;
2282 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2283 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2284 # identifies itself as Darwin/7.*
2285 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2286 # disables platform specific features beyond repair.
2287 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2288 # has no effect, don't bother defining them
2289 Darwin/[6789].*)
2290 define_xopen_source=no;;
2291 Darwin/1[0-9].*)
2292 define_xopen_source=no;;
2293 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2294 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2295 # or has another value. By not (re)defining it, the defaults come in place.
2296 AIX/4)
2297 define_xopen_source=no;;
2298 AIX/5)
2299 if test `uname -r` -eq 1; then
2300 define_xopen_source=no
2303 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2304 # defining NI_NUMERICHOST.
2305 QNX/6.3.2)
2306 define_xopen_source=no
2309 esac
2311 if test $define_xopen_source = yes
2312 then
2313 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2314 # defined precisely as g++ defines it
2315 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2316 # compiler
2317 case $ac_sys_system/$ac_sys_release in
2318 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2320 cat >>confdefs.h <<\_ACEOF
2321 #define _XOPEN_SOURCE 500
2322 _ACEOF
2327 cat >>confdefs.h <<\_ACEOF
2328 #define _XOPEN_SOURCE 600
2329 _ACEOF
2332 esac
2334 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2335 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2336 # several APIs are not declared. Since this is also needed in some
2337 # cases for HP-UX, we define it globally.
2338 # except for Solaris 10, where it must not be defined,
2339 # as it implies XPG4.2
2340 case $ac_sys_system/$ac_sys_release in
2341 SunOS/5.10)
2345 cat >>confdefs.h <<\_ACEOF
2346 #define _XOPEN_SOURCE_EXTENDED 1
2347 _ACEOF
2350 esac
2353 cat >>confdefs.h <<\_ACEOF
2354 #define _POSIX_C_SOURCE 200112L
2355 _ACEOF
2361 # SGI compilers allow the specification of the both the ABI and the
2362 # ISA on the command line. Depending on the values of these switches,
2363 # different and often incompatable code will be generated.
2365 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2366 # thus supply support for various ABI/ISA combinations. The MACHDEP
2367 # variable is also adjusted.
2370 if test ! -z "$SGI_ABI"
2371 then
2372 CC="cc $SGI_ABI"
2373 LDFLAGS="$SGI_ABI $LDFLAGS"
2374 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2376 { $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5
2377 $as_echo "$MACHDEP" >&6; }
2379 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2380 # it may influence the way we can build extensions, so distutils
2381 # needs to check it
2384 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2385 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2387 { $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2388 $as_echo_n "checking machine type as reported by uname -m... " >&6; }
2389 ac_sys_machine=`uname -m`
2390 { $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2391 $as_echo "$ac_sys_machine" >&6; }
2393 # checks for alternative programs
2395 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2396 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2397 # just to get things to compile and link. Users are free to override OPT
2398 # when running configure or make. The build should not break if they do.
2399 # BASECFLAGS should generally not be messed with, however.
2401 # XXX shouldn't some/most/all of this code be merged with the stuff later
2402 # on that fiddles with OPT and BASECFLAGS?
2403 { $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5
2404 $as_echo_n "checking for --without-gcc... " >&6; }
2406 # Check whether --with-gcc was given.
2407 if test "${with_gcc+set}" = set; then
2408 withval=$with_gcc;
2409 case $withval in
2410 no) CC=${CC:-cc}
2411 without_gcc=yes;;
2412 yes) CC=gcc
2413 without_gcc=no;;
2414 *) CC=$withval
2415 without_gcc=$withval;;
2416 esac
2417 else
2419 case $ac_sys_system in
2420 AIX*) CC=cc_r
2421 without_gcc=;;
2422 *) without_gcc=no;;
2423 esac
2426 { $as_echo "$as_me:$LINENO: result: $without_gcc" >&5
2427 $as_echo "$without_gcc" >&6; }
2429 # If the user switches compilers, we can't believe the cache
2430 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2431 then
2432 { { $as_echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2433 (it is also a good idea to do 'make clean' before compiling)" >&5
2434 $as_echo "$as_me: error: cached CC is different -- throw away $cache_file
2435 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2436 { (exit 1); exit 1; }; }
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2466 done
2467 done
2468 IFS=$as_save_IFS
2472 CC=$ac_cv_prog_CC
2473 if test -n "$CC"; then
2474 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2475 $as_echo "$CC" >&6; }
2476 else
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2483 if test -z "$ac_cv_prog_CC"; then
2484 ac_ct_CC=$CC
2485 # Extract the first word of "gcc", so it can be a program name with args.
2486 set dummy gcc; ac_word=$2
2487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_CC="gcc"
2503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2506 done
2507 done
2508 IFS=$as_save_IFS
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2515 $as_echo "$ac_ct_CC" >&6; }
2516 else
2517 { $as_echo "$as_me:$LINENO: result: no" >&5
2518 $as_echo "no" >&6; }
2521 if test "x$ac_ct_CC" = x; then
2522 CC=""
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 CC=$ac_ct_CC
2532 else
2533 CC="$ac_cv_prog_CC"
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2569 else
2570 { $as_echo "$as_me:$LINENO: result: no" >&5
2571 $as_echo "no" >&6; }
2577 if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 ac_prog_rejected=no
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2598 continue
2600 ac_cv_prog_CC="cc"
2601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2604 done
2605 done
2606 IFS=$as_save_IFS
2608 if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2611 shift
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2616 shift
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2625 $as_echo "$CC" >&6; }
2626 else
2627 { $as_echo "$as_me:$LINENO: result: no" >&5
2628 $as_echo "no" >&6; }
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2667 $as_echo "$CC" >&6; }
2668 else
2669 { $as_echo "$as_me:$LINENO: result: no" >&5
2670 $as_echo "no" >&6; }
2674 test -n "$CC" && break
2675 done
2677 if test -z "$CC"; then
2678 ac_ct_CC=$CC
2679 for ac_prog in cl.exe
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711 $as_echo "$ac_ct_CC" >&6; }
2712 else
2713 { $as_echo "$as_me:$LINENO: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$ac_ct_CC" && break
2719 done
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2737 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&5
2741 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }; }
2745 # Provide some information about the compiler.
2746 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2747 set X $ac_compile
2748 ac_compiler=$2
2749 { (ac_try="$ac_compiler --version >&5"
2750 case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753 esac
2754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2755 $as_echo "$ac_try_echo") >&5
2756 (eval "$ac_compiler --version >&5") 2>&5
2757 ac_status=$?
2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try="$ac_compiler -v >&5"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2766 $as_echo "$ac_try_echo") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2768 ac_status=$?
2769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compiler -V >&5") 2>&5
2779 ac_status=$?
2780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h. */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2791 main ()
2795 return 0;
2797 _ACEOF
2798 ac_clean_files_save=$ac_clean_files
2799 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2800 # Try to create an executable without -o first, disregard a.out.
2801 # It will help us diagnose broken compilers, and finding out an intuition
2802 # of exeext.
2803 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2804 $as_echo_n "checking for C compiler default output file name... " >&6; }
2805 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807 # The possible output files:
2808 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2810 ac_rmfiles=
2811 for ac_file in $ac_files
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816 esac
2817 done
2818 rm -f $ac_rmfiles
2820 if { (ac_try="$ac_link_default"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826 $as_echo "$ac_try_echo") >&5
2827 (eval "$ac_link_default") 2>&5
2828 ac_status=$?
2829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2835 # Autoconf.
2836 for ac_file in $ac_files ''
2838 test -f "$ac_file" || continue
2839 case $ac_file in
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2842 [ab].out )
2843 # We found the default executable, but exeext='' is most
2844 # certainly right.
2845 break;;
2846 *.* )
2847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848 then :; else
2849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 # We set ac_cv_exeext here because the later test for it is not
2852 # safe: cross compilers may not add the suffix if given an `-o'
2853 # argument, so we may need to know it at that point already.
2854 # Even if this section looks crufty: it has the advantage of
2855 # actually working.
2856 break;;
2858 break;;
2859 esac
2860 done
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 else
2864 ac_file=''
2867 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2868 $as_echo "$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&5
2877 $as_echo "$as_me: error: C compiler cannot create executables
2878 See \`config.log' for more details." >&2;}
2879 { (exit 77); exit 77; }; }; }
2882 ac_exeext=$ac_cv_exeext
2884 # Check that the compiler produces executables we can run. If not, either
2885 # the compiler is broken, or we cross compile.
2886 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2887 $as_echo_n "checking whether the C compiler works... " >&6; }
2888 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2889 # If not cross compiling, check that we can run a simple program.
2890 if test "$cross_compiling" != yes; then
2891 if { ac_try='./$ac_file'
2892 { (case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_try") 2>&5
2899 ac_status=$?
2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 cross_compiling=no
2903 else
2904 if test "$cross_compiling" = maybe; then
2905 cross_compiling=yes
2906 else
2907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&5
2912 $as_echo "$as_me: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }; }
2919 { $as_echo "$as_me:$LINENO: result: yes" >&5
2920 $as_echo "yes" >&6; }
2922 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2923 ac_clean_files=$ac_clean_files_save
2924 # Check that the compiler produces executables we can run. If not, either
2925 # the compiler is broken, or we cross compile.
2926 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2927 $as_echo_n "checking whether we are cross compiling... " >&6; }
2928 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2929 $as_echo "$cross_compiling" >&6; }
2931 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2932 $as_echo_n "checking for suffix of executables... " >&6; }
2933 if { (ac_try="$ac_link"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_link") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
2944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2946 # work properly (i.e., refer to `conftest.exe'), while it won't with
2947 # `rm'.
2948 for ac_file in conftest.exe conftest conftest.*; do
2949 test -f "$ac_file" || continue
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 break;;
2954 * ) break;;
2955 esac
2956 done
2957 else
2958 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2960 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2961 See \`config.log' for more details." >&5
2962 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }; }
2967 rm -f conftest$ac_cv_exeext
2968 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2969 $as_echo "$ac_cv_exeext" >&6; }
2971 rm -f conftest.$ac_ext
2972 EXEEXT=$ac_cv_exeext
2973 ac_exeext=$EXEEXT
2974 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2975 $as_echo_n "checking for suffix of object files... " >&6; }
2976 if test "${ac_cv_objext+set}" = set; then
2977 $as_echo_n "(cached) " >&6
2978 else
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2987 main ()
2991 return 0;
2993 _ACEOF
2994 rm -f conftest.o conftest.obj
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001 $as_echo "$ac_try_echo") >&5
3002 (eval "$ac_compile") 2>&5
3003 ac_status=$?
3004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; then
3006 for ac_file in conftest.o conftest.obj conftest.*; do
3007 test -f "$ac_file" || continue;
3008 case $ac_file in
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3011 break;;
3012 esac
3013 done
3014 else
3015 $as_echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3021 See \`config.log' for more details." >&5
3022 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }; }
3027 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3029 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3030 $as_echo "$ac_cv_objext" >&6; }
3031 OBJEXT=$ac_cv_objext
3032 ac_objext=$OBJEXT
3033 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3034 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3035 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3036 $as_echo_n "(cached) " >&6
3037 else
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3046 main ()
3048 #ifndef __GNUC__
3049 choke me
3050 #endif
3053 return 0;
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest.$ac_objext; then
3074 ac_compiler_gnu=yes
3075 else
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 ac_compiler_gnu=no
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3086 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3088 if test $ac_compiler_gnu = yes; then
3089 GCC=yes
3090 else
3091 GCC=
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126 $as_echo "$ac_try_echo") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 ac_cv_prog_cc_g=yes
3138 else
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 CFLAGS=""
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3151 main ()
3155 return 0;
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3177 else
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_g=yes
3217 else
3218 $as_echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3250 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271 char **p;
3272 int i;
3274 return p[i];
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3307 main ()
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 return 0;
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325 $as_echo "$ac_try_echo") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3336 ac_cv_prog_cc_c89=$ac_arg
3337 else
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext
3345 test "x$ac_cv_prog_cc_c89" != "xno" && break
3346 done
3347 rm -f conftest.$ac_ext
3348 CC=$ac_save_CC
3351 # AC_CACHE_VAL
3352 case "x$ac_cv_prog_cc_c89" in
3354 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3355 $as_echo "none needed" >&6; } ;;
3356 xno)
3357 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3358 $as_echo "unsupported" >&6; } ;;
3360 CC="$CC $ac_cv_prog_cc_c89"
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3362 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3363 esac
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3376 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
3378 # Check whether --with-cxx_main was given.
3379 if test "${with_cxx_main+set}" = set; then
3380 withval=$with_cxx_main;
3382 case $withval in
3383 no) with_cxx_main=no
3384 MAINCC='$(CC)';;
3385 yes) with_cxx_main=yes
3386 MAINCC='$(CXX)';;
3387 *) with_cxx_main=yes
3388 MAINCC=$withval
3389 if test -z "$CXX"
3390 then
3391 CXX=$withval
3392 fi;;
3393 esac
3394 else
3396 with_cxx_main=no
3397 MAINCC='$(CC)'
3401 { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3402 $as_echo "$with_cxx_main" >&6; }
3404 preset_cxx="$CXX"
3405 if test -z "$CXX"
3406 then
3407 case "$CC" in
3408 gcc) # Extract the first word of "g++", so it can be a program name with args.
3409 set dummy g++; ac_word=$2
3410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_path_CXX+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3414 else
3415 case $CXX in
3416 [\\/]* | ?:[\\/]*)
3417 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in notfound
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3431 done
3432 done
3433 IFS=$as_save_IFS
3435 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3437 esac
3439 CXX=$ac_cv_path_CXX
3440 if test -n "$CXX"; then
3441 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3442 $as_echo "$CXX" >&6; }
3443 else
3444 { $as_echo "$as_me:$LINENO: result: no" >&5
3445 $as_echo "no" >&6; }
3449 cc) # Extract the first word of "c++", so it can be a program name with args.
3450 set dummy c++; ac_word=$2
3451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_path_CXX+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3455 else
3456 case $CXX in
3457 [\\/]* | ?:[\\/]*)
3458 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in notfound
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3476 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3478 esac
3480 CXX=$ac_cv_path_CXX
3481 if test -n "$CXX"; then
3482 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3483 $as_echo "$CXX" >&6; }
3484 else
3485 { $as_echo "$as_me:$LINENO: result: no" >&5
3486 $as_echo "no" >&6; }
3490 esac
3491 if test "$CXX" = "notfound"
3492 then
3493 CXX=""
3496 if test -z "$CXX"
3497 then
3498 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_CXX+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$CXX"; then
3508 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_CXX="$ac_prog"
3518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3523 IFS=$as_save_IFS
3527 CXX=$ac_cv_prog_CXX
3528 if test -n "$CXX"; then
3529 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3530 $as_echo "$CXX" >&6; }
3531 else
3532 { $as_echo "$as_me:$LINENO: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$CXX" && break
3538 done
3539 test -n "$CXX" || CXX="notfound"
3541 if test "$CXX" = "notfound"
3542 then
3543 CXX=""
3546 if test "$preset_cxx" != "$CXX"
3547 then
3548 { $as_echo "$as_me:$LINENO: WARNING:
3550 By default, distutils will build C++ extension modules with \"$CXX\".
3551 If this is not intended, then set CXX on the configure command line.
3552 " >&5
3553 $as_echo "$as_me: WARNING:
3555 By default, distutils will build C++ extension modules with \"$CXX\".
3556 If this is not intended, then set CXX on the configure command line.
3557 " >&2;}
3561 # checks for UNIX variants that set C preprocessor variables
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3570 # On Suns, sometimes $CPP names a directory.
3571 if test -n "$CPP" && test -d "$CPP"; then
3572 CPP=
3574 if test -z "$CPP"; then
3575 if test "${ac_cv_prog_CPP+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3577 else
3578 # Double quotes because CPP needs to be expanded
3579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3581 ac_preproc_ok=false
3582 for ac_c_preproc_warn_flag in '' yes
3584 # Use a header file that comes with gcc, so configuring glibc
3585 # with a fresh cross-compiler works.
3586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 # <limits.h> exists even on freestanding compilers.
3588 # On the NeXT, cc -E runs the code through the compiler's parser,
3589 # not just through cpp. "Syntax error" is here to catch this case.
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601 Syntax error
3602 _ACEOF
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609 $as_echo "$ac_try_echo") >&5
3610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null && {
3617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 }; then
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Broken: fails on valid input.
3626 continue
3629 rm -f conftest.err conftest.$ac_ext
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3640 _ACEOF
3641 if { (ac_try="$ac_cpp conftest.$ac_ext"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3647 $as_echo "$ac_try_echo") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null && {
3655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 }; then
3658 # Broken: success on invalid input.
3659 continue
3660 else
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Passes both tests.
3665 ac_preproc_ok=:
3666 break
3669 rm -f conftest.err conftest.$ac_ext
3671 done
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.$ac_ext
3674 if $ac_preproc_ok; then
3675 break
3678 done
3679 ac_cv_prog_CPP=$CPP
3682 CPP=$ac_cv_prog_CPP
3683 else
3684 ac_cv_prog_CPP=$CPP
3686 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3687 $as_echo "$CPP" >&6; }
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708 Syntax error
3709 _ACEOF
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3726 }; then
3728 else
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 # Broken: fails on valid input.
3733 continue
3736 rm -f conftest.err conftest.$ac_ext
3738 # OK, works on sane cases. Now check whether nonexistent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (ac_try="$ac_cpp conftest.$ac_ext"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null && {
3762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 }; then
3765 # Broken: success on invalid input.
3766 continue
3767 else
3768 $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 # Passes both tests.
3772 ac_preproc_ok=:
3773 break
3776 rm -f conftest.err conftest.$ac_ext
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3783 else
3784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3787 See \`config.log' for more details." >&5
3788 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }; }
3793 ac_ext=c
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3801 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3802 if test "${ac_cv_path_GREP+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -z "$GREP"; then
3806 ac_path_GREP_found=false
3807 # Loop through the user's path and test for each of PROGNAME-LIST
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_prog in grep ggrep; do
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3816 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3817 # Check for GNU ac_path_GREP and select it if it is found.
3818 # Check for GNU $ac_path_GREP
3819 case `"$ac_path_GREP" --version 2>&1` in
3820 *GNU*)
3821 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3823 ac_count=0
3824 $as_echo_n 0123456789 >"conftest.in"
3825 while :
3827 cat "conftest.in" "conftest.in" >"conftest.tmp"
3828 mv "conftest.tmp" "conftest.in"
3829 cp "conftest.in" "conftest.nl"
3830 $as_echo 'GREP' >> "conftest.nl"
3831 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3833 ac_count=`expr $ac_count + 1`
3834 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3835 # Best one so far, save it but keep looking for a better one
3836 ac_cv_path_GREP="$ac_path_GREP"
3837 ac_path_GREP_max=$ac_count
3839 # 10*(2^10) chars as input seems more than enough
3840 test $ac_count -gt 10 && break
3841 done
3842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843 esac
3845 $ac_path_GREP_found && break 3
3846 done
3847 done
3848 done
3849 IFS=$as_save_IFS
3850 if test -z "$ac_cv_path_GREP"; then
3851 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3852 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3853 { (exit 1); exit 1; }; }
3855 else
3856 ac_cv_path_GREP=$GREP
3860 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3861 $as_echo "$ac_cv_path_GREP" >&6; }
3862 GREP="$ac_cv_path_GREP"
3865 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3866 $as_echo_n "checking for egrep... " >&6; }
3867 if test "${ac_cv_path_EGREP+set}" = set; then
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871 then ac_cv_path_EGREP="$GREP -E"
3872 else
3873 if test -z "$EGREP"; then
3874 ac_path_EGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in egrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886 # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3888 *GNU*)
3889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891 ac_count=0
3892 $as_echo_n 0123456789 >"conftest.in"
3893 while :
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 $as_echo 'EGREP' >> "conftest.nl"
3899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_EGREP="$ac_path_EGREP"
3905 ac_path_EGREP_max=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3909 done
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3913 $ac_path_EGREP_found && break 3
3914 done
3915 done
3916 done
3917 IFS=$as_save_IFS
3918 if test -z "$ac_cv_path_EGREP"; then
3919 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921 { (exit 1); exit 1; }; }
3923 else
3924 ac_cv_path_EGREP=$EGREP
3929 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3930 $as_echo "$ac_cv_path_EGREP" >&6; }
3931 EGREP="$ac_cv_path_EGREP"
3934 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3935 $as_echo_n "checking for ANSI C header files... " >&6; }
3936 if test "${ac_cv_header_stdc+set}" = set; then
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <stdlib.h>
3946 #include <stdarg.h>
3947 #include <string.h>
3948 #include <float.h>
3951 main ()
3955 return 0;
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_header_stdc=yes
3977 else
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #include <string.h>
3996 _ACEOF
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then
4000 else
4001 ac_cv_header_stdc=no
4003 rm -f conftest*
4007 if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <stdlib.h>
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then
4021 else
4022 ac_cv_header_stdc=no
4024 rm -f conftest*
4028 if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4032 else
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 #include <ctype.h>
4040 #include <stdlib.h>
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044 #else
4045 # define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050 #endif
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4054 main ()
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 return 2;
4061 return 0;
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_link") 2>&5
4073 ac_status=$?
4074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082 (eval "$ac_try") 2>&5
4083 ac_status=$?
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4087 else
4088 $as_echo "$as_me: program exited with status $ac_status" >&5
4089 $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ( exit $ac_status )
4093 ac_cv_header_stdc=no
4095 rm -rf conftest.dSYM
4096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4103 $as_echo "$ac_cv_header_stdc" >&6; }
4104 if test $ac_cv_header_stdc = yes; then
4106 cat >>confdefs.h <<\_ACEOF
4107 #define STDC_HEADERS 1
4108 _ACEOF
4112 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4122 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4123 inttypes.h stdint.h unistd.h
4125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 $as_echo_n "checking for $ac_header... " >&6; }
4128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4129 $as_echo_n "(cached) " >&6
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 $ac_includes_default
4139 #include <$ac_header>
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_compile") 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest.$ac_objext; then
4159 eval "$as_ac_Header=yes"
4160 else
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 eval "$as_ac_Header=no"
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 ac_res=`eval 'as_val=${'$as_ac_Header'}
4170 $as_echo "$as_val"'`
4171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4172 $as_echo "$ac_res" >&6; }
4173 as_val=`eval 'as_val=${'$as_ac_Header'}
4174 $as_echo "$as_val"'`
4175 if test "x$as_val" = x""yes; then
4176 cat >>confdefs.h <<_ACEOF
4177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4178 _ACEOF
4182 done
4186 if test "${ac_cv_header_minix_config_h+set}" = set; then
4187 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4188 $as_echo_n "checking for minix/config.h... " >&6; }
4189 if test "${ac_cv_header_minix_config_h+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4193 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4194 else
4195 # Is the header compilable?
4196 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4197 $as_echo_n "checking minix/config.h usability... " >&6; }
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 $ac_includes_default
4205 #include <minix/config.h>
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4214 $as_echo "$ac_try_echo") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest.$ac_objext; then
4225 ac_header_compiler=yes
4226 else
4227 $as_echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 ac_header_compiler=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4235 $as_echo "$ac_header_compiler" >&6; }
4237 # Is the header present?
4238 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4239 $as_echo_n "checking minix/config.h presence... " >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <minix/config.h>
4247 _ACEOF
4248 if { (ac_try="$ac_cpp conftest.$ac_ext"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null && {
4262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 }; then
4265 ac_header_preproc=yes
4266 else
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_header_preproc=no
4273 rm -f conftest.err conftest.$ac_ext
4274 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4275 $as_echo "$ac_header_preproc" >&6; }
4277 # So? What about this header?
4278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4279 yes:no: )
4280 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4281 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4282 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4283 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4284 ac_header_preproc=yes
4286 no:yes:* )
4287 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4288 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4289 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4290 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4291 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4292 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4293 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4294 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4295 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4296 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4297 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4298 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4299 ( cat <<\_ASBOX
4300 ## -------------------------------------- ##
4301 ## Report this to http://bugs.python.org/ ##
4302 ## -------------------------------------- ##
4303 _ASBOX
4304 ) | sed "s/^/$as_me: WARNING: /" >&2
4306 esac
4307 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4308 $as_echo_n "checking for minix/config.h... " >&6; }
4309 if test "${ac_cv_header_minix_config_h+set}" = set; then
4310 $as_echo_n "(cached) " >&6
4311 else
4312 ac_cv_header_minix_config_h=$ac_header_preproc
4314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4315 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4318 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4319 MINIX=yes
4320 else
4321 MINIX=
4325 if test "$MINIX" = yes; then
4327 cat >>confdefs.h <<\_ACEOF
4328 #define _POSIX_SOURCE 1
4329 _ACEOF
4332 cat >>confdefs.h <<\_ACEOF
4333 #define _POSIX_1_SOURCE 2
4334 _ACEOF
4337 cat >>confdefs.h <<\_ACEOF
4338 #define _MINIX 1
4339 _ACEOF
4345 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4346 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4347 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4357 # define __EXTENSIONS__ 1
4358 $ac_includes_default
4360 main ()
4364 return 0;
4366 _ACEOF
4367 rm -f conftest.$ac_objext
4368 if { (ac_try="$ac_compile"
4369 case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4374 $as_echo "$ac_try_echo") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest.$ac_objext; then
4385 ac_cv_safe_to_define___extensions__=yes
4386 else
4387 $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_safe_to_define___extensions__=no
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4396 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4397 test $ac_cv_safe_to_define___extensions__ = yes &&
4398 cat >>confdefs.h <<\_ACEOF
4399 #define __EXTENSIONS__ 1
4400 _ACEOF
4402 cat >>confdefs.h <<\_ACEOF
4403 #define _ALL_SOURCE 1
4404 _ACEOF
4406 cat >>confdefs.h <<\_ACEOF
4407 #define _GNU_SOURCE 1
4408 _ACEOF
4410 cat >>confdefs.h <<\_ACEOF
4411 #define _POSIX_PTHREAD_SEMANTICS 1
4412 _ACEOF
4414 cat >>confdefs.h <<\_ACEOF
4415 #define _TANDEM_SOURCE 1
4416 _ACEOF
4420 # Check for unsupported systems
4421 case $ac_sys_system/$ac_sys_release in
4422 atheos*|Linux*/1*)
4423 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4424 echo See README for details.
4425 exit 1;;
4426 esac
4429 { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
4430 $as_echo_n "checking for --with-suffix... " >&6; }
4432 # Check whether --with-suffix was given.
4433 if test "${with_suffix+set}" = set; then
4434 withval=$with_suffix;
4435 case $withval in
4436 no) EXEEXT=;;
4437 yes) EXEEXT=.exe;;
4438 *) EXEEXT=$withval;;
4439 esac
4442 { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
4443 $as_echo "$EXEEXT" >&6; }
4445 # Test whether we're running on a non-case-sensitive system, in which
4446 # case we give a warning if no ext is given
4448 { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
4449 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4450 if test ! -d CaseSensitiveTestDir; then
4451 mkdir CaseSensitiveTestDir
4454 if test -d casesensitivetestdir
4455 then
4456 { $as_echo "$as_me:$LINENO: result: yes" >&5
4457 $as_echo "yes" >&6; }
4458 BUILDEXEEXT=.exe
4459 else
4460 { $as_echo "$as_me:$LINENO: result: no" >&5
4461 $as_echo "no" >&6; }
4462 BUILDEXEEXT=$EXEEXT
4464 rmdir CaseSensitiveTestDir
4466 case $MACHDEP in
4467 bsdos*)
4468 case $CC in
4469 gcc) CC="$CC -D_HAVE_BSDI";;
4470 esac;;
4471 esac
4473 case $ac_sys_system in
4474 hp*|HP*)
4475 case $CC in
4476 cc|*/cc) CC="$CC -Ae";;
4477 esac;;
4478 SunOS*)
4479 # Some functions have a prototype only with that define, e.g. confstr
4481 cat >>confdefs.h <<\_ACEOF
4482 #define __EXTENSIONS__ 1
4483 _ACEOF
4486 esac
4490 { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
4491 $as_echo_n "checking LIBRARY... " >&6; }
4492 if test -z "$LIBRARY"
4493 then
4494 LIBRARY='libpython$(VERSION).a'
4496 { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
4497 $as_echo "$LIBRARY" >&6; }
4499 # LDLIBRARY is the name of the library to link against (as opposed to the
4500 # name of the library into which to insert object files). BLDLIBRARY is also
4501 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4502 # is blank as the main program is not linked directly against LDLIBRARY.
4503 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4504 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4505 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4506 # DLLLIBRARY is the shared (i.e., DLL) library.
4508 # RUNSHARED is used to run shared python without installed libraries
4510 # INSTSONAME is the name of the shared library that will be use to install
4511 # on the system - some systems like version suffix, others don't
4518 LDLIBRARY="$LIBRARY"
4519 BLDLIBRARY='$(LDLIBRARY)'
4520 INSTSONAME='$(LDLIBRARY)'
4521 DLLLIBRARY=''
4522 LDLIBRARYDIR=''
4523 RUNSHARED=''
4525 # LINKCC is the command that links the python executable -- default is $(CC).
4526 # If CXX is set, and if it is needed to link a main function that was
4527 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4528 # python might then depend on the C++ runtime
4529 # This is altered for AIX in order to build the export list before
4530 # linking.
4532 { $as_echo "$as_me:$LINENO: checking LINKCC" >&5
4533 $as_echo_n "checking LINKCC... " >&6; }
4534 if test -z "$LINKCC"
4535 then
4536 LINKCC='$(PURIFY) $(MAINCC)'
4537 case $ac_sys_system in
4538 AIX*)
4539 exp_extra="\"\""
4540 if test $ac_sys_release -ge 5 -o \
4541 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4542 exp_extra="."
4544 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4545 QNX*)
4546 # qcc must be used because the other compilers do not
4547 # support -N.
4548 LINKCC=qcc;;
4549 esac
4551 { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
4552 $as_echo "$LINKCC" >&6; }
4554 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4555 # make sure we default having it set to "no": this is used by
4556 # distutils.unixccompiler to know if it should add --enable-new-dtags
4557 # to linker command lines, and failing to detect GNU ld simply results
4558 # in the same bahaviour as before.
4560 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4561 $as_echo_n "checking for GNU ld... " >&6; }
4562 ac_prog=ld
4563 if test "$GCC" = yes; then
4564 ac_prog=`$CC -print-prog-name=ld`
4566 case `"$ac_prog" -V 2>&1 < /dev/null` in
4567 *GNU*)
4568 GNULD=yes;;
4570 GNULD=no;;
4571 esac
4572 { $as_echo "$as_me:$LINENO: result: $GNULD" >&5
4573 $as_echo "$GNULD" >&6; }
4575 { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
4576 $as_echo_n "checking for --enable-shared... " >&6; }
4577 # Check whether --enable-shared was given.
4578 if test "${enable_shared+set}" = set; then
4579 enableval=$enable_shared;
4583 if test -z "$enable_shared"
4584 then
4585 case $ac_sys_system in
4586 CYGWIN* | atheos*)
4587 enable_shared="yes";;
4589 enable_shared="no";;
4590 esac
4592 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
4593 $as_echo "$enable_shared" >&6; }
4595 { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4596 $as_echo_n "checking for --enable-profiling... " >&6; }
4597 # Check whether --enable-profiling was given.
4598 if test "${enable_profiling+set}" = set; then
4599 enableval=$enable_profiling; ac_save_cc="$CC"
4600 CC="$CC -pg"
4601 if test "$cross_compiling" = yes; then
4602 ac_enable_profiling="no"
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 int main() { return 0; }
4611 _ACEOF
4612 rm -f conftest$ac_exeext
4613 if { (ac_try="$ac_link"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4619 $as_echo "$ac_try_echo") >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4624 { (case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_try") 2>&5
4631 ac_status=$?
4632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_enable_profiling="yes"
4635 else
4636 $as_echo "$as_me: program exited with status $ac_status" >&5
4637 $as_echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 ( exit $ac_status )
4641 ac_enable_profiling="no"
4643 rm -rf conftest.dSYM
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4648 CC="$ac_save_cc"
4651 { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4652 $as_echo "$ac_enable_profiling" >&6; }
4654 case "$ac_enable_profiling" in
4655 "yes")
4656 BASECFLAGS="-pg $BASECFLAGS"
4657 LDFLAGS="-pg $LDFLAGS"
4659 esac
4661 { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4662 $as_echo_n "checking LDLIBRARY... " >&6; }
4664 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4665 # library that we build, but we do not want to link against it (we
4666 # will find it with a -framework option). For this reason there is an
4667 # extra variable BLDLIBRARY against which Python and the extension
4668 # modules are linked, BLDLIBRARY. This is normally the same as
4669 # LDLIBRARY, but empty for MacOSX framework builds.
4670 if test "$enable_framework"
4671 then
4672 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4673 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4674 BLDLIBRARY=''
4675 else
4676 BLDLIBRARY='$(LDLIBRARY)'
4679 # Other platforms follow
4680 if test $enable_shared = "yes"; then
4682 cat >>confdefs.h <<\_ACEOF
4683 #define Py_ENABLE_SHARED 1
4684 _ACEOF
4686 case $ac_sys_system in
4687 CYGWIN*)
4688 LDLIBRARY='libpython$(VERSION).dll.a'
4689 DLLLIBRARY='libpython$(VERSION).dll'
4691 SunOS*)
4692 LDLIBRARY='libpython$(VERSION).so'
4693 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4694 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4695 INSTSONAME="$LDLIBRARY".$SOVERSION
4697 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4698 LDLIBRARY='libpython$(VERSION).so'
4699 BLDLIBRARY='-L. -lpython$(VERSION)'
4700 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4701 case $ac_sys_system in
4702 FreeBSD*)
4703 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4705 esac
4706 INSTSONAME="$LDLIBRARY".$SOVERSION
4708 hp*|HP*)
4709 case `uname -m` in
4710 ia64)
4711 LDLIBRARY='libpython$(VERSION).so'
4714 LDLIBRARY='libpython$(VERSION).sl'
4716 esac
4717 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4718 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4720 OSF*)
4721 LDLIBRARY='libpython$(VERSION).so'
4722 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4723 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4725 atheos*)
4726 LDLIBRARY='libpython$(VERSION).so'
4727 BLDLIBRARY='-L. -lpython$(VERSION)'
4728 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4730 Darwin*)
4731 LDLIBRARY='libpython$(VERSION).dylib'
4732 BLDLIBRARY='-L. -lpython$(VERSION)'
4733 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4736 esac
4737 else # shared is disabled
4738 case $ac_sys_system in
4739 CYGWIN*)
4740 BLDLIBRARY='$(LIBRARY)'
4741 LDLIBRARY='libpython$(VERSION).dll.a'
4743 esac
4746 { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4747 $as_echo "$LDLIBRARY" >&6; }
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_RANLIB+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$RANLIB"; then
4758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4773 IFS=$as_save_IFS
4777 RANLIB=$ac_cv_prog_RANLIB
4778 if test -n "$RANLIB"; then
4779 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4780 $as_echo "$RANLIB" >&6; }
4781 else
4782 { $as_echo "$as_me:$LINENO: result: no" >&5
4783 $as_echo "no" >&6; }
4788 if test -z "$ac_cv_prog_RANLIB"; then
4789 ac_ct_RANLIB=$RANLIB
4790 # Extract the first word of "ranlib", so it can be a program name with args.
4791 set dummy ranlib; ac_word=$2
4792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$ac_ct_RANLIB"; then
4798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_ac_ct_RANLIB="ranlib"
4808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4818 if test -n "$ac_ct_RANLIB"; then
4819 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4820 $as_echo "$ac_ct_RANLIB" >&6; }
4821 else
4822 { $as_echo "$as_me:$LINENO: result: no" >&5
4823 $as_echo "no" >&6; }
4826 if test "x$ac_ct_RANLIB" = x; then
4827 RANLIB=":"
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 RANLIB=$ac_ct_RANLIB
4837 else
4838 RANLIB="$ac_cv_prog_RANLIB"
4842 for ac_prog in ar aal
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_prog_AR+set}" = set; then
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$AR"; then
4852 ac_cv_prog_AR="$AR" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_AR="$ac_prog"
4862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4867 IFS=$as_save_IFS
4871 AR=$ac_cv_prog_AR
4872 if test -n "$AR"; then
4873 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4874 $as_echo "$AR" >&6; }
4875 else
4876 { $as_echo "$as_me:$LINENO: result: no" >&5
4877 $as_echo "no" >&6; }
4881 test -n "$AR" && break
4882 done
4883 test -n "$AR" || AR="ar"
4886 # tweak ARFLAGS only if the user didn't set it on the command line
4888 if test -z "$ARFLAGS"
4889 then
4890 ARFLAGS="rc"
4894 # Extract the first word of "svnversion", so it can be a program name with args.
4895 set dummy svnversion; ac_word=$2
4896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$SVNVERSION"; then
4902 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_SVNVERSION="found"
4912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4919 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4922 SVNVERSION=$ac_cv_prog_SVNVERSION
4923 if test -n "$SVNVERSION"; then
4924 { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4925 $as_echo "$SVNVERSION" >&6; }
4926 else
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4932 if test $SVNVERSION = found
4933 then
4934 SVNVERSION="svnversion \$(srcdir)"
4935 else
4936 SVNVERSION="echo Unversioned directory"
4939 case $MACHDEP in
4940 bsdos*|hp*|HP*)
4941 # install -d does not work on BSDI or HP-UX
4942 if test -z "$INSTALL"
4943 then
4944 INSTALL="${srcdir}/install-sh -c"
4946 esac
4947 ac_aux_dir=
4948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4949 if test -f "$ac_dir/install-sh"; then
4950 ac_aux_dir=$ac_dir
4951 ac_install_sh="$ac_aux_dir/install-sh -c"
4952 break
4953 elif test -f "$ac_dir/install.sh"; then
4954 ac_aux_dir=$ac_dir
4955 ac_install_sh="$ac_aux_dir/install.sh -c"
4956 break
4957 elif test -f "$ac_dir/shtool"; then
4958 ac_aux_dir=$ac_dir
4959 ac_install_sh="$ac_aux_dir/shtool install -c"
4960 break
4962 done
4963 if test -z "$ac_aux_dir"; then
4964 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4965 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4966 { (exit 1); exit 1; }; }
4969 # These three variables are undocumented and unsupported,
4970 # and are intended to be withdrawn in a future Autoconf release.
4971 # They can cause serious problems if a builder's source tree is in a directory
4972 # whose full name contains unusual characters.
4973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4978 # Find a good install program. We prefer a C program (faster),
4979 # so one script is as good as another. But avoid the broken or
4980 # incompatible versions:
4981 # SysV /etc/install, /usr/sbin/install
4982 # SunOS /usr/etc/install
4983 # IRIX /sbin/install
4984 # AIX /bin/install
4985 # AmigaOS /C/install, which installs bootblocks on floppy discs
4986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4989 # OS/2's system install, which has a completely different semantic
4990 # ./install, which can be erroneously created by make from ./install.sh.
4991 # Reject install programs that cannot install multiple files.
4992 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4993 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4994 if test -z "$INSTALL"; then
4995 if test "${ac_cv_path_install+set}" = set; then
4996 $as_echo_n "(cached) " >&6
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 # Account for people who put trailing slashes in PATH elements.
5004 case $as_dir/ in
5005 ./ | .// | /cC/* | \
5006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5008 /usr/ucb/* ) ;;
5010 # OSF1 and SCO ODT 3.0 have their own names for install.
5011 # Don't use installbsd from OSF since it installs stuff as root
5012 # by default.
5013 for ac_prog in ginstall scoinst install; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5016 if test $ac_prog = install &&
5017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5018 # AIX install. It has an incompatible calling convention.
5020 elif test $ac_prog = install &&
5021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5022 # program-specific install script used by HP pwplus--don't use.
5024 else
5025 rm -rf conftest.one conftest.two conftest.dir
5026 echo one > conftest.one
5027 echo two > conftest.two
5028 mkdir conftest.dir
5029 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5030 test -s conftest.one && test -s conftest.two &&
5031 test -s conftest.dir/conftest.one &&
5032 test -s conftest.dir/conftest.two
5033 then
5034 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5035 break 3
5039 done
5040 done
5042 esac
5044 done
5045 IFS=$as_save_IFS
5047 rm -rf conftest.one conftest.two conftest.dir
5050 if test "${ac_cv_path_install+set}" = set; then
5051 INSTALL=$ac_cv_path_install
5052 else
5053 # As a last resort, use the slow shell script. Don't cache a
5054 # value for INSTALL within a source directory, because that will
5055 # break other packages using the cache if that directory is
5056 # removed, or if the value is a relative name.
5057 INSTALL=$ac_install_sh
5060 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5061 $as_echo "$INSTALL" >&6; }
5063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5064 # It thinks the first close brace ends the variable substitution.
5065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5067 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5069 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5072 # Not every filesystem supports hard links
5074 if test -z "$LN" ; then
5075 case $ac_sys_system in
5076 CYGWIN*) LN="ln -s";;
5077 atheos*) LN="ln -s";;
5078 *) LN=ln;;
5079 esac
5082 # Check for --with-pydebug
5083 { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5084 $as_echo_n "checking for --with-pydebug... " >&6; }
5086 # Check whether --with-pydebug was given.
5087 if test "${with_pydebug+set}" = set; then
5088 withval=$with_pydebug;
5089 if test "$withval" != no
5090 then
5092 cat >>confdefs.h <<\_ACEOF
5093 #define Py_DEBUG 1
5094 _ACEOF
5096 { $as_echo "$as_me:$LINENO: result: yes" >&5
5097 $as_echo "yes" >&6; };
5098 Py_DEBUG='true'
5099 else { $as_echo "$as_me:$LINENO: result: no" >&5
5100 $as_echo "no" >&6; }; Py_DEBUG='false'
5102 else
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5108 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5109 # merged with this chunk of code?
5111 # Optimizer/debugger flags
5112 # ------------------------
5113 # (The following bit of code is complicated enough - please keep things
5114 # indented properly. Just pretend you're editing Python code. ;-)
5116 # There are two parallel sets of case statements below, one that checks to
5117 # see if OPT was set and one that does BASECFLAGS setting based upon
5118 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5119 # user set OPT.
5121 # tweak OPT based on compiler and platform, only if the user didn't set
5122 # it on the command line
5124 if test "${OPT-unset}" = "unset"
5125 then
5126 case $GCC in
5127 yes)
5128 if test "$CC" != 'g++' ; then
5129 STRICT_PROTO="-Wstrict-prototypes"
5131 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5132 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5133 WRAP="-fwrapv"
5135 case $ac_cv_prog_cc_g in
5136 yes)
5137 if test "$Py_DEBUG" = 'true' ; then
5138 # Optimization messes up debuggers, so turn it off for
5139 # debug builds.
5140 OPT="-g -Wall $STRICT_PROTO"
5141 else
5142 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5146 OPT="-O3 -Wall $STRICT_PROTO"
5148 esac
5149 case $ac_sys_system in
5150 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5152 esac
5156 OPT="-O"
5158 esac
5163 # The -arch flags for universal builds on OSX
5164 UNIVERSAL_ARCH_FLAGS=
5167 # tweak BASECFLAGS based on compiler and platform
5168 case $GCC in
5169 yes)
5170 # Python violates C99 rules, by casting between incompatible
5171 # pointer types. GCC may generate bad code as a result of that,
5172 # so use -fno-strict-aliasing if supported.
5173 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5174 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5175 ac_save_cc="$CC"
5176 CC="$CC -fno-strict-aliasing"
5177 if test "$cross_compiling" = yes; then
5178 ac_cv_no_strict_aliasing_ok=no
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 int main() { return 0; }
5187 _ACEOF
5188 rm -f conftest$ac_exeext
5189 if { (ac_try="$ac_link"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5195 $as_echo "$ac_try_echo") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_try") 2>&5
5207 ac_status=$?
5208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_no_strict_aliasing_ok=yes
5211 else
5212 $as_echo "$as_me: program exited with status $ac_status" >&5
5213 $as_echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 ( exit $ac_status )
5217 ac_cv_no_strict_aliasing_ok=no
5219 rm -rf conftest.dSYM
5220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5224 CC="$ac_save_cc"
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5226 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5227 if test $ac_cv_no_strict_aliasing_ok = yes
5228 then
5229 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5232 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5233 # support. Without this, treatment of subnormals doesn't follow
5234 # the standard.
5235 case $ac_sys_machine in
5236 alpha*)
5237 BASECFLAGS="$BASECFLAGS -mieee"
5239 esac
5241 case $ac_sys_system in
5242 SCO_SV*)
5243 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5245 # is there any other compiler on Darwin besides gcc?
5246 Darwin*)
5247 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5248 # used to be here, but non-Apple gcc doesn't accept them.
5249 if test "${CC}" = gcc
5250 then
5251 { $as_echo "$as_me:$LINENO: checking which compiler should be used" >&5
5252 $as_echo_n "checking which compiler should be used... " >&6; }
5253 case "${UNIVERSALSDK}" in
5254 */MacOSX10.4u.sdk)
5255 # Build using 10.4 SDK, force usage of gcc when the
5256 # compiler is gcc, otherwise the user will get very
5257 # confusing error messages when building on OSX 10.6
5258 CC=gcc-4.0
5259 CPP=cpp-4.0
5261 esac
5262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5263 $as_echo "$CC" >&6; }
5267 if test "${enable_universalsdk}"; then
5268 UNIVERSAL_ARCH_FLAGS=""
5269 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5270 ARCH_RUN_32BIT=""
5271 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5273 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5274 ARCH_RUN_32BIT="true"
5275 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5277 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5278 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5279 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5280 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5281 LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
5283 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
5284 ARCH_RUN_32BIT="/usr/bin/arch -i386"
5285 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
5286 LIPO_32BIT_FLAGS="-extract i386"
5287 LIPO_64BIT_FLAGS="-extract x86_64"
5289 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
5290 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5291 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
5292 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5293 LIPO_64BIT_FLAGS="-extract x86_64"
5295 else
5296 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
5297 $as_echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
5298 { (exit 1); exit 1; }; }
5303 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5304 if test "${UNIVERSALSDK}" != "/"
5305 then
5306 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5307 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5308 CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
5312 # Calculate the right deployment target for this build.
5314 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5315 if test ${cur_target} '>' 10.2; then
5316 cur_target=10.3
5317 if test ${enable_universalsdk}; then
5318 if test "${UNIVERSAL_ARCHS}" = "all"; then
5319 # Ensure that the default platform for a
5320 # 4-way universal build is OSX 10.5,
5321 # that's the first OS release where
5322 # 4-way builds make sense.
5323 cur_target='10.5'
5325 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
5326 cur_target='10.5'
5328 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
5329 cur_target='10.5'
5331 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
5332 cur_target='10.5'
5334 else
5335 if test `/usr/bin/arch` = "i386"; then
5336 # On Intel macs default to a deployment
5337 # target of 10.4, that's the first OSX
5338 # release with Intel support.
5339 cur_target="10.4"
5343 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5345 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5346 # environment with a value that is the same as what we'll use
5347 # in the Makefile to ensure that we'll get the same compiler
5348 # environment during configure and build time.
5349 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5350 export MACOSX_DEPLOYMENT_TARGET
5351 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5354 OSF*)
5355 BASECFLAGS="$BASECFLAGS -mieee"
5357 esac
5361 case $ac_sys_system in
5362 OpenUNIX*|UnixWare*)
5363 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5365 OSF*)
5366 BASECFLAGS="$BASECFLAGS -ieee -std"
5368 SCO_SV*)
5369 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5371 esac
5373 esac
5375 if test "$Py_DEBUG" = 'true'; then
5377 else
5378 OPT="-DNDEBUG $OPT"
5381 if test "$ac_arch_flags"
5382 then
5383 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5386 # disable check for icc since it seems to pass, but generates a warning
5387 if test "$CC" = icc
5388 then
5389 ac_cv_opt_olimit_ok=no
5392 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5393 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5394 if test "${ac_cv_opt_olimit_ok+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5396 else
5397 ac_save_cc="$CC"
5398 CC="$CC -OPT:Olimit=0"
5399 if test "$cross_compiling" = yes; then
5400 ac_cv_opt_olimit_ok=no
5401 else
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 int main() { return 0; }
5409 _ACEOF
5410 rm -f conftest$ac_exeext
5411 if { (ac_try="$ac_link"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5417 $as_echo "$ac_try_echo") >&5
5418 (eval "$ac_link") 2>&5
5419 ac_status=$?
5420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425 esac
5426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427 $as_echo "$ac_try_echo") >&5
5428 (eval "$ac_try") 2>&5
5429 ac_status=$?
5430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_opt_olimit_ok=yes
5433 else
5434 $as_echo "$as_me: program exited with status $ac_status" >&5
5435 $as_echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 ( exit $ac_status )
5439 ac_cv_opt_olimit_ok=no
5441 rm -rf conftest.dSYM
5442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446 CC="$ac_save_cc"
5449 { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5450 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5451 if test $ac_cv_opt_olimit_ok = yes; then
5452 case $ac_sys_system in
5453 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5454 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5455 # environment?
5456 Darwin*)
5459 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5461 esac
5462 else
5463 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5464 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5465 if test "${ac_cv_olimit_ok+set}" = set; then
5466 $as_echo_n "(cached) " >&6
5467 else
5468 ac_save_cc="$CC"
5469 CC="$CC -Olimit 1500"
5470 if test "$cross_compiling" = yes; then
5471 ac_cv_olimit_ok=no
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 int main() { return 0; }
5480 _ACEOF
5481 rm -f conftest$ac_exeext
5482 if { (ac_try="$ac_link"
5483 case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486 esac
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489 (eval "$ac_link") 2>&5
5490 ac_status=$?
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5493 { (case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496 esac
5497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5498 $as_echo "$ac_try_echo") >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_olimit_ok=yes
5504 else
5505 $as_echo "$as_me: program exited with status $ac_status" >&5
5506 $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ( exit $ac_status )
5510 ac_cv_olimit_ok=no
5512 rm -rf conftest.dSYM
5513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 CC="$ac_save_cc"
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5521 $as_echo "$ac_cv_olimit_ok" >&6; }
5522 if test $ac_cv_olimit_ok = yes; then
5523 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5527 # Check whether GCC supports PyArg_ParseTuple format
5528 if test "$GCC" = "yes"
5529 then
5530 { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
5531 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5532 save_CFLAGS=$CFLAGS
5533 CFLAGS="$CFLAGS -Werror"
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5541 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5544 main ()
5548 return 0;
5550 _ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (ac_try="$ac_compile"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5558 $as_echo "$ac_try_echo") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5570 cat >>confdefs.h <<\_ACEOF
5571 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
5572 _ACEOF
5574 { $as_echo "$as_me:$LINENO: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 else
5577 $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 { $as_echo "$as_me:$LINENO: result: no" >&5
5581 $as_echo "no" >&6; }
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 CFLAGS=$save_CFLAGS
5589 # On some compilers, pthreads are available without further options
5590 # (e.g. MacOS X). On some of these systems, the compiler will not
5591 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5592 # So we have to see first whether pthreads are available without
5593 # options before we can check whether -Kpthread improves anything.
5594 { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5595 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5596 if test "${ac_cv_pthread_is_default+set}" = set; then
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test "$cross_compiling" = yes; then
5600 ac_cv_pthread_is_default=no
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 #include <pthread.h>
5611 void* routine(void* p){return NULL;}
5613 int main(){
5614 pthread_t p;
5615 if(pthread_create(&p,NULL,routine,NULL)!=0)
5616 return 1;
5617 (void)pthread_detach(p);
5618 return 0;
5621 _ACEOF
5622 rm -f conftest$ac_exeext
5623 if { (ac_try="$ac_link"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_link") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5634 { (case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5639 $as_echo "$ac_try_echo") >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5645 ac_cv_pthread_is_default=yes
5646 ac_cv_kthread=no
5647 ac_cv_pthread=no
5649 else
5650 $as_echo "$as_me: program exited with status $ac_status" >&5
5651 $as_echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ( exit $ac_status )
5655 ac_cv_pthread_is_default=no
5657 rm -rf conftest.dSYM
5658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5665 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5666 $as_echo "$ac_cv_pthread_is_default" >&6; }
5669 if test $ac_cv_pthread_is_default = yes
5670 then
5671 ac_cv_kpthread=no
5672 else
5673 # -Kpthread, if available, provides the right #defines
5674 # and linker options to make pthread_create available
5675 # Some compilers won't report that they do not support -Kpthread,
5676 # so we need to run a program to see whether it really made the
5677 # function available.
5678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5679 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5680 if test "${ac_cv_kpthread+set}" = set; then
5681 $as_echo_n "(cached) " >&6
5682 else
5683 ac_save_cc="$CC"
5684 CC="$CC -Kpthread"
5685 if test "$cross_compiling" = yes; then
5686 ac_cv_kpthread=no
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5695 #include <pthread.h>
5697 void* routine(void* p){return NULL;}
5699 int main(){
5700 pthread_t p;
5701 if(pthread_create(&p,NULL,routine,NULL)!=0)
5702 return 1;
5703 (void)pthread_detach(p);
5704 return 0;
5707 _ACEOF
5708 rm -f conftest$ac_exeext
5709 if { (ac_try="$ac_link"
5710 case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715 $as_echo "$ac_try_echo") >&5
5716 (eval "$ac_link") 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5720 { (case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_try") 2>&5
5727 ac_status=$?
5728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_kpthread=yes
5731 else
5732 $as_echo "$as_me: program exited with status $ac_status" >&5
5733 $as_echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5736 ( exit $ac_status )
5737 ac_cv_kpthread=no
5739 rm -rf conftest.dSYM
5740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5744 CC="$ac_save_cc"
5747 { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5748 $as_echo "$ac_cv_kpthread" >&6; }
5751 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5752 then
5753 # -Kthread, if available, provides the right #defines
5754 # and linker options to make pthread_create available
5755 # Some compilers won't report that they do not support -Kthread,
5756 # so we need to run a program to see whether it really made the
5757 # function available.
5758 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5759 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5760 if test "${ac_cv_kthread+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5762 else
5763 ac_save_cc="$CC"
5764 CC="$CC -Kthread"
5765 if test "$cross_compiling" = yes; then
5766 ac_cv_kthread=no
5767 else
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #include <pthread.h>
5777 void* routine(void* p){return NULL;}
5779 int main(){
5780 pthread_t p;
5781 if(pthread_create(&p,NULL,routine,NULL)!=0)
5782 return 1;
5783 (void)pthread_detach(p);
5784 return 0;
5787 _ACEOF
5788 rm -f conftest$ac_exeext
5789 if { (ac_try="$ac_link"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796 (eval "$ac_link") 2>&5
5797 ac_status=$?
5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_try") 2>&5
5807 ac_status=$?
5808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_kthread=yes
5811 else
5812 $as_echo "$as_me: program exited with status $ac_status" >&5
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ( exit $ac_status )
5817 ac_cv_kthread=no
5819 rm -rf conftest.dSYM
5820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5824 CC="$ac_save_cc"
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5828 $as_echo "$ac_cv_kthread" >&6; }
5831 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5832 then
5833 # -pthread, if available, provides the right #defines
5834 # and linker options to make pthread_create available
5835 # Some compilers won't report that they do not support -pthread,
5836 # so we need to run a program to see whether it really made the
5837 # function available.
5838 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5839 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5840 if test "${ac_cv_thread+set}" = set; then
5841 $as_echo_n "(cached) " >&6
5842 else
5843 ac_save_cc="$CC"
5844 CC="$CC -pthread"
5845 if test "$cross_compiling" = yes; then
5846 ac_cv_pthread=no
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 #include <pthread.h>
5857 void* routine(void* p){return NULL;}
5859 int main(){
5860 pthread_t p;
5861 if(pthread_create(&p,NULL,routine,NULL)!=0)
5862 return 1;
5863 (void)pthread_detach(p);
5864 return 0;
5867 _ACEOF
5868 rm -f conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5875 $as_echo "$ac_try_echo") >&5
5876 (eval "$ac_link") 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5880 { (case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_try") 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_cv_pthread=yes
5891 else
5892 $as_echo "$as_me: program exited with status $ac_status" >&5
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ( exit $ac_status )
5897 ac_cv_pthread=no
5899 rm -rf conftest.dSYM
5900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5904 CC="$ac_save_cc"
5907 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5908 $as_echo "$ac_cv_pthread" >&6; }
5911 # If we have set a CC compiler flag for thread support then
5912 # check if it works for CXX, too.
5913 ac_cv_cxx_thread=no
5914 if test ! -z "$CXX"
5915 then
5916 { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5917 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5918 ac_save_cxx="$CXX"
5920 if test "$ac_cv_kpthread" = "yes"
5921 then
5922 CXX="$CXX -Kpthread"
5923 ac_cv_cxx_thread=yes
5924 elif test "$ac_cv_kthread" = "yes"
5925 then
5926 CXX="$CXX -Kthread"
5927 ac_cv_cxx_thread=yes
5928 elif test "$ac_cv_pthread" = "yes"
5929 then
5930 CXX="$CXX -pthread"
5931 ac_cv_cxx_thread=yes
5934 if test $ac_cv_cxx_thread = yes
5935 then
5936 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5937 $CXX -c conftest.$ac_ext 2>&5
5938 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5939 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5940 then
5941 ac_cv_cxx_thread=yes
5942 else
5943 ac_cv_cxx_thread=no
5945 rm -fr conftest*
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5948 $as_echo "$ac_cv_cxx_thread" >&6; }
5950 CXX="$ac_save_cxx"
5953 # checks for header files
5954 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5955 $as_echo_n "checking for ANSI C header files... " >&6; }
5956 if test "${ac_cv_header_stdc+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h. */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #include <stdlib.h>
5966 #include <stdarg.h>
5967 #include <string.h>
5968 #include <float.h>
5971 main ()
5975 return 0;
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5980 case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983 esac
5984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985 $as_echo "$ac_try_echo") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest.$ac_objext; then
5996 ac_cv_header_stdc=yes
5997 else
5998 $as_echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_header_stdc=no
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 if test $ac_cv_header_stdc = yes; then
6007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <string.h>
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "memchr" >/dev/null 2>&1; then
6020 else
6021 ac_cv_header_stdc=no
6023 rm -f conftest*
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <stdlib.h>
6037 _ACEOF
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 $EGREP "free" >/dev/null 2>&1; then
6041 else
6042 ac_cv_header_stdc=no
6044 rm -f conftest*
6048 if test $ac_cv_header_stdc = yes; then
6049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6050 if test "$cross_compiling" = yes; then
6052 else
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <ctype.h>
6060 #include <stdlib.h>
6061 #if ((' ' & 0x0FF) == 0x020)
6062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6064 #else
6065 # define ISLOWER(c) \
6066 (('a' <= (c) && (c) <= 'i') \
6067 || ('j' <= (c) && (c) <= 'r') \
6068 || ('s' <= (c) && (c) <= 'z'))
6069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6070 #endif
6072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6074 main ()
6076 int i;
6077 for (i = 0; i < 256; i++)
6078 if (XOR (islower (i), ISLOWER (i))
6079 || toupper (i) != TOUPPER (i))
6080 return 2;
6081 return 0;
6083 _ACEOF
6084 rm -f conftest$ac_exeext
6085 if { (ac_try="$ac_link"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_link") 2>&5
6093 ac_status=$?
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6096 { (case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101 $as_echo "$ac_try_echo") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6107 else
6108 $as_echo "$as_me: program exited with status $ac_status" >&5
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ( exit $ac_status )
6113 ac_cv_header_stdc=no
6115 rm -rf conftest.dSYM
6116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6123 $as_echo "$ac_cv_header_stdc" >&6; }
6124 if test $ac_cv_header_stdc = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define STDC_HEADERS 1
6128 _ACEOF
6186 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6187 fcntl.h grp.h \
6188 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6189 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6190 unistd.h utime.h \
6191 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6192 sys/lock.h sys/mkdev.h sys/modem.h \
6193 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6194 sys/termio.h sys/time.h \
6195 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6196 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6197 bluetooth/bluetooth.h linux/tipc.h
6199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 $as_echo_n "checking for $ac_header... " >&6; }
6203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6204 $as_echo_n "(cached) " >&6
6206 ac_res=`eval 'as_val=${'$as_ac_Header'}
6207 $as_echo "$as_val"'`
6208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6209 $as_echo "$ac_res" >&6; }
6210 else
6211 # Is the header compilable?
6212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 $as_echo_n "checking $ac_header usability... " >&6; }
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6221 #include <$ac_header>
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 ac_header_compiler=yes
6242 else
6243 $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_header_compiler=no
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 $as_echo "$ac_header_compiler" >&6; }
6253 # Is the header present?
6254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255 $as_echo_n "checking $ac_header presence... " >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <$ac_header>
6263 _ACEOF
6264 if { (ac_try="$ac_cpp conftest.$ac_ext"
6265 case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270 $as_echo "$ac_try_echo") >&5
6271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null && {
6278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6280 }; then
6281 ac_header_preproc=yes
6282 else
6283 $as_echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_header_preproc=no
6289 rm -f conftest.err conftest.$ac_ext
6290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6291 $as_echo "$ac_header_preproc" >&6; }
6293 # So? What about this header?
6294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6295 yes:no: )
6296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6300 ac_header_preproc=yes
6302 no:yes:* )
6303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6306 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6310 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6315 ( cat <<\_ASBOX
6316 ## -------------------------------------- ##
6317 ## Report this to http://bugs.python.org/ ##
6318 ## -------------------------------------- ##
6319 _ASBOX
6320 ) | sed "s/^/$as_me: WARNING: /" >&2
6322 esac
6323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 $as_echo_n "checking for $ac_header... " >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 $as_echo_n "(cached) " >&6
6327 else
6328 eval "$as_ac_Header=\$ac_header_preproc"
6330 ac_res=`eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'`
6332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6336 as_val=`eval 'as_val=${'$as_ac_Header'}
6337 $as_echo "$as_val"'`
6338 if test "x$as_val" = x""yes; then
6339 cat >>confdefs.h <<_ACEOF
6340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6341 _ACEOF
6345 done
6352 ac_header_dirent=no
6353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6354 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6355 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6356 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <$ac_hdr>
6370 main ()
6372 if ((DIR *) 0)
6373 return 0;
6375 return 0;
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 eval "$as_ac_Header=yes"
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 eval "$as_ac_Header=no"
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ac_res=`eval 'as_val=${'$as_ac_Header'}
6407 $as_echo "$as_val"'`
6408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 as_val=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 if test "x$as_val" = x""yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6415 _ACEOF
6417 ac_header_dirent=$ac_hdr; break
6420 done
6421 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6422 if test $ac_header_dirent = dirent.h; then
6423 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6424 $as_echo_n "checking for library containing opendir... " >&6; }
6425 if test "${ac_cv_search_opendir+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427 else
6428 ac_func_search_save_LIBS=$LIBS
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6436 /* Override any GCC internal prototype to avoid an error.
6437 Use char because int might match the return type of a GCC
6438 builtin and then its argument prototype would still apply. */
6439 #ifdef __cplusplus
6440 extern "C"
6441 #endif
6442 char opendir ();
6444 main ()
6446 return opendir ();
6448 return 0;
6450 _ACEOF
6451 for ac_lib in '' dir; do
6452 if test -z "$ac_lib"; then
6453 ac_res="none required"
6454 else
6455 ac_res=-l$ac_lib
6456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (ac_try="$ac_link"
6460 case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463 esac
6464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6465 $as_echo "$ac_try_echo") >&5
6466 (eval "$ac_link") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest$ac_exeext && {
6476 test "$cross_compiling" = yes ||
6477 $as_test_x conftest$ac_exeext
6478 }; then
6479 ac_cv_search_opendir=$ac_res
6480 else
6481 $as_echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6487 rm -rf conftest.dSYM
6488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6489 conftest$ac_exeext
6490 if test "${ac_cv_search_opendir+set}" = set; then
6491 break
6493 done
6494 if test "${ac_cv_search_opendir+set}" = set; then
6496 else
6497 ac_cv_search_opendir=no
6499 rm conftest.$ac_ext
6500 LIBS=$ac_func_search_save_LIBS
6502 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6503 $as_echo "$ac_cv_search_opendir" >&6; }
6504 ac_res=$ac_cv_search_opendir
6505 if test "$ac_res" != no; then
6506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6510 else
6511 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6512 $as_echo_n "checking for library containing opendir... " >&6; }
6513 if test "${ac_cv_search_opendir+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515 else
6516 ac_func_search_save_LIBS=$LIBS
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. */
6524 /* Override any GCC internal prototype to avoid an error.
6525 Use char because int might match the return type of a GCC
6526 builtin and then its argument prototype would still apply. */
6527 #ifdef __cplusplus
6528 extern "C"
6529 #endif
6530 char opendir ();
6532 main ()
6534 return opendir ();
6536 return 0;
6538 _ACEOF
6539 for ac_lib in '' x; do
6540 if test -z "$ac_lib"; then
6541 ac_res="none required"
6542 else
6543 ac_res=-l$ac_lib
6544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6546 rm -f conftest.$ac_objext conftest$ac_exeext
6547 if { (ac_try="$ac_link"
6548 case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551 esac
6552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6553 $as_echo "$ac_try_echo") >&5
6554 (eval "$ac_link") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest$ac_exeext && {
6564 test "$cross_compiling" = yes ||
6565 $as_test_x conftest$ac_exeext
6566 }; then
6567 ac_cv_search_opendir=$ac_res
6568 else
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -rf conftest.dSYM
6576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577 conftest$ac_exeext
6578 if test "${ac_cv_search_opendir+set}" = set; then
6579 break
6581 done
6582 if test "${ac_cv_search_opendir+set}" = set; then
6584 else
6585 ac_cv_search_opendir=no
6587 rm conftest.$ac_ext
6588 LIBS=$ac_func_search_save_LIBS
6590 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6591 $as_echo "$ac_cv_search_opendir" >&6; }
6592 ac_res=$ac_cv_search_opendir
6593 if test "$ac_res" != no; then
6594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6600 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6601 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6602 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6604 else
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/types.h>
6613 main ()
6615 return makedev(0, 0);
6617 return 0;
6619 _ACEOF
6620 rm -f conftest.$ac_objext conftest$ac_exeext
6621 if { (ac_try="$ac_link"
6622 case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627 $as_echo "$ac_try_echo") >&5
6628 (eval "$ac_link") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest$ac_exeext && {
6638 test "$cross_compiling" = yes ||
6639 $as_test_x conftest$ac_exeext
6640 }; then
6641 ac_cv_header_sys_types_h_makedev=yes
6642 else
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_header_sys_types_h_makedev=no
6649 rm -rf conftest.dSYM
6650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6651 conftest$ac_exeext conftest.$ac_ext
6654 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6655 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6657 if test $ac_cv_header_sys_types_h_makedev = no; then
6658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6659 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6660 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6661 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6665 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6666 else
6667 # Is the header compilable?
6668 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6669 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 $ac_includes_default
6677 #include <sys/mkdev.h>
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (ac_try="$ac_compile"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6697 ac_header_compiler=yes
6698 else
6699 $as_echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_header_compiler=no
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6707 $as_echo "$ac_header_compiler" >&6; }
6709 # Is the header present?
6710 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6711 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <sys/mkdev.h>
6719 _ACEOF
6720 if { (ac_try="$ac_cpp conftest.$ac_ext"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev/null && {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 }; then
6737 ac_header_preproc=yes
6738 else
6739 $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_header_preproc=no
6745 rm -f conftest.err conftest.$ac_ext
6746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747 $as_echo "$ac_header_preproc" >&6; }
6749 # So? What about this header?
6750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6751 yes:no: )
6752 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6753 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6755 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6756 ac_header_preproc=yes
6758 no:yes:* )
6759 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6760 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6761 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6762 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6763 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6764 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6765 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6766 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6767 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6768 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6769 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6770 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6771 ( cat <<\_ASBOX
6772 ## -------------------------------------- ##
6773 ## Report this to http://bugs.python.org/ ##
6774 ## -------------------------------------- ##
6775 _ASBOX
6776 ) | sed "s/^/$as_me: WARNING: /" >&2
6778 esac
6779 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6780 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6781 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6782 $as_echo_n "(cached) " >&6
6783 else
6784 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6787 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6790 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define MAJOR_IN_MKDEV 1
6794 _ACEOF
6800 if test $ac_cv_header_sys_mkdev_h = no; then
6801 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6802 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6803 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6804 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6805 $as_echo_n "(cached) " >&6
6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6808 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6809 else
6810 # Is the header compilable?
6811 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6812 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 #include <sys/sysmacros.h>
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6829 $as_echo "$ac_try_echo") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_header_compiler=yes
6841 else
6842 $as_echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_header_compiler=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6850 $as_echo "$ac_header_compiler" >&6; }
6852 # Is the header present?
6853 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6854 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <sys/sysmacros.h>
6862 _ACEOF
6863 if { (ac_try="$ac_cpp conftest.$ac_ext"
6864 case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867 esac
6868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6869 $as_echo "$ac_try_echo") >&5
6870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 }; then
6880 ac_header_preproc=yes
6881 else
6882 $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_header_preproc=no
6888 rm -f conftest.err conftest.$ac_ext
6889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6890 $as_echo "$ac_header_preproc" >&6; }
6892 # So? What about this header?
6893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6894 yes:no: )
6895 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6896 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6897 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6898 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6899 ac_header_preproc=yes
6901 no:yes:* )
6902 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6903 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6904 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6905 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6906 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6907 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6908 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6909 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6910 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6911 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6912 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6913 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6914 ( cat <<\_ASBOX
6915 ## -------------------------------------- ##
6916 ## Report this to http://bugs.python.org/ ##
6917 ## -------------------------------------- ##
6918 _ASBOX
6919 ) | sed "s/^/$as_me: WARNING: /" >&2
6921 esac
6922 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6923 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6924 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6925 $as_echo_n "(cached) " >&6
6926 else
6927 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6930 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6933 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define MAJOR_IN_SYSMACROS 1
6937 _ACEOF
6946 # On Solaris, term.h requires curses.h
6948 for ac_header in term.h
6950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6952 $as_echo_n "checking for $ac_header... " >&6; }
6953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6954 $as_echo_n "(cached) " >&6
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6963 #ifdef HAVE_CURSES_H
6964 #include <curses.h>
6965 #endif
6968 #include <$ac_header>
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6977 $as_echo "$ac_try_echo") >&5
6978 (eval "$ac_compile") 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest.$ac_objext; then
6988 eval "$as_ac_Header=yes"
6989 else
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 eval "$as_ac_Header=no"
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 ac_res=`eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'`
7000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7001 $as_echo "$ac_res" >&6; }
7002 as_val=`eval 'as_val=${'$as_ac_Header'}
7003 $as_echo "$as_val"'`
7004 if test "x$as_val" = x""yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 _ACEOF
7011 done
7014 # On Linux, netlink.h requires asm/types.h
7016 for ac_header in linux/netlink.h
7018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7019 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 $as_echo_n "checking for $ac_header... " >&6; }
7021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7022 $as_echo_n "(cached) " >&6
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7031 #ifdef HAVE_ASM_TYPES_H
7032 #include <asm/types.h>
7033 #endif
7034 #ifdef HAVE_SYS_SOCKET_H
7035 #include <sys/socket.h>
7036 #endif
7039 #include <$ac_header>
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_compile") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest.$ac_objext; then
7059 eval "$as_ac_Header=yes"
7060 else
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 eval "$as_ac_Header=no"
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 ac_res=`eval 'as_val=${'$as_ac_Header'}
7070 $as_echo "$as_val"'`
7071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073 as_val=`eval 'as_val=${'$as_ac_Header'}
7074 $as_echo "$as_val"'`
7075 if test "x$as_val" = x""yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7078 _ACEOF
7082 done
7085 # checks for typedefs
7086 was_it_defined=no
7087 { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
7088 $as_echo_n "checking for clock_t in time.h... " >&6; }
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #include <time.h>
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "clock_t" >/dev/null 2>&1; then
7100 was_it_defined=yes
7101 else
7104 cat >>confdefs.h <<\_ACEOF
7105 #define clock_t long
7106 _ACEOF
7110 rm -f conftest*
7112 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
7113 $as_echo "$was_it_defined" >&6; }
7115 # Check whether using makedev requires defining _OSF_SOURCE
7116 { $as_echo "$as_me:$LINENO: checking for makedev" >&5
7117 $as_echo_n "checking for makedev... " >&6; }
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7125 #if defined(MAJOR_IN_MKDEV)
7126 #include <sys/mkdev.h>
7127 #elif defined(MAJOR_IN_SYSMACROS)
7128 #include <sys/sysmacros.h>
7129 #else
7130 #include <sys/types.h>
7131 #endif
7133 main ()
7135 makedev(0, 0)
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (ac_try="$ac_link"
7142 case "(($ac_try" in
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7145 esac
7146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148 (eval "$ac_link") 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest$ac_exeext && {
7158 test "$cross_compiling" = yes ||
7159 $as_test_x conftest$ac_exeext
7160 }; then
7161 ac_cv_has_makedev=yes
7162 else
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_cv_has_makedev=no
7169 rm -rf conftest.dSYM
7170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7171 conftest$ac_exeext conftest.$ac_ext
7172 if test "$ac_cv_has_makedev" = "no"; then
7173 # we didn't link, try if _OSF_SOURCE will allow us to link
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7181 #define _OSF_SOURCE 1
7182 #include <sys/types.h>
7185 main ()
7187 makedev(0, 0)
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_link") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest$ac_exeext && {
7210 test "$cross_compiling" = yes ||
7211 $as_test_x conftest$ac_exeext
7212 }; then
7213 ac_cv_has_makedev=yes
7214 else
7215 $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_has_makedev=no
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223 conftest$ac_exeext conftest.$ac_ext
7224 if test "$ac_cv_has_makedev" = "yes"; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define _OSF_SOURCE 1
7228 _ACEOF
7232 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
7233 $as_echo "$ac_cv_has_makedev" >&6; }
7234 if test "$ac_cv_has_makedev" = "yes"; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_MAKEDEV 1
7238 _ACEOF
7242 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7243 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7244 # defined, but the compiler does not support pragma redefine_extname,
7245 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7246 # structures (such as rlimit64) without declaring them. As a
7247 # work-around, disable LFS on such configurations
7249 use_lfs=yes
7250 { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
7251 $as_echo_n "checking Solaris LFS bug... " >&6; }
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7259 #define _LARGEFILE_SOURCE 1
7260 #define _FILE_OFFSET_BITS 64
7261 #include <sys/resource.h>
7264 main ()
7266 struct rlimit foo;
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 sol_lfs_bug=no
7290 else
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 sol_lfs_bug=yes
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
7299 $as_echo "$sol_lfs_bug" >&6; }
7300 if test "$sol_lfs_bug" = "yes"; then
7301 use_lfs=no
7304 if test "$use_lfs" = "yes"; then
7305 # Two defines needed to enable largefile support on various platforms
7306 # These may affect some typedefs
7308 cat >>confdefs.h <<\_ACEOF
7309 #define _LARGEFILE_SOURCE 1
7310 _ACEOF
7313 cat >>confdefs.h <<\_ACEOF
7314 #define _FILE_OFFSET_BITS 64
7315 _ACEOF
7319 # Add some code to confdefs.h so that the test for off_t works on SCO
7320 cat >> confdefs.h <<\EOF
7321 #if defined(SCO_DS)
7322 #undef _OFF_T
7323 #endif
7326 # Type availability checks
7327 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7328 $as_echo_n "checking for mode_t... " >&6; }
7329 if test "${ac_cv_type_mode_t+set}" = set; then
7330 $as_echo_n "(cached) " >&6
7331 else
7332 ac_cv_type_mode_t=no
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
7341 main ()
7343 if (sizeof (mode_t))
7344 return 0;
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7375 main ()
7377 if (sizeof ((mode_t)))
7378 return 0;
7380 return 0;
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388 esac
7389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7390 $as_echo "$ac_try_echo") >&5
7391 (eval "$ac_compile") 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest.$ac_objext; then
7402 else
7403 $as_echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 ac_cv_type_mode_t=yes
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 else
7411 $as_echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7420 $as_echo "$ac_cv_type_mode_t" >&6; }
7421 if test "x$ac_cv_type_mode_t" = x""yes; then
7423 else
7425 cat >>confdefs.h <<_ACEOF
7426 #define mode_t int
7427 _ACEOF
7431 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7432 $as_echo_n "checking for off_t... " >&6; }
7433 if test "${ac_cv_type_off_t+set}" = set; then
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_cv_type_off_t=no
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7445 main ()
7447 if (sizeof (off_t))
7448 return 0;
7450 return 0;
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7455 case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7479 main ()
7481 if (sizeof ((off_t)))
7482 return 0;
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7506 else
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_off_t=yes
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 else
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7524 $as_echo "$ac_cv_type_off_t" >&6; }
7525 if test "x$ac_cv_type_off_t" = x""yes; then
7527 else
7529 cat >>confdefs.h <<_ACEOF
7530 #define off_t long int
7531 _ACEOF
7535 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7536 $as_echo_n "checking for pid_t... " >&6; }
7537 if test "${ac_cv_type_pid_t+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_cv_type_pid_t=no
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7549 main ()
7551 if (sizeof (pid_t))
7552 return 0;
7554 return 0;
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7583 main ()
7585 if (sizeof ((pid_t)))
7586 return 0;
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598 $as_echo "$ac_try_echo") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7610 else
7611 $as_echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_type_pid_t=yes
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 else
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7628 $as_echo "$ac_cv_type_pid_t" >&6; }
7629 if test "x$ac_cv_type_pid_t" = x""yes; then
7631 else
7633 cat >>confdefs.h <<_ACEOF
7634 #define pid_t int
7635 _ACEOF
7639 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7640 $as_echo_n "checking return type of signal handlers... " >&6; }
7641 if test "${ac_cv_type_signal+set}" = set; then
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <sys/types.h>
7651 #include <signal.h>
7654 main ()
7656 return *(signal (0, 0)) (0) == 1;
7658 return 0;
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_cv_type_signal=int
7680 else
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_type_signal=void
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7690 $as_echo "$ac_cv_type_signal" >&6; }
7692 cat >>confdefs.h <<_ACEOF
7693 #define RETSIGTYPE $ac_cv_type_signal
7694 _ACEOF
7697 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7698 $as_echo_n "checking for size_t... " >&6; }
7699 if test "${ac_cv_type_size_t+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7701 else
7702 ac_cv_type_size_t=no
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 $ac_includes_default
7711 main ()
7713 if (sizeof (size_t))
7714 return 0;
7716 return 0;
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7726 $as_echo "$ac_try_echo") >&5
7727 (eval "$ac_compile") 2>conftest.er1
7728 ac_status=$?
7729 grep -v '^ *+' conftest.er1 >conftest.err
7730 rm -f conftest.er1
7731 cat conftest.err >&5
7732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest.$ac_objext; then
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 $ac_includes_default
7745 main ()
7747 if (sizeof ((size_t)))
7748 return 0;
7750 return 0;
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7772 else
7773 $as_echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_type_size_t=yes
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 else
7781 $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7790 $as_echo "$ac_cv_type_size_t" >&6; }
7791 if test "x$ac_cv_type_size_t" = x""yes; then
7793 else
7795 cat >>confdefs.h <<_ACEOF
7796 #define size_t unsigned int
7797 _ACEOF
7801 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7802 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7803 if test "${ac_cv_type_uid_t+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7814 _ACEOF
7815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816 $EGREP "uid_t" >/dev/null 2>&1; then
7817 ac_cv_type_uid_t=yes
7818 else
7819 ac_cv_type_uid_t=no
7821 rm -f conftest*
7824 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7825 $as_echo "$ac_cv_type_uid_t" >&6; }
7826 if test $ac_cv_type_uid_t = no; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define uid_t int
7830 _ACEOF
7833 cat >>confdefs.h <<\_ACEOF
7834 #define gid_t int
7835 _ACEOF
7840 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7841 $as_echo_n "checking for uint32_t... " >&6; }
7842 if test "${ac_cv_c_uint32_t+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7844 else
7845 ac_cv_c_uint32_t=no
7846 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7847 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7856 main ()
7858 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7859 test_array [0] = 0
7862 return 0;
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7872 $as_echo "$ac_try_echo") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 case $ac_type in
7884 uint32_t) ac_cv_c_uint32_t=yes ;;
7885 *) ac_cv_c_uint32_t=$ac_type ;;
7886 esac
7888 else
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 test "$ac_cv_c_uint32_t" != no && break
7897 done
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7900 $as_echo "$ac_cv_c_uint32_t" >&6; }
7901 case $ac_cv_c_uint32_t in #(
7902 no|yes) ;; #(
7905 cat >>confdefs.h <<\_ACEOF
7906 #define _UINT32_T 1
7907 _ACEOF
7910 cat >>confdefs.h <<_ACEOF
7911 #define uint32_t $ac_cv_c_uint32_t
7912 _ACEOF
7914 esac
7917 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7918 $as_echo_n "checking for uint64_t... " >&6; }
7919 if test "${ac_cv_c_uint64_t+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 else
7922 ac_cv_c_uint64_t=no
7923 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7924 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7933 main ()
7935 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7936 test_array [0] = 0
7939 return 0;
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 case $ac_type in
7961 uint64_t) ac_cv_c_uint64_t=yes ;;
7962 *) ac_cv_c_uint64_t=$ac_type ;;
7963 esac
7965 else
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 test "$ac_cv_c_uint64_t" != no && break
7974 done
7976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7977 $as_echo "$ac_cv_c_uint64_t" >&6; }
7978 case $ac_cv_c_uint64_t in #(
7979 no|yes) ;; #(
7982 cat >>confdefs.h <<\_ACEOF
7983 #define _UINT64_T 1
7984 _ACEOF
7987 cat >>confdefs.h <<_ACEOF
7988 #define uint64_t $ac_cv_c_uint64_t
7989 _ACEOF
7991 esac
7994 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7995 $as_echo_n "checking for int32_t... " >&6; }
7996 if test "${ac_cv_c_int32_t+set}" = set; then
7997 $as_echo_n "(cached) " >&6
7998 else
7999 ac_cv_c_int32_t=no
8000 for ac_type in 'int32_t' 'int' 'long int' \
8001 'long long int' 'short int' 'signed char'; do
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8010 main ()
8012 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8013 test_array [0] = 0
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 $ac_includes_default
8045 main ()
8047 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8048 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8049 test_array [0] = 0
8052 return 0;
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_compile") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest.$ac_objext; then
8074 else
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 case $ac_type in
8079 int32_t) ac_cv_c_int32_t=yes ;;
8080 *) ac_cv_c_int32_t=$ac_type ;;
8081 esac
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 else
8087 $as_echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 test "$ac_cv_c_int32_t" != no && break
8095 done
8097 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8098 $as_echo "$ac_cv_c_int32_t" >&6; }
8099 case $ac_cv_c_int32_t in #(
8100 no|yes) ;; #(
8103 cat >>confdefs.h <<_ACEOF
8104 #define int32_t $ac_cv_c_int32_t
8105 _ACEOF
8107 esac
8110 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8111 $as_echo_n "checking for int64_t... " >&6; }
8112 if test "${ac_cv_c_int64_t+set}" = set; then
8113 $as_echo_n "(cached) " >&6
8114 else
8115 ac_cv_c_int64_t=no
8116 for ac_type in 'int64_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8126 main ()
8128 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
8129 test_array [0] = 0
8132 return 0;
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8142 $as_echo "$ac_try_echo") >&5
8143 (eval "$ac_compile") 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } && {
8150 test -z "$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 } && test -s conftest.$ac_objext; then
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8161 main ()
8163 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
8164 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
8165 test_array [0] = 0
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178 $as_echo "$ac_try_echo") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8190 else
8191 $as_echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 case $ac_type in
8195 int64_t) ac_cv_c_int64_t=yes ;;
8196 *) ac_cv_c_int64_t=$ac_type ;;
8197 esac
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 else
8203 $as_echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 test "$ac_cv_c_int64_t" != no && break
8211 done
8213 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
8214 $as_echo "$ac_cv_c_int64_t" >&6; }
8215 case $ac_cv_c_int64_t in #(
8216 no|yes) ;; #(
8219 cat >>confdefs.h <<_ACEOF
8220 #define int64_t $ac_cv_c_int64_t
8221 _ACEOF
8223 esac
8225 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8226 $as_echo_n "checking for ssize_t... " >&6; }
8227 if test "${ac_cv_type_ssize_t+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8229 else
8230 ac_cv_type_ssize_t=no
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8239 main ()
8241 if (sizeof (ssize_t))
8242 return 0;
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8273 main ()
8275 if (sizeof ((ssize_t)))
8276 return 0;
8278 return 0;
8280 _ACEOF
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8288 $as_echo "$ac_try_echo") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest.$ac_objext; then
8300 else
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_type_ssize_t=yes
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 else
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8318 $as_echo "$ac_cv_type_ssize_t" >&6; }
8319 if test "x$ac_cv_type_ssize_t" = x""yes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_SSIZE_T 1
8323 _ACEOF
8328 # Sizes of various common basic types
8329 # ANSI C requires sizeof(char) == 1, so no need to check it
8330 # The cast to long int works around a bug in the HP C Compiler
8331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8333 # This bug is HP SR number 8606223364.
8334 { $as_echo "$as_me:$LINENO: checking size of int" >&5
8335 $as_echo_n "checking size of int... " >&6; }
8336 if test "${ac_cv_sizeof_int+set}" = set; then
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test "$cross_compiling" = yes; then
8340 # Depending upon the size, compute the lo and hi bounds.
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8349 main ()
8351 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
8352 test_array [0] = 0
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_lo=0 ac_mid=0
8377 while :; do
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8386 main ()
8388 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8389 test_array [0] = 0
8392 return 0;
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_compile") 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest.$ac_objext; then
8413 ac_hi=$ac_mid; break
8414 else
8415 $as_echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_lo=`expr $ac_mid + 1`
8419 if test $ac_lo -le $ac_mid; then
8420 ac_lo= ac_hi=
8421 break
8423 ac_mid=`expr 2 '*' $ac_mid + 1`
8426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 done
8428 else
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8440 main ()
8442 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
8443 test_array [0] = 0
8446 return 0;
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456 $as_echo "$ac_try_echo") >&5
8457 (eval "$ac_compile") 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && {
8464 test -z "$ac_c_werror_flag" ||
8465 test ! -s conftest.err
8466 } && test -s conftest.$ac_objext; then
8467 ac_hi=-1 ac_mid=-1
8468 while :; do
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8477 main ()
8479 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
8480 test_array [0] = 0
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493 $as_echo "$ac_try_echo") >&5
8494 (eval "$ac_compile") 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } && {
8501 test -z "$ac_c_werror_flag" ||
8502 test ! -s conftest.err
8503 } && test -s conftest.$ac_objext; then
8504 ac_lo=$ac_mid; break
8505 else
8506 $as_echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_hi=`expr '(' $ac_mid ')' - 1`
8510 if test $ac_mid -le $ac_hi; then
8511 ac_lo= ac_hi=
8512 break
8514 ac_mid=`expr 2 '*' $ac_mid`
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 done
8519 else
8520 $as_echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_lo= ac_hi=
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 # Binary search between lo and hi bounds.
8531 while test "x$ac_lo" != "x$ac_hi"; do
8532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8541 main ()
8543 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8544 test_array [0] = 0
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8552 case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557 $as_echo "$ac_try_echo") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest.$ac_objext; then
8568 ac_hi=$ac_mid
8569 else
8570 $as_echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_lo=`expr '(' $ac_mid ')' + 1`
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 done
8578 case $ac_lo in
8579 ?*) ac_cv_sizeof_int=$ac_lo;;
8580 '') if test "$ac_cv_type_int" = yes; then
8581 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8583 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8584 See \`config.log' for more details." >&5
8585 $as_echo "$as_me: error: cannot compute sizeof (int)
8586 See \`config.log' for more details." >&2;}
8587 { (exit 77); exit 77; }; }; }
8588 else
8589 ac_cv_sizeof_int=0
8590 fi ;;
8591 esac
8592 else
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $ac_includes_default
8600 static long int longval () { return (long int) (sizeof (int)); }
8601 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
8602 #include <stdio.h>
8603 #include <stdlib.h>
8605 main ()
8608 FILE *f = fopen ("conftest.val", "w");
8609 if (! f)
8610 return 1;
8611 if (((long int) (sizeof (int))) < 0)
8613 long int i = longval ();
8614 if (i != ((long int) (sizeof (int))))
8615 return 1;
8616 fprintf (f, "%ld", i);
8618 else
8620 unsigned long int i = ulongval ();
8621 if (i != ((long int) (sizeof (int))))
8622 return 1;
8623 fprintf (f, "%lu", i);
8625 /* Do not output a trailing newline, as this causes \r\n confusion
8626 on some platforms. */
8627 return ferror (f) || fclose (f) != 0;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>&5
8642 ac_status=$?
8643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8645 { (case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_try") 2>&5
8652 ac_status=$?
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_sizeof_int=`cat conftest.val`
8656 else
8657 $as_echo "$as_me: program exited with status $ac_status" >&5
8658 $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 ( exit $ac_status )
8662 if test "$ac_cv_type_int" = yes; then
8663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8665 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8666 See \`config.log' for more details." >&5
8667 $as_echo "$as_me: error: cannot compute sizeof (int)
8668 See \`config.log' for more details." >&2;}
8669 { (exit 77); exit 77; }; }; }
8670 else
8671 ac_cv_sizeof_int=0
8674 rm -rf conftest.dSYM
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8677 rm -f conftest.val
8679 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8680 $as_echo "$ac_cv_sizeof_int" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_INT $ac_cv_sizeof_int
8686 _ACEOF
8689 # The cast to long int works around a bug in the HP C Compiler
8690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8692 # This bug is HP SR number 8606223364.
8693 { $as_echo "$as_me:$LINENO: checking size of long" >&5
8694 $as_echo_n "checking size of long... " >&6; }
8695 if test "${ac_cv_sizeof_long+set}" = set; then
8696 $as_echo_n "(cached) " >&6
8697 else
8698 if test "$cross_compiling" = yes; then
8699 # Depending upon the size, compute the lo and hi bounds.
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h. */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8708 main ()
8710 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8735 ac_lo=0 ac_mid=0
8736 while :; do
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 $ac_includes_default
8745 main ()
8747 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761 $as_echo "$ac_try_echo") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 ac_hi=$ac_mid; break
8773 else
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_lo=`expr $ac_mid + 1`
8778 if test $ac_lo -le $ac_mid; then
8779 ac_lo= ac_hi=
8780 break
8782 ac_mid=`expr 2 '*' $ac_mid + 1`
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 done
8787 else
8788 $as_echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8799 main ()
8801 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
8802 test_array [0] = 0
8805 return 0;
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8810 case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8826 ac_hi=-1 ac_mid=-1
8827 while :; do
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 $ac_includes_default
8836 main ()
8838 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
8839 test_array [0] = 0
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852 $as_echo "$ac_try_echo") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_lo=$ac_mid; break
8864 else
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_hi=`expr '(' $ac_mid ')' - 1`
8869 if test $ac_mid -le $ac_hi; then
8870 ac_lo= ac_hi=
8871 break
8873 ac_mid=`expr 2 '*' $ac_mid`
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 done
8878 else
8879 $as_echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 ac_lo= ac_hi=
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 # Binary search between lo and hi bounds.
8890 while test "x$ac_lo" != "x$ac_hi"; do
8891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 $ac_includes_default
8900 main ()
8902 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8903 test_array [0] = 0
8906 return 0;
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_hi=$ac_mid
8928 else
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 ac_lo=`expr '(' $ac_mid ')' + 1`
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 done
8937 case $ac_lo in
8938 ?*) ac_cv_sizeof_long=$ac_lo;;
8939 '') if test "$ac_cv_type_long" = yes; then
8940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8942 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8943 See \`config.log' for more details." >&5
8944 $as_echo "$as_me: error: cannot compute sizeof (long)
8945 See \`config.log' for more details." >&2;}
8946 { (exit 77); exit 77; }; }; }
8947 else
8948 ac_cv_sizeof_long=0
8949 fi ;;
8950 esac
8951 else
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 static long int longval () { return (long int) (sizeof (long)); }
8960 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
8961 #include <stdio.h>
8962 #include <stdlib.h>
8964 main ()
8967 FILE *f = fopen ("conftest.val", "w");
8968 if (! f)
8969 return 1;
8970 if (((long int) (sizeof (long))) < 0)
8972 long int i = longval ();
8973 if (i != ((long int) (sizeof (long))))
8974 return 1;
8975 fprintf (f, "%ld", i);
8977 else
8979 unsigned long int i = ulongval ();
8980 if (i != ((long int) (sizeof (long))))
8981 return 1;
8982 fprintf (f, "%lu", i);
8984 /* Do not output a trailing newline, as this causes \r\n confusion
8985 on some platforms. */
8986 return ferror (f) || fclose (f) != 0;
8989 return 0;
8991 _ACEOF
8992 rm -f conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8999 $as_echo "$ac_try_echo") >&5
9000 (eval "$ac_link") 2>&5
9001 ac_status=$?
9002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007 esac
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010 (eval "$ac_try") 2>&5
9011 ac_status=$?
9012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_sizeof_long=`cat conftest.val`
9015 else
9016 $as_echo "$as_me: program exited with status $ac_status" >&5
9017 $as_echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ( exit $ac_status )
9021 if test "$ac_cv_type_long" = yes; then
9022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9024 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9025 See \`config.log' for more details." >&5
9026 $as_echo "$as_me: error: cannot compute sizeof (long)
9027 See \`config.log' for more details." >&2;}
9028 { (exit 77); exit 77; }; }; }
9029 else
9030 ac_cv_sizeof_long=0
9033 rm -rf conftest.dSYM
9034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9036 rm -f conftest.val
9038 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9039 $as_echo "$ac_cv_sizeof_long" >&6; }
9043 cat >>confdefs.h <<_ACEOF
9044 #define SIZEOF_LONG $ac_cv_sizeof_long
9045 _ACEOF
9048 # The cast to long int works around a bug in the HP C Compiler
9049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9051 # This bug is HP SR number 8606223364.
9052 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
9053 $as_echo_n "checking size of void *... " >&6; }
9054 if test "${ac_cv_sizeof_void_p+set}" = set; then
9055 $as_echo_n "(cached) " >&6
9056 else
9057 if test "$cross_compiling" = yes; then
9058 # Depending upon the size, compute the lo and hi bounds.
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h. */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 $ac_includes_default
9067 main ()
9069 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
9070 test_array [0] = 0
9073 return 0;
9075 _ACEOF
9076 rm -f conftest.$ac_objext
9077 if { (ac_try="$ac_compile"
9078 case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081 esac
9082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9083 $as_echo "$ac_try_echo") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_c_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_lo=0 ac_mid=0
9095 while :; do
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9104 main ()
9106 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9107 test_array [0] = 0
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (ac_try="$ac_compile"
9115 case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9120 $as_echo "$ac_try_echo") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 ac_hi=$ac_mid; break
9132 else
9133 $as_echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9138 ac_lo= ac_hi=
9139 break
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
9144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 done
9146 else
9147 $as_echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 $ac_includes_default
9158 main ()
9160 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
9161 test_array [0] = 0
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 ac_hi=-1 ac_mid=-1
9186 while :; do
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 $ac_includes_default
9195 main ()
9197 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
9198 test_array [0] = 0
9201 return 0;
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9206 case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209 esac
9210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9211 $as_echo "$ac_try_echo") >&5
9212 (eval "$ac_compile") 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest.$ac_objext; then
9222 ac_lo=$ac_mid; break
9223 else
9224 $as_echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9227 ac_hi=`expr '(' $ac_mid ')' - 1`
9228 if test $ac_mid -le $ac_hi; then
9229 ac_lo= ac_hi=
9230 break
9232 ac_mid=`expr 2 '*' $ac_mid`
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 done
9237 else
9238 $as_echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_lo= ac_hi=
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 # Binary search between lo and hi bounds.
9249 while test "x$ac_lo" != "x$ac_hi"; do
9250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9259 main ()
9261 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9262 test_array [0] = 0
9265 return 0;
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275 $as_echo "$ac_try_echo") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_hi=$ac_mid
9287 else
9288 $as_echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_lo=`expr '(' $ac_mid ')' + 1`
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296 case $ac_lo in
9297 ?*) ac_cv_sizeof_void_p=$ac_lo;;
9298 '') if test "$ac_cv_type_void_p" = yes; then
9299 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9301 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9302 See \`config.log' for more details." >&5
9303 $as_echo "$as_me: error: cannot compute sizeof (void *)
9304 See \`config.log' for more details." >&2;}
9305 { (exit 77); exit 77; }; }; }
9306 else
9307 ac_cv_sizeof_void_p=0
9308 fi ;;
9309 esac
9310 else
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 $ac_includes_default
9318 static long int longval () { return (long int) (sizeof (void *)); }
9319 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
9320 #include <stdio.h>
9321 #include <stdlib.h>
9323 main ()
9326 FILE *f = fopen ("conftest.val", "w");
9327 if (! f)
9328 return 1;
9329 if (((long int) (sizeof (void *))) < 0)
9331 long int i = longval ();
9332 if (i != ((long int) (sizeof (void *))))
9333 return 1;
9334 fprintf (f, "%ld", i);
9336 else
9338 unsigned long int i = ulongval ();
9339 if (i != ((long int) (sizeof (void *))))
9340 return 1;
9341 fprintf (f, "%lu", i);
9343 /* Do not output a trailing newline, as this causes \r\n confusion
9344 on some platforms. */
9345 return ferror (f) || fclose (f) != 0;
9348 return 0;
9350 _ACEOF
9351 rm -f conftest$ac_exeext
9352 if { (ac_try="$ac_link"
9353 case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9358 $as_echo "$ac_try_echo") >&5
9359 (eval "$ac_link") 2>&5
9360 ac_status=$?
9361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9363 { (case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366 esac
9367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9368 $as_echo "$ac_try_echo") >&5
9369 (eval "$ac_try") 2>&5
9370 ac_status=$?
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 ac_cv_sizeof_void_p=`cat conftest.val`
9374 else
9375 $as_echo "$as_me: program exited with status $ac_status" >&5
9376 $as_echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ( exit $ac_status )
9380 if test "$ac_cv_type_void_p" = yes; then
9381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9383 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9384 See \`config.log' for more details." >&5
9385 $as_echo "$as_me: error: cannot compute sizeof (void *)
9386 See \`config.log' for more details." >&2;}
9387 { (exit 77); exit 77; }; }; }
9388 else
9389 ac_cv_sizeof_void_p=0
9392 rm -rf conftest.dSYM
9393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9395 rm -f conftest.val
9397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9398 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9402 cat >>confdefs.h <<_ACEOF
9403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9404 _ACEOF
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 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9412 $as_echo_n "checking size of short... " >&6; }
9413 if test "${ac_cv_sizeof_short+set}" = set; then
9414 $as_echo_n "(cached) " >&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
9426 main ()
9428 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9429 test_array [0] = 0
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$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 $as_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
9463 main ()
9465 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9466 test_array [0] = 0
9469 return 0;
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9474 case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9479 $as_echo "$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 $as_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 $as_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 $as_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
9517 main ()
9519 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9520 test_array [0] = 0
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$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 $as_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
9554 main ()
9556 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9557 test_array [0] = 0
9560 return 0;
9562 _ACEOF
9563 rm -f conftest.$ac_objext
9564 if { (ac_try="$ac_compile"
9565 case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568 esac
9569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9570 $as_echo "$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 $as_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 $as_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 $as_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
9618 main ()
9620 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9621 test_array [0] = 0
9624 return 0;
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9629 case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632 esac
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$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 $as_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 $as_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_short=$ac_lo;;
9657 '') if test "$ac_cv_type_short" = yes; then
9658 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9660 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9661 See \`config.log' for more details." >&5
9662 $as_echo "$as_me: error: cannot compute sizeof (short)
9663 See \`config.log' for more details." >&2;}
9664 { (exit 77); exit 77; }; }; }
9665 else
9666 ac_cv_sizeof_short=0
9667 fi ;;
9668 esac
9669 else
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9677 static long int longval () { return (long int) (sizeof (short)); }
9678 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9679 #include <stdio.h>
9680 #include <stdlib.h>
9682 main ()
9685 FILE *f = fopen ("conftest.val", "w");
9686 if (! f)
9687 return 1;
9688 if (((long int) (sizeof (short))) < 0)
9690 long int i = longval ();
9691 if (i != ((long int) (sizeof (short))))
9692 return 1;
9693 fprintf (f, "%ld", i);
9695 else
9697 unsigned long int i = ulongval ();
9698 if (i != ((long int) (sizeof (short))))
9699 return 1;
9700 fprintf (f, "%lu", i);
9702 /* Do not output a trailing newline, as this causes \r\n confusion
9703 on some platforms. */
9704 return ferror (f) || fclose (f) != 0;
9707 return 0;
9709 _ACEOF
9710 rm -f conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_link") 2>&5
9719 ac_status=$?
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9727 $as_echo "$ac_try_echo") >&5
9728 (eval "$ac_try") 2>&5
9729 ac_status=$?
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_sizeof_short=`cat conftest.val`
9733 else
9734 $as_echo "$as_me: program exited with status $ac_status" >&5
9735 $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ( exit $ac_status )
9739 if test "$ac_cv_type_short" = yes; then
9740 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9742 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9743 See \`config.log' for more details." >&5
9744 $as_echo "$as_me: error: cannot compute sizeof (short)
9745 See \`config.log' for more details." >&2;}
9746 { (exit 77); exit 77; }; }; }
9747 else
9748 ac_cv_sizeof_short=0
9751 rm -rf conftest.dSYM
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9754 rm -f conftest.val
9756 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9757 $as_echo "$ac_cv_sizeof_short" >&6; }
9761 cat >>confdefs.h <<_ACEOF
9762 #define SIZEOF_SHORT $ac_cv_sizeof_short
9763 _ACEOF
9766 # The cast to long int works around a bug in the HP C Compiler
9767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9769 # This bug is HP SR number 8606223364.
9770 { $as_echo "$as_me:$LINENO: checking size of float" >&5
9771 $as_echo_n "checking size of float... " >&6; }
9772 if test "${ac_cv_sizeof_float+set}" = set; then
9773 $as_echo_n "(cached) " >&6
9774 else
9775 if test "$cross_compiling" = yes; then
9776 # Depending upon the size, compute the lo and hi bounds.
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9785 main ()
9787 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
9788 test_array [0] = 0
9791 return 0;
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (ac_try="$ac_compile"
9796 case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799 esac
9800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9801 $as_echo "$ac_try_echo") >&5
9802 (eval "$ac_compile") 2>conftest.er1
9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest.$ac_objext; then
9812 ac_lo=0 ac_mid=0
9813 while :; do
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9822 main ()
9824 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9825 test_array [0] = 0
9828 return 0;
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (ac_try="$ac_compile"
9833 case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836 esac
9837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838 $as_echo "$ac_try_echo") >&5
9839 (eval "$ac_compile") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest.$ac_objext; then
9849 ac_hi=$ac_mid; break
9850 else
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_lo=`expr $ac_mid + 1`
9855 if test $ac_lo -le $ac_mid; then
9856 ac_lo= ac_hi=
9857 break
9859 ac_mid=`expr 2 '*' $ac_mid + 1`
9862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 done
9864 else
9865 $as_echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9876 main ()
9878 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
9879 test_array [0] = 0
9882 return 0;
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (ac_try="$ac_compile"
9887 case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9892 $as_echo "$ac_try_echo") >&5
9893 (eval "$ac_compile") 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest.$ac_objext; then
9903 ac_hi=-1 ac_mid=-1
9904 while :; do
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 $ac_includes_default
9913 main ()
9915 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
9916 test_array [0] = 0
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (ac_try="$ac_compile"
9924 case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_lo=$ac_mid; break
9941 else
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_hi=`expr '(' $ac_mid ')' - 1`
9946 if test $ac_mid -le $ac_hi; then
9947 ac_lo= ac_hi=
9948 break
9950 ac_mid=`expr 2 '*' $ac_mid`
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 done
9955 else
9956 $as_echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_lo= ac_hi=
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 # Binary search between lo and hi bounds.
9967 while test "x$ac_lo" != "x$ac_hi"; do
9968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9977 main ()
9979 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9980 test_array [0] = 0
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (ac_try="$ac_compile"
9988 case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993 $as_echo "$ac_try_echo") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10004 ac_hi=$ac_mid
10005 else
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_lo=`expr '(' $ac_mid ')' + 1`
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 done
10014 case $ac_lo in
10015 ?*) ac_cv_sizeof_float=$ac_lo;;
10016 '') if test "$ac_cv_type_float" = yes; then
10017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10019 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10020 See \`config.log' for more details." >&5
10021 $as_echo "$as_me: error: cannot compute sizeof (float)
10022 See \`config.log' for more details." >&2;}
10023 { (exit 77); exit 77; }; }; }
10024 else
10025 ac_cv_sizeof_float=0
10026 fi ;;
10027 esac
10028 else
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 static long int longval () { return (long int) (sizeof (float)); }
10037 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
10038 #include <stdio.h>
10039 #include <stdlib.h>
10041 main ()
10044 FILE *f = fopen ("conftest.val", "w");
10045 if (! f)
10046 return 1;
10047 if (((long int) (sizeof (float))) < 0)
10049 long int i = longval ();
10050 if (i != ((long int) (sizeof (float))))
10051 return 1;
10052 fprintf (f, "%ld", i);
10054 else
10056 unsigned long int i = ulongval ();
10057 if (i != ((long int) (sizeof (float))))
10058 return 1;
10059 fprintf (f, "%lu", i);
10061 /* Do not output a trailing newline, as this causes \r\n confusion
10062 on some platforms. */
10063 return ferror (f) || fclose (f) != 0;
10066 return 0;
10068 _ACEOF
10069 rm -f conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10076 $as_echo "$ac_try_echo") >&5
10077 (eval "$ac_link") 2>&5
10078 ac_status=$?
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084 esac
10085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10086 $as_echo "$ac_try_echo") >&5
10087 (eval "$ac_try") 2>&5
10088 ac_status=$?
10089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_sizeof_float=`cat conftest.val`
10092 else
10093 $as_echo "$as_me: program exited with status $ac_status" >&5
10094 $as_echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ( exit $ac_status )
10098 if test "$ac_cv_type_float" = yes; then
10099 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10101 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10102 See \`config.log' for more details." >&5
10103 $as_echo "$as_me: error: cannot compute sizeof (float)
10104 See \`config.log' for more details." >&2;}
10105 { (exit 77); exit 77; }; }; }
10106 else
10107 ac_cv_sizeof_float=0
10110 rm -rf conftest.dSYM
10111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10113 rm -f conftest.val
10115 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
10116 $as_echo "$ac_cv_sizeof_float" >&6; }
10120 cat >>confdefs.h <<_ACEOF
10121 #define SIZEOF_FLOAT $ac_cv_sizeof_float
10122 _ACEOF
10125 # The cast to long int works around a bug in the HP C Compiler
10126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10128 # This bug is HP SR number 8606223364.
10129 { $as_echo "$as_me:$LINENO: checking size of double" >&5
10130 $as_echo_n "checking size of double... " >&6; }
10131 if test "${ac_cv_sizeof_double+set}" = set; then
10132 $as_echo_n "(cached) " >&6
10133 else
10134 if test "$cross_compiling" = yes; then
10135 # Depending upon the size, compute the lo and hi bounds.
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10144 main ()
10146 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
10147 test_array [0] = 0
10150 return 0;
10152 _ACEOF
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10158 esac
10159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160 $as_echo "$ac_try_echo") >&5
10161 (eval "$ac_compile") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest.$ac_objext; then
10171 ac_lo=0 ac_mid=0
10172 while :; do
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h. */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10181 main ()
10183 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10184 test_array [0] = 0
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (ac_try="$ac_compile"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_hi=$ac_mid; break
10209 else
10210 $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_lo=`expr $ac_mid + 1`
10214 if test $ac_lo -le $ac_mid; then
10215 ac_lo= ac_hi=
10216 break
10218 ac_mid=`expr 2 '*' $ac_mid + 1`
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 done
10223 else
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 $ac_includes_default
10235 main ()
10237 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
10238 test_array [0] = 0
10241 return 0;
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (ac_try="$ac_compile"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10251 $as_echo "$ac_try_echo") >&5
10252 (eval "$ac_compile") 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest.$ac_objext; then
10262 ac_hi=-1 ac_mid=-1
10263 while :; do
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10272 main ()
10274 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
10275 test_array [0] = 0
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (ac_try="$ac_compile"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_compile") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest.$ac_objext; then
10299 ac_lo=$ac_mid; break
10300 else
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_hi=`expr '(' $ac_mid ')' - 1`
10305 if test $ac_mid -le $ac_hi; then
10306 ac_lo= ac_hi=
10307 break
10309 ac_mid=`expr 2 '*' $ac_mid`
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 done
10314 else
10315 $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_lo= ac_hi=
10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 # Binary search between lo and hi bounds.
10326 while test "x$ac_lo" != "x$ac_hi"; do
10327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10336 main ()
10338 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10339 test_array [0] = 0
10342 return 0;
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (ac_try="$ac_compile"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350 esac
10351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10352 $as_echo "$ac_try_echo") >&5
10353 (eval "$ac_compile") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest.$ac_objext; then
10363 ac_hi=$ac_mid
10364 else
10365 $as_echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_lo=`expr '(' $ac_mid ')' + 1`
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 done
10373 case $ac_lo in
10374 ?*) ac_cv_sizeof_double=$ac_lo;;
10375 '') if test "$ac_cv_type_double" = yes; then
10376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10378 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10379 See \`config.log' for more details." >&5
10380 $as_echo "$as_me: error: cannot compute sizeof (double)
10381 See \`config.log' for more details." >&2;}
10382 { (exit 77); exit 77; }; }; }
10383 else
10384 ac_cv_sizeof_double=0
10385 fi ;;
10386 esac
10387 else
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 static long int longval () { return (long int) (sizeof (double)); }
10396 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
10397 #include <stdio.h>
10398 #include <stdlib.h>
10400 main ()
10403 FILE *f = fopen ("conftest.val", "w");
10404 if (! f)
10405 return 1;
10406 if (((long int) (sizeof (double))) < 0)
10408 long int i = longval ();
10409 if (i != ((long int) (sizeof (double))))
10410 return 1;
10411 fprintf (f, "%ld", i);
10413 else
10415 unsigned long int i = ulongval ();
10416 if (i != ((long int) (sizeof (double))))
10417 return 1;
10418 fprintf (f, "%lu", i);
10420 /* Do not output a trailing newline, as this causes \r\n confusion
10421 on some platforms. */
10422 return ferror (f) || fclose (f) != 0;
10425 return 0;
10427 _ACEOF
10428 rm -f conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433 esac
10434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10435 $as_echo "$ac_try_echo") >&5
10436 (eval "$ac_link") 2>&5
10437 ac_status=$?
10438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10440 { (case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10445 $as_echo "$ac_try_echo") >&5
10446 (eval "$ac_try") 2>&5
10447 ac_status=$?
10448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_sizeof_double=`cat conftest.val`
10451 else
10452 $as_echo "$as_me: program exited with status $ac_status" >&5
10453 $as_echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ( exit $ac_status )
10457 if test "$ac_cv_type_double" = yes; then
10458 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10460 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10461 See \`config.log' for more details." >&5
10462 $as_echo "$as_me: error: cannot compute sizeof (double)
10463 See \`config.log' for more details." >&2;}
10464 { (exit 77); exit 77; }; }; }
10465 else
10466 ac_cv_sizeof_double=0
10469 rm -rf conftest.dSYM
10470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10472 rm -f conftest.val
10474 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
10475 $as_echo "$ac_cv_sizeof_double" >&6; }
10479 cat >>confdefs.h <<_ACEOF
10480 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10481 _ACEOF
10484 # The cast to long int works around a bug in the HP C Compiler
10485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10487 # This bug is HP SR number 8606223364.
10488 { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
10489 $as_echo_n "checking size of fpos_t... " >&6; }
10490 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test "$cross_compiling" = yes; then
10494 # Depending upon the size, compute the lo and hi bounds.
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10503 main ()
10505 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
10506 test_array [0] = 0
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10519 $as_echo "$ac_try_echo") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.$ac_objext; then
10530 ac_lo=0 ac_mid=0
10531 while :; do
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10540 main ()
10542 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10543 test_array [0] = 0
10546 return 0;
10548 _ACEOF
10549 rm -f conftest.$ac_objext
10550 if { (ac_try="$ac_compile"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554 esac
10555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556 $as_echo "$ac_try_echo") >&5
10557 (eval "$ac_compile") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest.$ac_objext; then
10567 ac_hi=$ac_mid; break
10568 else
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_lo=`expr $ac_mid + 1`
10573 if test $ac_lo -le $ac_mid; then
10574 ac_lo= ac_hi=
10575 break
10577 ac_mid=`expr 2 '*' $ac_mid + 1`
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 done
10582 else
10583 $as_echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10594 main ()
10596 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
10597 test_array [0] = 0
10600 return 0;
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610 $as_echo "$ac_try_echo") >&5
10611 (eval "$ac_compile") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest.$ac_objext; then
10621 ac_hi=-1 ac_mid=-1
10622 while :; do
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 $ac_includes_default
10631 main ()
10633 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
10634 test_array [0] = 0
10637 return 0;
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645 esac
10646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647 $as_echo "$ac_try_echo") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
10658 ac_lo=$ac_mid; break
10659 else
10660 $as_echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_hi=`expr '(' $ac_mid ')' - 1`
10664 if test $ac_mid -le $ac_hi; then
10665 ac_lo= ac_hi=
10666 break
10668 ac_mid=`expr 2 '*' $ac_mid`
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 done
10673 else
10674 $as_echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_lo= ac_hi=
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 # Binary search between lo and hi bounds.
10685 while test "x$ac_lo" != "x$ac_hi"; do
10686 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 $ac_includes_default
10695 main ()
10697 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10698 test_array [0] = 0
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_hi=$ac_mid
10723 else
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_lo=`expr '(' $ac_mid ')' + 1`
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 done
10732 case $ac_lo in
10733 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10734 '') if test "$ac_cv_type_fpos_t" = yes; then
10735 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10737 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10738 See \`config.log' for more details." >&5
10739 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10740 See \`config.log' for more details." >&2;}
10741 { (exit 77); exit 77; }; }; }
10742 else
10743 ac_cv_sizeof_fpos_t=0
10744 fi ;;
10745 esac
10746 else
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 $ac_includes_default
10754 static long int longval () { return (long int) (sizeof (fpos_t)); }
10755 static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
10756 #include <stdio.h>
10757 #include <stdlib.h>
10759 main ()
10762 FILE *f = fopen ("conftest.val", "w");
10763 if (! f)
10764 return 1;
10765 if (((long int) (sizeof (fpos_t))) < 0)
10767 long int i = longval ();
10768 if (i != ((long int) (sizeof (fpos_t))))
10769 return 1;
10770 fprintf (f, "%ld", i);
10772 else
10774 unsigned long int i = ulongval ();
10775 if (i != ((long int) (sizeof (fpos_t))))
10776 return 1;
10777 fprintf (f, "%lu", i);
10779 /* Do not output a trailing newline, as this causes \r\n confusion
10780 on some platforms. */
10781 return ferror (f) || fclose (f) != 0;
10784 return 0;
10786 _ACEOF
10787 rm -f conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_link") 2>&5
10796 ac_status=$?
10797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10804 $as_echo "$ac_try_echo") >&5
10805 (eval "$ac_try") 2>&5
10806 ac_status=$?
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_sizeof_fpos_t=`cat conftest.val`
10810 else
10811 $as_echo "$as_me: program exited with status $ac_status" >&5
10812 $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ( exit $ac_status )
10816 if test "$ac_cv_type_fpos_t" = yes; then
10817 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10819 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10820 See \`config.log' for more details." >&5
10821 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10822 See \`config.log' for more details." >&2;}
10823 { (exit 77); exit 77; }; }; }
10824 else
10825 ac_cv_sizeof_fpos_t=0
10828 rm -rf conftest.dSYM
10829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10831 rm -f conftest.val
10833 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10834 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
10838 cat >>confdefs.h <<_ACEOF
10839 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10840 _ACEOF
10843 # The cast to long int works around a bug in the HP C Compiler
10844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10846 # This bug is HP SR number 8606223364.
10847 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10848 $as_echo_n "checking size of size_t... " >&6; }
10849 if test "${ac_cv_sizeof_size_t+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10851 else
10852 if test "$cross_compiling" = yes; then
10853 # Depending upon the size, compute the lo and hi bounds.
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10862 main ()
10864 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10865 test_array [0] = 0
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876 esac
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_compile") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest.$ac_objext; then
10889 ac_lo=0 ac_mid=0
10890 while :; do
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 $ac_includes_default
10899 main ()
10901 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10902 test_array [0] = 0
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest.$ac_objext; then
10926 ac_hi=$ac_mid; break
10927 else
10928 $as_echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_lo=`expr $ac_mid + 1`
10932 if test $ac_lo -le $ac_mid; then
10933 ac_lo= ac_hi=
10934 break
10936 ac_mid=`expr 2 '*' $ac_mid + 1`
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 done
10941 else
10942 $as_echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 $ac_includes_default
10953 main ()
10955 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10956 test_array [0] = 0
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970 (eval "$ac_compile") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest.$ac_objext; then
10980 ac_hi=-1 ac_mid=-1
10981 while :; do
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h. */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 $ac_includes_default
10990 main ()
10992 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10993 test_array [0] = 0
10996 return 0;
10998 _ACEOF
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006 $as_echo "$ac_try_echo") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11017 ac_lo=$ac_mid; break
11018 else
11019 $as_echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_hi=`expr '(' $ac_mid ')' - 1`
11023 if test $ac_mid -le $ac_hi; then
11024 ac_lo= ac_hi=
11025 break
11027 ac_mid=`expr 2 '*' $ac_mid`
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 done
11032 else
11033 $as_echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_lo= ac_hi=
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 # Binary search between lo and hi bounds.
11044 while test "x$ac_lo" != "x$ac_hi"; do
11045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 $ac_includes_default
11054 main ()
11056 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
11057 test_array [0] = 0
11060 return 0;
11062 _ACEOF
11063 rm -f conftest.$ac_objext
11064 if { (ac_try="$ac_compile"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068 esac
11069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
11081 ac_hi=$ac_mid
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_lo=`expr '(' $ac_mid ')' + 1`
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 done
11091 case $ac_lo in
11092 ?*) ac_cv_sizeof_size_t=$ac_lo;;
11093 '') if test "$ac_cv_type_size_t" = yes; then
11094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11096 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11097 See \`config.log' for more details." >&5
11098 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11099 See \`config.log' for more details." >&2;}
11100 { (exit 77); exit 77; }; }; }
11101 else
11102 ac_cv_sizeof_size_t=0
11103 fi ;;
11104 esac
11105 else
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 $ac_includes_default
11113 static long int longval () { return (long int) (sizeof (size_t)); }
11114 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
11115 #include <stdio.h>
11116 #include <stdlib.h>
11118 main ()
11121 FILE *f = fopen ("conftest.val", "w");
11122 if (! f)
11123 return 1;
11124 if (((long int) (sizeof (size_t))) < 0)
11126 long int i = longval ();
11127 if (i != ((long int) (sizeof (size_t))))
11128 return 1;
11129 fprintf (f, "%ld", i);
11131 else
11133 unsigned long int i = ulongval ();
11134 if (i != ((long int) (sizeof (size_t))))
11135 return 1;
11136 fprintf (f, "%lu", i);
11138 /* Do not output a trailing newline, as this causes \r\n confusion
11139 on some platforms. */
11140 return ferror (f) || fclose (f) != 0;
11143 return 0;
11145 _ACEOF
11146 rm -f conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151 esac
11152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11153 $as_echo "$ac_try_echo") >&5
11154 (eval "$ac_link") 2>&5
11155 ac_status=$?
11156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161 esac
11162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163 $as_echo "$ac_try_echo") >&5
11164 (eval "$ac_try") 2>&5
11165 ac_status=$?
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_sizeof_size_t=`cat conftest.val`
11169 else
11170 $as_echo "$as_me: program exited with status $ac_status" >&5
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ( exit $ac_status )
11175 if test "$ac_cv_type_size_t" = yes; then
11176 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11178 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11179 See \`config.log' for more details." >&5
11180 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11181 See \`config.log' for more details." >&2;}
11182 { (exit 77); exit 77; }; }; }
11183 else
11184 ac_cv_sizeof_size_t=0
11187 rm -rf conftest.dSYM
11188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11190 rm -f conftest.val
11192 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
11193 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11197 cat >>confdefs.h <<_ACEOF
11198 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11199 _ACEOF
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 { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
11207 $as_echo_n "checking size of pid_t... " >&6; }
11208 if test "${ac_cv_sizeof_pid_t+set}" = set; then
11209 $as_echo_n "(cached) " >&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
11221 main ()
11223 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
11224 test_array [0] = 0
11227 return 0;
11229 _ACEOF
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235 esac
11236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11237 $as_echo "$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 $as_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
11258 main ()
11260 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11261 test_array [0] = 0
11264 return 0;
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274 $as_echo "$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 $as_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 $as_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 $as_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
11312 main ()
11314 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
11315 test_array [0] = 0
11318 return 0;
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$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 $as_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
11349 main ()
11351 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
11352 test_array [0] = 0
11355 return 0;
11357 _ACEOF
11358 rm -f conftest.$ac_objext
11359 if { (ac_try="$ac_compile"
11360 case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363 esac
11364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11365 $as_echo "$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 $as_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 $as_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 $as_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
11413 main ()
11415 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11416 test_array [0] = 0
11419 return 0;
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429 $as_echo "$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 $as_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 $as_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_pid_t=$ac_lo;;
11452 '') if test "$ac_cv_type_pid_t" = yes; then
11453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11456 See \`config.log' for more details." >&5
11457 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11458 See \`config.log' for more details." >&2;}
11459 { (exit 77); exit 77; }; }; }
11460 else
11461 ac_cv_sizeof_pid_t=0
11462 fi ;;
11463 esac
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 static long int longval () { return (long int) (sizeof (pid_t)); }
11473 static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
11474 #include <stdio.h>
11475 #include <stdlib.h>
11477 main ()
11480 FILE *f = fopen ("conftest.val", "w");
11481 if (! f)
11482 return 1;
11483 if (((long int) (sizeof (pid_t))) < 0)
11485 long int i = longval ();
11486 if (i != ((long int) (sizeof (pid_t))))
11487 return 1;
11488 fprintf (f, "%ld", i);
11490 else
11492 unsigned long int i = ulongval ();
11493 if (i != ((long int) (sizeof (pid_t))))
11494 return 1;
11495 fprintf (f, "%lu", i);
11497 /* Do not output a trailing newline, as this causes \r\n confusion
11498 on some platforms. */
11499 return ferror (f) || fclose (f) != 0;
11502 return 0;
11504 _ACEOF
11505 rm -f conftest$ac_exeext
11506 if { (ac_try="$ac_link"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11512 $as_echo "$ac_try_echo") >&5
11513 (eval "$ac_link") 2>&5
11514 ac_status=$?
11515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11520 esac
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523 (eval "$ac_try") 2>&5
11524 ac_status=$?
11525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_cv_sizeof_pid_t=`cat conftest.val`
11528 else
11529 $as_echo "$as_me: program exited with status $ac_status" >&5
11530 $as_echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ( exit $ac_status )
11534 if test "$ac_cv_type_pid_t" = yes; then
11535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11537 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11538 See \`config.log' for more details." >&5
11539 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11540 See \`config.log' for more details." >&2;}
11541 { (exit 77); exit 77; }; }; }
11542 else
11543 ac_cv_sizeof_pid_t=0
11546 rm -rf conftest.dSYM
11547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11549 rm -f conftest.val
11551 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11552 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
11556 cat >>confdefs.h <<_ACEOF
11557 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11558 _ACEOF
11562 { $as_echo "$as_me:$LINENO: checking for long long support" >&5
11563 $as_echo_n "checking for long long support... " >&6; }
11564 have_long_long=no
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11573 main ()
11575 long long x; x = (long long)0;
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11587 $as_echo "$ac_try_echo") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11600 cat >>confdefs.h <<\_ACEOF
11601 #define HAVE_LONG_LONG 1
11602 _ACEOF
11604 have_long_long=yes
11606 else
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
11615 $as_echo "$have_long_long" >&6; }
11616 if test "$have_long_long" = yes ; then
11617 # The cast to long int works around a bug in the HP C Compiler
11618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11620 # This bug is HP SR number 8606223364.
11621 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
11622 $as_echo_n "checking size of long long... " >&6; }
11623 if test "${ac_cv_sizeof_long_long+set}" = set; then
11624 $as_echo_n "(cached) " >&6
11625 else
11626 if test "$cross_compiling" = yes; then
11627 # Depending upon the size, compute the lo and hi bounds.
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 $ac_includes_default
11636 main ()
11638 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
11639 test_array [0] = 0
11642 return 0;
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (ac_try="$ac_compile"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11652 $as_echo "$ac_try_echo") >&5
11653 (eval "$ac_compile") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && {
11660 test -z "$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11662 } && test -s conftest.$ac_objext; then
11663 ac_lo=0 ac_mid=0
11664 while :; do
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 $ac_includes_default
11673 main ()
11675 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11676 test_array [0] = 0
11679 return 0;
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687 esac
11688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690 (eval "$ac_compile") 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest.$ac_objext; then
11700 ac_hi=$ac_mid; break
11701 else
11702 $as_echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_lo=`expr $ac_mid + 1`
11706 if test $ac_lo -le $ac_mid; then
11707 ac_lo= ac_hi=
11708 break
11710 ac_mid=`expr 2 '*' $ac_mid + 1`
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 done
11715 else
11716 $as_echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11727 main ()
11729 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
11730 test_array [0] = 0
11733 return 0;
11735 _ACEOF
11736 rm -f conftest.$ac_objext
11737 if { (ac_try="$ac_compile"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741 esac
11742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11743 $as_echo "$ac_try_echo") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest.$ac_objext; then
11754 ac_hi=-1 ac_mid=-1
11755 while :; do
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 $ac_includes_default
11764 main ()
11766 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
11767 test_array [0] = 0
11770 return 0;
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778 esac
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.$ac_objext; then
11791 ac_lo=$ac_mid; break
11792 else
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_hi=`expr '(' $ac_mid ')' - 1`
11797 if test $ac_mid -le $ac_hi; then
11798 ac_lo= ac_hi=
11799 break
11801 ac_mid=`expr 2 '*' $ac_mid`
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 done
11806 else
11807 $as_echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_lo= ac_hi=
11813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11817 # Binary search between lo and hi bounds.
11818 while test "x$ac_lo" != "x$ac_hi"; do
11819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11820 cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 $ac_includes_default
11828 main ()
11830 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11831 test_array [0] = 0
11834 return 0;
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842 esac
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11855 ac_hi=$ac_mid
11856 else
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_lo=`expr '(' $ac_mid ')' + 1`
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 done
11865 case $ac_lo in
11866 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11867 '') if test "$ac_cv_type_long_long" = yes; then
11868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11870 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11871 See \`config.log' for more details." >&5
11872 $as_echo "$as_me: error: cannot compute sizeof (long long)
11873 See \`config.log' for more details." >&2;}
11874 { (exit 77); exit 77; }; }; }
11875 else
11876 ac_cv_sizeof_long_long=0
11877 fi ;;
11878 esac
11879 else
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 static long int longval () { return (long int) (sizeof (long long)); }
11888 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
11889 #include <stdio.h>
11890 #include <stdlib.h>
11892 main ()
11895 FILE *f = fopen ("conftest.val", "w");
11896 if (! f)
11897 return 1;
11898 if (((long int) (sizeof (long long))) < 0)
11900 long int i = longval ();
11901 if (i != ((long int) (sizeof (long long))))
11902 return 1;
11903 fprintf (f, "%ld", i);
11905 else
11907 unsigned long int i = ulongval ();
11908 if (i != ((long int) (sizeof (long long))))
11909 return 1;
11910 fprintf (f, "%lu", i);
11912 /* Do not output a trailing newline, as this causes \r\n confusion
11913 on some platforms. */
11914 return ferror (f) || fclose (f) != 0;
11917 return 0;
11919 _ACEOF
11920 rm -f conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925 esac
11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_link") 2>&5
11929 ac_status=$?
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935 esac
11936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11937 $as_echo "$ac_try_echo") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_sizeof_long_long=`cat conftest.val`
11943 else
11944 $as_echo "$as_me: program exited with status $ac_status" >&5
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ( exit $ac_status )
11949 if test "$ac_cv_type_long_long" = yes; then
11950 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11952 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11953 See \`config.log' for more details." >&5
11954 $as_echo "$as_me: error: cannot compute sizeof (long long)
11955 See \`config.log' for more details." >&2;}
11956 { (exit 77); exit 77; }; }; }
11957 else
11958 ac_cv_sizeof_long_long=0
11961 rm -rf conftest.dSYM
11962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11964 rm -f conftest.val
11966 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11971 cat >>confdefs.h <<_ACEOF
11972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11973 _ACEOF
11978 { $as_echo "$as_me:$LINENO: checking for long double support" >&5
11979 $as_echo_n "checking for long double support... " >&6; }
11980 have_long_double=no
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11989 main ()
11991 long double x; x = (long double)0;
11993 return 0;
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_LONG_DOUBLE 1
12018 _ACEOF
12020 have_long_double=yes
12022 else
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result: $have_long_double" >&5
12031 $as_echo "$have_long_double" >&6; }
12032 if test "$have_long_double" = yes ; then
12033 # The cast to long int works around a bug in the HP C Compiler
12034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12036 # This bug is HP SR number 8606223364.
12037 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
12038 $as_echo_n "checking size of long double... " >&6; }
12039 if test "${ac_cv_sizeof_long_double+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12041 else
12042 if test "$cross_compiling" = yes; then
12043 # Depending upon the size, compute the lo and hi bounds.
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12052 main ()
12054 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
12055 test_array [0] = 0
12058 return 0;
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068 $as_echo "$ac_try_echo") >&5
12069 (eval "$ac_compile") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest.$ac_objext; then
12079 ac_lo=0 ac_mid=0
12080 while :; do
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12089 main ()
12091 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12092 test_array [0] = 0
12095 return 0;
12097 _ACEOF
12098 rm -f conftest.$ac_objext
12099 if { (ac_try="$ac_compile"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12105 $as_echo "$ac_try_echo") >&5
12106 (eval "$ac_compile") 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest.$ac_objext; then
12116 ac_hi=$ac_mid; break
12117 else
12118 $as_echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 ac_lo=`expr $ac_mid + 1`
12122 if test $ac_lo -le $ac_mid; then
12123 ac_lo= ac_hi=
12124 break
12126 ac_mid=`expr 2 '*' $ac_mid + 1`
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 done
12131 else
12132 $as_echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12143 main ()
12145 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
12146 test_array [0] = 0
12149 return 0;
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (ac_try="$ac_compile"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157 esac
12158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12159 $as_echo "$ac_try_echo") >&5
12160 (eval "$ac_compile") 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } && {
12167 test -z "$ac_c_werror_flag" ||
12168 test ! -s conftest.err
12169 } && test -s conftest.$ac_objext; then
12170 ac_hi=-1 ac_mid=-1
12171 while :; do
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12180 main ()
12182 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
12183 test_array [0] = 0
12186 return 0;
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (ac_try="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194 esac
12195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12196 $as_echo "$ac_try_echo") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 ac_lo=$ac_mid; break
12208 else
12209 $as_echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_hi=`expr '(' $ac_mid ')' - 1`
12213 if test $ac_mid -le $ac_hi; then
12214 ac_lo= ac_hi=
12215 break
12217 ac_mid=`expr 2 '*' $ac_mid`
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 done
12222 else
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_lo= ac_hi=
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 # Binary search between lo and hi bounds.
12234 while test "x$ac_lo" != "x$ac_hi"; do
12235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12244 main ()
12246 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12247 test_array [0] = 0
12250 return 0;
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258 esac
12259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12260 $as_echo "$ac_try_echo") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.$ac_objext; then
12271 ac_hi=$ac_mid
12272 else
12273 $as_echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 ac_lo=`expr '(' $ac_mid ')' + 1`
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 done
12281 case $ac_lo in
12282 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12283 '') if test "$ac_cv_type_long_double" = yes; then
12284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12286 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12287 See \`config.log' for more details." >&5
12288 $as_echo "$as_me: error: cannot compute sizeof (long double)
12289 See \`config.log' for more details." >&2;}
12290 { (exit 77); exit 77; }; }; }
12291 else
12292 ac_cv_sizeof_long_double=0
12293 fi ;;
12294 esac
12295 else
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h. */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 static long int longval () { return (long int) (sizeof (long double)); }
12304 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
12305 #include <stdio.h>
12306 #include <stdlib.h>
12308 main ()
12311 FILE *f = fopen ("conftest.val", "w");
12312 if (! f)
12313 return 1;
12314 if (((long int) (sizeof (long double))) < 0)
12316 long int i = longval ();
12317 if (i != ((long int) (sizeof (long double))))
12318 return 1;
12319 fprintf (f, "%ld", i);
12321 else
12323 unsigned long int i = ulongval ();
12324 if (i != ((long int) (sizeof (long double))))
12325 return 1;
12326 fprintf (f, "%lu", i);
12328 /* Do not output a trailing newline, as this causes \r\n confusion
12329 on some platforms. */
12330 return ferror (f) || fclose (f) != 0;
12333 return 0;
12335 _ACEOF
12336 rm -f conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344 (eval "$ac_link") 2>&5
12345 ac_status=$?
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_try") 2>&5
12355 ac_status=$?
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_sizeof_long_double=`cat conftest.val`
12359 else
12360 $as_echo "$as_me: program exited with status $ac_status" >&5
12361 $as_echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 ( exit $ac_status )
12365 if test "$ac_cv_type_long_double" = yes; then
12366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12368 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12369 See \`config.log' for more details." >&5
12370 $as_echo "$as_me: error: cannot compute sizeof (long double)
12371 See \`config.log' for more details." >&2;}
12372 { (exit 77); exit 77; }; }; }
12373 else
12374 ac_cv_sizeof_long_double=0
12377 rm -rf conftest.dSYM
12378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12380 rm -f conftest.val
12382 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12383 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12387 cat >>confdefs.h <<_ACEOF
12388 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12389 _ACEOF
12395 { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
12396 $as_echo_n "checking for _Bool support... " >&6; }
12397 have_c99_bool=no
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h. */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12406 main ()
12408 _Bool x; x = (_Bool)0;
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (ac_try="$ac_compile"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12418 esac
12419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12420 $as_echo "$ac_try_echo") >&5
12421 (eval "$ac_compile") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && {
12428 test -z "$ac_c_werror_flag" ||
12429 test ! -s conftest.err
12430 } && test -s conftest.$ac_objext; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_C99_BOOL 1
12435 _ACEOF
12437 have_c99_bool=yes
12439 else
12440 $as_echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12448 $as_echo "$have_c99_bool" >&6; }
12449 if test "$have_c99_bool" = yes ; then
12450 # The cast to long int works around a bug in the HP C Compiler
12451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12453 # This bug is HP SR number 8606223364.
12454 { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
12455 $as_echo_n "checking size of _Bool... " >&6; }
12456 if test "${ac_cv_sizeof__Bool+set}" = set; then
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test "$cross_compiling" = yes; then
12460 # Depending upon the size, compute the lo and hi bounds.
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12469 main ()
12471 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
12472 test_array [0] = 0
12475 return 0;
12477 _ACEOF
12478 rm -f conftest.$ac_objext
12479 if { (ac_try="$ac_compile"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483 esac
12484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12485 $as_echo "$ac_try_echo") >&5
12486 (eval "$ac_compile") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest.$ac_objext; then
12496 ac_lo=0 ac_mid=0
12497 while :; do
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h. */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 $ac_includes_default
12506 main ()
12508 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12509 test_array [0] = 0
12512 return 0;
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_compile") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest.$ac_objext; then
12533 ac_hi=$ac_mid; break
12534 else
12535 $as_echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_lo=`expr $ac_mid + 1`
12539 if test $ac_lo -le $ac_mid; then
12540 ac_lo= ac_hi=
12541 break
12543 ac_mid=`expr 2 '*' $ac_mid + 1`
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547 done
12548 else
12549 $as_echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12560 main ()
12562 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
12563 test_array [0] = 0
12566 return 0;
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576 $as_echo "$ac_try_echo") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.$ac_objext; then
12587 ac_hi=-1 ac_mid=-1
12588 while :; do
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 $ac_includes_default
12597 main ()
12599 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
12600 test_array [0] = 0
12603 return 0;
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.$ac_objext; then
12624 ac_lo=$ac_mid; break
12625 else
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_hi=`expr '(' $ac_mid ')' - 1`
12630 if test $ac_mid -le $ac_hi; then
12631 ac_lo= ac_hi=
12632 break
12634 ac_mid=`expr 2 '*' $ac_mid`
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 done
12639 else
12640 $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_lo= ac_hi=
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 # Binary search between lo and hi bounds.
12651 while test "x$ac_lo" != "x$ac_hi"; do
12652 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12653 cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h. */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12661 main ()
12663 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12664 test_array [0] = 0
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12677 $as_echo "$ac_try_echo") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 ac_hi=$ac_mid
12689 else
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_lo=`expr '(' $ac_mid ')' + 1`
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 done
12698 case $ac_lo in
12699 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12700 '') if test "$ac_cv_type__Bool" = yes; then
12701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12703 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12704 See \`config.log' for more details." >&5
12705 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12706 See \`config.log' for more details." >&2;}
12707 { (exit 77); exit 77; }; }; }
12708 else
12709 ac_cv_sizeof__Bool=0
12710 fi ;;
12711 esac
12712 else
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 $ac_includes_default
12720 static long int longval () { return (long int) (sizeof (_Bool)); }
12721 static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
12722 #include <stdio.h>
12723 #include <stdlib.h>
12725 main ()
12728 FILE *f = fopen ("conftest.val", "w");
12729 if (! f)
12730 return 1;
12731 if (((long int) (sizeof (_Bool))) < 0)
12733 long int i = longval ();
12734 if (i != ((long int) (sizeof (_Bool))))
12735 return 1;
12736 fprintf (f, "%ld", i);
12738 else
12740 unsigned long int i = ulongval ();
12741 if (i != ((long int) (sizeof (_Bool))))
12742 return 1;
12743 fprintf (f, "%lu", i);
12745 /* Do not output a trailing newline, as this causes \r\n confusion
12746 on some platforms. */
12747 return ferror (f) || fclose (f) != 0;
12750 return 0;
12752 _ACEOF
12753 rm -f conftest$ac_exeext
12754 if { (ac_try="$ac_link"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758 esac
12759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12760 $as_echo "$ac_try_echo") >&5
12761 (eval "$ac_link") 2>&5
12762 ac_status=$?
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12770 $as_echo "$ac_try_echo") >&5
12771 (eval "$ac_try") 2>&5
12772 ac_status=$?
12773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_sizeof__Bool=`cat conftest.val`
12776 else
12777 $as_echo "$as_me: program exited with status $ac_status" >&5
12778 $as_echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ( exit $ac_status )
12782 if test "$ac_cv_type__Bool" = yes; then
12783 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12785 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12786 See \`config.log' for more details." >&5
12787 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12788 See \`config.log' for more details." >&2;}
12789 { (exit 77); exit 77; }; }; }
12790 else
12791 ac_cv_sizeof__Bool=0
12794 rm -rf conftest.dSYM
12795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12797 rm -f conftest.val
12799 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12800 $as_echo "$ac_cv_sizeof__Bool" >&6; }
12804 cat >>confdefs.h <<_ACEOF
12805 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12806 _ACEOF
12811 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
12812 $as_echo_n "checking for uintptr_t... " >&6; }
12813 if test "${ac_cv_type_uintptr_t+set}" = set; then
12814 $as_echo_n "(cached) " >&6
12815 else
12816 ac_cv_type_uintptr_t=no
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #ifdef HAVE_STDINT_H
12824 #include <stdint.h>
12825 #endif
12828 main ()
12830 if (sizeof (uintptr_t))
12831 return 0;
12833 return 0;
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest.$ac_objext; then
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h. */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 #ifdef HAVE_STDINT_H
12861 #include <stdint.h>
12862 #endif
12865 main ()
12867 if (sizeof ((uintptr_t)))
12868 return 0;
12870 return 0;
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878 esac
12879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12892 else
12893 $as_echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_cv_type_uintptr_t=yes
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 else
12901 $as_echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12910 $as_echo "$ac_cv_type_uintptr_t" >&6; }
12911 if test "x$ac_cv_type_uintptr_t" = x""yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define HAVE_UINTPTR_T 1
12915 _ACEOF
12917 # The cast to long int works around a bug in the HP C Compiler
12918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12920 # This bug is HP SR number 8606223364.
12921 { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12922 $as_echo_n "checking size of uintptr_t... " >&6; }
12923 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12924 $as_echo_n "(cached) " >&6
12925 else
12926 if test "$cross_compiling" = yes; then
12927 # Depending upon the size, compute the lo and hi bounds.
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12936 main ()
12938 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
12939 test_array [0] = 0
12942 return 0;
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (ac_try="$ac_compile"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12952 $as_echo "$ac_try_echo") >&5
12953 (eval "$ac_compile") 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } && {
12960 test -z "$ac_c_werror_flag" ||
12961 test ! -s conftest.err
12962 } && test -s conftest.$ac_objext; then
12963 ac_lo=0 ac_mid=0
12964 while :; do
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12973 main ()
12975 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
12976 test_array [0] = 0
12979 return 0;
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12989 $as_echo "$ac_try_echo") >&5
12990 (eval "$ac_compile") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_c_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest.$ac_objext; then
13000 ac_hi=$ac_mid; break
13001 else
13002 $as_echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ac_lo=`expr $ac_mid + 1`
13006 if test $ac_lo -le $ac_mid; then
13007 ac_lo= ac_hi=
13008 break
13010 ac_mid=`expr 2 '*' $ac_mid + 1`
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 done
13015 else
13016 $as_echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 $ac_includes_default
13027 main ()
13029 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
13030 test_array [0] = 0
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext
13037 if { (ac_try="$ac_compile"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041 esac
13042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13043 $as_echo "$ac_try_echo") >&5
13044 (eval "$ac_compile") 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } && {
13051 test -z "$ac_c_werror_flag" ||
13052 test ! -s conftest.err
13053 } && test -s conftest.$ac_objext; then
13054 ac_hi=-1 ac_mid=-1
13055 while :; do
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13064 main ()
13066 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
13067 test_array [0] = 0
13070 return 0;
13072 _ACEOF
13073 rm -f conftest.$ac_objext
13074 if { (ac_try="$ac_compile"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078 esac
13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081 (eval "$ac_compile") 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest.$ac_objext; then
13091 ac_lo=$ac_mid; break
13092 else
13093 $as_echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_hi=`expr '(' $ac_mid ')' - 1`
13097 if test $ac_mid -le $ac_hi; then
13098 ac_lo= ac_hi=
13099 break
13101 ac_mid=`expr 2 '*' $ac_mid`
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 done
13106 else
13107 $as_echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_lo= ac_hi=
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 # Binary search between lo and hi bounds.
13118 while test "x$ac_lo" != "x$ac_hi"; do
13119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h. */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 $ac_includes_default
13128 main ()
13130 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
13131 test_array [0] = 0
13134 return 0;
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_hi=$ac_mid
13156 else
13157 $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_lo=`expr '(' $ac_mid ')' + 1`
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 done
13165 case $ac_lo in
13166 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13167 '') if test "$ac_cv_type_uintptr_t" = yes; then
13168 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13170 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13171 See \`config.log' for more details." >&5
13172 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13173 See \`config.log' for more details." >&2;}
13174 { (exit 77); exit 77; }; }; }
13175 else
13176 ac_cv_sizeof_uintptr_t=0
13177 fi ;;
13178 esac
13179 else
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 $ac_includes_default
13187 static long int longval () { return (long int) (sizeof (uintptr_t)); }
13188 static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
13189 #include <stdio.h>
13190 #include <stdlib.h>
13192 main ()
13195 FILE *f = fopen ("conftest.val", "w");
13196 if (! f)
13197 return 1;
13198 if (((long int) (sizeof (uintptr_t))) < 0)
13200 long int i = longval ();
13201 if (i != ((long int) (sizeof (uintptr_t))))
13202 return 1;
13203 fprintf (f, "%ld", i);
13205 else
13207 unsigned long int i = ulongval ();
13208 if (i != ((long int) (sizeof (uintptr_t))))
13209 return 1;
13210 fprintf (f, "%lu", i);
13212 /* Do not output a trailing newline, as this causes \r\n confusion
13213 on some platforms. */
13214 return ferror (f) || fclose (f) != 0;
13217 return 0;
13219 _ACEOF
13220 rm -f conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227 $as_echo "$ac_try_echo") >&5
13228 (eval "$ac_link") 2>&5
13229 ac_status=$?
13230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_try") 2>&5
13239 ac_status=$?
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_sizeof_uintptr_t=`cat conftest.val`
13243 else
13244 $as_echo "$as_me: program exited with status $ac_status" >&5
13245 $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ( exit $ac_status )
13249 if test "$ac_cv_type_uintptr_t" = yes; then
13250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13252 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13253 See \`config.log' for more details." >&5
13254 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13255 See \`config.log' for more details." >&2;}
13256 { (exit 77); exit 77; }; }; }
13257 else
13258 ac_cv_sizeof_uintptr_t=0
13261 rm -rf conftest.dSYM
13262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13264 rm -f conftest.val
13266 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13267 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
13271 cat >>confdefs.h <<_ACEOF
13272 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13273 _ACEOF
13280 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13281 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
13282 $as_echo_n "checking size of off_t... " >&6; }
13283 if test "${ac_cv_sizeof_off_t+set}" = set; then
13284 $as_echo_n "(cached) " >&6
13285 else
13286 if test "$cross_compiling" = yes; then
13287 ac_cv_sizeof_off_t=4
13288 else
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <stdio.h>
13296 #include <sys/types.h>
13297 main()
13299 FILE *f=fopen("conftestval", "w");
13300 if (!f) exit(1);
13301 fprintf(f, "%d\n", sizeof(off_t));
13302 exit(0);
13304 _ACEOF
13305 rm -f conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310 esac
13311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312 $as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320 esac
13321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_sizeof_off_t=`cat conftestval`
13328 else
13329 $as_echo "$as_me: program exited with status $ac_status" >&5
13330 $as_echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ( exit $ac_status )
13334 ac_cv_sizeof_off_t=0
13336 rm -rf conftest.dSYM
13337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13344 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13345 $as_echo "$ac_cv_sizeof_off_t" >&6; }
13347 cat >>confdefs.h <<_ACEOF
13348 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13349 _ACEOF
13352 { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13353 $as_echo_n "checking whether to enable large file support... " >&6; }
13354 if test "$have_long_long" = yes
13355 then
13356 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13357 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13359 cat >>confdefs.h <<\_ACEOF
13360 #define HAVE_LARGEFILE_SUPPORT 1
13361 _ACEOF
13363 { $as_echo "$as_me:$LINENO: result: yes" >&5
13364 $as_echo "yes" >&6; }
13365 else
13366 { $as_echo "$as_me:$LINENO: result: no" >&5
13367 $as_echo "no" >&6; }
13369 else
13370 { $as_echo "$as_me:$LINENO: result: no" >&5
13371 $as_echo "no" >&6; }
13374 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13375 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
13376 $as_echo_n "checking size of time_t... " >&6; }
13377 if test "${ac_cv_sizeof_time_t+set}" = set; then
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test "$cross_compiling" = yes; then
13381 ac_cv_sizeof_time_t=4
13382 else
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 #include <stdio.h>
13390 #include <time.h>
13391 main()
13393 FILE *f=fopen("conftestval", "w");
13394 if (!f) exit(1);
13395 fprintf(f, "%d\n", sizeof(time_t));
13396 exit(0);
13398 _ACEOF
13399 rm -f conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404 esac
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_link") 2>&5
13408 ac_status=$?
13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13416 $as_echo "$ac_try_echo") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_sizeof_time_t=`cat conftestval`
13422 else
13423 $as_echo "$as_me: program exited with status $ac_status" >&5
13424 $as_echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ( exit $ac_status )
13428 ac_cv_sizeof_time_t=0
13430 rm -rf conftest.dSYM
13431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13439 $as_echo "$ac_cv_sizeof_time_t" >&6; }
13441 cat >>confdefs.h <<_ACEOF
13442 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13443 _ACEOF
13447 # if have pthread_t then define SIZEOF_PTHREAD_T
13448 ac_save_cc="$CC"
13449 if test "$ac_cv_kpthread" = "yes"
13450 then CC="$CC -Kpthread"
13451 elif test "$ac_cv_kthread" = "yes"
13452 then CC="$CC -Kthread"
13453 elif test "$ac_cv_pthread" = "yes"
13454 then CC="$CC -pthread"
13456 { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
13457 $as_echo_n "checking for pthread_t... " >&6; }
13458 have_pthread_t=no
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 #include <pthread.h>
13467 main ()
13469 pthread_t x; x = *(pthread_t*)0;
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (ac_try="$ac_compile"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13481 $as_echo "$ac_try_echo") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 have_pthread_t=yes
13493 else
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13502 $as_echo "$have_pthread_t" >&6; }
13503 if test "$have_pthread_t" = yes ; then
13504 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13505 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
13506 $as_echo_n "checking size of pthread_t... " >&6; }
13507 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13508 $as_echo_n "(cached) " >&6
13509 else
13510 if test "$cross_compiling" = yes; then
13511 ac_cv_sizeof_pthread_t=4
13512 else
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <stdio.h>
13520 #include <pthread.h>
13521 main()
13523 FILE *f=fopen("conftestval", "w");
13524 if (!f) exit(1);
13525 fprintf(f, "%d\n", sizeof(pthread_t));
13526 exit(0);
13528 _ACEOF
13529 rm -f conftest$ac_exeext
13530 if { (ac_try="$ac_link"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534 esac
13535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13536 $as_echo "$ac_try_echo") >&5
13537 (eval "$ac_link") 2>&5
13538 ac_status=$?
13539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13546 $as_echo "$ac_try_echo") >&5
13547 (eval "$ac_try") 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 ac_cv_sizeof_pthread_t=`cat conftestval`
13552 else
13553 $as_echo "$as_me: program exited with status $ac_status" >&5
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ( exit $ac_status )
13558 ac_cv_sizeof_pthread_t=0
13560 rm -rf conftest.dSYM
13561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13568 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13569 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13571 cat >>confdefs.h <<_ACEOF
13572 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13573 _ACEOF
13576 CC="$ac_save_cc"
13581 case $ac_sys_system/$ac_sys_release in
13582 Darwin/[01567]\..*)
13583 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13585 Darwin/*)
13586 OTHER_LIBTOOL_OPT=""
13588 esac
13591 ARCH_RUN_32BIT=""
13593 case $ac_sys_system/$ac_sys_release in
13594 Darwin/[01567]\..*)
13595 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13596 if test "${enable_universalsdk}"; then
13598 else
13599 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
13601 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13602 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13603 Darwin/*)
13604 gcc_version=`gcc -dumpversion`
13605 if test ${gcc_version} '<' 4.0
13606 then
13607 LIBTOOL_CRUFT="-lcc_dynamic"
13608 else
13609 LIBTOOL_CRUFT=""
13611 if test "$cross_compiling" = yes; then
13612 ac_osx_32bit=yes
13613 else
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 #include <unistd.h>
13622 int main(int argc, char*argv[])
13624 if (sizeof(long) == 4) {
13625 return 0;
13626 } else {
13627 return 1;
13631 _ACEOF
13632 rm -f conftest$ac_exeext
13633 if { (ac_try="$ac_link"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13639 $as_echo "$ac_try_echo") >&5
13640 (eval "$ac_link") 2>&5
13641 ac_status=$?
13642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13644 { (case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647 esac
13648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13649 $as_echo "$ac_try_echo") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_osx_32bit=yes
13655 else
13656 $as_echo "$as_me: program exited with status $ac_status" >&5
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ( exit $ac_status )
13661 ac_osx_32bit=no
13663 rm -rf conftest.dSYM
13664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13669 if test "${ac_osx_32bit}" = "yes"; then
13670 case `/usr/bin/arch` in
13671 i386)
13672 MACOSX_DEFAULT_ARCH="i386"
13674 ppc)
13675 MACOSX_DEFAULT_ARCH="ppc"
13678 { { $as_echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13679 $as_echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13680 { (exit 1); exit 1; }; }
13682 esac
13683 else
13684 case `/usr/bin/arch` in
13685 i386)
13686 MACOSX_DEFAULT_ARCH="x86_64"
13688 ppc)
13689 MACOSX_DEFAULT_ARCH="ppc64"
13692 { { $as_echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13693 $as_echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13694 { (exit 1); exit 1; }; }
13696 esac
13698 #ARCH_RUN_32BIT="true"
13701 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13702 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13703 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13704 esac
13706 { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
13707 $as_echo_n "checking for --enable-framework... " >&6; }
13708 if test "$enable_framework"
13709 then
13710 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13711 # -F. is needed to allow linking to the framework while
13712 # in the build location.
13714 cat >>confdefs.h <<\_ACEOF
13715 #define WITH_NEXT_FRAMEWORK 1
13716 _ACEOF
13718 { $as_echo "$as_me:$LINENO: result: yes" >&5
13719 $as_echo "yes" >&6; }
13720 if test $enable_shared = "yes"
13721 then
13722 { { $as_echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13723 $as_echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13724 { (exit 1); exit 1; }; }
13726 else
13727 { $as_echo "$as_me:$LINENO: result: no" >&5
13728 $as_echo "no" >&6; }
13731 { $as_echo "$as_me:$LINENO: checking for dyld" >&5
13732 $as_echo_n "checking for dyld... " >&6; }
13733 case $ac_sys_system/$ac_sys_release in
13734 Darwin/*)
13736 cat >>confdefs.h <<\_ACEOF
13737 #define WITH_DYLD 1
13738 _ACEOF
13740 { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
13741 $as_echo "always on for Darwin" >&6; }
13744 { $as_echo "$as_me:$LINENO: result: no" >&5
13745 $as_echo "no" >&6; }
13747 esac
13749 # Set info about shared libraries.
13755 # SO is the extension of shared libraries `(including the dot!)
13756 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13757 { $as_echo "$as_me:$LINENO: checking SO" >&5
13758 $as_echo_n "checking SO... " >&6; }
13759 if test -z "$SO"
13760 then
13761 case $ac_sys_system in
13762 hp*|HP*)
13763 case `uname -m` in
13764 ia64) SO=.so;;
13765 *) SO=.sl;;
13766 esac
13768 CYGWIN*) SO=.dll;;
13769 *) SO=.so;;
13770 esac
13771 else
13772 # this might also be a termcap variable, see #610332
13773 echo
13774 echo '====================================================================='
13775 echo '+ +'
13776 echo '+ WARNING: You have set SO in your environment. +'
13777 echo '+ Do you really mean to change the extension for shared libraries? +'
13778 echo '+ Continuing in 10 seconds to let you to ponder. +'
13779 echo '+ +'
13780 echo '====================================================================='
13781 sleep 10
13783 { $as_echo "$as_me:$LINENO: result: $SO" >&5
13784 $as_echo "$SO" >&6; }
13787 cat >>confdefs.h <<_ACEOF
13788 #define SHLIB_EXT "$SO"
13789 _ACEOF
13791 # LDSHARED is the ld *command* used to create shared library
13792 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13793 # (Shared libraries in this instance are shared modules to be loaded into
13794 # Python, as opposed to building Python itself as a shared library.)
13795 { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
13796 $as_echo_n "checking LDSHARED... " >&6; }
13797 if test -z "$LDSHARED"
13798 then
13799 case $ac_sys_system/$ac_sys_release in
13800 AIX*)
13801 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13802 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13804 IRIX/5*) LDSHARED="ld -shared";;
13805 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13806 SunOS/5*)
13807 if test "$GCC" = "yes"
13808 then LDSHARED='$(CC) -shared'
13809 else LDSHARED='$(CC) -G';
13810 fi ;;
13811 hp*|HP*)
13812 if test "$GCC" = "yes"
13813 then LDSHARED='$(CC) -shared'
13814 else LDSHARED='ld -b';
13815 fi ;;
13816 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13817 Darwin/1.3*)
13818 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13819 if test "$enable_framework" ; then
13820 # Link against the framework. All externals should be defined.
13821 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13822 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13823 else
13824 # No framework. Ignore undefined symbols, assuming they come from Python
13825 LDSHARED="$LDSHARED -undefined suppress"
13826 fi ;;
13827 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13828 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13829 if test "$enable_framework" ; then
13830 # Link against the framework. All externals should be defined.
13831 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13832 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13833 else
13834 # No framework, use the Python app as bundle-loader
13835 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13836 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13837 fi ;;
13838 Darwin/*)
13839 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13840 # This allows an extension to be used in any Python
13842 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13843 then
13844 if test "${enable_universalsdk}"; then
13845 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13847 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13848 BLDSHARED="$LDSHARED"
13849 else
13850 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13851 if test "$enable_framework" ; then
13852 # Link against the framework. All externals should be defined.
13853 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13854 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13855 else
13856 # No framework, use the Python app as bundle-loader
13857 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13858 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13862 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13863 BSD/OS*/4*) LDSHARED="gcc -shared";;
13864 FreeBSD*)
13865 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13866 then
13867 LDSHARED='$(CC) -shared ${LDFLAGS}'
13868 else
13869 LDSHARED="ld -Bshareable ${LDFLAGS}"
13870 fi;;
13871 OpenBSD*)
13872 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13873 then
13874 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13875 else
13876 case `uname -r` in
13877 [01].* | 2.[0-7] | 2.[0-7].*)
13878 LDSHARED="ld -Bshareable ${LDFLAGS}"
13881 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13883 esac
13884 fi;;
13885 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13886 OpenUNIX*|UnixWare*)
13887 if test "$GCC" = "yes"
13888 then LDSHARED='$(CC) -shared'
13889 else LDSHARED='$(CC) -G'
13890 fi;;
13891 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13892 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13893 atheos*) LDSHARED="gcc -shared";;
13894 *) LDSHARED="ld";;
13895 esac
13897 { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
13898 $as_echo "$LDSHARED" >&6; }
13899 BLDSHARED=${BLDSHARED-$LDSHARED}
13900 # CCSHARED are the C *flags* used to create objects to go into a shared
13901 # library (module) -- this is only needed for a few systems
13902 { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
13903 $as_echo_n "checking CCSHARED... " >&6; }
13904 if test -z "$CCSHARED"
13905 then
13906 case $ac_sys_system/$ac_sys_release in
13907 SunOS*) if test "$GCC" = yes;
13908 then CCSHARED="-fPIC";
13909 elif test `uname -p` = sparc;
13910 then CCSHARED="-xcode=pic32";
13911 else CCSHARED="-Kpic";
13912 fi;;
13913 hp*|HP*) if test "$GCC" = yes;
13914 then CCSHARED="-fPIC";
13915 else CCSHARED="+z";
13916 fi;;
13917 Linux*|GNU*) CCSHARED="-fPIC";;
13918 BSD/OS*/4*) CCSHARED="-fpic";;
13919 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13920 OpenUNIX*|UnixWare*)
13921 if test "$GCC" = "yes"
13922 then CCSHARED="-fPIC"
13923 else CCSHARED="-KPIC"
13924 fi;;
13925 SCO_SV*)
13926 if test "$GCC" = "yes"
13927 then CCSHARED="-fPIC"
13928 else CCSHARED="-Kpic -belf"
13929 fi;;
13930 IRIX*/6*) case $CC in
13931 *gcc*) CCSHARED="-shared";;
13932 *) CCSHARED="";;
13933 esac;;
13934 atheos*) CCSHARED="-fPIC";;
13935 esac
13937 { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
13938 $as_echo "$CCSHARED" >&6; }
13939 # LINKFORSHARED are the flags passed to the $(CC) command that links
13940 # the python executable -- this is only needed for a few systems
13941 { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13942 $as_echo_n "checking LINKFORSHARED... " >&6; }
13943 if test -z "$LINKFORSHARED"
13944 then
13945 case $ac_sys_system/$ac_sys_release in
13946 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13947 hp*|HP*)
13948 LINKFORSHARED="-Wl,-E -Wl,+s";;
13949 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13950 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13951 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13952 # -u libsys_s pulls in all symbols in libsys
13953 Darwin/*)
13954 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13955 if test "$enable_framework"
13956 then
13957 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13959 LINKFORSHARED="$LINKFORSHARED";;
13960 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13961 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13962 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13963 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13964 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13965 then
13966 LINKFORSHARED="-Wl,--export-dynamic"
13967 fi;;
13968 SunOS/5*) case $CC in
13969 *gcc*)
13970 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13971 then
13972 LINKFORSHARED="-Xlinker --export-dynamic"
13973 fi;;
13974 esac;;
13975 CYGWIN*)
13976 if test $enable_shared = "no"
13977 then
13978 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13979 fi;;
13980 QNX*)
13981 # -Wl,-E causes the symbols to be added to the dynamic
13982 # symbol table so that they can be found when a module
13983 # is loaded. -N 2048K causes the stack size to be set
13984 # to 2048 kilobytes so that the stack doesn't overflow
13985 # when running test_compile.py.
13986 LINKFORSHARED='-Wl,-E -N 2048K';;
13987 esac
13989 { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13990 $as_echo "$LINKFORSHARED" >&6; }
13994 { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13995 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
13996 if test ! "$LIBRARY" = "$LDLIBRARY"
13997 then
13998 case $ac_sys_system in
13999 CYGWIN*)
14000 # Cygwin needs CCSHARED when building extension DLLs
14001 # but not when building the interpreter DLL.
14002 CFLAGSFORSHARED='';;
14004 CFLAGSFORSHARED='$(CCSHARED)'
14005 esac
14007 { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14008 $as_echo "$CFLAGSFORSHARED" >&6; }
14010 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14011 # library (with --enable-shared).
14012 # For platforms on which shared libraries are not allowed to have unresolved
14013 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14014 # if it is not required, since it creates a dependency of the shared library
14015 # to LIBS. This, in turn, means that applications linking the shared libpython
14016 # don't need to link LIBS explicitly. The default should be only changed
14017 # on systems where this approach causes problems.
14019 { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
14020 $as_echo_n "checking SHLIBS... " >&6; }
14021 case "$ac_sys_system" in
14023 SHLIBS='$(LIBS)';;
14024 esac
14025 { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
14026 $as_echo "$SHLIBS" >&6; }
14029 # checks for libraries
14031 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14034 $as_echo_n "(cached) " >&6
14035 else
14036 ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-ldl $LIBS"
14038 cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h. */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14045 /* Override any GCC internal prototype to avoid an error.
14046 Use char because int might match the return type of a GCC
14047 builtin and then its argument prototype would still apply. */
14048 #ifdef __cplusplus
14049 extern "C"
14050 #endif
14051 char dlopen ();
14053 main ()
14055 return dlopen ();
14057 return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065 esac
14066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067 $as_echo "$ac_try_echo") >&5
14068 (eval "$ac_link") 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest$ac_exeext && {
14078 test "$cross_compiling" = yes ||
14079 $as_test_x conftest$ac_exeext
14080 }; then
14081 ac_cv_lib_dl_dlopen=yes
14082 else
14083 $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_cv_lib_dl_dlopen=no
14089 rm -rf conftest.dSYM
14090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14096 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_LIBDL 1
14099 _ACEOF
14101 LIBS="-ldl $LIBS"
14104 # Dynamic linking for SunOS/Solaris and SYSV
14106 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14107 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14109 $as_echo_n "(cached) " >&6
14110 else
14111 ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-ldld $LIBS"
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char shl_load ();
14128 main ()
14130 return shl_load ();
14132 return 0;
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14140 esac
14141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14142 $as_echo "$ac_try_echo") >&5
14143 (eval "$ac_link") 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest$ac_exeext && {
14153 test "$cross_compiling" = yes ||
14154 $as_test_x conftest$ac_exeext
14155 }; then
14156 ac_cv_lib_dld_shl_load=yes
14157 else
14158 $as_echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_dld_shl_load=no
14164 rm -rf conftest.dSYM
14165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14170 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14171 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14172 cat >>confdefs.h <<_ACEOF
14173 #define HAVE_LIBDLD 1
14174 _ACEOF
14176 LIBS="-ldld $LIBS"
14179 # Dynamic linking for HP-UX
14181 # only check for sem_init if thread support is requested
14182 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14183 { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14184 $as_echo_n "checking for library containing sem_init... " >&6; }
14185 if test "${ac_cv_search_sem_init+set}" = set; then
14186 $as_echo_n "(cached) " >&6
14187 else
14188 ac_func_search_save_LIBS=$LIBS
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char sem_init ();
14204 main ()
14206 return sem_init ();
14208 return 0;
14210 _ACEOF
14211 for ac_lib in '' pthread rt posix4; do
14212 if test -z "$ac_lib"; then
14213 ac_res="none required"
14214 else
14215 ac_res=-l$ac_lib
14216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (ac_try="$ac_link"
14220 case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14223 esac
14224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14225 $as_echo "$ac_try_echo") >&5
14226 (eval "$ac_link") 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && {
14233 test -z "$ac_c_werror_flag" ||
14234 test ! -s conftest.err
14235 } && test -s conftest$ac_exeext && {
14236 test "$cross_compiling" = yes ||
14237 $as_test_x conftest$ac_exeext
14238 }; then
14239 ac_cv_search_sem_init=$ac_res
14240 else
14241 $as_echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14247 rm -rf conftest.dSYM
14248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14249 conftest$ac_exeext
14250 if test "${ac_cv_search_sem_init+set}" = set; then
14251 break
14253 done
14254 if test "${ac_cv_search_sem_init+set}" = set; then
14256 else
14257 ac_cv_search_sem_init=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14263 $as_echo "$ac_cv_search_sem_init" >&6; }
14264 ac_res=$ac_cv_search_sem_init
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14269 # 'Real Time' functions on Solaris
14270 # posix4 on Solaris 2.6
14271 # pthread (first!) on Linux
14274 # check if we need libintl for locale functions
14275 { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14276 $as_echo_n "checking for textdomain in -lintl... " >&6; }
14277 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14278 $as_echo_n "(cached) " >&6
14279 else
14280 ac_check_lib_save_LIBS=$LIBS
14281 LIBS="-lintl $LIBS"
14282 cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h. */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14289 /* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14292 #ifdef __cplusplus
14293 extern "C"
14294 #endif
14295 char textdomain ();
14297 main ()
14299 return textdomain ();
14301 return 0;
14303 _ACEOF
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309 esac
14310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312 (eval "$ac_link") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest$ac_exeext && {
14322 test "$cross_compiling" = yes ||
14323 $as_test_x conftest$ac_exeext
14324 }; then
14325 ac_cv_lib_intl_textdomain=yes
14326 else
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_cv_lib_intl_textdomain=no
14333 rm -rf conftest.dSYM
14334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14335 conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14339 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
14340 if test "x$ac_cv_lib_intl_textdomain" = x""yes; then
14342 cat >>confdefs.h <<\_ACEOF
14343 #define WITH_LIBINTL 1
14344 _ACEOF
14346 LIBS="-lintl $LIBS"
14350 # checks for system dependent C++ extensions support
14351 case "$ac_sys_system" in
14352 AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14353 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include "/usr/lpp/xlC/include/load.h"
14362 main ()
14364 loadAndInit("", 0, "")
14366 return 0;
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14376 $as_echo "$ac_try_echo") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext && {
14387 test "$cross_compiling" = yes ||
14388 $as_test_x conftest$ac_exeext
14389 }; then
14391 cat >>confdefs.h <<\_ACEOF
14392 #define AIX_GENUINE_CPLUSPLUS 1
14393 _ACEOF
14395 { $as_echo "$as_me:$LINENO: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397 else
14398 $as_echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 { $as_echo "$as_me:$LINENO: result: no" >&5
14402 $as_echo "no" >&6; }
14405 rm -rf conftest.dSYM
14406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 conftest$ac_exeext conftest.$ac_ext;;
14408 *) ;;
14409 esac
14411 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14412 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14413 $as_echo_n "checking for t_open in -lnsl... " >&6; }
14414 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14415 $as_echo_n "(cached) " >&6
14416 else
14417 ac_check_lib_save_LIBS=$LIBS
14418 LIBS="-lnsl $LIBS"
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14426 /* Override any GCC internal prototype to avoid an error.
14427 Use char because int might match the return type of a GCC
14428 builtin and then its argument prototype would still apply. */
14429 #ifdef __cplusplus
14430 extern "C"
14431 #endif
14432 char t_open ();
14434 main ()
14436 return t_open ();
14438 return 0;
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (ac_try="$ac_link"
14443 case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14446 esac
14447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14448 $as_echo "$ac_try_echo") >&5
14449 (eval "$ac_link") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext && {
14459 test "$cross_compiling" = yes ||
14460 $as_test_x conftest$ac_exeext
14461 }; then
14462 ac_cv_lib_nsl_t_open=yes
14463 else
14464 $as_echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14467 ac_cv_lib_nsl_t_open=no
14470 rm -rf conftest.dSYM
14471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14476 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
14477 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
14478 LIBS="-lnsl $LIBS"
14480 # SVR4
14481 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14482 $as_echo_n "checking for socket in -lsocket... " >&6; }
14483 if test "${ac_cv_lib_socket_socket+set}" = set; then
14484 $as_echo_n "(cached) " >&6
14485 else
14486 ac_check_lib_save_LIBS=$LIBS
14487 LIBS="-lsocket $LIBS $LIBS"
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char socket ();
14503 main ()
14505 return socket ();
14507 return 0;
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14517 $as_echo "$ac_try_echo") >&5
14518 (eval "$ac_link") 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && {
14525 test -z "$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14527 } && test -s conftest$ac_exeext && {
14528 test "$cross_compiling" = yes ||
14529 $as_test_x conftest$ac_exeext
14530 }; then
14531 ac_cv_lib_socket_socket=yes
14532 else
14533 $as_echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_cv_lib_socket_socket=no
14539 rm -rf conftest.dSYM
14540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14545 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14546 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14547 LIBS="-lsocket $LIBS"
14549 # SVR4 sockets
14551 { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
14552 $as_echo_n "checking for --with-libs... " >&6; }
14554 # Check whether --with-libs was given.
14555 if test "${with_libs+set}" = set; then
14556 withval=$with_libs;
14557 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14558 $as_echo "$withval" >&6; }
14559 LIBS="$withval $LIBS"
14561 else
14562 { $as_echo "$as_me:$LINENO: result: no" >&5
14563 $as_echo "no" >&6; }
14567 # Check for use of the system libffi library
14568 { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14569 $as_echo_n "checking for --with-system-ffi... " >&6; }
14571 # Check whether --with-system_ffi was given.
14572 if test "${with_system_ffi+set}" = set; then
14573 withval=$with_system_ffi;
14577 { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14578 $as_echo "$with_system_ffi" >&6; }
14580 # Check for --with-dbmliborder
14581 { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14582 $as_echo_n "checking for --with-dbmliborder... " >&6; }
14584 # Check whether --with-dbmliborder was given.
14585 if test "${with_dbmliborder+set}" = set; then
14586 withval=$with_dbmliborder;
14587 if test x$with_dbmliborder = xyes
14588 then
14589 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14590 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14591 { (exit 1); exit 1; }; }
14592 else
14593 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14594 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14595 then
14596 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14597 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14598 { (exit 1); exit 1; }; }
14600 done
14604 { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14605 $as_echo "$with_dbmliborder" >&6; }
14607 # Determine if signalmodule should be used.
14610 { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14611 $as_echo_n "checking for --with-signal-module... " >&6; }
14613 # Check whether --with-signal-module was given.
14614 if test "${with_signal_module+set}" = set; then
14615 withval=$with_signal_module;
14619 if test -z "$with_signal_module"
14620 then with_signal_module="yes"
14622 { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
14623 $as_echo "$with_signal_module" >&6; }
14625 if test "${with_signal_module}" = "yes"; then
14626 USE_SIGNAL_MODULE=""
14627 SIGNAL_OBJS=""
14628 else
14629 USE_SIGNAL_MODULE="#"
14630 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14633 # This is used to generate Setup.config
14635 USE_THREAD_MODULE=""
14637 { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14638 $as_echo_n "checking for --with-dec-threads... " >&6; }
14641 # Check whether --with-dec-threads was given.
14642 if test "${with_dec_threads+set}" = set; then
14643 withval=$with_dec_threads;
14644 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14645 $as_echo "$withval" >&6; }
14646 LDLAST=-threads
14647 if test "${with_thread+set}" != set; then
14648 with_thread="$withval";
14650 else
14651 { $as_echo "$as_me:$LINENO: result: no" >&5
14652 $as_echo "no" >&6; }
14656 # Templates for things AC_DEFINEd more than once.
14657 # For a single AC_DEFINE, no template is needed.
14665 { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
14666 $as_echo_n "checking for --with-threads... " >&6; }
14668 # Check whether --with-threads was given.
14669 if test "${with_threads+set}" = set; then
14670 withval=$with_threads;
14674 # --with-thread is deprecated, but check for it anyway
14676 # Check whether --with-thread was given.
14677 if test "${with_thread+set}" = set; then
14678 withval=$with_thread; with_threads=$with_thread
14682 if test -z "$with_threads"
14683 then with_threads="yes"
14685 { $as_echo "$as_me:$LINENO: result: $with_threads" >&5
14686 $as_echo "$with_threads" >&6; }
14689 if test "$with_threads" = "no"
14690 then
14691 USE_THREAD_MODULE="#"
14692 elif test "$ac_cv_pthread_is_default" = yes
14693 then
14694 cat >>confdefs.h <<\_ACEOF
14695 #define WITH_THREAD 1
14696 _ACEOF
14698 # Defining _REENTRANT on system with POSIX threads should not hurt.
14699 cat >>confdefs.h <<\_ACEOF
14700 #define _REENTRANT 1
14701 _ACEOF
14703 posix_threads=yes
14704 THREADOBJ="Python/thread.o"
14705 elif test "$ac_cv_kpthread" = "yes"
14706 then
14707 CC="$CC -Kpthread"
14708 if test "$ac_cv_cxx_thread" = "yes"; then
14709 CXX="$CXX -Kpthread"
14711 cat >>confdefs.h <<\_ACEOF
14712 #define WITH_THREAD 1
14713 _ACEOF
14715 posix_threads=yes
14716 THREADOBJ="Python/thread.o"
14717 elif test "$ac_cv_kthread" = "yes"
14718 then
14719 CC="$CC -Kthread"
14720 if test "$ac_cv_cxx_thread" = "yes"; then
14721 CXX="$CXX -Kthread"
14723 cat >>confdefs.h <<\_ACEOF
14724 #define WITH_THREAD 1
14725 _ACEOF
14727 posix_threads=yes
14728 THREADOBJ="Python/thread.o"
14729 elif test "$ac_cv_pthread" = "yes"
14730 then
14731 CC="$CC -pthread"
14732 if test "$ac_cv_cxx_thread" = "yes"; then
14733 CXX="$CXX -pthread"
14735 cat >>confdefs.h <<\_ACEOF
14736 #define WITH_THREAD 1
14737 _ACEOF
14739 posix_threads=yes
14740 THREADOBJ="Python/thread.o"
14741 else
14742 if test ! -z "$with_threads" -a -d "$with_threads"
14743 then LDFLAGS="$LDFLAGS -L$with_threads"
14745 if test ! -z "$withval" -a -d "$withval"
14746 then LDFLAGS="$LDFLAGS -L$withval"
14749 # According to the POSIX spec, a pthreads implementation must
14750 # define _POSIX_THREADS in unistd.h. Some apparently don't
14751 # (e.g. gnu pth with pthread emulation)
14752 { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14753 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 #include <unistd.h>
14762 #ifdef _POSIX_THREADS
14764 #endif
14766 _ACEOF
14767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14768 $EGREP "yes" >/dev/null 2>&1; then
14769 unistd_defines_pthreads=yes
14770 else
14771 unistd_defines_pthreads=no
14773 rm -f conftest*
14775 { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14776 $as_echo "$unistd_defines_pthreads" >&6; }
14778 cat >>confdefs.h <<\_ACEOF
14779 #define _REENTRANT 1
14780 _ACEOF
14782 if test "${ac_cv_header_cthreads_h+set}" = set; then
14783 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14784 $as_echo_n "checking for cthreads.h... " >&6; }
14785 if test "${ac_cv_header_cthreads_h+set}" = set; then
14786 $as_echo_n "(cached) " >&6
14788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14789 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14790 else
14791 # Is the header compilable?
14792 { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14793 $as_echo_n "checking cthreads.h usability... " >&6; }
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 $ac_includes_default
14801 #include <cthreads.h>
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808 esac
14809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14810 $as_echo "$ac_try_echo") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } && {
14818 test -z "$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 } && test -s conftest.$ac_objext; then
14821 ac_header_compiler=yes
14822 else
14823 $as_echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_compiler=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 $as_echo "$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14835 $as_echo_n "checking cthreads.h presence... " >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <cthreads.h>
14843 _ACEOF
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14850 $as_echo "$ac_try_echo") >&5
14851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } >/dev/null && {
14858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 }; then
14861 ac_header_preproc=yes
14862 else
14863 $as_echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 $as_echo "$ac_header_preproc" >&6; }
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 yes:no: )
14876 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14877 $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14879 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14882 no:yes:* )
14883 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14884 $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14885 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14886 $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14887 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14888 $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14889 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14890 $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14892 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14893 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14894 $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14895 ( cat <<\_ASBOX
14896 ## -------------------------------------- ##
14897 ## Report this to http://bugs.python.org/ ##
14898 ## -------------------------------------- ##
14899 _ASBOX
14900 ) | sed "s/^/$as_me: WARNING: /" >&2
14902 esac
14903 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14904 $as_echo_n "checking for cthreads.h... " >&6; }
14905 if test "${ac_cv_header_cthreads_h+set}" = set; then
14906 $as_echo_n "(cached) " >&6
14907 else
14908 ac_cv_header_cthreads_h=$ac_header_preproc
14910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14911 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14914 if test "x$ac_cv_header_cthreads_h" = x""yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define WITH_THREAD 1
14917 _ACEOF
14919 cat >>confdefs.h <<\_ACEOF
14920 #define C_THREADS 1
14921 _ACEOF
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HURD_C_THREADS 1
14926 _ACEOF
14928 LIBS="$LIBS -lthreads"
14929 THREADOBJ="Python/thread.o"
14930 else
14932 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14933 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14934 $as_echo_n "checking for mach/cthreads.h... " >&6; }
14935 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14936 $as_echo_n "(cached) " >&6
14938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14939 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
14940 else
14941 # Is the header compilable?
14942 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14943 $as_echo_n "checking mach/cthreads.h usability... " >&6; }
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 $ac_includes_default
14951 #include <mach/cthreads.h>
14952 _ACEOF
14953 rm -f conftest.$ac_objext
14954 if { (ac_try="$ac_compile"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958 esac
14959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14960 $as_echo "$ac_try_echo") >&5
14961 (eval "$ac_compile") 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && {
14968 test -z "$ac_c_werror_flag" ||
14969 test ! -s conftest.err
14970 } && test -s conftest.$ac_objext; then
14971 ac_header_compiler=yes
14972 else
14973 $as_echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_header_compiler=no
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981 $as_echo "$ac_header_compiler" >&6; }
14983 # Is the header present?
14984 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14985 $as_echo_n "checking mach/cthreads.h presence... " >&6; }
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <mach/cthreads.h>
14993 _ACEOF
14994 if { (ac_try="$ac_cpp conftest.$ac_ext"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998 esac
14999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000 $as_echo "$ac_try_echo") >&5
15001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null && {
15008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15009 test ! -s conftest.err
15010 }; then
15011 ac_header_preproc=yes
15012 else
15013 $as_echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_header_preproc=no
15019 rm -f conftest.err conftest.$ac_ext
15020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021 $as_echo "$ac_header_preproc" >&6; }
15023 # So? What about this header?
15024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15025 yes:no: )
15026 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15027 $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15028 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15029 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15030 ac_header_preproc=yes
15032 no:yes:* )
15033 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15034 $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15035 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15036 $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15037 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15038 $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15039 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15040 $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15041 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15042 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15044 $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15045 ( cat <<\_ASBOX
15046 ## -------------------------------------- ##
15047 ## Report this to http://bugs.python.org/ ##
15048 ## -------------------------------------- ##
15049 _ASBOX
15050 ) | sed "s/^/$as_me: WARNING: /" >&2
15052 esac
15053 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15054 $as_echo_n "checking for mach/cthreads.h... " >&6; }
15055 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15056 $as_echo_n "(cached) " >&6
15057 else
15058 ac_cv_header_mach_cthreads_h=$ac_header_preproc
15060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15061 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
15064 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then
15065 cat >>confdefs.h <<\_ACEOF
15066 #define WITH_THREAD 1
15067 _ACEOF
15069 cat >>confdefs.h <<\_ACEOF
15070 #define C_THREADS 1
15071 _ACEOF
15074 cat >>confdefs.h <<\_ACEOF
15075 #define MACH_C_THREADS 1
15076 _ACEOF
15078 THREADOBJ="Python/thread.o"
15079 else
15081 { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
15082 $as_echo_n "checking for --with-pth... " >&6; }
15084 # Check whether --with-pth was given.
15085 if test "${with_pth+set}" = set; then
15086 withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
15087 $as_echo "$withval" >&6; }
15088 cat >>confdefs.h <<\_ACEOF
15089 #define WITH_THREAD 1
15090 _ACEOF
15093 cat >>confdefs.h <<\_ACEOF
15094 #define HAVE_PTH 1
15095 _ACEOF
15097 LIBS="-lpth $LIBS"
15098 THREADOBJ="Python/thread.o"
15099 else
15100 { $as_echo "$as_me:$LINENO: result: no" >&5
15101 $as_echo "no" >&6; }
15103 # Just looking for pthread_create in libpthread is not enough:
15104 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15105 # So we really have to include pthread.h, and then link.
15106 _libs=$LIBS
15107 LIBS="$LIBS -lpthread"
15108 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15109 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 #include <pthread.h>
15118 void * start_routine (void *arg) { exit (0); }
15120 main ()
15123 pthread_create (NULL, NULL, start_routine, NULL)
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15135 $as_echo "$ac_try_echo") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext && {
15146 test "$cross_compiling" = yes ||
15147 $as_test_x conftest$ac_exeext
15148 }; then
15150 { $as_echo "$as_me:$LINENO: result: yes" >&5
15151 $as_echo "yes" >&6; }
15152 cat >>confdefs.h <<\_ACEOF
15153 #define WITH_THREAD 1
15154 _ACEOF
15156 posix_threads=yes
15157 THREADOBJ="Python/thread.o"
15158 else
15159 $as_echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15163 LIBS=$_libs
15164 { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
15165 $as_echo_n "checking for pthread_detach... " >&6; }
15166 if test "${ac_cv_func_pthread_detach+set}" = set; then
15167 $as_echo_n "(cached) " >&6
15168 else
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h. */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15177 #define pthread_detach innocuous_pthread_detach
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char pthread_detach (); below.
15181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15182 <limits.h> exists even on freestanding compilers. */
15184 #ifdef __STDC__
15185 # include <limits.h>
15186 #else
15187 # include <assert.h>
15188 #endif
15190 #undef pthread_detach
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 char pthread_detach ();
15199 /* The GNU C library defines this for functions which it implements
15200 to always fail with ENOSYS. Some functions are actually named
15201 something starting with __ and the normal name is an alias. */
15202 #if defined __stub_pthread_detach || defined __stub___pthread_detach
15203 choke me
15204 #endif
15207 main ()
15209 return pthread_detach ();
15211 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15221 $as_echo "$ac_try_echo") >&5
15222 (eval "$ac_link") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest$ac_exeext && {
15232 test "$cross_compiling" = yes ||
15233 $as_test_x conftest$ac_exeext
15234 }; then
15235 ac_cv_func_pthread_detach=yes
15236 else
15237 $as_echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_func_pthread_detach=no
15243 rm -rf conftest.dSYM
15244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15245 conftest$ac_exeext conftest.$ac_ext
15247 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15248 $as_echo "$ac_cv_func_pthread_detach" >&6; }
15249 if test "x$ac_cv_func_pthread_detach" = x""yes; then
15250 cat >>confdefs.h <<\_ACEOF
15251 #define WITH_THREAD 1
15252 _ACEOF
15254 posix_threads=yes
15255 THREADOBJ="Python/thread.o"
15256 else
15258 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15259 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15260 $as_echo_n "checking for atheos/threads.h... " >&6; }
15261 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15262 $as_echo_n "(cached) " >&6
15264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15265 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15266 else
15267 # Is the header compilable?
15268 { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15269 $as_echo_n "checking atheos/threads.h usability... " >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <atheos/threads.h>
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (ac_try="$ac_compile"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284 esac
15285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15286 $as_echo "$ac_try_echo") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest.$ac_objext; then
15297 ac_header_compiler=yes
15298 else
15299 $as_echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_header_compiler=no
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307 $as_echo "$ac_header_compiler" >&6; }
15309 # Is the header present?
15310 { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15311 $as_echo_n "checking atheos/threads.h presence... " >&6; }
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 #include <atheos/threads.h>
15319 _ACEOF
15320 if { (ac_try="$ac_cpp conftest.$ac_ext"
15321 case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324 esac
15325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15326 $as_echo "$ac_try_echo") >&5
15327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15328 ac_status=$?
15329 grep -v '^ *+' conftest.er1 >conftest.err
15330 rm -f conftest.er1
15331 cat conftest.err >&5
15332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } >/dev/null && {
15334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15335 test ! -s conftest.err
15336 }; then
15337 ac_header_preproc=yes
15338 else
15339 $as_echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_header_preproc=no
15345 rm -f conftest.err conftest.$ac_ext
15346 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347 $as_echo "$ac_header_preproc" >&6; }
15349 # So? What about this header?
15350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15351 yes:no: )
15352 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15353 $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15354 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15355 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15356 ac_header_preproc=yes
15358 no:yes:* )
15359 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15360 $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15361 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15362 $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15364 $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15366 $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15367 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15368 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15369 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15370 $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15371 ( cat <<\_ASBOX
15372 ## -------------------------------------- ##
15373 ## Report this to http://bugs.python.org/ ##
15374 ## -------------------------------------- ##
15375 _ASBOX
15376 ) | sed "s/^/$as_me: WARNING: /" >&2
15378 esac
15379 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15380 $as_echo_n "checking for atheos/threads.h... " >&6; }
15381 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15382 $as_echo_n "(cached) " >&6
15383 else
15384 ac_cv_header_atheos_threads_h=$ac_header_preproc
15386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15387 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15390 if test "x$ac_cv_header_atheos_threads_h" = x""yes; then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define WITH_THREAD 1
15393 _ACEOF
15396 cat >>confdefs.h <<\_ACEOF
15397 #define ATHEOS_THREADS 1
15398 _ACEOF
15400 THREADOBJ="Python/thread.o"
15401 else
15403 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15404 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
15405 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15406 $as_echo_n "(cached) " >&6
15407 else
15408 ac_check_lib_save_LIBS=$LIBS
15409 LIBS="-lpthreads $LIBS"
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char pthread_create ();
15425 main ()
15427 return pthread_create ();
15429 return 0;
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440 (eval "$ac_link") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext && {
15450 test "$cross_compiling" = yes ||
15451 $as_test_x conftest$ac_exeext
15452 }; then
15453 ac_cv_lib_pthreads_pthread_create=yes
15454 else
15455 $as_echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_cv_lib_pthreads_pthread_create=no
15461 rm -rf conftest.dSYM
15462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15463 conftest$ac_exeext conftest.$ac_ext
15464 LIBS=$ac_check_lib_save_LIBS
15466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15467 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
15468 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
15469 cat >>confdefs.h <<\_ACEOF
15470 #define WITH_THREAD 1
15471 _ACEOF
15473 posix_threads=yes
15474 LIBS="$LIBS -lpthreads"
15475 THREADOBJ="Python/thread.o"
15476 else
15478 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15479 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15480 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15481 $as_echo_n "(cached) " >&6
15482 else
15483 ac_check_lib_save_LIBS=$LIBS
15484 LIBS="-lc_r $LIBS"
15485 cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15495 #ifdef __cplusplus
15496 extern "C"
15497 #endif
15498 char pthread_create ();
15500 main ()
15502 return pthread_create ();
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15514 $as_echo "$ac_try_echo") >&5
15515 (eval "$ac_link") 2>conftest.er1
15516 ac_status=$?
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
15520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } && {
15522 test -z "$ac_c_werror_flag" ||
15523 test ! -s conftest.err
15524 } && test -s conftest$ac_exeext && {
15525 test "$cross_compiling" = yes ||
15526 $as_test_x conftest$ac_exeext
15527 }; then
15528 ac_cv_lib_c_r_pthread_create=yes
15529 else
15530 $as_echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_cv_lib_c_r_pthread_create=no
15536 rm -rf conftest.dSYM
15537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15538 conftest$ac_exeext conftest.$ac_ext
15539 LIBS=$ac_check_lib_save_LIBS
15541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15542 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15543 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
15544 cat >>confdefs.h <<\_ACEOF
15545 #define WITH_THREAD 1
15546 _ACEOF
15548 posix_threads=yes
15549 LIBS="$LIBS -lc_r"
15550 THREADOBJ="Python/thread.o"
15551 else
15553 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15554 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
15555 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15556 $as_echo_n "(cached) " >&6
15557 else
15558 ac_check_lib_save_LIBS=$LIBS
15559 LIBS="-lpthread $LIBS"
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char __pthread_create_system ();
15575 main ()
15577 return __pthread_create_system ();
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15589 $as_echo "$ac_try_echo") >&5
15590 (eval "$ac_link") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest$ac_exeext && {
15600 test "$cross_compiling" = yes ||
15601 $as_test_x conftest$ac_exeext
15602 }; then
15603 ac_cv_lib_pthread___pthread_create_system=yes
15604 else
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_lib_pthread___pthread_create_system=no
15611 rm -rf conftest.dSYM
15612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15613 conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15617 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
15618 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then
15619 cat >>confdefs.h <<\_ACEOF
15620 #define WITH_THREAD 1
15621 _ACEOF
15623 posix_threads=yes
15624 LIBS="$LIBS -lpthread"
15625 THREADOBJ="Python/thread.o"
15626 else
15628 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15629 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
15630 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15631 $as_echo_n "(cached) " >&6
15632 else
15633 ac_check_lib_save_LIBS=$LIBS
15634 LIBS="-lcma $LIBS"
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h. */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15642 /* Override any GCC internal prototype to avoid an error.
15643 Use char because int might match the return type of a GCC
15644 builtin and then its argument prototype would still apply. */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 char pthread_create ();
15650 main ()
15652 return pthread_create ();
15654 return 0;
15656 _ACEOF
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (ac_try="$ac_link"
15659 case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662 esac
15663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15664 $as_echo "$ac_try_echo") >&5
15665 (eval "$ac_link") 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest$ac_exeext && {
15675 test "$cross_compiling" = yes ||
15676 $as_test_x conftest$ac_exeext
15677 }; then
15678 ac_cv_lib_cma_pthread_create=yes
15679 else
15680 $as_echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_lib_cma_pthread_create=no
15686 rm -rf conftest.dSYM
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15692 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
15693 if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define WITH_THREAD 1
15696 _ACEOF
15698 posix_threads=yes
15699 LIBS="$LIBS -lcma"
15700 THREADOBJ="Python/thread.o"
15701 else
15703 USE_THREAD_MODULE="#"
15720 rm -rf conftest.dSYM
15721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15722 conftest$ac_exeext conftest.$ac_ext
15732 { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15733 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
15734 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15735 $as_echo_n "(cached) " >&6
15736 else
15737 ac_check_lib_save_LIBS=$LIBS
15738 LIBS="-lmpc $LIBS"
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char usconfig ();
15754 main ()
15756 return usconfig ();
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766 esac
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_link") 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest$ac_exeext && {
15779 test "$cross_compiling" = yes ||
15780 $as_test_x conftest$ac_exeext
15781 }; then
15782 ac_cv_lib_mpc_usconfig=yes
15783 else
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_lib_mpc_usconfig=no
15790 rm -rf conftest.dSYM
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15796 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
15797 if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then
15798 cat >>confdefs.h <<\_ACEOF
15799 #define WITH_THREAD 1
15800 _ACEOF
15802 LIBS="$LIBS -lmpc"
15803 THREADOBJ="Python/thread.o"
15804 USE_THREAD_MODULE=""
15808 if test "$posix_threads" != "yes"; then
15809 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15810 $as_echo_n "checking for thr_create in -lthread... " >&6; }
15811 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15812 $as_echo_n "(cached) " >&6
15813 else
15814 ac_check_lib_save_LIBS=$LIBS
15815 LIBS="-lthread $LIBS"
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15826 #ifdef __cplusplus
15827 extern "C"
15828 #endif
15829 char thr_create ();
15831 main ()
15833 return thr_create ();
15835 return 0;
15837 _ACEOF
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846 (eval "$ac_link") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest$ac_exeext && {
15856 test "$cross_compiling" = yes ||
15857 $as_test_x conftest$ac_exeext
15858 }; then
15859 ac_cv_lib_thread_thr_create=yes
15860 else
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_cv_lib_thread_thr_create=no
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15873 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
15874 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define WITH_THREAD 1
15877 _ACEOF
15879 LIBS="$LIBS -lthread"
15880 THREADOBJ="Python/thread.o"
15881 USE_THREAD_MODULE=""
15886 if test "$USE_THREAD_MODULE" != "#"
15887 then
15888 # If the above checks didn't disable threads, (at least) OSF1
15889 # needs this '-threads' argument during linking.
15890 case $ac_sys_system in
15891 OSF1) LDLAST=-threads;;
15892 esac
15896 if test "$posix_threads" = "yes"; then
15897 if test "$unistd_defines_pthreads" = "no"; then
15899 cat >>confdefs.h <<\_ACEOF
15900 #define _POSIX_THREADS 1
15901 _ACEOF
15905 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15906 case $ac_sys_system/$ac_sys_release in
15907 SunOS/5.6)
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_PTHREAD_DESTRUCTOR 1
15910 _ACEOF
15913 SunOS/5.8)
15914 cat >>confdefs.h <<\_ACEOF
15915 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15916 _ACEOF
15919 AIX/5)
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15922 _ACEOF
15925 esac
15927 { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15928 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
15929 if test "${ac_cv_pthread_system_supported+set}" = set; then
15930 $as_echo_n "(cached) " >&6
15931 else
15932 if test "$cross_compiling" = yes; then
15933 ac_cv_pthread_system_supported=no
15934 else
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h. */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <pthread.h>
15942 void *foo(void *parm) {
15943 return NULL;
15945 main() {
15946 pthread_attr_t attr;
15947 pthread_t id;
15948 if (pthread_attr_init(&attr)) exit(-1);
15949 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15950 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15951 exit(0);
15953 _ACEOF
15954 rm -f conftest$ac_exeext
15955 if { (ac_try="$ac_link"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959 esac
15960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15961 $as_echo "$ac_try_echo") >&5
15962 (eval "$ac_link") 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15971 $as_echo "$ac_try_echo") >&5
15972 (eval "$ac_try") 2>&5
15973 ac_status=$?
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_cv_pthread_system_supported=yes
15977 else
15978 $as_echo "$as_me: program exited with status $ac_status" >&5
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ( exit $ac_status )
15983 ac_cv_pthread_system_supported=no
15985 rm -rf conftest.dSYM
15986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15993 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15994 $as_echo "$ac_cv_pthread_system_supported" >&6; }
15995 if test "$ac_cv_pthread_system_supported" = "yes"; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15999 _ACEOF
16003 for ac_func in pthread_sigmask
16005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16006 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16007 $as_echo_n "checking for $ac_func... " >&6; }
16008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16009 $as_echo_n "(cached) " >&6
16010 else
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16019 #define $ac_func innocuous_$ac_func
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16026 #ifdef __STDC__
16027 # include <limits.h>
16028 #else
16029 # include <assert.h>
16030 #endif
16032 #undef $ac_func
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16037 #ifdef __cplusplus
16038 extern "C"
16039 #endif
16040 char $ac_func ();
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined __stub_$ac_func || defined __stub___$ac_func
16045 choke me
16046 #endif
16049 main ()
16051 return $ac_func ();
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (ac_try="$ac_link"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_link") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest$ac_exeext && {
16074 test "$cross_compiling" = yes ||
16075 $as_test_x conftest$ac_exeext
16076 }; then
16077 eval "$as_ac_var=yes"
16078 else
16079 $as_echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 eval "$as_ac_var=no"
16085 rm -rf conftest.dSYM
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16089 ac_res=`eval 'as_val=${'$as_ac_var'}
16090 $as_echo "$as_val"'`
16091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16092 $as_echo "$ac_res" >&6; }
16093 as_val=`eval 'as_val=${'$as_ac_var'}
16094 $as_echo "$as_val"'`
16095 if test "x$as_val" = x""yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 _ACEOF
16099 case $ac_sys_system in
16100 CYGWIN*)
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
16104 _ACEOF
16107 esac
16109 done
16114 # Check for enable-ipv6
16117 { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16118 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
16119 # Check whether --enable-ipv6 was given.
16120 if test "${enable_ipv6+set}" = set; then
16121 enableval=$enable_ipv6; case "$enableval" in
16123 { $as_echo "$as_me:$LINENO: result: no" >&5
16124 $as_echo "no" >&6; }
16125 ipv6=no
16127 *) { $as_echo "$as_me:$LINENO: result: yes" >&5
16128 $as_echo "yes" >&6; }
16129 cat >>confdefs.h <<\_ACEOF
16130 #define ENABLE_IPV6 1
16131 _ACEOF
16133 ipv6=yes
16135 esac
16136 else
16138 if test "$cross_compiling" = yes; then
16139 { $as_echo "$as_me:$LINENO: result: no" >&5
16140 $as_echo "no" >&6; }
16141 ipv6=no
16143 else
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h. */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 /* AF_INET6 available check */
16151 #include <sys/types.h>
16152 #include <sys/socket.h>
16153 main()
16155 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16156 exit(1);
16157 else
16158 exit(0);
16161 _ACEOF
16162 rm -f conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_link") 2>&5
16171 ac_status=$?
16172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177 esac
16178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16179 $as_echo "$ac_try_echo") >&5
16180 (eval "$ac_try") 2>&5
16181 ac_status=$?
16182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 { $as_echo "$as_me:$LINENO: result: yes" >&5
16185 $as_echo "yes" >&6; }
16186 ipv6=yes
16187 else
16188 $as_echo "$as_me: program exited with status $ac_status" >&5
16189 $as_echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ( exit $ac_status )
16193 { $as_echo "$as_me:$LINENO: result: no" >&5
16194 $as_echo "no" >&6; }
16195 ipv6=no
16197 rm -rf conftest.dSYM
16198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16203 if test "$ipv6" = "yes"; then
16204 { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16205 $as_echo_n "checking if RFC2553 API is available... " >&6; }
16206 cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h. */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 #include <sys/types.h>
16213 #include <netinet/in.h>
16215 main ()
16217 struct sockaddr_in6 x;
16218 x.sin6_scope_id;
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228 esac
16229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16230 $as_echo "$ac_try_echo") >&5
16231 (eval "$ac_compile") 2>conftest.er1
16232 ac_status=$?
16233 grep -v '^ *+' conftest.er1 >conftest.err
16234 rm -f conftest.er1
16235 cat conftest.err >&5
16236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } && {
16238 test -z "$ac_c_werror_flag" ||
16239 test ! -s conftest.err
16240 } && test -s conftest.$ac_objext; then
16241 { $as_echo "$as_me:$LINENO: result: yes" >&5
16242 $as_echo "yes" >&6; }
16243 ipv6=yes
16244 else
16245 $as_echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 { $as_echo "$as_me:$LINENO: result: no" >&5
16249 $as_echo "no" >&6; }
16250 ipv6=no
16253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 if test "$ipv6" = "yes"; then
16257 cat >>confdefs.h <<\_ACEOF
16258 #define ENABLE_IPV6 1
16259 _ACEOF
16266 ipv6type=unknown
16267 ipv6lib=none
16268 ipv6trylibc=no
16270 if test "$ipv6" = "yes"; then
16271 { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16272 $as_echo_n "checking ipv6 stack type... " >&6; }
16273 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16275 case $i in
16276 inria)
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h. */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16284 #include <netinet/in.h>
16285 #ifdef IPV6_INRIA_VERSION
16287 #endif
16288 _ACEOF
16289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16290 $EGREP "yes" >/dev/null 2>&1; then
16291 ipv6type=$i
16293 rm -f conftest*
16296 kame)
16297 cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h. */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16304 #include <netinet/in.h>
16305 #ifdef __KAME__
16307 #endif
16308 _ACEOF
16309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16310 $EGREP "yes" >/dev/null 2>&1; then
16311 ipv6type=$i;
16312 ipv6lib=inet6
16313 ipv6libdir=/usr/local/v6/lib
16314 ipv6trylibc=yes
16316 rm -f conftest*
16319 linux-glibc)
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h. */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16327 #include <features.h>
16328 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16330 #endif
16331 _ACEOF
16332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16333 $EGREP "yes" >/dev/null 2>&1; then
16334 ipv6type=$i;
16335 ipv6trylibc=yes
16337 rm -f conftest*
16340 linux-inet6)
16341 if test -d /usr/inet6; then
16342 ipv6type=$i
16343 ipv6lib=inet6
16344 ipv6libdir=/usr/inet6/lib
16345 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16348 solaris)
16349 if test -f /etc/netconfig; then
16350 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16351 ipv6type=$i
16352 ipv6trylibc=yes
16356 toshiba)
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16364 #include <sys/param.h>
16365 #ifdef _TOSHIBA_INET6
16367 #endif
16368 _ACEOF
16369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16370 $EGREP "yes" >/dev/null 2>&1; then
16371 ipv6type=$i;
16372 ipv6lib=inet6;
16373 ipv6libdir=/usr/local/v6/lib
16375 rm -f conftest*
16378 v6d)
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 #include </usr/local/v6/include/sys/v6config.h>
16387 #ifdef __V6D__
16389 #endif
16390 _ACEOF
16391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16392 $EGREP "yes" >/dev/null 2>&1; then
16393 ipv6type=$i;
16394 ipv6lib=v6;
16395 ipv6libdir=/usr/local/v6/lib;
16396 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16398 rm -f conftest*
16401 zeta)
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h. */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 #include <sys/param.h>
16410 #ifdef _ZETA_MINAMI_INET6
16412 #endif
16413 _ACEOF
16414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415 $EGREP "yes" >/dev/null 2>&1; then
16416 ipv6type=$i;
16417 ipv6lib=inet6;
16418 ipv6libdir=/usr/local/v6/lib
16420 rm -f conftest*
16423 esac
16424 if test "$ipv6type" != "unknown"; then
16425 break
16427 done
16428 { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
16429 $as_echo "$ipv6type" >&6; }
16432 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16433 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16434 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16435 echo "using lib$ipv6lib"
16436 else
16437 if test $ipv6trylibc = "yes"; then
16438 echo "using libc"
16439 else
16440 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16441 echo "You need to fetch lib$ipv6lib.a from appropriate"
16442 echo 'ipv6 kit and compile beforehand.'
16443 exit 1
16448 { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16449 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <Carbon/Carbon.h>
16458 main ()
16460 FSIORefNum fRef = 0
16462 return 0;
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (ac_try="$ac_compile"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470 esac
16471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16472 $as_echo "$ac_try_echo") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest.$ac_objext; then
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_OSX105_SDK 1
16486 _ACEOF
16488 { $as_echo "$as_me:$LINENO: result: yes" >&5
16489 $as_echo "yes" >&6; }
16490 else
16491 $as_echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 { $as_echo "$as_me:$LINENO: result: no" >&5
16495 $as_echo "no" >&6; }
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501 # Check for --with-doc-strings
16502 { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16503 $as_echo_n "checking for --with-doc-strings... " >&6; }
16505 # Check whether --with-doc-strings was given.
16506 if test "${with_doc_strings+set}" = set; then
16507 withval=$with_doc_strings;
16511 if test -z "$with_doc_strings"
16512 then with_doc_strings="yes"
16514 if test "$with_doc_strings" != "no"
16515 then
16517 cat >>confdefs.h <<\_ACEOF
16518 #define WITH_DOC_STRINGS 1
16519 _ACEOF
16522 { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16523 $as_echo "$with_doc_strings" >&6; }
16525 # Check for Python-specific malloc support
16526 { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
16527 $as_echo_n "checking for --with-tsc... " >&6; }
16529 # Check whether --with-tsc was given.
16530 if test "${with_tsc+set}" = set; then
16531 withval=$with_tsc;
16532 if test "$withval" != no
16533 then
16535 cat >>confdefs.h <<\_ACEOF
16536 #define WITH_TSC 1
16537 _ACEOF
16539 { $as_echo "$as_me:$LINENO: result: yes" >&5
16540 $as_echo "yes" >&6; }
16541 else { $as_echo "$as_me:$LINENO: result: no" >&5
16542 $as_echo "no" >&6; }
16544 else
16545 { $as_echo "$as_me:$LINENO: result: no" >&5
16546 $as_echo "no" >&6; }
16550 # Check for Python-specific malloc support
16551 { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16552 $as_echo_n "checking for --with-pymalloc... " >&6; }
16554 # Check whether --with-pymalloc was given.
16555 if test "${with_pymalloc+set}" = set; then
16556 withval=$with_pymalloc;
16560 if test -z "$with_pymalloc"
16561 then with_pymalloc="yes"
16563 if test "$with_pymalloc" != "no"
16564 then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define WITH_PYMALLOC 1
16568 _ACEOF
16571 { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16572 $as_echo "$with_pymalloc" >&6; }
16574 # Check for --with-wctype-functions
16575 { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16576 $as_echo_n "checking for --with-wctype-functions... " >&6; }
16578 # Check whether --with-wctype-functions was given.
16579 if test "${with_wctype_functions+set}" = set; then
16580 withval=$with_wctype_functions;
16581 if test "$withval" != no
16582 then
16584 cat >>confdefs.h <<\_ACEOF
16585 #define WANT_WCTYPE_FUNCTIONS 1
16586 _ACEOF
16588 { $as_echo "$as_me:$LINENO: result: yes" >&5
16589 $as_echo "yes" >&6; }
16590 else { $as_echo "$as_me:$LINENO: result: no" >&5
16591 $as_echo "no" >&6; }
16593 else
16594 { $as_echo "$as_me:$LINENO: result: no" >&5
16595 $as_echo "no" >&6; }
16599 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16601 DLINCLDIR=.
16603 # the dlopen() function means we might want to use dynload_shlib.o. some
16604 # platforms, such as AIX, have dlopen(), but don't want to use it.
16606 for ac_func in dlopen
16608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16609 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16610 $as_echo_n "checking for $ac_func... " >&6; }
16611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16612 $as_echo_n "(cached) " >&6
16613 else
16614 cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h. */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16622 #define $ac_func innocuous_$ac_func
16624 /* System header to define __stub macros and hopefully few prototypes,
16625 which can conflict with char $ac_func (); below.
16626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16627 <limits.h> exists even on freestanding compilers. */
16629 #ifdef __STDC__
16630 # include <limits.h>
16631 #else
16632 # include <assert.h>
16633 #endif
16635 #undef $ac_func
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 $ac_func ();
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined __stub_$ac_func || defined __stub___$ac_func
16648 choke me
16649 #endif
16652 main ()
16654 return $ac_func ();
16656 return 0;
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664 esac
16665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16666 $as_echo "$ac_try_echo") >&5
16667 (eval "$ac_link") 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest$ac_exeext && {
16677 test "$cross_compiling" = yes ||
16678 $as_test_x conftest$ac_exeext
16679 }; then
16680 eval "$as_ac_var=yes"
16681 else
16682 $as_echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 eval "$as_ac_var=no"
16688 rm -rf conftest.dSYM
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16690 conftest$ac_exeext conftest.$ac_ext
16692 ac_res=`eval 'as_val=${'$as_ac_var'}
16693 $as_echo "$as_val"'`
16694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16695 $as_echo "$ac_res" >&6; }
16696 as_val=`eval 'as_val=${'$as_ac_var'}
16697 $as_echo "$as_val"'`
16698 if test "x$as_val" = x""yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16701 _ACEOF
16704 done
16707 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16708 # loading of modules.
16710 { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16711 $as_echo_n "checking DYNLOADFILE... " >&6; }
16712 if test -z "$DYNLOADFILE"
16713 then
16714 case $ac_sys_system/$ac_sys_release in
16715 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16716 if test "$ac_cv_func_dlopen" = yes
16717 then DYNLOADFILE="dynload_shlib.o"
16718 else DYNLOADFILE="dynload_aix.o"
16721 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16722 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16723 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16724 atheos*) DYNLOADFILE="dynload_atheos.o";;
16726 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16727 # out any dynamic loading
16728 if test "$ac_cv_func_dlopen" = yes
16729 then DYNLOADFILE="dynload_shlib.o"
16730 else DYNLOADFILE="dynload_stub.o"
16733 esac
16735 { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16736 $as_echo "$DYNLOADFILE" >&6; }
16737 if test "$DYNLOADFILE" != "dynload_stub.o"
16738 then
16740 cat >>confdefs.h <<\_ACEOF
16741 #define HAVE_DYNAMIC_LOADING 1
16742 _ACEOF
16746 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16749 { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16750 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
16751 if test -z "$MACHDEP_OBJS"
16752 then
16753 MACHDEP_OBJS=$extra_machdep_objs
16754 else
16755 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16757 { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16758 $as_echo "MACHDEP_OBJS" >&6; }
16760 # checks for library functions
16850 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16851 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16852 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16853 getpriority getpwent getspnam getspent getsid getwd \
16854 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16855 mremap nice pathconf pause plock poll pthread_init \
16856 putenv readlink realpath \
16857 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16858 setgid \
16859 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16860 sigaction siginterrupt sigrelse strftime strlcpy \
16861 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16862 truncate uname unsetenv utimes waitpid wait3 wait4 \
16863 wcscoll wcsftime wcsxfrm _getpty
16865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16866 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16867 $as_echo_n "checking for $ac_func... " >&6; }
16868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16869 $as_echo_n "(cached) " >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16879 #define $ac_func innocuous_$ac_func
16881 /* System header to define __stub macros and hopefully few prototypes,
16882 which can conflict with char $ac_func (); below.
16883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16884 <limits.h> exists even on freestanding compilers. */
16886 #ifdef __STDC__
16887 # include <limits.h>
16888 #else
16889 # include <assert.h>
16890 #endif
16892 #undef $ac_func
16894 /* Override any GCC internal prototype to avoid an error.
16895 Use char because int might match the return type of a GCC
16896 builtin and then its argument prototype would still apply. */
16897 #ifdef __cplusplus
16898 extern "C"
16899 #endif
16900 char $ac_func ();
16901 /* The GNU C library defines this for functions which it implements
16902 to always fail with ENOSYS. Some functions are actually named
16903 something starting with __ and the normal name is an alias. */
16904 #if defined __stub_$ac_func || defined __stub___$ac_func
16905 choke me
16906 #endif
16909 main ()
16911 return $ac_func ();
16913 return 0;
16915 _ACEOF
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (ac_try="$ac_link"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924 (eval "$ac_link") 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest$ac_exeext && {
16934 test "$cross_compiling" = yes ||
16935 $as_test_x conftest$ac_exeext
16936 }; then
16937 eval "$as_ac_var=yes"
16938 else
16939 $as_echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942 eval "$as_ac_var=no"
16945 rm -rf conftest.dSYM
16946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16947 conftest$ac_exeext conftest.$ac_ext
16949 ac_res=`eval 'as_val=${'$as_ac_var'}
16950 $as_echo "$as_val"'`
16951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16953 as_val=`eval 'as_val=${'$as_ac_var'}
16954 $as_echo "$as_val"'`
16955 if test "x$as_val" = x""yes; then
16956 cat >>confdefs.h <<_ACEOF
16957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16958 _ACEOF
16961 done
16964 # For some functions, having a definition is not sufficient, since
16965 # we want to take their address.
16966 { $as_echo "$as_me:$LINENO: checking for chroot" >&5
16967 $as_echo_n "checking for chroot... " >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <unistd.h>
16976 main ()
16978 void *x=chroot
16980 return 0;
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16990 $as_echo "$ac_try_echo") >&5
16991 (eval "$ac_compile") 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest.$ac_objext; then
17002 cat >>confdefs.h <<\_ACEOF
17003 #define HAVE_CHROOT 1
17004 _ACEOF
17006 { $as_echo "$as_me:$LINENO: result: yes" >&5
17007 $as_echo "yes" >&6; }
17008 else
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 { $as_echo "$as_me:$LINENO: result: no" >&5
17013 $as_echo "no" >&6; }
17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 { $as_echo "$as_me:$LINENO: checking for link" >&5
17019 $as_echo_n "checking for link... " >&6; }
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026 #include <unistd.h>
17028 main ()
17030 void *x=link
17032 return 0;
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040 esac
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_compile") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } && {
17050 test -z "$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17052 } && test -s conftest.$ac_objext; then
17054 cat >>confdefs.h <<\_ACEOF
17055 #define HAVE_LINK 1
17056 _ACEOF
17058 { $as_echo "$as_me:$LINENO: result: yes" >&5
17059 $as_echo "yes" >&6; }
17060 else
17061 $as_echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 { $as_echo "$as_me:$LINENO: result: no" >&5
17065 $as_echo "no" >&6; }
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { $as_echo "$as_me:$LINENO: checking for symlink" >&5
17071 $as_echo_n "checking for symlink... " >&6; }
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include <unistd.h>
17080 main ()
17082 void *x=symlink
17084 return 0;
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_compile") 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest.$ac_objext; then
17106 cat >>confdefs.h <<\_ACEOF
17107 #define HAVE_SYMLINK 1
17108 _ACEOF
17110 { $as_echo "$as_me:$LINENO: result: yes" >&5
17111 $as_echo "yes" >&6; }
17112 else
17113 $as_echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 { $as_echo "$as_me:$LINENO: result: no" >&5
17117 $as_echo "no" >&6; }
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 { $as_echo "$as_me:$LINENO: checking for fchdir" >&5
17123 $as_echo_n "checking for fchdir... " >&6; }
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 #include <unistd.h>
17132 main ()
17134 void *x=fchdir
17136 return 0;
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144 esac
17145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17146 $as_echo "$ac_try_echo") >&5
17147 (eval "$ac_compile") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && {
17154 test -z "$ac_c_werror_flag" ||
17155 test ! -s conftest.err
17156 } && test -s conftest.$ac_objext; then
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_FCHDIR 1
17160 _ACEOF
17162 { $as_echo "$as_me:$LINENO: result: yes" >&5
17163 $as_echo "yes" >&6; }
17164 else
17165 $as_echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 { $as_echo "$as_me:$LINENO: result: no" >&5
17169 $as_echo "no" >&6; }
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 { $as_echo "$as_me:$LINENO: checking for fsync" >&5
17175 $as_echo_n "checking for fsync... " >&6; }
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h. */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182 #include <unistd.h>
17184 main ()
17186 void *x=fsync
17188 return 0;
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_FSYNC 1
17212 _ACEOF
17214 { $as_echo "$as_me:$LINENO: result: yes" >&5
17215 $as_echo "yes" >&6; }
17216 else
17217 $as_echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 { $as_echo "$as_me:$LINENO: result: no" >&5
17221 $as_echo "no" >&6; }
17225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17226 { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
17227 $as_echo_n "checking for fdatasync... " >&6; }
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #include <unistd.h>
17236 main ()
17238 void *x=fdatasync
17240 return 0;
17242 _ACEOF
17243 rm -f conftest.$ac_objext
17244 if { (ac_try="$ac_compile"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248 esac
17249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17250 $as_echo "$ac_try_echo") >&5
17251 (eval "$ac_compile") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest.$ac_objext; then
17262 cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_FDATASYNC 1
17264 _ACEOF
17266 { $as_echo "$as_me:$LINENO: result: yes" >&5
17267 $as_echo "yes" >&6; }
17268 else
17269 $as_echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 { $as_echo "$as_me:$LINENO: result: no" >&5
17273 $as_echo "no" >&6; }
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 { $as_echo "$as_me:$LINENO: checking for epoll" >&5
17279 $as_echo_n "checking for epoll... " >&6; }
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 #include <sys/epoll.h>
17288 main ()
17290 void *x=epoll_create
17292 return 0;
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (ac_try="$ac_compile"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17300 esac
17301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17302 $as_echo "$ac_try_echo") >&5
17303 (eval "$ac_compile") 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } && {
17310 test -z "$ac_c_werror_flag" ||
17311 test ! -s conftest.err
17312 } && test -s conftest.$ac_objext; then
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_EPOLL 1
17316 _ACEOF
17318 { $as_echo "$as_me:$LINENO: result: yes" >&5
17319 $as_echo "yes" >&6; }
17320 else
17321 $as_echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 { $as_echo "$as_me:$LINENO: result: no" >&5
17325 $as_echo "no" >&6; }
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330 { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
17331 $as_echo_n "checking for kqueue... " >&6; }
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include <sys/types.h>
17340 #include <sys/event.h>
17343 main ()
17345 int x=kqueue()
17347 return 0;
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (ac_try="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17355 esac
17356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17357 $as_echo "$ac_try_echo") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest.$ac_objext; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_KQUEUE 1
17371 _ACEOF
17373 { $as_echo "$as_me:$LINENO: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 else
17376 $as_echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 { $as_echo "$as_me:$LINENO: result: no" >&5
17380 $as_echo "no" >&6; }
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 # On some systems (eg. FreeBSD 5), we would find a definition of the
17386 # functions ctermid_r, setgroups in the library, but no prototype
17387 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17388 # address to avoid compiler warnings and potential miscompilations
17389 # because of the missing prototypes.
17391 { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
17392 $as_echo_n "checking for ctermid_r... " >&6; }
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17400 #include "confdefs.h"
17401 #include <stdio.h>
17404 main ()
17406 void* p = ctermid_r
17408 return 0;
17410 _ACEOF
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416 esac
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17430 cat >>confdefs.h <<\_ACEOF
17431 #define HAVE_CTERMID_R 1
17432 _ACEOF
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436 else
17437 $as_echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 { $as_echo "$as_me:$LINENO: result: no" >&5
17441 $as_echo "no" >&6; }
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { $as_echo "$as_me:$LINENO: checking for flock" >&5
17448 $as_echo_n "checking for flock... " >&6; }
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include "confdefs.h"
17457 #include <sys/file.h>
17460 main ()
17462 void* p = flock
17464 return 0;
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (ac_try="$ac_compile"
17469 case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472 esac
17473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17474 $as_echo "$ac_try_echo") >&5
17475 (eval "$ac_compile") 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } && {
17482 test -z "$ac_c_werror_flag" ||
17483 test ! -s conftest.err
17484 } && test -s conftest.$ac_objext; then
17486 cat >>confdefs.h <<\_ACEOF
17487 #define HAVE_FLOCK 1
17488 _ACEOF
17490 { $as_echo "$as_me:$LINENO: result: yes" >&5
17491 $as_echo "yes" >&6; }
17492 else
17493 $as_echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 { $as_echo "$as_me:$LINENO: result: no" >&5
17497 $as_echo "no" >&6; }
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
17504 $as_echo_n "checking for getpagesize... " >&6; }
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 #include "confdefs.h"
17513 #include <unistd.h>
17516 main ()
17518 void* p = getpagesize
17520 return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530 $as_echo "$ac_try_echo") >&5
17531 (eval "$ac_compile") 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest.$ac_objext; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_GETPAGESIZE 1
17544 _ACEOF
17546 { $as_echo "$as_me:$LINENO: result: yes" >&5
17547 $as_echo "yes" >&6; }
17548 else
17549 $as_echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 { $as_echo "$as_me:$LINENO: result: no" >&5
17553 $as_echo "no" >&6; }
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 for ac_prog in true
17561 # Extract the first word of "$ac_prog", so it can be a program name with args.
17562 set dummy $ac_prog; ac_word=$2
17563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17564 $as_echo_n "checking for $ac_word... " >&6; }
17565 if test "${ac_cv_prog_TRUE+set}" = set; then
17566 $as_echo_n "(cached) " >&6
17567 else
17568 if test -n "$TRUE"; then
17569 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17570 else
17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572 for as_dir in $PATH
17574 IFS=$as_save_IFS
17575 test -z "$as_dir" && as_dir=.
17576 for ac_exec_ext in '' $ac_executable_extensions; do
17577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17578 ac_cv_prog_TRUE="$ac_prog"
17579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17580 break 2
17582 done
17583 done
17584 IFS=$as_save_IFS
17588 TRUE=$ac_cv_prog_TRUE
17589 if test -n "$TRUE"; then
17590 { $as_echo "$as_me:$LINENO: result: $TRUE" >&5
17591 $as_echo "$TRUE" >&6; }
17592 else
17593 { $as_echo "$as_me:$LINENO: result: no" >&5
17594 $as_echo "no" >&6; }
17598 test -n "$TRUE" && break
17599 done
17600 test -n "$TRUE" || TRUE="/bin/true"
17603 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17604 $as_echo_n "checking for inet_aton in -lc... " >&6; }
17605 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17606 $as_echo_n "(cached) " >&6
17607 else
17608 ac_check_lib_save_LIBS=$LIBS
17609 LIBS="-lc $LIBS"
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17620 #ifdef __cplusplus
17621 extern "C"
17622 #endif
17623 char inet_aton ();
17625 main ()
17627 return inet_aton ();
17629 return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_link") 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest$ac_exeext && {
17650 test "$cross_compiling" = yes ||
17651 $as_test_x conftest$ac_exeext
17652 }; then
17653 ac_cv_lib_c_inet_aton=yes
17654 else
17655 $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_cv_lib_c_inet_aton=no
17661 rm -rf conftest.dSYM
17662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17663 conftest$ac_exeext conftest.$ac_ext
17664 LIBS=$ac_check_lib_save_LIBS
17666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17667 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
17668 if test "x$ac_cv_lib_c_inet_aton" = x""yes; then
17669 $ac_cv_prog_TRUE
17670 else
17672 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17673 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17674 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17675 $as_echo_n "(cached) " >&6
17676 else
17677 ac_check_lib_save_LIBS=$LIBS
17678 LIBS="-lresolv $LIBS"
17679 cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 char inet_aton ();
17694 main ()
17696 return inet_aton ();
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest$ac_exeext && {
17719 test "$cross_compiling" = yes ||
17720 $as_test_x conftest$ac_exeext
17721 }; then
17722 ac_cv_lib_resolv_inet_aton=yes
17723 else
17724 $as_echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_lib_resolv_inet_aton=no
17730 rm -rf conftest.dSYM
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17733 LIBS=$ac_check_lib_save_LIBS
17735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17736 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17737 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_LIBRESOLV 1
17740 _ACEOF
17742 LIBS="-lresolv $LIBS"
17750 # On Tru64, chflags seems to be present, but calling it will
17751 # exit Python
17752 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17753 $as_echo_n "checking for chflags... " >&6; }
17754 if test "${ac_cv_have_chflags+set}" = set; then
17755 $as_echo_n "(cached) " >&6
17756 else
17757 if test "$cross_compiling" = yes; then
17758 ac_cv_have_chflags=cross
17759 else
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 #include <sys/stat.h>
17768 #include <unistd.h>
17769 int main(int argc, char*argv[])
17771 if(chflags(argv[0], 0) != 0)
17772 return 1;
17773 return 0;
17776 _ACEOF
17777 rm -f conftest$ac_exeext
17778 if { (ac_try="$ac_link"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17784 $as_echo "$ac_try_echo") >&5
17785 (eval "$ac_link") 2>&5
17786 ac_status=$?
17787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17789 { (case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17792 esac
17793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17794 $as_echo "$ac_try_echo") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_have_chflags=yes
17800 else
17801 $as_echo "$as_me: program exited with status $ac_status" >&5
17802 $as_echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ( exit $ac_status )
17806 ac_cv_have_chflags=no
17808 rm -rf conftest.dSYM
17809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17815 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17816 $as_echo "$ac_cv_have_chflags" >&6; }
17817 if test "$ac_cv_have_chflags" = cross ; then
17818 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17819 $as_echo_n "checking for chflags... " >&6; }
17820 if test "${ac_cv_func_chflags+set}" = set; then
17821 $as_echo_n "(cached) " >&6
17822 else
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define chflags innocuous_chflags
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char chflags (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17838 #ifdef __STDC__
17839 # include <limits.h>
17840 #else
17841 # include <assert.h>
17842 #endif
17844 #undef chflags
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char chflags ();
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_chflags || defined __stub___chflags
17857 choke me
17858 #endif
17861 main ()
17863 return chflags ();
17865 return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873 esac
17874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17875 $as_echo "$ac_try_echo") >&5
17876 (eval "$ac_link") 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest$ac_exeext && {
17886 test "$cross_compiling" = yes ||
17887 $as_test_x conftest$ac_exeext
17888 }; then
17889 ac_cv_func_chflags=yes
17890 else
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_cv_func_chflags=no
17897 rm -rf conftest.dSYM
17898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17899 conftest$ac_exeext conftest.$ac_ext
17901 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17902 $as_echo "$ac_cv_func_chflags" >&6; }
17903 if test "x$ac_cv_func_chflags" = x""yes; then
17904 ac_cv_have_chflags="yes"
17905 else
17906 ac_cv_have_chflags="no"
17910 if test "$ac_cv_have_chflags" = yes ; then
17912 cat >>confdefs.h <<\_ACEOF
17913 #define HAVE_CHFLAGS 1
17914 _ACEOF
17918 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17919 $as_echo_n "checking for lchflags... " >&6; }
17920 if test "${ac_cv_have_lchflags+set}" = set; then
17921 $as_echo_n "(cached) " >&6
17922 else
17923 if test "$cross_compiling" = yes; then
17924 ac_cv_have_lchflags=cross
17925 else
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17933 #include <sys/stat.h>
17934 #include <unistd.h>
17935 int main(int argc, char*argv[])
17937 if(lchflags(argv[0], 0) != 0)
17938 return 1;
17939 return 0;
17942 _ACEOF
17943 rm -f conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948 esac
17949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17950 $as_echo "$ac_try_echo") >&5
17951 (eval "$ac_link") 2>&5
17952 ac_status=$?
17953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17955 { (case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958 esac
17959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17960 $as_echo "$ac_try_echo") >&5
17961 (eval "$ac_try") 2>&5
17962 ac_status=$?
17963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_have_lchflags=yes
17966 else
17967 $as_echo "$as_me: program exited with status $ac_status" >&5
17968 $as_echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ( exit $ac_status )
17972 ac_cv_have_lchflags=no
17974 rm -rf conftest.dSYM
17975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17981 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17982 $as_echo "$ac_cv_have_lchflags" >&6; }
17983 if test "$ac_cv_have_lchflags" = cross ; then
17984 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17985 $as_echo_n "checking for lchflags... " >&6; }
17986 if test "${ac_cv_func_lchflags+set}" = set; then
17987 $as_echo_n "(cached) " >&6
17988 else
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h. */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17997 #define lchflags innocuous_lchflags
17999 /* System header to define __stub macros and hopefully few prototypes,
18000 which can conflict with char lchflags (); below.
18001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002 <limits.h> exists even on freestanding compilers. */
18004 #ifdef __STDC__
18005 # include <limits.h>
18006 #else
18007 # include <assert.h>
18008 #endif
18010 #undef lchflags
18012 /* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 char lchflags ();
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined __stub_lchflags || defined __stub___lchflags
18023 choke me
18024 #endif
18027 main ()
18029 return lchflags ();
18031 return 0;
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (ac_try="$ac_link"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039 esac
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042 (eval "$ac_link") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext && {
18052 test "$cross_compiling" = yes ||
18053 $as_test_x conftest$ac_exeext
18054 }; then
18055 ac_cv_func_lchflags=yes
18056 else
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_func_lchflags=no
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065 conftest$ac_exeext conftest.$ac_ext
18067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
18068 $as_echo "$ac_cv_func_lchflags" >&6; }
18069 if test "x$ac_cv_func_lchflags" = x""yes; then
18070 ac_cv_have_lchflags="yes"
18071 else
18072 ac_cv_have_lchflags="no"
18076 if test "$ac_cv_have_lchflags" = yes ; then
18078 cat >>confdefs.h <<\_ACEOF
18079 #define HAVE_LCHFLAGS 1
18080 _ACEOF
18084 case $ac_sys_system/$ac_sys_release in
18085 Darwin/*)
18086 _CUR_CFLAGS="${CFLAGS}"
18087 _CUR_LDFLAGS="${LDFLAGS}"
18088 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18089 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18091 esac
18093 { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18094 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
18095 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18096 $as_echo_n "(cached) " >&6
18097 else
18098 ac_check_lib_save_LIBS=$LIBS
18099 LIBS="-lz $LIBS"
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 char inflateCopy ();
18115 main ()
18117 return inflateCopy ();
18119 return 0;
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_link") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext && {
18140 test "$cross_compiling" = yes ||
18141 $as_test_x conftest$ac_exeext
18142 }; then
18143 ac_cv_lib_z_inflateCopy=yes
18144 else
18145 $as_echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_cv_lib_z_inflateCopy=no
18151 rm -rf conftest.dSYM
18152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18157 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
18158 if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_ZLIB_COPY 1
18162 _ACEOF
18167 case $ac_sys_system/$ac_sys_release in
18168 Darwin/*)
18169 CFLAGS="${_CUR_CFLAGS}"
18170 LDFLAGS="${_CUR_LDFLAGS}"
18172 esac
18174 { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
18175 $as_echo_n "checking for hstrerror... " >&6; }
18176 cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h. */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18183 #include "confdefs.h"
18184 #include <netdb.h>
18187 main ()
18189 void* p = hstrerror; hstrerror(0)
18191 return 0;
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (ac_try="$ac_link"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199 esac
18200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18201 $as_echo "$ac_try_echo") >&5
18202 (eval "$ac_link") 2>conftest.er1
18203 ac_status=$?
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
18207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } && {
18209 test -z "$ac_c_werror_flag" ||
18210 test ! -s conftest.err
18211 } && test -s conftest$ac_exeext && {
18212 test "$cross_compiling" = yes ||
18213 $as_test_x conftest$ac_exeext
18214 }; then
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_HSTRERROR 1
18218 _ACEOF
18220 { $as_echo "$as_me:$LINENO: result: yes" >&5
18221 $as_echo "yes" >&6; }
18222 else
18223 $as_echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 { $as_echo "$as_me:$LINENO: result: no" >&5
18227 $as_echo "no" >&6; }
18231 rm -rf conftest.dSYM
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18235 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18236 $as_echo_n "checking for inet_aton... " >&6; }
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h. */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18244 #include "confdefs.h"
18245 #include <sys/types.h>
18246 #include <sys/socket.h>
18247 #include <netinet/in.h>
18248 #include <arpa/inet.h>
18251 main ()
18253 void* p = inet_aton;inet_aton(0,0)
18255 return 0;
18257 _ACEOF
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18263 esac
18264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18265 $as_echo "$ac_try_echo") >&5
18266 (eval "$ac_link") 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } && {
18273 test -z "$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 } && test -s conftest$ac_exeext && {
18276 test "$cross_compiling" = yes ||
18277 $as_test_x conftest$ac_exeext
18278 }; then
18280 cat >>confdefs.h <<\_ACEOF
18281 #define HAVE_INET_ATON 1
18282 _ACEOF
18284 { $as_echo "$as_me:$LINENO: result: yes" >&5
18285 $as_echo "yes" >&6; }
18286 else
18287 $as_echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 { $as_echo "$as_me:$LINENO: result: no" >&5
18291 $as_echo "no" >&6; }
18295 rm -rf conftest.dSYM
18296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18297 conftest$ac_exeext conftest.$ac_ext
18299 { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
18300 $as_echo_n "checking for inet_pton... " >&6; }
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 #include "confdefs.h"
18309 #include <sys/types.h>
18310 #include <sys/socket.h>
18311 #include <netinet/in.h>
18312 #include <arpa/inet.h>
18315 main ()
18317 void* p = inet_pton
18319 return 0;
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18329 $as_echo "$ac_try_echo") >&5
18330 (eval "$ac_compile") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest.$ac_objext; then
18341 cat >>confdefs.h <<\_ACEOF
18342 #define HAVE_INET_PTON 1
18343 _ACEOF
18345 { $as_echo "$as_me:$LINENO: result: yes" >&5
18346 $as_echo "yes" >&6; }
18347 else
18348 $as_echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 { $as_echo "$as_me:$LINENO: result: no" >&5
18352 $as_echo "no" >&6; }
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358 # On some systems, setgroups is in unistd.h, on others, in grp.h
18359 { $as_echo "$as_me:$LINENO: checking for setgroups" >&5
18360 $as_echo_n "checking for setgroups... " >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 #include "confdefs.h"
18369 #include <unistd.h>
18370 #ifdef HAVE_GRP_H
18371 #include <grp.h>
18372 #endif
18375 main ()
18377 void* p = setgroups
18379 return 0;
18381 _ACEOF
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18387 esac
18388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18401 cat >>confdefs.h <<\_ACEOF
18402 #define HAVE_SETGROUPS 1
18403 _ACEOF
18405 { $as_echo "$as_me:$LINENO: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 else
18408 $as_echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 { $as_echo "$as_me:$LINENO: result: no" >&5
18412 $as_echo "no" >&6; }
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 # check for openpty and forkpty
18421 for ac_func in openpty
18423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18424 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18425 $as_echo_n "checking for $ac_func... " >&6; }
18426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18427 $as_echo_n "(cached) " >&6
18428 else
18429 cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h. */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define $ac_func innocuous_$ac_func
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char $ac_func (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18444 #ifdef __STDC__
18445 # include <limits.h>
18446 #else
18447 # include <assert.h>
18448 #endif
18450 #undef $ac_func
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 char $ac_func ();
18459 /* The GNU C library defines this for functions which it implements
18460 to always fail with ENOSYS. Some functions are actually named
18461 something starting with __ and the normal name is an alias. */
18462 #if defined __stub_$ac_func || defined __stub___$ac_func
18463 choke me
18464 #endif
18467 main ()
18469 return $ac_func ();
18471 return 0;
18473 _ACEOF
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext && {
18492 test "$cross_compiling" = yes ||
18493 $as_test_x conftest$ac_exeext
18494 }; then
18495 eval "$as_ac_var=yes"
18496 else
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 eval "$as_ac_var=no"
18503 rm -rf conftest.dSYM
18504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505 conftest$ac_exeext conftest.$ac_ext
18507 ac_res=`eval 'as_val=${'$as_ac_var'}
18508 $as_echo "$as_val"'`
18509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18510 $as_echo "$ac_res" >&6; }
18511 as_val=`eval 'as_val=${'$as_ac_var'}
18512 $as_echo "$as_val"'`
18513 if test "x$as_val" = x""yes; then
18514 cat >>confdefs.h <<_ACEOF
18515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18516 _ACEOF
18518 else
18519 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18520 $as_echo_n "checking for openpty in -lutil... " >&6; }
18521 if test "${ac_cv_lib_util_openpty+set}" = set; then
18522 $as_echo_n "(cached) " >&6
18523 else
18524 ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lutil $LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h. */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 char openpty ();
18541 main ()
18543 return openpty ();
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18555 $as_echo "$ac_try_echo") >&5
18556 (eval "$ac_link") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest$ac_exeext && {
18566 test "$cross_compiling" = yes ||
18567 $as_test_x conftest$ac_exeext
18568 }; then
18569 ac_cv_lib_util_openpty=yes
18570 else
18571 $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_cv_lib_util_openpty=no
18577 rm -rf conftest.dSYM
18578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18579 conftest$ac_exeext conftest.$ac_ext
18580 LIBS=$ac_check_lib_save_LIBS
18582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18583 $as_echo "$ac_cv_lib_util_openpty" >&6; }
18584 if test "x$ac_cv_lib_util_openpty" = x""yes; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_OPENPTY 1
18587 _ACEOF
18588 LIBS="$LIBS -lutil"
18589 else
18590 { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18591 $as_echo_n "checking for openpty in -lbsd... " >&6; }
18592 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18593 $as_echo_n "(cached) " >&6
18594 else
18595 ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lbsd $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 char openpty ();
18612 main ()
18614 return openpty ();
18616 return 0;
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627 (eval "$ac_link") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest$ac_exeext && {
18637 test "$cross_compiling" = yes ||
18638 $as_test_x conftest$ac_exeext
18639 }; then
18640 ac_cv_lib_bsd_openpty=yes
18641 else
18642 $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ac_cv_lib_bsd_openpty=no
18648 rm -rf conftest.dSYM
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18654 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
18655 if test "x$ac_cv_lib_bsd_openpty" = x""yes; then
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_OPENPTY 1
18658 _ACEOF
18659 LIBS="$LIBS -lbsd"
18667 done
18670 for ac_func in forkpty
18672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18674 $as_echo_n "checking for $ac_func... " >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached) " >&6
18677 else
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18693 #ifdef __STDC__
18694 # include <limits.h>
18695 #else
18696 # include <assert.h>
18697 #endif
18699 #undef $ac_func
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18704 #ifdef __cplusplus
18705 extern "C"
18706 #endif
18707 char $ac_func ();
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18712 choke me
18713 #endif
18716 main ()
18718 return $ac_func ();
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18730 $as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest$ac_exeext
18743 }; then
18744 eval "$as_ac_var=yes"
18745 else
18746 $as_echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 eval "$as_ac_var=no"
18752 rm -rf conftest.dSYM
18753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 conftest$ac_exeext conftest.$ac_ext
18756 ac_res=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 as_val=`eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'`
18762 if test "x$as_val" = x""yes; then
18763 cat >>confdefs.h <<_ACEOF
18764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18765 _ACEOF
18767 else
18768 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18769 $as_echo_n "checking for forkpty in -lutil... " >&6; }
18770 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18771 $as_echo_n "(cached) " >&6
18772 else
18773 ac_check_lib_save_LIBS=$LIBS
18774 LIBS="-lutil $LIBS"
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18785 #ifdef __cplusplus
18786 extern "C"
18787 #endif
18788 char forkpty ();
18790 main ()
18792 return forkpty ();
18794 return 0;
18796 _ACEOF
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (ac_try="$ac_link"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18802 esac
18803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18804 $as_echo "$ac_try_echo") >&5
18805 (eval "$ac_link") 2>conftest.er1
18806 ac_status=$?
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
18810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext && {
18815 test "$cross_compiling" = yes ||
18816 $as_test_x conftest$ac_exeext
18817 }; then
18818 ac_cv_lib_util_forkpty=yes
18819 else
18820 $as_echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_lib_util_forkpty=no
18826 rm -rf conftest.dSYM
18827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18832 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
18833 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define HAVE_FORKPTY 1
18836 _ACEOF
18837 LIBS="$LIBS -lutil"
18838 else
18839 { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18840 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
18841 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18842 $as_echo_n "(cached) " >&6
18843 else
18844 ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-lbsd $LIBS"
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h. */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 char forkpty ();
18861 main ()
18863 return forkpty ();
18865 return 0;
18867 _ACEOF
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873 esac
18874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18875 $as_echo "$ac_try_echo") >&5
18876 (eval "$ac_link") 2>conftest.er1
18877 ac_status=$?
18878 grep -v '^ *+' conftest.er1 >conftest.err
18879 rm -f conftest.er1
18880 cat conftest.err >&5
18881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest$ac_exeext && {
18886 test "$cross_compiling" = yes ||
18887 $as_test_x conftest$ac_exeext
18888 }; then
18889 ac_cv_lib_bsd_forkpty=yes
18890 else
18891 $as_echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_cv_lib_bsd_forkpty=no
18897 rm -rf conftest.dSYM
18898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18903 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
18904 if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_FORKPTY 1
18907 _ACEOF
18908 LIBS="$LIBS -lbsd"
18916 done
18919 # Stuff for expat.
18921 for ac_func in memmove
18923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18924 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18925 $as_echo_n "checking for $ac_func... " >&6; }
18926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18927 $as_echo_n "(cached) " >&6
18928 else
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18937 #define $ac_func innocuous_$ac_func
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char $ac_func (); below.
18941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942 <limits.h> exists even on freestanding compilers. */
18944 #ifdef __STDC__
18945 # include <limits.h>
18946 #else
18947 # include <assert.h>
18948 #endif
18950 #undef $ac_func
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18955 #ifdef __cplusplus
18956 extern "C"
18957 #endif
18958 char $ac_func ();
18959 /* The GNU C library defines this for functions which it implements
18960 to always fail with ENOSYS. Some functions are actually named
18961 something starting with __ and the normal name is an alias. */
18962 #if defined __stub_$ac_func || defined __stub___$ac_func
18963 choke me
18964 #endif
18967 main ()
18969 return $ac_func ();
18971 return 0;
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982 (eval "$ac_link") 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest$ac_exeext && {
18992 test "$cross_compiling" = yes ||
18993 $as_test_x conftest$ac_exeext
18994 }; then
18995 eval "$as_ac_var=yes"
18996 else
18997 $as_echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19003 rm -rf conftest.dSYM
19004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19005 conftest$ac_exeext conftest.$ac_ext
19007 ac_res=`eval 'as_val=${'$as_ac_var'}
19008 $as_echo "$as_val"'`
19009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19010 $as_echo "$ac_res" >&6; }
19011 as_val=`eval 'as_val=${'$as_ac_var'}
19012 $as_echo "$as_val"'`
19013 if test "x$as_val" = x""yes; then
19014 cat >>confdefs.h <<_ACEOF
19015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19016 _ACEOF
19019 done
19022 # check for long file support functions
19029 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19032 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19033 $as_echo_n "checking for $ac_func... " >&6; }
19034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19035 $as_echo_n "(cached) " >&6
19036 else
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19045 #define $ac_func innocuous_$ac_func
19047 /* System header to define __stub macros and hopefully few prototypes,
19048 which can conflict with char $ac_func (); below.
19049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 <limits.h> exists even on freestanding compilers. */
19052 #ifdef __STDC__
19053 # include <limits.h>
19054 #else
19055 # include <assert.h>
19056 #endif
19058 #undef $ac_func
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char $ac_func ();
19067 /* The GNU C library defines this for functions which it implements
19068 to always fail with ENOSYS. Some functions are actually named
19069 something starting with __ and the normal name is an alias. */
19070 #if defined __stub_$ac_func || defined __stub___$ac_func
19071 choke me
19072 #endif
19075 main ()
19077 return $ac_func ();
19079 return 0;
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_link") 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest$ac_exeext && {
19100 test "$cross_compiling" = yes ||
19101 $as_test_x conftest$ac_exeext
19102 }; then
19103 eval "$as_ac_var=yes"
19104 else
19105 $as_echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 eval "$as_ac_var=no"
19111 rm -rf conftest.dSYM
19112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19113 conftest$ac_exeext conftest.$ac_ext
19115 ac_res=`eval 'as_val=${'$as_ac_var'}
19116 $as_echo "$as_val"'`
19117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19118 $as_echo "$ac_res" >&6; }
19119 as_val=`eval 'as_val=${'$as_ac_var'}
19120 $as_echo "$as_val"'`
19121 if test "x$as_val" = x""yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19124 _ACEOF
19127 done
19133 for ac_func in dup2 getcwd strdup
19135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19136 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 $as_echo_n "checking for $ac_func... " >&6; }
19138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19139 $as_echo_n "(cached) " >&6
19140 else
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define $ac_func innocuous_$ac_func
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char $ac_func (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19156 #ifdef __STDC__
19157 # include <limits.h>
19158 #else
19159 # include <assert.h>
19160 #endif
19162 #undef $ac_func
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char $ac_func ();
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined __stub_$ac_func || defined __stub___$ac_func
19175 choke me
19176 #endif
19179 main ()
19181 return $ac_func ();
19183 return 0;
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19193 $as_echo "$ac_try_echo") >&5
19194 (eval "$ac_link") 2>conftest.er1
19195 ac_status=$?
19196 grep -v '^ *+' conftest.er1 >conftest.err
19197 rm -f conftest.er1
19198 cat conftest.err >&5
19199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } && {
19201 test -z "$ac_c_werror_flag" ||
19202 test ! -s conftest.err
19203 } && test -s conftest$ac_exeext && {
19204 test "$cross_compiling" = yes ||
19205 $as_test_x conftest$ac_exeext
19206 }; then
19207 eval "$as_ac_var=yes"
19208 else
19209 $as_echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 eval "$as_ac_var=no"
19215 rm -rf conftest.dSYM
19216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19217 conftest$ac_exeext conftest.$ac_ext
19219 ac_res=`eval 'as_val=${'$as_ac_var'}
19220 $as_echo "$as_val"'`
19221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19222 $as_echo "$ac_res" >&6; }
19223 as_val=`eval 'as_val=${'$as_ac_var'}
19224 $as_echo "$as_val"'`
19225 if test "x$as_val" = x""yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19228 _ACEOF
19230 else
19231 case " $LIBOBJS " in
19232 *" $ac_func.$ac_objext "* ) ;;
19233 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19235 esac
19238 done
19242 for ac_func in getpgrp
19244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 $as_echo_n "checking for $ac_func... " >&6; }
19247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19248 $as_echo_n "(cached) " >&6
19249 else
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define $ac_func innocuous_$ac_func
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char $ac_func (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19265 #ifdef __STDC__
19266 # include <limits.h>
19267 #else
19268 # include <assert.h>
19269 #endif
19271 #undef $ac_func
19273 /* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 char $ac_func ();
19280 /* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283 #if defined __stub_$ac_func || defined __stub___$ac_func
19284 choke me
19285 #endif
19288 main ()
19290 return $ac_func ();
19292 return 0;
19294 _ACEOF
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300 esac
19301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19302 $as_echo "$ac_try_echo") >&5
19303 (eval "$ac_link") 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 $as_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_exeext && {
19313 test "$cross_compiling" = yes ||
19314 $as_test_x conftest$ac_exeext
19315 }; then
19316 eval "$as_ac_var=yes"
19317 else
19318 $as_echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 eval "$as_ac_var=no"
19324 rm -rf conftest.dSYM
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326 conftest$ac_exeext conftest.$ac_ext
19328 ac_res=`eval 'as_val=${'$as_ac_var'}
19329 $as_echo "$as_val"'`
19330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19331 $as_echo "$ac_res" >&6; }
19332 as_val=`eval 'as_val=${'$as_ac_var'}
19333 $as_echo "$as_val"'`
19334 if test "x$as_val" = x""yes; then
19335 cat >>confdefs.h <<_ACEOF
19336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19337 _ACEOF
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #include <unistd.h>
19346 main ()
19348 getpgrp(0);
19350 return 0;
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358 esac
19359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360 $as_echo "$ac_try_echo") >&5
19361 (eval "$ac_compile") 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest.$ac_objext; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define GETPGRP_HAVE_ARG 1
19374 _ACEOF
19377 else
19378 $as_echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 done
19390 for ac_func in setpgrp
19392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 $as_echo_n "checking for $ac_func... " >&6; }
19395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19396 $as_echo_n "(cached) " >&6
19397 else
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19406 #define $ac_func innocuous_$ac_func
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char $ac_func (); below.
19410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411 <limits.h> exists even on freestanding compilers. */
19413 #ifdef __STDC__
19414 # include <limits.h>
19415 #else
19416 # include <assert.h>
19417 #endif
19419 #undef $ac_func
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char $ac_func ();
19428 /* The GNU C library defines this for functions which it implements
19429 to always fail with ENOSYS. Some functions are actually named
19430 something starting with __ and the normal name is an alias. */
19431 #if defined __stub_$ac_func || defined __stub___$ac_func
19432 choke me
19433 #endif
19436 main ()
19438 return $ac_func ();
19440 return 0;
19442 _ACEOF
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448 esac
19449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19450 $as_echo "$ac_try_echo") >&5
19451 (eval "$ac_link") 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_c_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest$ac_exeext && {
19461 test "$cross_compiling" = yes ||
19462 $as_test_x conftest$ac_exeext
19463 }; then
19464 eval "$as_ac_var=yes"
19465 else
19466 $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 eval "$as_ac_var=no"
19472 rm -rf conftest.dSYM
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19476 ac_res=`eval 'as_val=${'$as_ac_var'}
19477 $as_echo "$as_val"'`
19478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19479 $as_echo "$ac_res" >&6; }
19480 as_val=`eval 'as_val=${'$as_ac_var'}
19481 $as_echo "$as_val"'`
19482 if test "x$as_val" = x""yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19485 _ACEOF
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <unistd.h>
19494 main ()
19496 setpgrp(0,0);
19498 return 0;
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (ac_try="$ac_compile"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19508 $as_echo "$ac_try_echo") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest.$ac_objext; then
19520 cat >>confdefs.h <<\_ACEOF
19521 #define SETPGRP_HAVE_ARG 1
19522 _ACEOF
19525 else
19526 $as_echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 done
19538 for ac_func in gettimeofday
19540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19542 $as_echo_n "checking for $ac_func... " >&6; }
19543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19544 $as_echo_n "(cached) " >&6
19545 else
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h. */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19554 #define $ac_func innocuous_$ac_func
19556 /* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char $ac_func (); below.
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19559 <limits.h> exists even on freestanding compilers. */
19561 #ifdef __STDC__
19562 # include <limits.h>
19563 #else
19564 # include <assert.h>
19565 #endif
19567 #undef $ac_func
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19572 #ifdef __cplusplus
19573 extern "C"
19574 #endif
19575 char $ac_func ();
19576 /* The GNU C library defines this for functions which it implements
19577 to always fail with ENOSYS. Some functions are actually named
19578 something starting with __ and the normal name is an alias. */
19579 #if defined __stub_$ac_func || defined __stub___$ac_func
19580 choke me
19581 #endif
19584 main ()
19586 return $ac_func ();
19588 return 0;
19590 _ACEOF
19591 rm -f conftest.$ac_objext conftest$ac_exeext
19592 if { (ac_try="$ac_link"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596 esac
19597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19598 $as_echo "$ac_try_echo") >&5
19599 (eval "$ac_link") 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest$ac_exeext && {
19609 test "$cross_compiling" = yes ||
19610 $as_test_x conftest$ac_exeext
19611 }; then
19612 eval "$as_ac_var=yes"
19613 else
19614 $as_echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 eval "$as_ac_var=no"
19620 rm -rf conftest.dSYM
19621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19624 ac_res=`eval 'as_val=${'$as_ac_var'}
19625 $as_echo "$as_val"'`
19626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19627 $as_echo "$ac_res" >&6; }
19628 as_val=`eval 'as_val=${'$as_ac_var'}
19629 $as_echo "$as_val"'`
19630 if test "x$as_val" = x""yes; then
19631 cat >>confdefs.h <<_ACEOF
19632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19633 _ACEOF
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <sys/time.h>
19642 main ()
19644 gettimeofday((struct timeval*)0,(struct timezone*)0);
19646 return 0;
19648 _ACEOF
19649 rm -f conftest.$ac_objext
19650 if { (ac_try="$ac_compile"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654 esac
19655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19656 $as_echo "$ac_try_echo") >&5
19657 (eval "$ac_compile") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest.$ac_objext; then
19668 else
19669 $as_echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19673 cat >>confdefs.h <<\_ACEOF
19674 #define GETTIMEOFDAY_NO_TZ 1
19675 _ACEOF
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 done
19686 { $as_echo "$as_me:$LINENO: checking for major" >&5
19687 $as_echo_n "checking for major... " >&6; }
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 #if defined(MAJOR_IN_MKDEV)
19696 #include <sys/mkdev.h>
19697 #elif defined(MAJOR_IN_SYSMACROS)
19698 #include <sys/sysmacros.h>
19699 #else
19700 #include <sys/types.h>
19701 #endif
19704 main ()
19707 makedev(major(0),minor(0));
19710 return 0;
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19720 $as_echo "$ac_try_echo") >&5
19721 (eval "$ac_link") 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest$ac_exeext && {
19731 test "$cross_compiling" = yes ||
19732 $as_test_x conftest$ac_exeext
19733 }; then
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_DEVICE_MACROS 1
19738 _ACEOF
19740 { $as_echo "$as_me:$LINENO: result: yes" >&5
19741 $as_echo "yes" >&6; }
19743 else
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19748 { $as_echo "$as_me:$LINENO: result: no" >&5
19749 $as_echo "no" >&6; }
19753 rm -rf conftest.dSYM
19754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19755 conftest$ac_exeext conftest.$ac_ext
19757 # On OSF/1 V5.1, getaddrinfo is available, but a define
19758 # for [no]getaddrinfo in netdb.h.
19759 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19760 $as_echo_n "checking for getaddrinfo... " >&6; }
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19768 #include <sys/types.h>
19769 #include <sys/socket.h>
19770 #include <netdb.h>
19771 #include <stdio.h>
19774 main ()
19777 getaddrinfo(NULL, NULL, NULL, NULL);
19780 return 0;
19782 _ACEOF
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788 esac
19789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19790 $as_echo "$ac_try_echo") >&5
19791 (eval "$ac_link") 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } && {
19798 test -z "$ac_c_werror_flag" ||
19799 test ! -s conftest.err
19800 } && test -s conftest$ac_exeext && {
19801 test "$cross_compiling" = yes ||
19802 $as_test_x conftest$ac_exeext
19803 }; then
19805 { $as_echo "$as_me:$LINENO: result: yes" >&5
19806 $as_echo "yes" >&6; }
19807 { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19808 $as_echo_n "checking getaddrinfo bug... " >&6; }
19809 if test "$cross_compiling" = yes; then
19810 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19811 $as_echo "buggy" >&6; }
19812 buggygetaddrinfo=yes
19813 else
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19821 #include <sys/types.h>
19822 #include <netdb.h>
19823 #include <string.h>
19824 #include <sys/socket.h>
19825 #include <netinet/in.h>
19827 main()
19829 int passive, gaierr, inet4 = 0, inet6 = 0;
19830 struct addrinfo hints, *ai, *aitop;
19831 char straddr[INET6_ADDRSTRLEN], strport[16];
19833 for (passive = 0; passive <= 1; passive++) {
19834 memset(&hints, 0, sizeof(hints));
19835 hints.ai_family = AF_UNSPEC;
19836 hints.ai_flags = passive ? AI_PASSIVE : 0;
19837 hints.ai_socktype = SOCK_STREAM;
19838 hints.ai_protocol = IPPROTO_TCP;
19839 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19840 (void)gai_strerror(gaierr);
19841 goto bad;
19843 for (ai = aitop; ai; ai = ai->ai_next) {
19844 if (ai->ai_addr == NULL ||
19845 ai->ai_addrlen == 0 ||
19846 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19847 straddr, sizeof(straddr), strport, sizeof(strport),
19848 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19849 goto bad;
19851 switch (ai->ai_family) {
19852 case AF_INET:
19853 if (strcmp(strport, "54321") != 0) {
19854 goto bad;
19856 if (passive) {
19857 if (strcmp(straddr, "0.0.0.0") != 0) {
19858 goto bad;
19860 } else {
19861 if (strcmp(straddr, "127.0.0.1") != 0) {
19862 goto bad;
19865 inet4++;
19866 break;
19867 case AF_INET6:
19868 if (strcmp(strport, "54321") != 0) {
19869 goto bad;
19871 if (passive) {
19872 if (strcmp(straddr, "::") != 0) {
19873 goto bad;
19875 } else {
19876 if (strcmp(straddr, "::1") != 0) {
19877 goto bad;
19880 inet6++;
19881 break;
19882 case AF_UNSPEC:
19883 goto bad;
19884 break;
19885 default:
19886 /* another family support? */
19887 break;
19892 if (!(inet4 == 0 || inet4 == 2))
19893 goto bad;
19894 if (!(inet6 == 0 || inet6 == 2))
19895 goto bad;
19897 if (aitop)
19898 freeaddrinfo(aitop);
19899 exit(0);
19901 bad:
19902 if (aitop)
19903 freeaddrinfo(aitop);
19904 exit(1);
19907 _ACEOF
19908 rm -f conftest$ac_exeext
19909 if { (ac_try="$ac_link"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913 esac
19914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19915 $as_echo "$ac_try_echo") >&5
19916 (eval "$ac_link") 2>&5
19917 ac_status=$?
19918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 { $as_echo "$as_me:$LINENO: result: good" >&5
19931 $as_echo "good" >&6; }
19932 buggygetaddrinfo=no
19933 else
19934 $as_echo "$as_me: program exited with status $ac_status" >&5
19935 $as_echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ( exit $ac_status )
19939 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19940 $as_echo "buggy" >&6; }
19941 buggygetaddrinfo=yes
19943 rm -rf conftest.dSYM
19944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19948 else
19949 $as_echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19953 { $as_echo "$as_me:$LINENO: result: no" >&5
19954 $as_echo "no" >&6; }
19955 buggygetaddrinfo=yes
19959 rm -rf conftest.dSYM
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19963 if test "$buggygetaddrinfo" = "yes"; then
19964 if test "$ipv6" = "yes"; then
19965 echo 'Fatal: You must get working getaddrinfo() function.'
19966 echo ' or you can specify "--disable-ipv6"'.
19967 exit 1
19969 else
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_GETADDRINFO 1
19973 _ACEOF
19977 for ac_func in getnameinfo
19979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19981 $as_echo_n "checking for $ac_func... " >&6; }
19982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19983 $as_echo_n "(cached) " >&6
19984 else
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19993 #define $ac_func innocuous_$ac_func
19995 /* System header to define __stub macros and hopefully few prototypes,
19996 which can conflict with char $ac_func (); below.
19997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19998 <limits.h> exists even on freestanding compilers. */
20000 #ifdef __STDC__
20001 # include <limits.h>
20002 #else
20003 # include <assert.h>
20004 #endif
20006 #undef $ac_func
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char $ac_func ();
20015 /* The GNU C library defines this for functions which it implements
20016 to always fail with ENOSYS. Some functions are actually named
20017 something starting with __ and the normal name is an alias. */
20018 #if defined __stub_$ac_func || defined __stub___$ac_func
20019 choke me
20020 #endif
20023 main ()
20025 return $ac_func ();
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20037 $as_echo "$ac_try_echo") >&5
20038 (eval "$ac_link") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext && {
20048 test "$cross_compiling" = yes ||
20049 $as_test_x conftest$ac_exeext
20050 }; then
20051 eval "$as_ac_var=yes"
20052 else
20053 $as_echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 eval "$as_ac_var=no"
20059 rm -rf conftest.dSYM
20060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20061 conftest$ac_exeext conftest.$ac_ext
20063 ac_res=`eval 'as_val=${'$as_ac_var'}
20064 $as_echo "$as_val"'`
20065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20066 $as_echo "$ac_res" >&6; }
20067 as_val=`eval 'as_val=${'$as_ac_var'}
20068 $as_echo "$as_val"'`
20069 if test "x$as_val" = x""yes; then
20070 cat >>confdefs.h <<_ACEOF
20071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20072 _ACEOF
20075 done
20078 # checks for structures
20079 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20080 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20081 if test "${ac_cv_header_time+set}" = set; then
20082 $as_echo_n "(cached) " >&6
20083 else
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <sys/types.h>
20091 #include <sys/time.h>
20092 #include <time.h>
20095 main ()
20097 if ((struct tm *) 0)
20098 return 0;
20100 return 0;
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20110 $as_echo "$ac_try_echo") >&5
20111 (eval "$ac_compile") 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } && {
20118 test -z "$ac_c_werror_flag" ||
20119 test ! -s conftest.err
20120 } && test -s conftest.$ac_objext; then
20121 ac_cv_header_time=yes
20122 else
20123 $as_echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_header_time=no
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20132 $as_echo "$ac_cv_header_time" >&6; }
20133 if test $ac_cv_header_time = yes; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define TIME_WITH_SYS_TIME 1
20137 _ACEOF
20141 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20142 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20143 if test "${ac_cv_struct_tm+set}" = set; then
20144 $as_echo_n "(cached) " >&6
20145 else
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <sys/types.h>
20153 #include <time.h>
20156 main ()
20158 struct tm tm;
20159 int *p = &tm.tm_sec;
20160 return !p;
20162 return 0;
20164 _ACEOF
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20172 $as_echo "$ac_try_echo") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.$ac_objext; then
20183 ac_cv_struct_tm=time.h
20184 else
20185 $as_echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_cv_struct_tm=sys/time.h
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20194 $as_echo "$ac_cv_struct_tm" >&6; }
20195 if test $ac_cv_struct_tm = sys/time.h; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define TM_IN_SYS_TIME 1
20199 _ACEOF
20203 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20204 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
20205 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20206 $as_echo_n "(cached) " >&6
20207 else
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <sys/types.h>
20215 #include <$ac_cv_struct_tm>
20219 main ()
20221 static struct tm ac_aggr;
20222 if (ac_aggr.tm_zone)
20223 return 0;
20225 return 0;
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (ac_try="$ac_compile"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233 esac
20234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235 $as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_cv_member_struct_tm_tm_zone=yes
20247 else
20248 $as_echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h. */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <sys/types.h>
20258 #include <$ac_cv_struct_tm>
20262 main ()
20264 static struct tm ac_aggr;
20265 if (sizeof ac_aggr.tm_zone)
20266 return 0;
20268 return 0;
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20278 $as_echo "$ac_try_echo") >&5
20279 (eval "$ac_compile") 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest.$ac_objext; then
20289 ac_cv_member_struct_tm_tm_zone=yes
20290 else
20291 $as_echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ac_cv_member_struct_tm_tm_zone=no
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20303 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
20304 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
20306 cat >>confdefs.h <<_ACEOF
20307 #define HAVE_STRUCT_TM_TM_ZONE 1
20308 _ACEOF
20313 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_TM_ZONE 1
20317 _ACEOF
20319 else
20320 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20321 $as_echo_n "checking whether tzname is declared... " >&6; }
20322 if test "${ac_cv_have_decl_tzname+set}" = set; then
20323 $as_echo_n "(cached) " >&6
20324 else
20325 cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h. */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 #include <time.h>
20334 main ()
20336 #ifndef tzname
20337 (void) tzname;
20338 #endif
20341 return 0;
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351 $as_echo "$ac_try_echo") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest.$ac_objext; then
20362 ac_cv_have_decl_tzname=yes
20363 else
20364 $as_echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_have_decl_tzname=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20373 $as_echo "$ac_cv_have_decl_tzname" >&6; }
20374 if test "x$ac_cv_have_decl_tzname" = x""yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define HAVE_DECL_TZNAME 1
20378 _ACEOF
20381 else
20382 cat >>confdefs.h <<_ACEOF
20383 #define HAVE_DECL_TZNAME 0
20384 _ACEOF
20390 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
20391 $as_echo_n "checking for tzname... " >&6; }
20392 if test "${ac_cv_var_tzname+set}" = set; then
20393 $as_echo_n "(cached) " >&6
20394 else
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <time.h>
20402 #if !HAVE_DECL_TZNAME
20403 extern char *tzname[];
20404 #endif
20407 main ()
20409 return tzname[0][0];
20411 return 0;
20413 _ACEOF
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20419 esac
20420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20421 $as_echo "$ac_try_echo") >&5
20422 (eval "$ac_link") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest$ac_exeext && {
20432 test "$cross_compiling" = yes ||
20433 $as_test_x conftest$ac_exeext
20434 }; then
20435 ac_cv_var_tzname=yes
20436 else
20437 $as_echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_cv_var_tzname=no
20443 rm -rf conftest.dSYM
20444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20445 conftest$ac_exeext conftest.$ac_ext
20447 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20448 $as_echo "$ac_cv_var_tzname" >&6; }
20449 if test $ac_cv_var_tzname = yes; then
20451 cat >>confdefs.h <<\_ACEOF
20452 #define HAVE_TZNAME 1
20453 _ACEOF
20458 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20459 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
20460 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20461 $as_echo_n "(cached) " >&6
20462 else
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20471 main ()
20473 static struct stat ac_aggr;
20474 if (ac_aggr.st_rdev)
20475 return 0;
20477 return 0;
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (ac_try="$ac_compile"
20482 case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485 esac
20486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20487 $as_echo "$ac_try_echo") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_cv_member_struct_stat_st_rdev=yes
20499 else
20500 $as_echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20511 main ()
20513 static struct stat ac_aggr;
20514 if (sizeof ac_aggr.st_rdev)
20515 return 0;
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20527 $as_echo "$ac_try_echo") >&5
20528 (eval "$ac_compile") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest.$ac_objext; then
20538 ac_cv_member_struct_stat_st_rdev=yes
20539 else
20540 $as_echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_cv_member_struct_stat_st_rdev=no
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20552 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
20553 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define HAVE_STRUCT_STAT_ST_RDEV 1
20557 _ACEOF
20562 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20563 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
20564 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20565 $as_echo_n "(cached) " >&6
20566 else
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20575 main ()
20577 static struct stat ac_aggr;
20578 if (ac_aggr.st_blksize)
20579 return 0;
20581 return 0;
20583 _ACEOF
20584 rm -f conftest.$ac_objext
20585 if { (ac_try="$ac_compile"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591 $as_echo "$ac_try_echo") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20593 ac_status=$?
20594 grep -v '^ *+' conftest.er1 >conftest.err
20595 rm -f conftest.er1
20596 cat conftest.err >&5
20597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_cv_member_struct_stat_st_blksize=yes
20603 else
20604 $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 $ac_includes_default
20615 main ()
20617 static struct stat ac_aggr;
20618 if (sizeof ac_aggr.st_blksize)
20619 return 0;
20621 return 0;
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629 esac
20630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20631 $as_echo "$ac_try_echo") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
20642 ac_cv_member_struct_stat_st_blksize=yes
20643 else
20644 $as_echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_cv_member_struct_stat_st_blksize=no
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20656 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
20657 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20661 _ACEOF
20666 { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20667 $as_echo_n "checking for struct stat.st_flags... " >&6; }
20668 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20669 $as_echo_n "(cached) " >&6
20670 else
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h. */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 $ac_includes_default
20679 main ()
20681 static struct stat ac_aggr;
20682 if (ac_aggr.st_flags)
20683 return 0;
20685 return 0;
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693 esac
20694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20695 $as_echo "$ac_try_echo") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && {
20703 test -z "$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 } && test -s conftest.$ac_objext; then
20706 ac_cv_member_struct_stat_st_flags=yes
20707 else
20708 $as_echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h. */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 $ac_includes_default
20719 main ()
20721 static struct stat ac_aggr;
20722 if (sizeof ac_aggr.st_flags)
20723 return 0;
20725 return 0;
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20735 $as_echo "$ac_try_echo") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_cv_member_struct_stat_st_flags=yes
20747 else
20748 $as_echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_cv_member_struct_stat_st_flags=no
20754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20760 $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
20761 if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then
20763 cat >>confdefs.h <<_ACEOF
20764 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20765 _ACEOF
20770 { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20771 $as_echo_n "checking for struct stat.st_gen... " >&6; }
20772 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20773 $as_echo_n "(cached) " >&6
20774 else
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h. */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 $ac_includes_default
20783 main ()
20785 static struct stat ac_aggr;
20786 if (ac_aggr.st_gen)
20787 return 0;
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (ac_try="$ac_compile"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_compile") 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest.$ac_objext; then
20810 ac_cv_member_struct_stat_st_gen=yes
20811 else
20812 $as_echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h. */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20821 $ac_includes_default
20823 main ()
20825 static struct stat ac_aggr;
20826 if (sizeof ac_aggr.st_gen)
20827 return 0;
20829 return 0;
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837 esac
20838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20839 $as_echo "$ac_try_echo") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } && {
20847 test -z "$ac_c_werror_flag" ||
20848 test ! -s conftest.err
20849 } && test -s conftest.$ac_objext; then
20850 ac_cv_member_struct_stat_st_gen=yes
20851 else
20852 $as_echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 ac_cv_member_struct_stat_st_gen=no
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20864 $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
20865 if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define HAVE_STRUCT_STAT_ST_GEN 1
20869 _ACEOF
20874 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20875 $as_echo_n "checking for struct stat.st_birthtime... " >&6; }
20876 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20877 $as_echo_n "(cached) " >&6
20878 else
20879 cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h. */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 $ac_includes_default
20887 main ()
20889 static struct stat ac_aggr;
20890 if (ac_aggr.st_birthtime)
20891 return 0;
20893 return 0;
20895 _ACEOF
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901 esac
20902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20903 $as_echo "$ac_try_echo") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20914 ac_cv_member_struct_stat_st_birthtime=yes
20915 else
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 $ac_includes_default
20927 main ()
20929 static struct stat ac_aggr;
20930 if (sizeof ac_aggr.st_birthtime)
20931 return 0;
20933 return 0;
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941 esac
20942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20943 $as_echo "$ac_try_echo") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.$ac_objext; then
20954 ac_cv_member_struct_stat_st_birthtime=yes
20955 else
20956 $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_cv_member_struct_stat_st_birthtime=no
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20968 $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
20969 if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
20971 cat >>confdefs.h <<_ACEOF
20972 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20973 _ACEOF
20978 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20979 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
20980 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20981 $as_echo_n "(cached) " >&6
20982 else
20983 cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h. */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 $ac_includes_default
20991 main ()
20993 static struct stat ac_aggr;
20994 if (ac_aggr.st_blocks)
20995 return 0;
20997 return 0;
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005 esac
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21018 ac_cv_member_struct_stat_st_blocks=yes
21019 else
21020 $as_echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h. */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 $ac_includes_default
21031 main ()
21033 static struct stat ac_aggr;
21034 if (sizeof ac_aggr.st_blocks)
21035 return 0;
21037 return 0;
21039 _ACEOF
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21045 esac
21046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21047 $as_echo "$ac_try_echo") >&5
21048 (eval "$ac_compile") 2>conftest.er1
21049 ac_status=$?
21050 grep -v '^ *+' conftest.er1 >conftest.err
21051 rm -f conftest.er1
21052 cat conftest.err >&5
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } && {
21055 test -z "$ac_c_werror_flag" ||
21056 test ! -s conftest.err
21057 } && test -s conftest.$ac_objext; then
21058 ac_cv_member_struct_stat_st_blocks=yes
21059 else
21060 $as_echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_cv_member_struct_stat_st_blocks=no
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21072 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
21073 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
21075 cat >>confdefs.h <<_ACEOF
21076 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21077 _ACEOF
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_ST_BLOCKS 1
21082 _ACEOF
21084 else
21085 case " $LIBOBJS " in
21086 *" fileblocks.$ac_objext "* ) ;;
21087 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21089 esac
21095 { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21096 $as_echo_n "checking for time.h that defines altzone... " >&6; }
21097 if test "${ac_cv_header_time_altzone+set}" = set; then
21098 $as_echo_n "(cached) " >&6
21099 else
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 #include <time.h>
21108 main ()
21110 return altzone;
21112 return 0;
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120 esac
21121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21122 $as_echo "$ac_try_echo") >&5
21123 (eval "$ac_compile") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest.$ac_objext; then
21133 ac_cv_header_time_altzone=yes
21134 else
21135 $as_echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_cv_header_time_altzone=no
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21145 $as_echo "$ac_cv_header_time_altzone" >&6; }
21146 if test $ac_cv_header_time_altzone = yes; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ALTZONE 1
21150 _ACEOF
21154 was_it_defined=no
21155 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21156 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h. */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21164 #include <sys/types.h>
21165 #include <sys/select.h>
21166 #include <sys/time.h>
21169 main ()
21173 return 0;
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21181 esac
21182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21183 $as_echo "$ac_try_echo") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.$ac_objext; then
21196 cat >>confdefs.h <<\_ACEOF
21197 #define SYS_SELECT_WITH_SYS_TIME 1
21198 _ACEOF
21200 was_it_defined=yes
21202 else
21203 $as_echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
21211 $as_echo "$was_it_defined" >&6; }
21213 { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
21214 $as_echo_n "checking for addrinfo... " >&6; }
21215 if test "${ac_cv_struct_addrinfo+set}" = set; then
21216 $as_echo_n "(cached) " >&6
21217 else
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h. */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21225 # include <netdb.h>
21227 main ()
21229 struct addrinfo a
21231 return 0;
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239 esac
21240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21241 $as_echo "$ac_try_echo") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_cv_struct_addrinfo=yes
21253 else
21254 $as_echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_cv_struct_addrinfo=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21264 $as_echo "$ac_cv_struct_addrinfo" >&6; }
21265 if test $ac_cv_struct_addrinfo = yes; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define HAVE_ADDRINFO 1
21269 _ACEOF
21273 { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21274 $as_echo_n "checking for sockaddr_storage... " >&6; }
21275 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21276 $as_echo_n "(cached) " >&6
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 # include <sys/types.h>
21286 # include <sys/socket.h>
21288 main ()
21290 struct sockaddr_storage s
21292 return 0;
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21302 $as_echo "$ac_try_echo") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_cv_struct_sockaddr_storage=yes
21314 else
21315 $as_echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_cv_struct_sockaddr_storage=no
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21325 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
21326 if test $ac_cv_struct_sockaddr_storage = yes; then
21328 cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_SOCKADDR_STORAGE 1
21330 _ACEOF
21334 # checks for compiler characteristics
21337 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21338 $as_echo_n "checking whether char is unsigned... " >&6; }
21339 if test "${ac_cv_c_char_unsigned+set}" = set; then
21340 $as_echo_n "(cached) " >&6
21341 else
21342 cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h. */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 $ac_includes_default
21350 main ()
21352 static int test_array [1 - 2 * !(((char) -1) < 0)];
21353 test_array [0] = 0
21356 return 0;
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364 esac
21365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21366 $as_echo "$ac_try_echo") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_cv_c_char_unsigned=no
21378 else
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_cv_c_char_unsigned=yes
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21388 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21389 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21390 cat >>confdefs.h <<\_ACEOF
21391 #define __CHAR_UNSIGNED__ 1
21392 _ACEOF
21396 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21397 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21398 if test "${ac_cv_c_const+set}" = set; then
21399 $as_echo_n "(cached) " >&6
21400 else
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21409 main ()
21411 /* FIXME: Include the comments suggested by Paul. */
21412 #ifndef __cplusplus
21413 /* Ultrix mips cc rejects this. */
21414 typedef int charset[2];
21415 const charset cs;
21416 /* SunOS 4.1.1 cc rejects this. */
21417 char const *const *pcpcc;
21418 char **ppc;
21419 /* NEC SVR4.0.2 mips cc rejects this. */
21420 struct point {int x, y;};
21421 static struct point const zero = {0,0};
21422 /* AIX XL C 1.02.0.0 rejects this.
21423 It does not let you subtract one const X* pointer from another in
21424 an arm of an if-expression whose if-part is not a constant
21425 expression */
21426 const char *g = "string";
21427 pcpcc = &g + (g ? g-g : 0);
21428 /* HPUX 7.0 cc rejects these. */
21429 ++pcpcc;
21430 ppc = (char**) pcpcc;
21431 pcpcc = (char const *const *) ppc;
21432 { /* SCO 3.2v4 cc rejects this. */
21433 char *t;
21434 char const *s = 0 ? (char *) 0 : (char const *) 0;
21436 *t++ = 0;
21437 if (s) return 0;
21439 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21440 int x[] = {25, 17};
21441 const int *foo = &x[0];
21442 ++foo;
21444 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21445 typedef const int *iptr;
21446 iptr p = 0;
21447 ++p;
21449 { /* AIX XL C 1.02.0.0 rejects this saying
21450 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21451 struct s { int j; const int *ap[3]; };
21452 struct s *b; b->j = 5;
21454 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21455 const int foo = 10;
21456 if (!foo) return 0;
21458 return !cs[0] && !zero.x;
21459 #endif
21462 return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21470 esac
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_compile") 2>conftest.er1
21474 ac_status=$?
21475 grep -v '^ *+' conftest.er1 >conftest.err
21476 rm -f conftest.er1
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest.$ac_objext; then
21483 ac_cv_c_const=yes
21484 else
21485 $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_cv_c_const=no
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21494 $as_echo "$ac_cv_c_const" >&6; }
21495 if test $ac_cv_c_const = no; then
21497 cat >>confdefs.h <<\_ACEOF
21498 #define const /**/
21499 _ACEOF
21504 works=no
21505 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21506 $as_echo_n "checking for working volatile... " >&6; }
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21515 main ()
21517 volatile int x; x = 0;
21519 return 0;
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (ac_try="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527 esac
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21540 works=yes
21541 else
21542 $as_echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21546 cat >>confdefs.h <<\_ACEOF
21547 #define volatile /**/
21548 _ACEOF
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 { $as_echo "$as_me:$LINENO: result: $works" >&5
21555 $as_echo "$works" >&6; }
21557 works=no
21558 { $as_echo "$as_me:$LINENO: checking for working signed char" >&5
21559 $as_echo_n "checking for working signed char... " >&6; }
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21568 main ()
21570 signed char c;
21572 return 0;
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21580 esac
21581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21582 $as_echo "$ac_try_echo") >&5
21583 (eval "$ac_compile") 2>conftest.er1
21584 ac_status=$?
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
21588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && {
21590 test -z "$ac_c_werror_flag" ||
21591 test ! -s conftest.err
21592 } && test -s conftest.$ac_objext; then
21593 works=yes
21594 else
21595 $as_echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21599 cat >>confdefs.h <<\_ACEOF
21600 #define signed /**/
21601 _ACEOF
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 { $as_echo "$as_me:$LINENO: result: $works" >&5
21608 $as_echo "$works" >&6; }
21610 have_prototypes=no
21611 { $as_echo "$as_me:$LINENO: checking for prototypes" >&5
21612 $as_echo_n "checking for prototypes... " >&6; }
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 int foo(int x) { return 0; }
21621 main ()
21623 return foo(10);
21625 return 0;
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21633 esac
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21637 ac_status=$?
21638 grep -v '^ *+' conftest.er1 >conftest.err
21639 rm -f conftest.er1
21640 cat conftest.err >&5
21641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_PROTOTYPES 1
21650 _ACEOF
21652 have_prototypes=yes
21654 else
21655 $as_echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
21663 $as_echo "$have_prototypes" >&6; }
21665 works=no
21666 { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21667 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21675 #include <stdarg.h>
21676 int foo(int x, ...) {
21677 va_list va;
21678 va_start(va, x);
21679 va_arg(va, int);
21680 va_arg(va, char *);
21681 va_arg(va, double);
21682 return 0;
21686 main ()
21688 return foo(10, "", 3.14);
21690 return 0;
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21700 $as_echo "$ac_try_echo") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21713 cat >>confdefs.h <<\_ACEOF
21714 #define HAVE_STDARG_PROTOTYPES 1
21715 _ACEOF
21717 works=yes
21719 else
21720 $as_echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 { $as_echo "$as_me:$LINENO: result: $works" >&5
21728 $as_echo "$works" >&6; }
21730 # check for socketpair
21731 { $as_echo "$as_me:$LINENO: checking for socketpair" >&5
21732 $as_echo_n "checking for socketpair... " >&6; }
21733 cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h. */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21740 #include <sys/types.h>
21741 #include <sys/socket.h>
21744 main ()
21746 void *x=socketpair
21748 return 0;
21750 _ACEOF
21751 rm -f conftest.$ac_objext
21752 if { (ac_try="$ac_compile"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756 esac
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_SOCKETPAIR 1
21772 _ACEOF
21774 { $as_echo "$as_me:$LINENO: result: yes" >&5
21775 $as_echo "yes" >&6; }
21776 else
21777 $as_echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 { $as_echo "$as_me:$LINENO: result: no" >&5
21781 $as_echo "no" >&6; }
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 # check if sockaddr has sa_len member
21788 { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21789 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h. */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <sys/types.h>
21797 #include <sys/socket.h>
21799 main ()
21801 struct sockaddr x;
21802 x.sa_len = 0;
21804 return 0;
21806 _ACEOF
21807 rm -f conftest.$ac_objext
21808 if { (ac_try="$ac_compile"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812 esac
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_compile") 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest.$ac_objext; then
21825 { $as_echo "$as_me:$LINENO: result: yes" >&5
21826 $as_echo "yes" >&6; }
21828 cat >>confdefs.h <<\_ACEOF
21829 #define HAVE_SOCKADDR_SA_LEN 1
21830 _ACEOF
21832 else
21833 $as_echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 { $as_echo "$as_me:$LINENO: result: no" >&5
21837 $as_echo "no" >&6; }
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 va_list_is_array=no
21843 { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21844 $as_echo_n "checking whether va_list is an array... " >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 #ifdef HAVE_STDARG_PROTOTYPES
21853 #include <stdarg.h>
21854 #else
21855 #include <varargs.h>
21856 #endif
21859 main ()
21861 va_list list1, list2; list1 = list2;
21863 return 0;
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21885 else
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21891 cat >>confdefs.h <<\_ACEOF
21892 #define VA_LIST_IS_ARRAY 1
21893 _ACEOF
21895 va_list_is_array=yes
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21901 $as_echo "$va_list_is_array" >&6; }
21903 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21907 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21908 $as_echo_n "checking for gethostbyname_r... " >&6; }
21909 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21910 $as_echo_n "(cached) " >&6
21911 else
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21920 #define gethostbyname_r innocuous_gethostbyname_r
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char gethostbyname_r (); below.
21924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21925 <limits.h> exists even on freestanding compilers. */
21927 #ifdef __STDC__
21928 # include <limits.h>
21929 #else
21930 # include <assert.h>
21931 #endif
21933 #undef gethostbyname_r
21935 /* Override any GCC internal prototype to avoid an error.
21936 Use char because int might match the return type of a GCC
21937 builtin and then its argument prototype would still apply. */
21938 #ifdef __cplusplus
21939 extern "C"
21940 #endif
21941 char gethostbyname_r ();
21942 /* The GNU C library defines this for functions which it implements
21943 to always fail with ENOSYS. Some functions are actually named
21944 something starting with __ and the normal name is an alias. */
21945 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21946 choke me
21947 #endif
21950 main ()
21952 return gethostbyname_r ();
21954 return 0;
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21964 $as_echo "$ac_try_echo") >&5
21965 (eval "$ac_link") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest$ac_exeext && {
21975 test "$cross_compiling" = yes ||
21976 $as_test_x conftest$ac_exeext
21977 }; then
21978 ac_cv_func_gethostbyname_r=yes
21979 else
21980 $as_echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_cv_func_gethostbyname_r=no
21986 rm -rf conftest.dSYM
21987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21988 conftest$ac_exeext conftest.$ac_ext
21990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21991 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
21992 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
21994 cat >>confdefs.h <<\_ACEOF
21995 #define HAVE_GETHOSTBYNAME_R 1
21996 _ACEOF
21998 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21999 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
22000 OLD_CFLAGS=$CFLAGS
22001 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22002 cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h. */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22009 # include <netdb.h>
22012 main ()
22015 char *name;
22016 struct hostent *he, *res;
22017 char buffer[2048];
22018 int buflen = 2048;
22019 int h_errnop;
22021 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22024 return 0;
22026 _ACEOF
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032 esac
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_compile") 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest.$ac_objext; then
22046 cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_GETHOSTBYNAME_R 1
22048 _ACEOF
22051 cat >>confdefs.h <<\_ACEOF
22052 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22053 _ACEOF
22055 { $as_echo "$as_me:$LINENO: result: yes" >&5
22056 $as_echo "yes" >&6; }
22058 else
22059 $as_echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22063 { $as_echo "$as_me:$LINENO: result: no" >&5
22064 $as_echo "no" >&6; }
22065 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22066 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
22067 cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h. */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22074 # include <netdb.h>
22077 main ()
22080 char *name;
22081 struct hostent *he;
22082 char buffer[2048];
22083 int buflen = 2048;
22084 int h_errnop;
22086 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22089 return 0;
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22099 $as_echo "$ac_try_echo") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_GETHOSTBYNAME_R 1
22113 _ACEOF
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22118 _ACEOF
22120 { $as_echo "$as_me:$LINENO: result: yes" >&5
22121 $as_echo "yes" >&6; }
22123 else
22124 $as_echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22128 { $as_echo "$as_me:$LINENO: result: no" >&5
22129 $as_echo "no" >&6; }
22130 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22131 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22139 # include <netdb.h>
22142 main ()
22145 char *name;
22146 struct hostent *he;
22147 struct hostent_data data;
22149 (void) gethostbyname_r(name, he, &data);
22152 return 0;
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22162 $as_echo "$ac_try_echo") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.$ac_objext; then
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_GETHOSTBYNAME_R 1
22176 _ACEOF
22179 cat >>confdefs.h <<\_ACEOF
22180 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22181 _ACEOF
22183 { $as_echo "$as_me:$LINENO: result: yes" >&5
22184 $as_echo "yes" >&6; }
22186 else
22187 $as_echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22191 { $as_echo "$as_me:$LINENO: result: no" >&5
22192 $as_echo "no" >&6; }
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 CFLAGS=$OLD_CFLAGS
22207 else
22210 for ac_func in gethostbyname
22212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22213 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22214 $as_echo_n "checking for $ac_func... " >&6; }
22215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22216 $as_echo_n "(cached) " >&6
22217 else
22218 cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h. */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22226 #define $ac_func innocuous_$ac_func
22228 /* System header to define __stub macros and hopefully few prototypes,
22229 which can conflict with char $ac_func (); below.
22230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22231 <limits.h> exists even on freestanding compilers. */
22233 #ifdef __STDC__
22234 # include <limits.h>
22235 #else
22236 # include <assert.h>
22237 #endif
22239 #undef $ac_func
22241 /* Override any GCC internal prototype to avoid an error.
22242 Use char because int might match the return type of a GCC
22243 builtin and then its argument prototype would still apply. */
22244 #ifdef __cplusplus
22245 extern "C"
22246 #endif
22247 char $ac_func ();
22248 /* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251 #if defined __stub_$ac_func || defined __stub___$ac_func
22252 choke me
22253 #endif
22256 main ()
22258 return $ac_func ();
22260 return 0;
22262 _ACEOF
22263 rm -f conftest.$ac_objext conftest$ac_exeext
22264 if { (ac_try="$ac_link"
22265 case "(($ac_try" in
22266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22267 *) ac_try_echo=$ac_try;;
22268 esac
22269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22270 $as_echo "$ac_try_echo") >&5
22271 (eval "$ac_link") 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest$ac_exeext && {
22281 test "$cross_compiling" = yes ||
22282 $as_test_x conftest$ac_exeext
22283 }; then
22284 eval "$as_ac_var=yes"
22285 else
22286 $as_echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 eval "$as_ac_var=no"
22292 rm -rf conftest.dSYM
22293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22294 conftest$ac_exeext conftest.$ac_ext
22296 ac_res=`eval 'as_val=${'$as_ac_var'}
22297 $as_echo "$as_val"'`
22298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22299 $as_echo "$ac_res" >&6; }
22300 as_val=`eval 'as_val=${'$as_ac_var'}
22301 $as_echo "$as_val"'`
22302 if test "x$as_val" = x""yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22308 done
22319 # checks for system services
22320 # (none yet)
22322 # Linux requires this for correct f.p. operations
22323 { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
22324 $as_echo_n "checking for __fpu_control... " >&6; }
22325 if test "${ac_cv_func___fpu_control+set}" = set; then
22326 $as_echo_n "(cached) " >&6
22327 else
22328 cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h. */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22336 #define __fpu_control innocuous___fpu_control
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char __fpu_control (); below.
22340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22341 <limits.h> exists even on freestanding compilers. */
22343 #ifdef __STDC__
22344 # include <limits.h>
22345 #else
22346 # include <assert.h>
22347 #endif
22349 #undef __fpu_control
22351 /* Override any GCC internal prototype to avoid an error.
22352 Use char because int might match the return type of a GCC
22353 builtin and then its argument prototype would still apply. */
22354 #ifdef __cplusplus
22355 extern "C"
22356 #endif
22357 char __fpu_control ();
22358 /* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361 #if defined __stub___fpu_control || defined __stub_____fpu_control
22362 choke me
22363 #endif
22366 main ()
22368 return __fpu_control ();
22370 return 0;
22372 _ACEOF
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22378 esac
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22382 ac_status=$?
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22393 }; then
22394 ac_cv_func___fpu_control=yes
22395 else
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_func___fpu_control=no
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22407 $as_echo "$ac_cv_func___fpu_control" >&6; }
22408 if test "x$ac_cv_func___fpu_control" = x""yes; then
22410 else
22412 { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22413 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
22414 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22415 $as_echo_n "(cached) " >&6
22416 else
22417 ac_check_lib_save_LIBS=$LIBS
22418 LIBS="-lieee $LIBS"
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h. */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22426 /* Override any GCC internal prototype to avoid an error.
22427 Use char because int might match the return type of a GCC
22428 builtin and then its argument prototype would still apply. */
22429 #ifdef __cplusplus
22430 extern "C"
22431 #endif
22432 char __fpu_control ();
22434 main ()
22436 return __fpu_control ();
22438 return 0;
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446 esac
22447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22448 $as_echo "$ac_try_echo") >&5
22449 (eval "$ac_link") 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext && {
22459 test "$cross_compiling" = yes ||
22460 $as_test_x conftest$ac_exeext
22461 }; then
22462 ac_cv_lib_ieee___fpu_control=yes
22463 else
22464 $as_echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ac_cv_lib_ieee___fpu_control=no
22470 rm -rf conftest.dSYM
22471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22472 conftest$ac_exeext conftest.$ac_ext
22473 LIBS=$ac_check_lib_save_LIBS
22475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
22476 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
22477 if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_LIBIEEE 1
22480 _ACEOF
22482 LIBS="-lieee $LIBS"
22490 # Check for --with-fpectl
22491 { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
22492 $as_echo_n "checking for --with-fpectl... " >&6; }
22494 # Check whether --with-fpectl was given.
22495 if test "${with_fpectl+set}" = set; then
22496 withval=$with_fpectl;
22497 if test "$withval" != no
22498 then
22500 cat >>confdefs.h <<\_ACEOF
22501 #define WANT_SIGFPE_HANDLER 1
22502 _ACEOF
22504 { $as_echo "$as_me:$LINENO: result: yes" >&5
22505 $as_echo "yes" >&6; }
22506 else { $as_echo "$as_me:$LINENO: result: no" >&5
22507 $as_echo "no" >&6; }
22509 else
22510 { $as_echo "$as_me:$LINENO: result: no" >&5
22511 $as_echo "no" >&6; }
22515 # check for --with-libm=...
22517 case $ac_sys_system in
22518 Darwin) ;;
22519 *) LIBM=-lm
22520 esac
22521 { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
22522 $as_echo_n "checking for --with-libm=STRING... " >&6; }
22524 # Check whether --with-libm was given.
22525 if test "${with_libm+set}" = set; then
22526 withval=$with_libm;
22527 if test "$withval" = no
22528 then LIBM=
22529 { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
22530 $as_echo "force LIBM empty" >&6; }
22531 elif test "$withval" != yes
22532 then LIBM=$withval
22533 { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
22534 $as_echo "set LIBM=\"$withval\"" >&6; }
22535 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
22536 $as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
22537 { (exit 1); exit 1; }; }
22539 else
22540 { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
22541 $as_echo "default LIBM=\"$LIBM\"" >&6; }
22545 # check for --with-libc=...
22547 { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
22548 $as_echo_n "checking for --with-libc=STRING... " >&6; }
22550 # Check whether --with-libc was given.
22551 if test "${with_libc+set}" = set; then
22552 withval=$with_libc;
22553 if test "$withval" = no
22554 then LIBC=
22555 { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
22556 $as_echo "force LIBC empty" >&6; }
22557 elif test "$withval" != yes
22558 then LIBC=$withval
22559 { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22560 $as_echo "set LIBC=\"$withval\"" >&6; }
22561 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22562 $as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22563 { (exit 1); exit 1; }; }
22565 else
22566 { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22567 $as_echo "default LIBC=\"$LIBC\"" >&6; }
22571 # **************************************************
22572 # * Check for various properties of floating point *
22573 # **************************************************
22575 { $as_echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22576 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
22577 if test "${ac_cv_little_endian_double+set}" = set; then
22578 $as_echo_n "(cached) " >&6
22579 else
22581 if test "$cross_compiling" = yes; then
22582 ac_cv_little_endian_double=no
22583 else
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h. */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22591 #include <string.h>
22592 int main() {
22593 double x = 9006104071832581.0;
22594 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22595 return 0;
22596 else
22597 return 1;
22600 _ACEOF
22601 rm -f conftest$ac_exeext
22602 if { (ac_try="$ac_link"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606 esac
22607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22608 $as_echo "$ac_try_echo") >&5
22609 (eval "$ac_link") 2>&5
22610 ac_status=$?
22611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22613 { (case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22616 esac
22617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22618 $as_echo "$ac_try_echo") >&5
22619 (eval "$ac_try") 2>&5
22620 ac_status=$?
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_little_endian_double=yes
22624 else
22625 $as_echo "$as_me: program exited with status $ac_status" >&5
22626 $as_echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ( exit $ac_status )
22630 ac_cv_little_endian_double=no
22632 rm -rf conftest.dSYM
22633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22639 { $as_echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22640 $as_echo "$ac_cv_little_endian_double" >&6; }
22641 if test "$ac_cv_little_endian_double" = yes
22642 then
22644 cat >>confdefs.h <<\_ACEOF
22645 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22646 _ACEOF
22650 { $as_echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22651 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
22652 if test "${ac_cv_big_endian_double+set}" = set; then
22653 $as_echo_n "(cached) " >&6
22654 else
22656 if test "$cross_compiling" = yes; then
22657 ac_cv_big_endian_double=no
22658 else
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22666 #include <string.h>
22667 int main() {
22668 double x = 9006104071832581.0;
22669 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22670 return 0;
22671 else
22672 return 1;
22675 _ACEOF
22676 rm -f conftest$ac_exeext
22677 if { (ac_try="$ac_link"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683 $as_echo "$ac_try_echo") >&5
22684 (eval "$ac_link") 2>&5
22685 ac_status=$?
22686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22688 { (case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22691 esac
22692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22693 $as_echo "$ac_try_echo") >&5
22694 (eval "$ac_try") 2>&5
22695 ac_status=$?
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 ac_cv_big_endian_double=yes
22699 else
22700 $as_echo "$as_me: program exited with status $ac_status" >&5
22701 $as_echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ( exit $ac_status )
22705 ac_cv_big_endian_double=no
22707 rm -rf conftest.dSYM
22708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22714 { $as_echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22715 $as_echo "$ac_cv_big_endian_double" >&6; }
22716 if test "$ac_cv_big_endian_double" = yes
22717 then
22719 cat >>confdefs.h <<\_ACEOF
22720 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22721 _ACEOF
22725 # Some ARM platforms use a mixed-endian representation for doubles.
22726 # While Python doesn't currently have full support for these platforms
22727 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22728 # conversions work.
22729 { $as_echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22730 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
22731 if test "${ac_cv_mixed_endian_double+set}" = set; then
22732 $as_echo_n "(cached) " >&6
22733 else
22735 if test "$cross_compiling" = yes; then
22736 ac_cv_mixed_endian_double=no
22737 else
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h. */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22745 #include <string.h>
22746 int main() {
22747 double x = 9006104071832581.0;
22748 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22749 return 0;
22750 else
22751 return 1;
22754 _ACEOF
22755 rm -f conftest$ac_exeext
22756 if { (ac_try="$ac_link"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22760 esac
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763 (eval "$ac_link") 2>&5
22764 ac_status=$?
22765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22767 { (case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22772 $as_echo "$ac_try_echo") >&5
22773 (eval "$ac_try") 2>&5
22774 ac_status=$?
22775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_mixed_endian_double=yes
22778 else
22779 $as_echo "$as_me: program exited with status $ac_status" >&5
22780 $as_echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ( exit $ac_status )
22784 ac_cv_mixed_endian_double=no
22786 rm -rf conftest.dSYM
22787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22793 { $as_echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22794 $as_echo "$ac_cv_mixed_endian_double" >&6; }
22795 if test "$ac_cv_mixed_endian_double" = yes
22796 then
22798 cat >>confdefs.h <<\_ACEOF
22799 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22800 _ACEOF
22804 # The short float repr introduced in Python 3.1 requires the
22805 # correctly-rounded string <-> double conversion functions from
22806 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22807 # rounding; this is a problem on x86, where the x87 FPU has a default
22808 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22809 # using inline assembler to get and set the x87 FPU control word.
22810 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22811 then
22812 # Check that it's okay to use gcc inline assembler to get and set
22813 # x87 control word. It should be, but you never know...
22814 { $as_echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22815 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h. */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22824 main ()
22827 unsigned short cw;
22828 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22829 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22832 return 0;
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 have_gcc_asm_for_x87=yes
22854 else
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 have_gcc_asm_for_x87=no
22861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862 { $as_echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22863 $as_echo "$have_gcc_asm_for_x87" >&6; }
22864 if test "$have_gcc_asm_for_x87" = yes
22865 then
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_GCC_ASM_FOR_X87 1
22869 _ACEOF
22874 # Detect whether system arithmetic is subject to x87-style double
22875 # rounding issues. The result of this test has little meaning on non
22876 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22877 # mode is round-to-nearest and double rounding issues are present, and
22878 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22879 { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22880 $as_echo_n "checking for x87-style double rounding... " >&6; }
22881 # $BASECFLAGS may affect the result
22882 ac_save_cc="$CC"
22883 CC="$CC $BASECFLAGS"
22884 if test "$cross_compiling" = yes; then
22885 ac_cv_x87_double_rounding=no
22886 else
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h. */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 #include <stdlib.h>
22895 #include <math.h>
22896 int main() {
22897 volatile double x, y, z;
22898 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22899 x = 0.99999999999999989; /* 1-2**-53 */
22900 y = 1./x;
22901 if (y != 1.)
22902 exit(0);
22903 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22904 x = 1e16;
22905 y = 2.99999;
22906 z = x + y;
22907 if (z != 1e16+4.)
22908 exit(0);
22909 /* both tests show evidence of double rounding */
22910 exit(1);
22913 _ACEOF
22914 rm -f conftest$ac_exeext
22915 if { (ac_try="$ac_link"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22919 esac
22920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22921 $as_echo "$ac_try_echo") >&5
22922 (eval "$ac_link") 2>&5
22923 ac_status=$?
22924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22926 { (case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932 (eval "$ac_try") 2>&5
22933 ac_status=$?
22934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_cv_x87_double_rounding=no
22937 else
22938 $as_echo "$as_me: program exited with status $ac_status" >&5
22939 $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22942 ( exit $ac_status )
22943 ac_cv_x87_double_rounding=yes
22945 rm -rf conftest.dSYM
22946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22950 CC="$ac_save_cc"
22951 { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22952 $as_echo "$ac_cv_x87_double_rounding" >&6; }
22953 if test "$ac_cv_x87_double_rounding" = yes
22954 then
22956 cat >>confdefs.h <<\_ACEOF
22957 #define X87_DOUBLE_ROUNDING 1
22958 _ACEOF
22962 # ************************************
22963 # * Check for mathematical functions *
22964 # ************************************
22966 LIBS_SAVE=$LIBS
22967 LIBS="$LIBS $LIBM"
22969 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22970 # -0. on some architectures.
22971 { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22972 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
22973 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22974 $as_echo_n "(cached) " >&6
22975 else
22977 if test "$cross_compiling" = yes; then
22978 ac_cv_tanh_preserves_zero_sign=no
22979 else
22980 cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h. */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22987 #include <math.h>
22988 #include <stdlib.h>
22989 int main() {
22990 /* return 0 if either negative zeros don't exist
22991 on this platform or if negative zeros exist
22992 and tanh(-0.) == -0. */
22993 if (atan2(0., -1.) == atan2(-0., -1.) ||
22994 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22995 else exit(1);
22998 _ACEOF
22999 rm -f conftest$ac_exeext
23000 if { (ac_try="$ac_link"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23004 esac
23005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23006 $as_echo "$ac_try_echo") >&5
23007 (eval "$ac_link") 2>&5
23008 ac_status=$?
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23011 { (case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23014 esac
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017 (eval "$ac_try") 2>&5
23018 ac_status=$?
23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_tanh_preserves_zero_sign=yes
23022 else
23023 $as_echo "$as_me: program exited with status $ac_status" >&5
23024 $as_echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ( exit $ac_status )
23028 ac_cv_tanh_preserves_zero_sign=no
23030 rm -rf conftest.dSYM
23031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23037 { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23038 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
23039 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23040 then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define TANH_PRESERVES_ZERO_SIGN 1
23044 _ACEOF
23057 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
23059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23060 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23061 $as_echo_n "checking for $ac_func... " >&6; }
23062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23063 $as_echo_n "(cached) " >&6
23064 else
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23073 #define $ac_func innocuous_$ac_func
23075 /* System header to define __stub macros and hopefully few prototypes,
23076 which can conflict with char $ac_func (); below.
23077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23078 <limits.h> exists even on freestanding compilers. */
23080 #ifdef __STDC__
23081 # include <limits.h>
23082 #else
23083 # include <assert.h>
23084 #endif
23086 #undef $ac_func
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 char $ac_func ();
23095 /* The GNU C library defines this for functions which it implements
23096 to always fail with ENOSYS. Some functions are actually named
23097 something starting with __ and the normal name is an alias. */
23098 #if defined __stub_$ac_func || defined __stub___$ac_func
23099 choke me
23100 #endif
23103 main ()
23105 return $ac_func ();
23107 return 0;
23109 _ACEOF
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (ac_try="$ac_link"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115 esac
23116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23117 $as_echo "$ac_try_echo") >&5
23118 (eval "$ac_link") 2>conftest.er1
23119 ac_status=$?
23120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
23123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext && {
23128 test "$cross_compiling" = yes ||
23129 $as_test_x conftest$ac_exeext
23130 }; then
23131 eval "$as_ac_var=yes"
23132 else
23133 $as_echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23136 eval "$as_ac_var=no"
23139 rm -rf conftest.dSYM
23140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23141 conftest$ac_exeext conftest.$ac_ext
23143 ac_res=`eval 'as_val=${'$as_ac_var'}
23144 $as_echo "$as_val"'`
23145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23146 $as_echo "$ac_res" >&6; }
23147 as_val=`eval 'as_val=${'$as_ac_var'}
23148 $as_echo "$as_val"'`
23149 if test "x$as_val" = x""yes; then
23150 cat >>confdefs.h <<_ACEOF
23151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23152 _ACEOF
23155 done
23157 { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23158 $as_echo_n "checking whether isinf is declared... " >&6; }
23159 if test "${ac_cv_have_decl_isinf+set}" = set; then
23160 $as_echo_n "(cached) " >&6
23161 else
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168 #include <math.h>
23171 main ()
23173 #ifndef isinf
23174 (void) isinf;
23175 #endif
23178 return 0;
23180 _ACEOF
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23186 esac
23187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23188 $as_echo "$ac_try_echo") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_have_decl_isinf=yes
23200 else
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_have_decl_isinf=no
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23210 $as_echo "$ac_cv_have_decl_isinf" >&6; }
23211 if test "x$ac_cv_have_decl_isinf" = x""yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_ISINF 1
23215 _ACEOF
23218 else
23219 cat >>confdefs.h <<_ACEOF
23220 #define HAVE_DECL_ISINF 0
23221 _ACEOF
23225 { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23226 $as_echo_n "checking whether isnan is declared... " >&6; }
23227 if test "${ac_cv_have_decl_isnan+set}" = set; then
23228 $as_echo_n "(cached) " >&6
23229 else
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 #include <math.h>
23239 main ()
23241 #ifndef isnan
23242 (void) isnan;
23243 #endif
23246 return 0;
23248 _ACEOF
23249 rm -f conftest.$ac_objext
23250 if { (ac_try="$ac_compile"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23254 esac
23255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23256 $as_echo "$ac_try_echo") >&5
23257 (eval "$ac_compile") 2>conftest.er1
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest.$ac_objext; then
23267 ac_cv_have_decl_isnan=yes
23268 else
23269 $as_echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_cv_have_decl_isnan=no
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23278 $as_echo "$ac_cv_have_decl_isnan" >&6; }
23279 if test "x$ac_cv_have_decl_isnan" = x""yes; then
23281 cat >>confdefs.h <<_ACEOF
23282 #define HAVE_DECL_ISNAN 1
23283 _ACEOF
23286 else
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_DECL_ISNAN 0
23289 _ACEOF
23293 { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23294 $as_echo_n "checking whether isfinite is declared... " >&6; }
23295 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23296 $as_echo_n "(cached) " >&6
23297 else
23298 cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h. */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <math.h>
23307 main ()
23309 #ifndef isfinite
23310 (void) isfinite;
23311 #endif
23314 return 0;
23316 _ACEOF
23317 rm -f conftest.$ac_objext
23318 if { (ac_try="$ac_compile"
23319 case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322 esac
23323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23324 $as_echo "$ac_try_echo") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_cv_have_decl_isfinite=yes
23336 else
23337 $as_echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_cv_have_decl_isfinite=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23346 $as_echo "$ac_cv_have_decl_isfinite" >&6; }
23347 if test "x$ac_cv_have_decl_isfinite" = x""yes; then
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_DECL_ISFINITE 1
23351 _ACEOF
23354 else
23355 cat >>confdefs.h <<_ACEOF
23356 #define HAVE_DECL_ISFINITE 0
23357 _ACEOF
23364 LIBS=$LIBS_SAVE
23366 # For multiprocessing module, check that sem_open
23367 # actually works. For FreeBSD versions <= 7.2,
23368 # the kernel module that provides POSIX semaphores
23369 # isn't loaded by default, so an attempt to call
23370 # sem_open results in a 'Signal 12' error.
23371 { $as_echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
23372 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
23373 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
23374 $as_echo_n "(cached) " >&6
23375 else
23376 if test "$cross_compiling" = yes; then
23377 ac_cv_posix_semaphores_enabled=yes
23378 else
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23386 #include <unistd.h>
23387 #include <fcntl.h>
23388 #include <stdio.h>
23389 #include <semaphore.h>
23390 #include <sys/stat.h>
23392 int main(void) {
23393 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23394 if (a == SEM_FAILED) {
23395 perror("sem_open");
23396 return 1;
23398 sem_close(a);
23399 sem_unlink("/autoconf");
23400 return 0;
23403 _ACEOF
23404 rm -f conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23409 esac
23410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412 (eval "$ac_link") 2>&5
23413 ac_status=$?
23414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23416 { (case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23419 esac
23420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23421 $as_echo "$ac_try_echo") >&5
23422 (eval "$ac_try") 2>&5
23423 ac_status=$?
23424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 ac_cv_posix_semaphores_enabled=yes
23427 else
23428 $as_echo "$as_me: program exited with status $ac_status" >&5
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ( exit $ac_status )
23433 ac_cv_posix_semaphores_enabled=no
23435 rm -rf conftest.dSYM
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23443 { $as_echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
23444 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
23445 if test $ac_cv_posix_semaphores_enabled = no
23446 then
23448 cat >>confdefs.h <<\_ACEOF
23449 #define POSIX_SEMAPHORES_NOT_ENABLED 1
23450 _ACEOF
23454 # Multiprocessing check for broken sem_getvalue
23455 { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23456 $as_echo_n "checking for broken sem_getvalue... " >&6; }
23457 if test "$cross_compiling" = yes; then
23458 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23460 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23461 See \`config.log' for more details." >&5
23462 $as_echo "$as_me: error: cannot run test program while cross compiling
23463 See \`config.log' for more details." >&2;}
23464 { (exit 1); exit 1; }; }; }
23465 else
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23473 #include <unistd.h>
23474 #include <fcntl.h>
23475 #include <stdio.h>
23476 #include <semaphore.h>
23477 #include <sys/stat.h>
23479 int main(void){
23480 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
23481 int count;
23482 int res;
23483 if(a==SEM_FAILED){
23484 perror("sem_open");
23485 return 1;
23488 res = sem_getvalue(a, &count);
23489 sem_close(a);
23490 sem_unlink("/autocftw");
23491 return res==-1 ? 1 : 0;
23495 _ACEOF
23496 rm -f conftest$ac_exeext
23497 if { (ac_try="$ac_link"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23501 esac
23502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503 $as_echo "$ac_try_echo") >&5
23504 (eval "$ac_link") 2>&5
23505 ac_status=$?
23506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23508 { (case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23513 $as_echo "$ac_try_echo") >&5
23514 (eval "$ac_try") 2>&5
23515 ac_status=$?
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23518 { $as_echo "$as_me:$LINENO: result: no" >&5
23519 $as_echo "no" >&6; }
23520 else
23521 $as_echo "$as_me: program exited with status $ac_status" >&5
23522 $as_echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23525 ( exit $ac_status )
23526 { $as_echo "$as_me:$LINENO: result: yes" >&5
23527 $as_echo "yes" >&6; }
23529 cat >>confdefs.h <<\_ACEOF
23530 #define HAVE_BROKEN_SEM_GETVALUE 1
23531 _ACEOF
23535 rm -rf conftest.dSYM
23536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 # determine what size digit to use for Python's longs
23542 { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23543 $as_echo_n "checking digit size for Python's longs... " >&6; }
23544 # Check whether --enable-big-digits was given.
23545 if test "${enable_big_digits+set}" = set; then
23546 enableval=$enable_big_digits; case $enable_big_digits in
23547 yes)
23548 enable_big_digits=30 ;;
23550 enable_big_digits=15 ;;
23551 15|30)
23554 { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23555 $as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23556 { (exit 1); exit 1; }; } ;;
23557 esac
23558 { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23559 $as_echo "$enable_big_digits" >&6; }
23561 cat >>confdefs.h <<_ACEOF
23562 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23563 _ACEOF
23566 else
23567 { $as_echo "$as_me:$LINENO: result: no value specified" >&5
23568 $as_echo "no value specified" >&6; }
23572 # check for wchar.h
23573 if test "${ac_cv_header_wchar_h+set}" = set; then
23574 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23575 $as_echo_n "checking for wchar.h... " >&6; }
23576 if test "${ac_cv_header_wchar_h+set}" = set; then
23577 $as_echo_n "(cached) " >&6
23579 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23580 $as_echo "$ac_cv_header_wchar_h" >&6; }
23581 else
23582 # Is the header compilable?
23583 { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
23584 $as_echo_n "checking wchar.h usability... " >&6; }
23585 cat >conftest.$ac_ext <<_ACEOF
23586 /* confdefs.h. */
23587 _ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 $ac_includes_default
23592 #include <wchar.h>
23593 _ACEOF
23594 rm -f conftest.$ac_objext
23595 if { (ac_try="$ac_compile"
23596 case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23599 esac
23600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23601 $as_echo "$ac_try_echo") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23603 ac_status=$?
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
23607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && {
23609 test -z "$ac_c_werror_flag" ||
23610 test ! -s conftest.err
23611 } && test -s conftest.$ac_objext; then
23612 ac_header_compiler=yes
23613 else
23614 $as_echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 ac_header_compiler=no
23620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23622 $as_echo "$ac_header_compiler" >&6; }
23624 # Is the header present?
23625 { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
23626 $as_echo_n "checking wchar.h presence... " >&6; }
23627 cat >conftest.$ac_ext <<_ACEOF
23628 /* confdefs.h. */
23629 _ACEOF
23630 cat confdefs.h >>conftest.$ac_ext
23631 cat >>conftest.$ac_ext <<_ACEOF
23632 /* end confdefs.h. */
23633 #include <wchar.h>
23634 _ACEOF
23635 if { (ac_try="$ac_cpp conftest.$ac_ext"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639 esac
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23643 ac_status=$?
23644 grep -v '^ *+' conftest.er1 >conftest.err
23645 rm -f conftest.er1
23646 cat conftest.err >&5
23647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } >/dev/null && {
23649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 }; then
23652 ac_header_preproc=yes
23653 else
23654 $as_echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_header_preproc=no
23660 rm -f conftest.err conftest.$ac_ext
23661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23662 $as_echo "$ac_header_preproc" >&6; }
23664 # So? What about this header?
23665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23666 yes:no: )
23667 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23668 $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23669 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23670 $as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23671 ac_header_preproc=yes
23673 no:yes:* )
23674 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23675 $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23676 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23677 $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23678 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23679 $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23680 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23681 $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23682 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23683 $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23684 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23685 $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23686 ( cat <<\_ASBOX
23687 ## -------------------------------------- ##
23688 ## Report this to http://bugs.python.org/ ##
23689 ## -------------------------------------- ##
23690 _ASBOX
23691 ) | sed "s/^/$as_me: WARNING: /" >&2
23693 esac
23694 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23695 $as_echo_n "checking for wchar.h... " >&6; }
23696 if test "${ac_cv_header_wchar_h+set}" = set; then
23697 $as_echo_n "(cached) " >&6
23698 else
23699 ac_cv_header_wchar_h=$ac_header_preproc
23701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23702 $as_echo "$ac_cv_header_wchar_h" >&6; }
23705 if test "x$ac_cv_header_wchar_h" = x""yes; then
23708 cat >>confdefs.h <<\_ACEOF
23709 #define HAVE_WCHAR_H 1
23710 _ACEOF
23712 wchar_h="yes"
23714 else
23715 wchar_h="no"
23721 # determine wchar_t size
23722 if test "$wchar_h" = yes
23723 then
23724 # The cast to long int works around a bug in the HP C Compiler
23725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23727 # This bug is HP SR number 8606223364.
23728 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
23729 $as_echo_n "checking size of wchar_t... " >&6; }
23730 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23731 $as_echo_n "(cached) " >&6
23732 else
23733 if test "$cross_compiling" = yes; then
23734 # Depending upon the size, compute the lo and hi bounds.
23735 cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h. */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23741 #include <wchar.h>
23744 main ()
23746 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
23747 test_array [0] = 0
23750 return 0;
23752 _ACEOF
23753 rm -f conftest.$ac_objext
23754 if { (ac_try="$ac_compile"
23755 case "(($ac_try" in
23756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757 *) ac_try_echo=$ac_try;;
23758 esac
23759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23760 $as_echo "$ac_try_echo") >&5
23761 (eval "$ac_compile") 2>conftest.er1
23762 ac_status=$?
23763 grep -v '^ *+' conftest.er1 >conftest.err
23764 rm -f conftest.er1
23765 cat conftest.err >&5
23766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest.$ac_objext; then
23771 ac_lo=0 ac_mid=0
23772 while :; do
23773 cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h. */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include <wchar.h>
23782 main ()
23784 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23785 test_array [0] = 0
23788 return 0;
23790 _ACEOF
23791 rm -f conftest.$ac_objext
23792 if { (ac_try="$ac_compile"
23793 case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796 esac
23797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23800 ac_status=$?
23801 grep -v '^ *+' conftest.er1 >conftest.err
23802 rm -f conftest.er1
23803 cat conftest.err >&5
23804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.$ac_objext; then
23809 ac_hi=$ac_mid; break
23810 else
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_lo=`expr $ac_mid + 1`
23815 if test $ac_lo -le $ac_mid; then
23816 ac_lo= ac_hi=
23817 break
23819 ac_mid=`expr 2 '*' $ac_mid + 1`
23822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 done
23824 else
23825 $as_echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 cat >conftest.$ac_ext <<_ACEOF
23829 /* confdefs.h. */
23830 _ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 #include <wchar.h>
23837 main ()
23839 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
23840 test_array [0] = 0
23843 return 0;
23845 _ACEOF
23846 rm -f conftest.$ac_objext
23847 if { (ac_try="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23851 esac
23852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23853 $as_echo "$ac_try_echo") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23855 ac_status=$?
23856 grep -v '^ *+' conftest.er1 >conftest.err
23857 rm -f conftest.er1
23858 cat conftest.err >&5
23859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest.$ac_objext; then
23864 ac_hi=-1 ac_mid=-1
23865 while :; do
23866 cat >conftest.$ac_ext <<_ACEOF
23867 /* confdefs.h. */
23868 _ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23872 #include <wchar.h>
23875 main ()
23877 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
23878 test_array [0] = 0
23881 return 0;
23883 _ACEOF
23884 rm -f conftest.$ac_objext
23885 if { (ac_try="$ac_compile"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889 esac
23890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23891 $as_echo "$ac_try_echo") >&5
23892 (eval "$ac_compile") 2>conftest.er1
23893 ac_status=$?
23894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
23897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } && {
23899 test -z "$ac_c_werror_flag" ||
23900 test ! -s conftest.err
23901 } && test -s conftest.$ac_objext; then
23902 ac_lo=$ac_mid; break
23903 else
23904 $as_echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_hi=`expr '(' $ac_mid ')' - 1`
23908 if test $ac_mid -le $ac_hi; then
23909 ac_lo= ac_hi=
23910 break
23912 ac_mid=`expr 2 '*' $ac_mid`
23915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23916 done
23917 else
23918 $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 ac_lo= ac_hi=
23924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928 # Binary search between lo and hi bounds.
23929 while test "x$ac_lo" != "x$ac_hi"; do
23930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23931 cat >conftest.$ac_ext <<_ACEOF
23932 /* confdefs.h. */
23933 _ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23937 #include <wchar.h>
23940 main ()
23942 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23943 test_array [0] = 0
23946 return 0;
23948 _ACEOF
23949 rm -f conftest.$ac_objext
23950 if { (ac_try="$ac_compile"
23951 case "(($ac_try" in
23952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23954 esac
23955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23956 $as_echo "$ac_try_echo") >&5
23957 (eval "$ac_compile") 2>conftest.er1
23958 ac_status=$?
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
23962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } && {
23964 test -z "$ac_c_werror_flag" ||
23965 test ! -s conftest.err
23966 } && test -s conftest.$ac_objext; then
23967 ac_hi=$ac_mid
23968 else
23969 $as_echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23972 ac_lo=`expr '(' $ac_mid ')' + 1`
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976 done
23977 case $ac_lo in
23978 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23979 '') if test "$ac_cv_type_wchar_t" = yes; then
23980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23982 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23983 See \`config.log' for more details." >&5
23984 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23985 See \`config.log' for more details." >&2;}
23986 { (exit 77); exit 77; }; }; }
23987 else
23988 ac_cv_sizeof_wchar_t=0
23989 fi ;;
23990 esac
23991 else
23992 cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h. */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23998 #include <wchar.h>
24000 static long int longval () { return (long int) (sizeof (wchar_t)); }
24001 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
24002 #include <stdio.h>
24003 #include <stdlib.h>
24005 main ()
24008 FILE *f = fopen ("conftest.val", "w");
24009 if (! f)
24010 return 1;
24011 if (((long int) (sizeof (wchar_t))) < 0)
24013 long int i = longval ();
24014 if (i != ((long int) (sizeof (wchar_t))))
24015 return 1;
24016 fprintf (f, "%ld", i);
24018 else
24020 unsigned long int i = ulongval ();
24021 if (i != ((long int) (sizeof (wchar_t))))
24022 return 1;
24023 fprintf (f, "%lu", i);
24025 /* Do not output a trailing newline, as this causes \r\n confusion
24026 on some platforms. */
24027 return ferror (f) || fclose (f) != 0;
24030 return 0;
24032 _ACEOF
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24038 esac
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041 (eval "$ac_link") 2>&5
24042 ac_status=$?
24043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24045 { (case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24048 esac
24049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24050 $as_echo "$ac_try_echo") >&5
24051 (eval "$ac_try") 2>&5
24052 ac_status=$?
24053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_sizeof_wchar_t=`cat conftest.val`
24056 else
24057 $as_echo "$as_me: program exited with status $ac_status" >&5
24058 $as_echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ( exit $ac_status )
24062 if test "$ac_cv_type_wchar_t" = yes; then
24063 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24065 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24066 See \`config.log' for more details." >&5
24067 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
24068 See \`config.log' for more details." >&2;}
24069 { (exit 77); exit 77; }; }; }
24070 else
24071 ac_cv_sizeof_wchar_t=0
24074 rm -rf conftest.dSYM
24075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24077 rm -f conftest.val
24079 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24080 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
24084 cat >>confdefs.h <<_ACEOF
24085 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24086 _ACEOF
24091 { $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24092 $as_echo_n "checking for UCS-4 tcl... " >&6; }
24093 have_ucs4_tcl=no
24094 cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h. */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24101 #include <tcl.h>
24102 #if TCL_UTF_MAX != 6
24103 # error "NOT UCS4_TCL"
24104 #endif
24106 main ()
24110 return 0;
24112 _ACEOF
24113 rm -f conftest.$ac_objext
24114 if { (ac_try="$ac_compile"
24115 case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24118 esac
24119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24120 $as_echo "$ac_try_echo") >&5
24121 (eval "$ac_compile") 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && {
24128 test -z "$ac_c_werror_flag" ||
24129 test ! -s conftest.err
24130 } && test -s conftest.$ac_objext; then
24133 cat >>confdefs.h <<\_ACEOF
24134 #define HAVE_UCS4_TCL 1
24135 _ACEOF
24137 have_ucs4_tcl=yes
24139 else
24140 $as_echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 { $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24148 $as_echo "$have_ucs4_tcl" >&6; }
24150 # check whether wchar_t is signed or not
24151 if test "$wchar_h" = yes
24152 then
24153 # check whether wchar_t is signed or not
24154 { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24155 $as_echo_n "checking whether wchar_t is signed... " >&6; }
24156 if test "${ac_cv_wchar_t_signed+set}" = set; then
24157 $as_echo_n "(cached) " >&6
24158 else
24160 if test "$cross_compiling" = yes; then
24161 ac_cv_wchar_t_signed=yes
24162 else
24163 cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h. */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24170 #include <wchar.h>
24171 int main()
24173 /* Success: exit code 0 */
24174 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24177 _ACEOF
24178 rm -f conftest$ac_exeext
24179 if { (ac_try="$ac_link"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24183 esac
24184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24185 $as_echo "$ac_try_echo") >&5
24186 (eval "$ac_link") 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24190 { (case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24193 esac
24194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24195 $as_echo "$ac_try_echo") >&5
24196 (eval "$ac_try") 2>&5
24197 ac_status=$?
24198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; }; then
24200 ac_cv_wchar_t_signed=yes
24201 else
24202 $as_echo "$as_me: program exited with status $ac_status" >&5
24203 $as_echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ( exit $ac_status )
24207 ac_cv_wchar_t_signed=no
24209 rm -rf conftest.dSYM
24210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24216 { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24217 $as_echo "$ac_cv_wchar_t_signed" >&6; }
24220 { $as_echo "$as_me:$LINENO: checking what type to use for str" >&5
24221 $as_echo_n "checking what type to use for str... " >&6; }
24223 # Check whether --with-wide-unicode was given.
24224 if test "${with_wide_unicode+set}" = set; then
24225 withval=$with_wide_unicode;
24226 if test "$withval" != no
24227 then unicode_size="4"
24228 else unicode_size="2"
24231 else
24233 case "$have_ucs4_tcl" in
24234 yes) unicode_size="4" ;;
24235 *) unicode_size="2" ;;
24236 esac
24243 case "$unicode_size" in
24244 4) cat >>confdefs.h <<\_ACEOF
24245 #define Py_UNICODE_SIZE 4
24246 _ACEOF
24248 *) cat >>confdefs.h <<\_ACEOF
24249 #define Py_UNICODE_SIZE 2
24250 _ACEOF
24252 esac
24257 # wchar_t is only usable if it maps to an unsigned type
24258 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24259 -a "$ac_cv_wchar_t_signed" = "no"
24260 then
24261 PY_UNICODE_TYPE="wchar_t"
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_USABLE_WCHAR_T 1
24265 _ACEOF
24267 cat >>confdefs.h <<\_ACEOF
24268 #define PY_UNICODE_TYPE wchar_t
24269 _ACEOF
24271 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24272 then
24273 PY_UNICODE_TYPE="unsigned short"
24274 cat >>confdefs.h <<\_ACEOF
24275 #define PY_UNICODE_TYPE unsigned short
24276 _ACEOF
24278 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24279 then
24280 PY_UNICODE_TYPE="unsigned long"
24281 cat >>confdefs.h <<\_ACEOF
24282 #define PY_UNICODE_TYPE unsigned long
24283 _ACEOF
24285 else
24286 PY_UNICODE_TYPE="no type found"
24288 { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24289 $as_echo "$PY_UNICODE_TYPE" >&6; }
24291 # check for endianness
24293 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24294 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24295 if test "${ac_cv_c_bigendian+set}" = set; then
24296 $as_echo_n "(cached) " >&6
24297 else
24298 ac_cv_c_bigendian=unknown
24299 # See if we're dealing with a universal compiler.
24300 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 #ifndef __APPLE_CC__
24307 not a universal capable compiler
24308 #endif
24309 typedef int dummy;
24311 _ACEOF
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24317 esac
24318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24319 $as_echo "$ac_try_echo") >&5
24320 (eval "$ac_compile") 2>conftest.er1
24321 ac_status=$?
24322 grep -v '^ *+' conftest.er1 >conftest.err
24323 rm -f conftest.er1
24324 cat conftest.err >&5
24325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } && {
24327 test -z "$ac_c_werror_flag" ||
24328 test ! -s conftest.err
24329 } && test -s conftest.$ac_objext; then
24331 # Check for potential -arch flags. It is not universal unless
24332 # there are some -arch flags. Note that *ppc* also matches
24333 # ppc64. This check is also rather less than ideal.
24334 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
24335 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
24336 esac
24337 else
24338 $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 if test $ac_cv_c_bigendian = unknown; then
24346 # See if sys/param.h defines the BYTE_ORDER macro.
24347 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h. */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/types.h>
24354 #include <sys/param.h>
24357 main ()
24359 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24360 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24361 && LITTLE_ENDIAN)
24362 bogus endian macros
24363 #endif
24366 return 0;
24368 _ACEOF
24369 rm -f conftest.$ac_objext
24370 if { (ac_try="$ac_compile"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24374 esac
24375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24376 $as_echo "$ac_try_echo") >&5
24377 (eval "$ac_compile") 2>conftest.er1
24378 ac_status=$?
24379 grep -v '^ *+' conftest.er1 >conftest.err
24380 rm -f conftest.er1
24381 cat conftest.err >&5
24382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); } && {
24384 test -z "$ac_c_werror_flag" ||
24385 test ! -s conftest.err
24386 } && test -s conftest.$ac_objext; then
24387 # It does; now see whether it defined to BIG_ENDIAN or not.
24388 cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h. */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 #include <sys/types.h>
24395 #include <sys/param.h>
24398 main ()
24400 #if BYTE_ORDER != BIG_ENDIAN
24401 not big endian
24402 #endif
24405 return 0;
24407 _ACEOF
24408 rm -f conftest.$ac_objext
24409 if { (ac_try="$ac_compile"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24413 esac
24414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24415 $as_echo "$ac_try_echo") >&5
24416 (eval "$ac_compile") 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest.$ac_objext; then
24426 ac_cv_c_bigendian=yes
24427 else
24428 $as_echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_cv_c_bigendian=no
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435 else
24436 $as_echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444 if test $ac_cv_c_bigendian = unknown; then
24445 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h. */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 #include <limits.h>
24455 main ()
24457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24458 bogus endian macros
24459 #endif
24462 return 0;
24464 _ACEOF
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24470 esac
24471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24472 $as_echo "$ac_try_echo") >&5
24473 (eval "$ac_compile") 2>conftest.er1
24474 ac_status=$?
24475 grep -v '^ *+' conftest.er1 >conftest.err
24476 rm -f conftest.er1
24477 cat conftest.err >&5
24478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); } && {
24480 test -z "$ac_c_werror_flag" ||
24481 test ! -s conftest.err
24482 } && test -s conftest.$ac_objext; then
24483 # It does; now see whether it defined to _BIG_ENDIAN or not.
24484 cat >conftest.$ac_ext <<_ACEOF
24485 /* confdefs.h. */
24486 _ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 #include <limits.h>
24493 main ()
24495 #ifndef _BIG_ENDIAN
24496 not big endian
24497 #endif
24500 return 0;
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_cv_c_bigendian=yes
24522 else
24523 $as_echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_cv_c_bigendian=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 else
24531 $as_echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 if test $ac_cv_c_bigendian = unknown; then
24540 # Compile a test program.
24541 if test "$cross_compiling" = yes; then
24542 # Try to guess by grepping values from an object file.
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h. */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 short int ascii_mm[] =
24550 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24551 short int ascii_ii[] =
24552 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24553 int use_ascii (int i) {
24554 return ascii_mm[i] + ascii_ii[i];
24556 short int ebcdic_ii[] =
24557 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24558 short int ebcdic_mm[] =
24559 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24560 int use_ebcdic (int i) {
24561 return ebcdic_mm[i] + ebcdic_ii[i];
24563 extern int foo;
24566 main ()
24568 return use_ascii (foo) == use_ebcdic (foo);
24570 return 0;
24572 _ACEOF
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577 *) ac_try_echo=$ac_try;;
24578 esac
24579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24580 $as_echo "$ac_try_echo") >&5
24581 (eval "$ac_compile") 2>conftest.er1
24582 ac_status=$?
24583 grep -v '^ *+' conftest.er1 >conftest.err
24584 rm -f conftest.er1
24585 cat conftest.err >&5
24586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && {
24588 test -z "$ac_c_werror_flag" ||
24589 test ! -s conftest.err
24590 } && test -s conftest.$ac_objext; then
24591 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24592 ac_cv_c_bigendian=yes
24594 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24595 if test "$ac_cv_c_bigendian" = unknown; then
24596 ac_cv_c_bigendian=no
24597 else
24598 # finding both strings is unlikely to happen, but who knows?
24599 ac_cv_c_bigendian=unknown
24602 else
24603 $as_echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610 else
24611 cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h. */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24617 $ac_includes_default
24619 main ()
24622 /* Are we little or big endian? From Harbison&Steele. */
24623 union
24625 long int l;
24626 char c[sizeof (long int)];
24627 } u;
24628 u.l = 1;
24629 return u.c[sizeof (long int) - 1] == 1;
24632 return 0;
24634 _ACEOF
24635 rm -f conftest$ac_exeext
24636 if { (ac_try="$ac_link"
24637 case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24640 esac
24641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24642 $as_echo "$ac_try_echo") >&5
24643 (eval "$ac_link") 2>&5
24644 ac_status=$?
24645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24647 { (case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24650 esac
24651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24652 $as_echo "$ac_try_echo") >&5
24653 (eval "$ac_try") 2>&5
24654 ac_status=$?
24655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; }; then
24657 ac_cv_c_bigendian=no
24658 else
24659 $as_echo "$as_me: program exited with status $ac_status" >&5
24660 $as_echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24663 ( exit $ac_status )
24664 ac_cv_c_bigendian=yes
24666 rm -rf conftest.dSYM
24667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24673 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24674 $as_echo "$ac_cv_c_bigendian" >&6; }
24675 case $ac_cv_c_bigendian in #(
24676 yes)
24677 cat >>confdefs.h <<\_ACEOF
24678 #define WORDS_BIGENDIAN 1
24679 _ACEOF
24680 ;; #(
24682 ;; #(
24683 universal)
24685 cat >>confdefs.h <<\_ACEOF
24686 #define AC_APPLE_UNIVERSAL_BUILD 1
24687 _ACEOF
24689 ;; #(
24691 { { $as_echo "$as_me:$LINENO: error: unknown endianness
24692 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24693 $as_echo "$as_me: error: unknown endianness
24694 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24695 { (exit 1); exit 1; }; } ;;
24696 esac
24699 # Check whether right shifting a negative integer extends the sign bit
24700 # or fills with zeros (like the Cray J90, according to Tim Peters).
24701 { $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24702 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
24703 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24704 $as_echo_n "(cached) " >&6
24705 else
24707 if test "$cross_compiling" = yes; then
24708 ac_cv_rshift_extends_sign=yes
24709 else
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h. */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24717 int main()
24719 exit(((-1)>>3 == -1) ? 0 : 1);
24722 _ACEOF
24723 rm -f conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728 esac
24729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_link") 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24740 $as_echo "$ac_try_echo") >&5
24741 (eval "$ac_try") 2>&5
24742 ac_status=$?
24743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_cv_rshift_extends_sign=yes
24746 else
24747 $as_echo "$as_me: program exited with status $ac_status" >&5
24748 $as_echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24751 ( exit $ac_status )
24752 ac_cv_rshift_extends_sign=no
24754 rm -rf conftest.dSYM
24755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24761 { $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24762 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
24763 if test "$ac_cv_rshift_extends_sign" = no
24764 then
24766 cat >>confdefs.h <<\_ACEOF
24767 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24768 _ACEOF
24772 # check for getc_unlocked and related locking functions
24773 { $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24774 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
24775 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24776 $as_echo_n "(cached) " >&6
24777 else
24779 cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h. */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24785 #include <stdio.h>
24787 main ()
24790 FILE *f = fopen("/dev/null", "r");
24791 flockfile(f);
24792 getc_unlocked(f);
24793 funlockfile(f);
24796 return 0;
24798 _ACEOF
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24804 esac
24805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24806 $as_echo "$ac_try_echo") >&5
24807 (eval "$ac_link") 2>conftest.er1
24808 ac_status=$?
24809 grep -v '^ *+' conftest.er1 >conftest.err
24810 rm -f conftest.er1
24811 cat conftest.err >&5
24812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); } && {
24814 test -z "$ac_c_werror_flag" ||
24815 test ! -s conftest.err
24816 } && test -s conftest$ac_exeext && {
24817 test "$cross_compiling" = yes ||
24818 $as_test_x conftest$ac_exeext
24819 }; then
24820 ac_cv_have_getc_unlocked=yes
24821 else
24822 $as_echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 ac_cv_have_getc_unlocked=no
24828 rm -rf conftest.dSYM
24829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24830 conftest$ac_exeext conftest.$ac_ext
24833 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24834 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
24835 if test "$ac_cv_have_getc_unlocked" = yes
24836 then
24838 cat >>confdefs.h <<\_ACEOF
24839 #define HAVE_GETC_UNLOCKED 1
24840 _ACEOF
24844 # check where readline lives
24845 # save the value of LIBS so we don't actually link Python with readline
24846 LIBS_no_readline=$LIBS
24848 # On some systems we need to link readline to a termcap compatible
24849 # library. NOTE: Keep the precedence of listed libraries synchronised
24850 # with setup.py.
24851 py_cv_lib_readline=no
24852 { $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5
24853 $as_echo_n "checking how to link readline libs... " >&6; }
24854 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24855 if test -z "$py_libtermcap"; then
24856 READLINE_LIBS="-lreadline"
24857 else
24858 READLINE_LIBS="-lreadline -l$py_libtermcap"
24860 LIBS="$READLINE_LIBS $LIBS_no_readline"
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h. */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24868 /* Override any GCC internal prototype to avoid an error.
24869 Use char because int might match the return type of a GCC
24870 builtin and then its argument prototype would still apply. */
24871 #ifdef __cplusplus
24872 extern "C"
24873 #endif
24874 char readline ();
24876 main ()
24878 return readline ();
24880 return 0;
24882 _ACEOF
24883 rm -f conftest.$ac_objext conftest$ac_exeext
24884 if { (ac_try="$ac_link"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24888 esac
24889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_link") 2>conftest.er1
24892 ac_status=$?
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest$ac_exeext && {
24901 test "$cross_compiling" = yes ||
24902 $as_test_x conftest$ac_exeext
24903 }; then
24904 py_cv_lib_readline=yes
24905 else
24906 $as_echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24912 rm -rf conftest.dSYM
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914 conftest$ac_exeext conftest.$ac_ext
24915 if test $py_cv_lib_readline = yes; then
24916 break
24918 done
24919 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24920 #AC_SUBST([READLINE_LIBS])
24921 if test $py_cv_lib_readline = no; then
24922 { $as_echo "$as_me:$LINENO: result: none" >&5
24923 $as_echo "none" >&6; }
24924 else
24925 { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24926 $as_echo "$READLINE_LIBS" >&6; }
24928 cat >>confdefs.h <<\_ACEOF
24929 #define HAVE_LIBREADLINE 1
24930 _ACEOF
24934 # check for readline 2.1
24935 { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24936 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
24937 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24938 $as_echo_n "(cached) " >&6
24939 else
24940 ac_check_lib_save_LIBS=$LIBS
24941 LIBS="-lreadline $READLINE_LIBS $LIBS"
24942 cat >conftest.$ac_ext <<_ACEOF
24943 /* confdefs.h. */
24944 _ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24949 /* Override any GCC internal prototype to avoid an error.
24950 Use char because int might match the return type of a GCC
24951 builtin and then its argument prototype would still apply. */
24952 #ifdef __cplusplus
24953 extern "C"
24954 #endif
24955 char rl_callback_handler_install ();
24957 main ()
24959 return rl_callback_handler_install ();
24961 return 0;
24963 _ACEOF
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_link") 2>conftest.er1
24973 ac_status=$?
24974 grep -v '^ *+' conftest.er1 >conftest.err
24975 rm -f conftest.er1
24976 cat conftest.err >&5
24977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest$ac_exeext && {
24982 test "$cross_compiling" = yes ||
24983 $as_test_x conftest$ac_exeext
24984 }; then
24985 ac_cv_lib_readline_rl_callback_handler_install=yes
24986 else
24987 $as_echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24990 ac_cv_lib_readline_rl_callback_handler_install=no
24993 rm -rf conftest.dSYM
24994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24995 conftest$ac_exeext conftest.$ac_ext
24996 LIBS=$ac_check_lib_save_LIBS
24998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24999 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25000 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
25002 cat >>confdefs.h <<\_ACEOF
25003 #define HAVE_RL_CALLBACK 1
25004 _ACEOF
25009 # check for readline 2.2
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <readline/readline.h>
25017 _ACEOF
25018 if { (ac_try="$ac_cpp conftest.$ac_ext"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25022 esac
25023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25024 $as_echo "$ac_try_echo") >&5
25025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } >/dev/null && {
25032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25034 }; then
25035 have_readline=yes
25036 else
25037 $as_echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 have_readline=no
25043 rm -f conftest.err conftest.$ac_ext
25044 if test $have_readline = yes
25045 then
25046 cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h. */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 #include <readline/readline.h>
25054 _ACEOF
25055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25056 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25058 cat >>confdefs.h <<\_ACEOF
25059 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25060 _ACEOF
25063 rm -f conftest*
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 #include <readline/readline.h>
25073 _ACEOF
25074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25075 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
25079 _ACEOF
25082 rm -f conftest*
25086 # check for readline 4.0
25087 { $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25088 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
25089 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25090 $as_echo_n "(cached) " >&6
25091 else
25092 ac_check_lib_save_LIBS=$LIBS
25093 LIBS="-lreadline $READLINE_LIBS $LIBS"
25094 cat >conftest.$ac_ext <<_ACEOF
25095 /* confdefs.h. */
25096 _ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25101 /* Override any GCC internal prototype to avoid an error.
25102 Use char because int might match the return type of a GCC
25103 builtin and then its argument prototype would still apply. */
25104 #ifdef __cplusplus
25105 extern "C"
25106 #endif
25107 char rl_pre_input_hook ();
25109 main ()
25111 return rl_pre_input_hook ();
25113 return 0;
25115 _ACEOF
25116 rm -f conftest.$ac_objext conftest$ac_exeext
25117 if { (ac_try="$ac_link"
25118 case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25121 esac
25122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25123 $as_echo "$ac_try_echo") >&5
25124 (eval "$ac_link") 2>conftest.er1
25125 ac_status=$?
25126 grep -v '^ *+' conftest.er1 >conftest.err
25127 rm -f conftest.er1
25128 cat conftest.err >&5
25129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } && {
25131 test -z "$ac_c_werror_flag" ||
25132 test ! -s conftest.err
25133 } && test -s conftest$ac_exeext && {
25134 test "$cross_compiling" = yes ||
25135 $as_test_x conftest$ac_exeext
25136 }; then
25137 ac_cv_lib_readline_rl_pre_input_hook=yes
25138 else
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ac_cv_lib_readline_rl_pre_input_hook=no
25145 rm -rf conftest.dSYM
25146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25147 conftest$ac_exeext conftest.$ac_ext
25148 LIBS=$ac_check_lib_save_LIBS
25150 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25151 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25152 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
25154 cat >>confdefs.h <<\_ACEOF
25155 #define HAVE_RL_PRE_INPUT_HOOK 1
25156 _ACEOF
25161 # also in 4.0
25162 { $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25163 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
25164 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25165 $as_echo_n "(cached) " >&6
25166 else
25167 ac_check_lib_save_LIBS=$LIBS
25168 LIBS="-lreadline $READLINE_LIBS $LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h. */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any GCC internal prototype to avoid an error.
25177 Use char because int might match the return type of a GCC
25178 builtin and then its argument prototype would still apply. */
25179 #ifdef __cplusplus
25180 extern "C"
25181 #endif
25182 char rl_completion_display_matches_hook ();
25184 main ()
25186 return rl_completion_display_matches_hook ();
25188 return 0;
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25196 esac
25197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25198 $as_echo "$ac_try_echo") >&5
25199 (eval "$ac_link") 2>conftest.er1
25200 ac_status=$?
25201 grep -v '^ *+' conftest.er1 >conftest.err
25202 rm -f conftest.er1
25203 cat conftest.err >&5
25204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest$ac_exeext && {
25209 test "$cross_compiling" = yes ||
25210 $as_test_x conftest$ac_exeext
25211 }; then
25212 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25213 else
25214 $as_echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25220 rm -rf conftest.dSYM
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222 conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25226 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25227 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
25229 cat >>confdefs.h <<\_ACEOF
25230 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25231 _ACEOF
25236 # check for readline 4.2
25237 { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25238 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
25239 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25240 $as_echo_n "(cached) " >&6
25241 else
25242 ac_check_lib_save_LIBS=$LIBS
25243 LIBS="-lreadline $READLINE_LIBS $LIBS"
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h. */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25251 /* Override any GCC internal prototype to avoid an error.
25252 Use char because int might match the return type of a GCC
25253 builtin and then its argument prototype would still apply. */
25254 #ifdef __cplusplus
25255 extern "C"
25256 #endif
25257 char rl_completion_matches ();
25259 main ()
25261 return rl_completion_matches ();
25263 return 0;
25265 _ACEOF
25266 rm -f conftest.$ac_objext conftest$ac_exeext
25267 if { (ac_try="$ac_link"
25268 case "(($ac_try" in
25269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25270 *) ac_try_echo=$ac_try;;
25271 esac
25272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25273 $as_echo "$ac_try_echo") >&5
25274 (eval "$ac_link") 2>conftest.er1
25275 ac_status=$?
25276 grep -v '^ *+' conftest.er1 >conftest.err
25277 rm -f conftest.er1
25278 cat conftest.err >&5
25279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest$ac_exeext && {
25284 test "$cross_compiling" = yes ||
25285 $as_test_x conftest$ac_exeext
25286 }; then
25287 ac_cv_lib_readline_rl_completion_matches=yes
25288 else
25289 $as_echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 ac_cv_lib_readline_rl_completion_matches=no
25295 rm -rf conftest.dSYM
25296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25297 conftest$ac_exeext conftest.$ac_ext
25298 LIBS=$ac_check_lib_save_LIBS
25300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25301 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
25302 if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
25304 cat >>confdefs.h <<\_ACEOF
25305 #define HAVE_RL_COMPLETION_MATCHES 1
25306 _ACEOF
25311 # also in readline 4.2
25312 cat >conftest.$ac_ext <<_ACEOF
25313 /* confdefs.h. */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h. */
25318 #include <readline/readline.h>
25319 _ACEOF
25320 if { (ac_try="$ac_cpp conftest.$ac_ext"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324 esac
25325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } >/dev/null && {
25334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 }; then
25337 have_readline=yes
25338 else
25339 $as_echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25342 have_readline=no
25345 rm -f conftest.err conftest.$ac_ext
25346 if test $have_readline = yes
25347 then
25348 cat >conftest.$ac_ext <<_ACEOF
25349 /* confdefs.h. */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <readline/readline.h>
25356 _ACEOF
25357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25358 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_RL_CATCH_SIGNAL 1
25362 _ACEOF
25365 rm -f conftest*
25369 # End of readline checks: restore LIBS
25370 LIBS=$LIBS_no_readline
25372 { $as_echo "$as_me:$LINENO: checking for broken nice()" >&5
25373 $as_echo_n "checking for broken nice()... " >&6; }
25374 if test "${ac_cv_broken_nice+set}" = set; then
25375 $as_echo_n "(cached) " >&6
25376 else
25378 if test "$cross_compiling" = yes; then
25379 ac_cv_broken_nice=no
25380 else
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h. */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25388 int main()
25390 int val1 = nice(1);
25391 if (val1 != -1 && val1 == nice(2))
25392 exit(0);
25393 exit(1);
25396 _ACEOF
25397 rm -f conftest$ac_exeext
25398 if { (ac_try="$ac_link"
25399 case "(($ac_try" in
25400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25401 *) ac_try_echo=$ac_try;;
25402 esac
25403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25404 $as_echo "$ac_try_echo") >&5
25405 (eval "$ac_link") 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25409 { (case "(($ac_try" in
25410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411 *) ac_try_echo=$ac_try;;
25412 esac
25413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25414 $as_echo "$ac_try_echo") >&5
25415 (eval "$ac_try") 2>&5
25416 ac_status=$?
25417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25419 ac_cv_broken_nice=yes
25420 else
25421 $as_echo "$as_me: program exited with status $ac_status" >&5
25422 $as_echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ( exit $ac_status )
25426 ac_cv_broken_nice=no
25428 rm -rf conftest.dSYM
25429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25435 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25436 $as_echo "$ac_cv_broken_nice" >&6; }
25437 if test "$ac_cv_broken_nice" = yes
25438 then
25440 cat >>confdefs.h <<\_ACEOF
25441 #define HAVE_BROKEN_NICE 1
25442 _ACEOF
25446 { $as_echo "$as_me:$LINENO: checking for broken poll()" >&5
25447 $as_echo_n "checking for broken poll()... " >&6; }
25448 if test "$cross_compiling" = yes; then
25449 ac_cv_broken_poll=no
25450 else
25451 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h. */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25458 #include <poll.h>
25460 int main (void)
25462 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25464 close (42);
25466 int poll_test = poll (&poll_struct, 1, 0);
25468 if (poll_test < 0)
25470 exit(0);
25472 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25474 exit(0);
25476 else
25478 exit(1);
25482 _ACEOF
25483 rm -f conftest$ac_exeext
25484 if { (ac_try="$ac_link"
25485 case "(($ac_try" in
25486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25487 *) ac_try_echo=$ac_try;;
25488 esac
25489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25490 $as_echo "$ac_try_echo") >&5
25491 (eval "$ac_link") 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495 { (case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25498 esac
25499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25500 $as_echo "$ac_try_echo") >&5
25501 (eval "$ac_try") 2>&5
25502 ac_status=$?
25503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_broken_poll=yes
25506 else
25507 $as_echo "$as_me: program exited with status $ac_status" >&5
25508 $as_echo "$as_me: failed program was:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25511 ( exit $ac_status )
25512 ac_cv_broken_poll=no
25514 rm -rf conftest.dSYM
25515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25520 $as_echo "$ac_cv_broken_poll" >&6; }
25521 if test "$ac_cv_broken_poll" = yes
25522 then
25524 cat >>confdefs.h <<\_ACEOF
25525 #define HAVE_BROKEN_POLL 1
25526 _ACEOF
25530 # Before we can test tzset, we need to check if struct tm has a tm_zone
25531 # (which is not required by ISO C or UNIX spec) and/or if we support
25532 # tzname[]
25533 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25534 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
25535 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25536 $as_echo_n "(cached) " >&6
25537 else
25538 cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h. */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h. */
25544 #include <sys/types.h>
25545 #include <$ac_cv_struct_tm>
25549 main ()
25551 static struct tm ac_aggr;
25552 if (ac_aggr.tm_zone)
25553 return 0;
25555 return 0;
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (ac_try="$ac_compile"
25560 case "(($ac_try" in
25561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25562 *) ac_try_echo=$ac_try;;
25563 esac
25564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25565 $as_echo "$ac_try_echo") >&5
25566 (eval "$ac_compile") 2>conftest.er1
25567 ac_status=$?
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
25571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } && {
25573 test -z "$ac_c_werror_flag" ||
25574 test ! -s conftest.err
25575 } && test -s conftest.$ac_objext; then
25576 ac_cv_member_struct_tm_tm_zone=yes
25577 else
25578 $as_echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 cat >conftest.$ac_ext <<_ACEOF
25582 /* confdefs.h. */
25583 _ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h. */
25587 #include <sys/types.h>
25588 #include <$ac_cv_struct_tm>
25592 main ()
25594 static struct tm ac_aggr;
25595 if (sizeof ac_aggr.tm_zone)
25596 return 0;
25598 return 0;
25600 _ACEOF
25601 rm -f conftest.$ac_objext
25602 if { (ac_try="$ac_compile"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25606 esac
25607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25608 $as_echo "$ac_try_echo") >&5
25609 (eval "$ac_compile") 2>conftest.er1
25610 ac_status=$?
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
25614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } && {
25616 test -z "$ac_c_werror_flag" ||
25617 test ! -s conftest.err
25618 } && test -s conftest.$ac_objext; then
25619 ac_cv_member_struct_tm_tm_zone=yes
25620 else
25621 $as_echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25624 ac_cv_member_struct_tm_tm_zone=no
25627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25633 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
25634 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
25636 cat >>confdefs.h <<_ACEOF
25637 #define HAVE_STRUCT_TM_TM_ZONE 1
25638 _ACEOF
25643 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25645 cat >>confdefs.h <<\_ACEOF
25646 #define HAVE_TM_ZONE 1
25647 _ACEOF
25649 else
25650 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25651 $as_echo_n "checking whether tzname is declared... " >&6; }
25652 if test "${ac_cv_have_decl_tzname+set}" = set; then
25653 $as_echo_n "(cached) " >&6
25654 else
25655 cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h. */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 #include <time.h>
25664 main ()
25666 #ifndef tzname
25667 (void) tzname;
25668 #endif
25671 return 0;
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 ac_cv_have_decl_tzname=yes
25693 else
25694 $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ac_cv_have_decl_tzname=no
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25703 $as_echo "$ac_cv_have_decl_tzname" >&6; }
25704 if test "x$ac_cv_have_decl_tzname" = x""yes; then
25706 cat >>confdefs.h <<_ACEOF
25707 #define HAVE_DECL_TZNAME 1
25708 _ACEOF
25711 else
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_DECL_TZNAME 0
25714 _ACEOF
25720 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
25721 $as_echo_n "checking for tzname... " >&6; }
25722 if test "${ac_cv_var_tzname+set}" = set; then
25723 $as_echo_n "(cached) " >&6
25724 else
25725 cat >conftest.$ac_ext <<_ACEOF
25726 /* confdefs.h. */
25727 _ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25731 #include <time.h>
25732 #if !HAVE_DECL_TZNAME
25733 extern char *tzname[];
25734 #endif
25737 main ()
25739 return tzname[0][0];
25741 return 0;
25743 _ACEOF
25744 rm -f conftest.$ac_objext conftest$ac_exeext
25745 if { (ac_try="$ac_link"
25746 case "(($ac_try" in
25747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748 *) ac_try_echo=$ac_try;;
25749 esac
25750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25751 $as_echo "$ac_try_echo") >&5
25752 (eval "$ac_link") 2>conftest.er1
25753 ac_status=$?
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
25757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest$ac_exeext && {
25762 test "$cross_compiling" = yes ||
25763 $as_test_x conftest$ac_exeext
25764 }; then
25765 ac_cv_var_tzname=yes
25766 else
25767 $as_echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 ac_cv_var_tzname=no
25773 rm -rf conftest.dSYM
25774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25775 conftest$ac_exeext conftest.$ac_ext
25777 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25778 $as_echo "$ac_cv_var_tzname" >&6; }
25779 if test $ac_cv_var_tzname = yes; then
25781 cat >>confdefs.h <<\_ACEOF
25782 #define HAVE_TZNAME 1
25783 _ACEOF
25789 # check tzset(3) exists and works like we expect it to
25790 { $as_echo "$as_me:$LINENO: checking for working tzset()" >&5
25791 $as_echo_n "checking for working tzset()... " >&6; }
25792 if test "${ac_cv_working_tzset+set}" = set; then
25793 $as_echo_n "(cached) " >&6
25794 else
25796 if test "$cross_compiling" = yes; then
25797 ac_cv_working_tzset=no
25798 else
25799 cat >conftest.$ac_ext <<_ACEOF
25800 /* confdefs.h. */
25801 _ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h. */
25806 #include <stdlib.h>
25807 #include <time.h>
25808 #include <string.h>
25810 #if HAVE_TZNAME
25811 extern char *tzname[];
25812 #endif
25814 int main()
25816 /* Note that we need to ensure that not only does tzset(3)
25817 do 'something' with localtime, but it works as documented
25818 in the library reference and as expected by the test suite.
25819 This includes making sure that tzname is set properly if
25820 tm->tm_zone does not exist since it is the alternative way
25821 of getting timezone info.
25823 Red Hat 6.2 doesn't understand the southern hemisphere
25824 after New Year's Day.
25827 time_t groundhogday = 1044144000; /* GMT-based */
25828 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25830 putenv("TZ=UTC+0");
25831 tzset();
25832 if (localtime(&groundhogday)->tm_hour != 0)
25833 exit(1);
25834 #if HAVE_TZNAME
25835 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25836 if (strcmp(tzname[0], "UTC") ||
25837 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25838 exit(1);
25839 #endif
25841 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25842 tzset();
25843 if (localtime(&groundhogday)->tm_hour != 19)
25844 exit(1);
25845 #if HAVE_TZNAME
25846 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25847 exit(1);
25848 #endif
25850 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25851 tzset();
25852 if (localtime(&groundhogday)->tm_hour != 11)
25853 exit(1);
25854 #if HAVE_TZNAME
25855 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25856 exit(1);
25857 #endif
25859 #if HAVE_STRUCT_TM_TM_ZONE
25860 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25861 exit(1);
25862 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25863 exit(1);
25864 #endif
25866 exit(0);
25869 _ACEOF
25870 rm -f conftest$ac_exeext
25871 if { (ac_try="$ac_link"
25872 case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25875 esac
25876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25877 $as_echo "$ac_try_echo") >&5
25878 (eval "$ac_link") 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25882 { (case "(($ac_try" in
25883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25884 *) ac_try_echo=$ac_try;;
25885 esac
25886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25887 $as_echo "$ac_try_echo") >&5
25888 (eval "$ac_try") 2>&5
25889 ac_status=$?
25890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 ac_cv_working_tzset=yes
25893 else
25894 $as_echo "$as_me: program exited with status $ac_status" >&5
25895 $as_echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ( exit $ac_status )
25899 ac_cv_working_tzset=no
25901 rm -rf conftest.dSYM
25902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25908 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25909 $as_echo "$ac_cv_working_tzset" >&6; }
25910 if test "$ac_cv_working_tzset" = yes
25911 then
25913 cat >>confdefs.h <<\_ACEOF
25914 #define HAVE_WORKING_TZSET 1
25915 _ACEOF
25919 # Look for subsecond timestamps in struct stat
25920 { $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25921 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
25922 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25923 $as_echo_n "(cached) " >&6
25924 else
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h. */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 #include <sys/stat.h>
25933 main ()
25936 struct stat st;
25937 st.st_mtim.tv_nsec = 1;
25940 return 0;
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948 esac
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25952 ac_status=$?
25953 grep -v '^ *+' conftest.er1 >conftest.err
25954 rm -f conftest.er1
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25961 ac_cv_stat_tv_nsec=yes
25962 else
25963 $as_echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966 ac_cv_stat_tv_nsec=no
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25973 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
25974 if test "$ac_cv_stat_tv_nsec" = yes
25975 then
25977 cat >>confdefs.h <<\_ACEOF
25978 #define HAVE_STAT_TV_NSEC 1
25979 _ACEOF
25983 # Look for BSD style subsecond timestamps in struct stat
25984 { $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25985 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
25986 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25987 $as_echo_n "(cached) " >&6
25988 else
25989 cat >conftest.$ac_ext <<_ACEOF
25990 /* confdefs.h. */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <sys/stat.h>
25997 main ()
26000 struct stat st;
26001 st.st_mtimespec.tv_nsec = 1;
26004 return 0;
26006 _ACEOF
26007 rm -f conftest.$ac_objext
26008 if { (ac_try="$ac_compile"
26009 case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26012 esac
26013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26014 $as_echo "$ac_try_echo") >&5
26015 (eval "$ac_compile") 2>conftest.er1
26016 ac_status=$?
26017 grep -v '^ *+' conftest.er1 >conftest.err
26018 rm -f conftest.er1
26019 cat conftest.err >&5
26020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } && {
26022 test -z "$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26024 } && test -s conftest.$ac_objext; then
26025 ac_cv_stat_tv_nsec2=yes
26026 else
26027 $as_echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_cv_stat_tv_nsec2=no
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036 { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26037 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
26038 if test "$ac_cv_stat_tv_nsec2" = yes
26039 then
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_STAT_TV_NSEC2 1
26043 _ACEOF
26047 # On HP/UX 11.0, mvwdelch is a block with a return statement
26048 { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26049 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
26050 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26051 $as_echo_n "(cached) " >&6
26052 else
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h. */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <curses.h>
26061 main ()
26064 int rtn;
26065 rtn = mvwdelch(0,0,0);
26068 return 0;
26070 _ACEOF
26071 rm -f conftest.$ac_objext
26072 if { (ac_try="$ac_compile"
26073 case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26076 esac
26077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26078 $as_echo "$ac_try_echo") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
26084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_c_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest.$ac_objext; then
26089 ac_cv_mvwdelch_is_expression=yes
26090 else
26091 $as_echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26094 ac_cv_mvwdelch_is_expression=no
26097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100 { $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26101 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
26103 if test "$ac_cv_mvwdelch_is_expression" = yes
26104 then
26106 cat >>confdefs.h <<\_ACEOF
26107 #define MVWDELCH_IS_EXPRESSION 1
26108 _ACEOF
26112 { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26113 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
26114 if test "${ac_cv_window_has_flags+set}" = set; then
26115 $as_echo_n "(cached) " >&6
26116 else
26117 cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h. */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h. */
26123 #include <curses.h>
26125 main ()
26128 WINDOW *w;
26129 w->_flags = 0;
26132 return 0;
26134 _ACEOF
26135 rm -f conftest.$ac_objext
26136 if { (ac_try="$ac_compile"
26137 case "(($ac_try" in
26138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139 *) ac_try_echo=$ac_try;;
26140 esac
26141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26142 $as_echo "$ac_try_echo") >&5
26143 (eval "$ac_compile") 2>conftest.er1
26144 ac_status=$?
26145 grep -v '^ *+' conftest.er1 >conftest.err
26146 rm -f conftest.er1
26147 cat conftest.err >&5
26148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } && {
26150 test -z "$ac_c_werror_flag" ||
26151 test ! -s conftest.err
26152 } && test -s conftest.$ac_objext; then
26153 ac_cv_window_has_flags=yes
26154 else
26155 $as_echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_cv_window_has_flags=no
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 { $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26165 $as_echo "$ac_cv_window_has_flags" >&6; }
26168 if test "$ac_cv_window_has_flags" = yes
26169 then
26171 cat >>confdefs.h <<\_ACEOF
26172 #define WINDOW_HAS_FLAGS 1
26173 _ACEOF
26177 { $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5
26178 $as_echo_n "checking for is_term_resized... " >&6; }
26179 cat >conftest.$ac_ext <<_ACEOF
26180 /* confdefs.h. */
26181 _ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26185 #include <curses.h>
26187 main ()
26189 void *x=is_term_resized
26191 return 0;
26193 _ACEOF
26194 rm -f conftest.$ac_objext
26195 if { (ac_try="$ac_compile"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26199 esac
26200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26201 $as_echo "$ac_try_echo") >&5
26202 (eval "$ac_compile") 2>conftest.er1
26203 ac_status=$?
26204 grep -v '^ *+' conftest.er1 >conftest.err
26205 rm -f conftest.er1
26206 cat conftest.err >&5
26207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } && {
26209 test -z "$ac_c_werror_flag" ||
26210 test ! -s conftest.err
26211 } && test -s conftest.$ac_objext; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_CURSES_IS_TERM_RESIZED 1
26215 _ACEOF
26217 { $as_echo "$as_me:$LINENO: result: yes" >&5
26218 $as_echo "yes" >&6; }
26219 else
26220 $as_echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 { $as_echo "$as_me:$LINENO: result: no" >&5
26224 $as_echo "no" >&6; }
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 { $as_echo "$as_me:$LINENO: checking for resize_term" >&5
26231 $as_echo_n "checking for resize_term... " >&6; }
26232 cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h. */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <curses.h>
26240 main ()
26242 void *x=resize_term
26244 return 0;
26246 _ACEOF
26247 rm -f conftest.$ac_objext
26248 if { (ac_try="$ac_compile"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26252 esac
26253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26254 $as_echo "$ac_try_echo") >&5
26255 (eval "$ac_compile") 2>conftest.er1
26256 ac_status=$?
26257 grep -v '^ *+' conftest.er1 >conftest.err
26258 rm -f conftest.er1
26259 cat conftest.err >&5
26260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); } && {
26262 test -z "$ac_c_werror_flag" ||
26263 test ! -s conftest.err
26264 } && test -s conftest.$ac_objext; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_CURSES_RESIZE_TERM 1
26268 _ACEOF
26270 { $as_echo "$as_me:$LINENO: result: yes" >&5
26271 $as_echo "yes" >&6; }
26272 else
26273 $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 { $as_echo "$as_me:$LINENO: result: no" >&5
26277 $as_echo "no" >&6; }
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 { $as_echo "$as_me:$LINENO: checking for resizeterm" >&5
26284 $as_echo_n "checking for resizeterm... " >&6; }
26285 cat >conftest.$ac_ext <<_ACEOF
26286 /* confdefs.h. */
26287 _ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h. */
26291 #include <curses.h>
26293 main ()
26295 void *x=resizeterm
26297 return 0;
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304 *) ac_try_echo=$ac_try;;
26305 esac
26306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26307 $as_echo "$ac_try_echo") >&5
26308 (eval "$ac_compile") 2>conftest.er1
26309 ac_status=$?
26310 grep -v '^ *+' conftest.er1 >conftest.err
26311 rm -f conftest.er1
26312 cat conftest.err >&5
26313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest.$ac_objext; then
26319 cat >>confdefs.h <<\_ACEOF
26320 #define HAVE_CURSES_RESIZETERM 1
26321 _ACEOF
26323 { $as_echo "$as_me:$LINENO: result: yes" >&5
26324 $as_echo "yes" >&6; }
26325 else
26326 $as_echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26329 { $as_echo "$as_me:$LINENO: result: no" >&5
26330 $as_echo "no" >&6; }
26334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 { $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26337 $as_echo_n "checking for /dev/ptmx... " >&6; }
26339 if test -r /dev/ptmx
26340 then
26341 { $as_echo "$as_me:$LINENO: result: yes" >&5
26342 $as_echo "yes" >&6; }
26344 cat >>confdefs.h <<\_ACEOF
26345 #define HAVE_DEV_PTMX 1
26346 _ACEOF
26348 else
26349 { $as_echo "$as_me:$LINENO: result: no" >&5
26350 $as_echo "no" >&6; }
26353 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26354 $as_echo_n "checking for /dev/ptc... " >&6; }
26356 if test -r /dev/ptc
26357 then
26358 { $as_echo "$as_me:$LINENO: result: yes" >&5
26359 $as_echo "yes" >&6; }
26361 cat >>confdefs.h <<\_ACEOF
26362 #define HAVE_DEV_PTC 1
26363 _ACEOF
26365 else
26366 { $as_echo "$as_me:$LINENO: result: no" >&5
26367 $as_echo "no" >&6; }
26370 { $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26371 $as_echo_n "checking for %zd printf() format support... " >&6; }
26372 if test "$cross_compiling" = yes; then
26373 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26375 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26376 See \`config.log' for more details." >&5
26377 $as_echo "$as_me: error: cannot run test program while cross compiling
26378 See \`config.log' for more details." >&2;}
26379 { (exit 1); exit 1; }; }; }
26380 else
26381 cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h. */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26387 #include <stdio.h>
26388 #include <stddef.h>
26389 #include <string.h>
26391 #ifdef HAVE_SYS_TYPES_H
26392 #include <sys/types.h>
26393 #endif
26395 #ifdef HAVE_SSIZE_T
26396 typedef ssize_t Py_ssize_t;
26397 #elif SIZEOF_VOID_P == SIZEOF_LONG
26398 typedef long Py_ssize_t;
26399 #else
26400 typedef int Py_ssize_t;
26401 #endif
26403 int main()
26405 char buffer[256];
26407 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26408 return 1;
26410 if (strcmp(buffer, "123"))
26411 return 1;
26413 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26414 return 1;
26416 if (strcmp(buffer, "-123"))
26417 return 1;
26419 return 0;
26421 _ACEOF
26422 rm -f conftest$ac_exeext
26423 if { (ac_try="$ac_link"
26424 case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427 esac
26428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26429 $as_echo "$ac_try_echo") >&5
26430 (eval "$ac_link") 2>&5
26431 ac_status=$?
26432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26434 { (case "(($ac_try" in
26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26437 esac
26438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26439 $as_echo "$ac_try_echo") >&5
26440 (eval "$ac_try") 2>&5
26441 ac_status=$?
26442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; }; then
26444 { $as_echo "$as_me:$LINENO: result: yes" >&5
26445 $as_echo "yes" >&6; }
26447 cat >>confdefs.h <<\_ACEOF
26448 #define PY_FORMAT_SIZE_T "z"
26449 _ACEOF
26451 else
26452 $as_echo "$as_me: program exited with status $ac_status" >&5
26453 $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26456 ( exit $ac_status )
26457 { $as_echo "$as_me:$LINENO: result: no" >&5
26458 $as_echo "no" >&6; }
26460 rm -rf conftest.dSYM
26461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26466 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26467 $as_echo_n "checking for socklen_t... " >&6; }
26468 if test "${ac_cv_type_socklen_t+set}" = set; then
26469 $as_echo_n "(cached) " >&6
26470 else
26471 ac_cv_type_socklen_t=no
26472 cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h. */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26479 #ifdef HAVE_SYS_TYPES_H
26480 #include <sys/types.h>
26481 #endif
26482 #ifdef HAVE_SYS_SOCKET_H
26483 #include <sys/socket.h>
26484 #endif
26488 main ()
26490 if (sizeof (socklen_t))
26491 return 0;
26493 return 0;
26495 _ACEOF
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500 *) ac_try_echo=$ac_try;;
26501 esac
26502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26503 $as_echo "$ac_try_echo") >&5
26504 (eval "$ac_compile") 2>conftest.er1
26505 ac_status=$?
26506 grep -v '^ *+' conftest.er1 >conftest.err
26507 rm -f conftest.er1
26508 cat conftest.err >&5
26509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest.$ac_objext; then
26514 cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h. */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26521 #ifdef HAVE_SYS_TYPES_H
26522 #include <sys/types.h>
26523 #endif
26524 #ifdef HAVE_SYS_SOCKET_H
26525 #include <sys/socket.h>
26526 #endif
26530 main ()
26532 if (sizeof ((socklen_t)))
26533 return 0;
26535 return 0;
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (ac_try="$ac_compile"
26540 case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26543 esac
26544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26545 $as_echo "$ac_try_echo") >&5
26546 (eval "$ac_compile") 2>conftest.er1
26547 ac_status=$?
26548 grep -v '^ *+' conftest.er1 >conftest.err
26549 rm -f conftest.er1
26550 cat conftest.err >&5
26551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } && {
26553 test -z "$ac_c_werror_flag" ||
26554 test ! -s conftest.err
26555 } && test -s conftest.$ac_objext; then
26557 else
26558 $as_echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ac_cv_type_socklen_t=yes
26564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26565 else
26566 $as_echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26575 $as_echo "$ac_cv_type_socklen_t" >&6; }
26576 if test "x$ac_cv_type_socklen_t" = x""yes; then
26578 else
26580 cat >>confdefs.h <<\_ACEOF
26581 #define socklen_t int
26582 _ACEOF
26587 { $as_echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
26588 $as_echo_n "checking for broken mbstowcs... " >&6; }
26589 if test "$cross_compiling" = yes; then
26590 ac_cv_broken_mbstowcs=no
26591 else
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h. */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26599 #include<stdlib.h>
26600 int main() {
26601 size_t len = -1;
26602 const char *str = "text";
26603 len = mbstowcs(NULL, str, 0);
26604 return (len != 4);
26607 _ACEOF
26608 rm -f conftest$ac_exeext
26609 if { (ac_try="$ac_link"
26610 case "(($ac_try" in
26611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612 *) ac_try_echo=$ac_try;;
26613 esac
26614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26615 $as_echo "$ac_try_echo") >&5
26616 (eval "$ac_link") 2>&5
26617 ac_status=$?
26618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26620 { (case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26623 esac
26624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26625 $as_echo "$ac_try_echo") >&5
26626 (eval "$ac_try") 2>&5
26627 ac_status=$?
26628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 ac_cv_broken_mbstowcs=no
26631 else
26632 $as_echo "$as_me: program exited with status $ac_status" >&5
26633 $as_echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ( exit $ac_status )
26637 ac_cv_broken_mbstowcs=yes
26639 rm -rf conftest.dSYM
26640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26644 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
26645 $as_echo "$ac_cv_broken_mbstowcs" >&6; }
26646 if test "$ac_cv_broken_mbstowcs" = yes
26647 then
26649 cat >>confdefs.h <<\_ACEOF
26650 #define HAVE_BROKEN_MBSTOWCS 1
26651 _ACEOF
26655 # Check for --with-computed-gotos
26656 { $as_echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
26657 $as_echo_n "checking for --with-computed-gotos... " >&6; }
26659 # Check whether --with-computed-gotos was given.
26660 if test "${with_computed_gotos+set}" = set; then
26661 withval=$with_computed_gotos;
26662 if test "$withval" != no
26663 then
26665 cat >>confdefs.h <<\_ACEOF
26666 #define USE_COMPUTED_GOTOS 1
26667 _ACEOF
26669 { $as_echo "$as_me:$LINENO: result: yes" >&5
26670 $as_echo "yes" >&6; }
26671 else { $as_echo "$as_me:$LINENO: result: no" >&5
26672 $as_echo "no" >&6; }
26674 else
26675 { $as_echo "$as_me:$LINENO: result: no" >&5
26676 $as_echo "no" >&6; }
26680 if test $ac_sys_system = Darwin
26681 then
26682 LIBS="$LIBS -framework CoreFoundation"
26689 for h in `(cd $srcdir;echo Python/thread_*.h)`
26691 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26692 done
26695 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26696 { $as_echo "$as_me:$LINENO: checking for build directories" >&5
26697 $as_echo_n "checking for build directories... " >&6; }
26698 for dir in $SRCDIRS; do
26699 if test ! -d $dir; then
26700 mkdir $dir
26702 done
26703 { $as_echo "$as_me:$LINENO: result: done" >&5
26704 $as_echo "done" >&6; }
26706 # generate output files
26707 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26709 cat >confcache <<\_ACEOF
26710 # This file is a shell script that caches the results of configure
26711 # tests run on this system so they can be shared between configure
26712 # scripts and configure runs, see configure's option --config-cache.
26713 # It is not useful on other systems. If it contains results you don't
26714 # want to keep, you may remove or edit it.
26716 # config.status only pays attention to the cache file if you give it
26717 # the --recheck option to rerun configure.
26719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26721 # following values.
26723 _ACEOF
26725 # The following way of writing the cache mishandles newlines in values,
26726 # but we know of no workaround that is simple, portable, and efficient.
26727 # So, we kill variables containing newlines.
26728 # Ultrix sh set writes to stderr and can't be redirected directly,
26729 # and sets the high bit in the cache file unless we assign to the vars.
26731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26732 eval ac_val=\$$ac_var
26733 case $ac_val in #(
26734 *${as_nl}*)
26735 case $ac_var in #(
26736 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26738 esac
26739 case $ac_var in #(
26740 _ | IFS | as_nl) ;; #(
26741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26742 *) $as_unset $ac_var ;;
26743 esac ;;
26744 esac
26745 done
26747 (set) 2>&1 |
26748 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26749 *${as_nl}ac_space=\ *)
26750 # `set' does not quote correctly, so add quotes (double-quote
26751 # substitution turns \\\\ into \\, and sed turns \\ into \).
26752 sed -n \
26753 "s/'/'\\\\''/g;
26754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26755 ;; #(
26757 # `set' quotes correctly as required by POSIX, so do not add quotes.
26758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26760 esac |
26761 sort
26763 sed '
26764 /^ac_cv_env_/b end
26765 t clear
26766 :clear
26767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26768 t end
26769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26770 :end' >>confcache
26771 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26772 if test -w "$cache_file"; then
26773 test "x$cache_file" != "x/dev/null" &&
26774 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26775 $as_echo "$as_me: updating cache $cache_file" >&6;}
26776 cat confcache >$cache_file
26777 else
26778 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26779 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26782 rm -f confcache
26784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26785 # Let make expand exec_prefix.
26786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26788 DEFS=-DHAVE_CONFIG_H
26790 ac_libobjs=
26791 ac_ltlibobjs=
26792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26793 # 1. Remove the extension, and $U if already installed.
26794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26797 # will be set to the directory where LIBOBJS objects are built.
26798 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26799 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26800 done
26801 LIBOBJS=$ac_libobjs
26803 LTLIBOBJS=$ac_ltlibobjs
26808 : ${CONFIG_STATUS=./config.status}
26809 ac_write_fail=0
26810 ac_clean_files_save=$ac_clean_files
26811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26812 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26814 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26815 #! $SHELL
26816 # Generated by $as_me.
26817 # Run this file to recreate the current configuration.
26818 # Compiler output produced by configure, useful for debugging
26819 # configure, is in config.log if it exists.
26821 debug=false
26822 ac_cs_recheck=false
26823 ac_cs_silent=false
26824 SHELL=\${CONFIG_SHELL-$SHELL}
26825 _ACEOF
26827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26828 ## --------------------- ##
26829 ## M4sh Initialization. ##
26830 ## --------------------- ##
26832 # Be more Bourne compatible
26833 DUALCASE=1; export DUALCASE # for MKS sh
26834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26835 emulate sh
26836 NULLCMD=:
26837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26838 # is contrary to our usage. Disable this feature.
26839 alias -g '${1+"$@"}'='"$@"'
26840 setopt NO_GLOB_SUBST
26841 else
26842 case `(set -o) 2>/dev/null` in
26843 *posix*) set -o posix ;;
26844 esac
26851 # PATH needs CR
26852 # Avoid depending upon Character Ranges.
26853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26856 as_cr_digits='0123456789'
26857 as_cr_alnum=$as_cr_Letters$as_cr_digits
26859 as_nl='
26861 export as_nl
26862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26866 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26867 as_echo='printf %s\n'
26868 as_echo_n='printf %s'
26869 else
26870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26872 as_echo_n='/usr/ucb/echo -n'
26873 else
26874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26875 as_echo_n_body='eval
26876 arg=$1;
26877 case $arg in
26878 *"$as_nl"*)
26879 expr "X$arg" : "X\\(.*\\)$as_nl";
26880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26881 esac;
26882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26884 export as_echo_n_body
26885 as_echo_n='sh -c $as_echo_n_body as_echo'
26887 export as_echo_body
26888 as_echo='sh -c $as_echo_body as_echo'
26891 # The user is always right.
26892 if test "${PATH_SEPARATOR+set}" != set; then
26893 PATH_SEPARATOR=:
26894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26896 PATH_SEPARATOR=';'
26900 # Support unset when possible.
26901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26902 as_unset=unset
26903 else
26904 as_unset=false
26908 # IFS
26909 # We need space, tab and new line, in precisely that order. Quoting is
26910 # there to prevent editors from complaining about space-tab.
26911 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26912 # splitting by setting IFS to empty value.)
26913 IFS=" "" $as_nl"
26915 # Find who we are. Look in the path if we contain no directory separator.
26916 case $0 in
26917 *[\\/]* ) as_myself=$0 ;;
26918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26921 IFS=$as_save_IFS
26922 test -z "$as_dir" && as_dir=.
26923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26924 done
26925 IFS=$as_save_IFS
26928 esac
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x; then
26932 as_myself=$0
26934 if test ! -f "$as_myself"; then
26935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26936 { (exit 1); exit 1; }
26939 # Work around bugs in pre-3.0 UWIN ksh.
26940 for as_var in ENV MAIL MAILPATH
26941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26942 done
26943 PS1='$ '
26944 PS2='> '
26945 PS4='+ '
26947 # NLS nuisances.
26948 LC_ALL=C
26949 export LC_ALL
26950 LANGUAGE=C
26951 export LANGUAGE
26953 # Required to use basename.
26954 if expr a : '\(a\)' >/dev/null 2>&1 &&
26955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26956 as_expr=expr
26957 else
26958 as_expr=false
26961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26962 as_basename=basename
26963 else
26964 as_basename=false
26968 # Name of the executable.
26969 as_me=`$as_basename -- "$0" ||
26970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26971 X"$0" : 'X\(//\)$' \| \
26972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26973 $as_echo X/"$0" |
26974 sed '/^.*\/\([^/][^/]*\)\/*$/{
26975 s//\1/
26978 /^X\/\(\/\/\)$/{
26979 s//\1/
26982 /^X\/\(\/\).*/{
26983 s//\1/
26986 s/.*/./; q'`
26988 # CDPATH.
26989 $as_unset CDPATH
26993 as_lineno_1=$LINENO
26994 as_lineno_2=$LINENO
26995 test "x$as_lineno_1" != "x$as_lineno_2" &&
26996 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26999 # uniformly replaced by the line number. The first 'sed' inserts a
27000 # line-number line after each line using $LINENO; the second 'sed'
27001 # does the real work. The second script uses 'N' to pair each
27002 # line-number line with the line containing $LINENO, and appends
27003 # trailing '-' during substitution so that $LINENO is not a special
27004 # case at line end.
27005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27006 # scripts with optimization help from Paolo Bonzini. Blame Lee
27007 # E. McMahon (1931-1989) for sed's syntax. :-)
27008 sed -n '
27010 /[$]LINENO/=
27011 ' <$as_myself |
27012 sed '
27013 s/[$]LINENO.*/&-/
27014 t lineno
27016 :lineno
27018 :loop
27019 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27020 t loop
27021 s/-\n.*//
27022 ' >$as_me.lineno &&
27023 chmod +x "$as_me.lineno" ||
27024 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27025 { (exit 1); exit 1; }; }
27027 # Don't try to exec as it changes $[0], causing all sort of problems
27028 # (the dirname of $[0] is not the place where we might find the
27029 # original and so on. Autoconf is especially sensitive to this).
27030 . "./$as_me.lineno"
27031 # Exit status is that of the last command.
27032 exit
27036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27037 as_dirname=dirname
27038 else
27039 as_dirname=false
27042 ECHO_C= ECHO_N= ECHO_T=
27043 case `echo -n x` in
27044 -n*)
27045 case `echo 'x\c'` in
27046 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27047 *) ECHO_C='\c';;
27048 esac;;
27050 ECHO_N='-n';;
27051 esac
27052 if expr a : '\(a\)' >/dev/null 2>&1 &&
27053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27054 as_expr=expr
27055 else
27056 as_expr=false
27059 rm -f conf$$ conf$$.exe conf$$.file
27060 if test -d conf$$.dir; then
27061 rm -f conf$$.dir/conf$$.file
27062 else
27063 rm -f conf$$.dir
27064 mkdir conf$$.dir 2>/dev/null
27066 if (echo >conf$$.file) 2>/dev/null; then
27067 if ln -s conf$$.file conf$$ 2>/dev/null; then
27068 as_ln_s='ln -s'
27069 # ... but there are two gotchas:
27070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27072 # In both cases, we have to default to `cp -p'.
27073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27074 as_ln_s='cp -p'
27075 elif ln conf$$.file conf$$ 2>/dev/null; then
27076 as_ln_s=ln
27077 else
27078 as_ln_s='cp -p'
27080 else
27081 as_ln_s='cp -p'
27083 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27084 rmdir conf$$.dir 2>/dev/null
27086 if mkdir -p . 2>/dev/null; then
27087 as_mkdir_p=:
27088 else
27089 test -d ./-p && rmdir ./-p
27090 as_mkdir_p=false
27093 if test -x / >/dev/null 2>&1; then
27094 as_test_x='test -x'
27095 else
27096 if ls -dL / >/dev/null 2>&1; then
27097 as_ls_L_option=L
27098 else
27099 as_ls_L_option=
27101 as_test_x='
27102 eval sh -c '\''
27103 if test -d "$1"; then
27104 test -d "$1/.";
27105 else
27106 case $1 in
27107 -*)set "./$1";;
27108 esac;
27109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27110 ???[sx]*):;;*)false;;esac;fi
27111 '\'' sh
27114 as_executable_p=$as_test_x
27116 # Sed expression to map a string onto a valid CPP name.
27117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27119 # Sed expression to map a string onto a valid variable name.
27120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27123 exec 6>&1
27125 # Save the log message, to keep $[0] and so on meaningful, and to
27126 # report actual input values of CONFIG_FILES etc. instead of their
27127 # values after options handling.
27128 ac_log="
27129 This file was extended by python $as_me 3.1, which was
27130 generated by GNU Autoconf 2.63. Invocation command line was
27132 CONFIG_FILES = $CONFIG_FILES
27133 CONFIG_HEADERS = $CONFIG_HEADERS
27134 CONFIG_LINKS = $CONFIG_LINKS
27135 CONFIG_COMMANDS = $CONFIG_COMMANDS
27136 $ $0 $@
27138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27141 _ACEOF
27143 case $ac_config_files in *"
27144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27145 esac
27147 case $ac_config_headers in *"
27148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27149 esac
27152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27153 # Files that config.status was made for.
27154 config_files="$ac_config_files"
27155 config_headers="$ac_config_headers"
27157 _ACEOF
27159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27160 ac_cs_usage="\
27161 \`$as_me' instantiates files from templates according to the
27162 current configuration.
27164 Usage: $0 [OPTION]... [FILE]...
27166 -h, --help print this help, then exit
27167 -V, --version print version number and configuration settings, then exit
27168 -q, --quiet, --silent
27169 do not print progress messages
27170 -d, --debug don't remove temporary files
27171 --recheck update $as_me by reconfiguring in the same conditions
27172 --file=FILE[:TEMPLATE]
27173 instantiate the configuration file FILE
27174 --header=FILE[:TEMPLATE]
27175 instantiate the configuration header FILE
27177 Configuration files:
27178 $config_files
27180 Configuration headers:
27181 $config_headers
27183 Report bugs to <bug-autoconf@gnu.org>."
27185 _ACEOF
27186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27187 ac_cs_version="\\
27188 python config.status 3.1
27189 configured by $0, generated by GNU Autoconf 2.63,
27190 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27192 Copyright (C) 2008 Free Software Foundation, Inc.
27193 This config.status script is free software; the Free Software Foundation
27194 gives unlimited permission to copy, distribute and modify it."
27196 ac_pwd='$ac_pwd'
27197 srcdir='$srcdir'
27198 INSTALL='$INSTALL'
27199 test -n "\$AWK" || AWK=awk
27200 _ACEOF
27202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27203 # The default lists apply if the user does not specify any file.
27204 ac_need_defaults=:
27205 while test $# != 0
27207 case $1 in
27208 --*=*)
27209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27211 ac_shift=:
27214 ac_option=$1
27215 ac_optarg=$2
27216 ac_shift=shift
27218 esac
27220 case $ac_option in
27221 # Handling of the options.
27222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27223 ac_cs_recheck=: ;;
27224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27225 $as_echo "$ac_cs_version"; exit ;;
27226 --debug | --debu | --deb | --de | --d | -d )
27227 debug=: ;;
27228 --file | --fil | --fi | --f )
27229 $ac_shift
27230 case $ac_optarg in
27231 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27232 esac
27233 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27234 ac_need_defaults=false;;
27235 --header | --heade | --head | --hea )
27236 $ac_shift
27237 case $ac_optarg in
27238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27239 esac
27240 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27241 ac_need_defaults=false;;
27242 --he | --h)
27243 # Conflict between --help and --header
27244 { $as_echo "$as_me: error: ambiguous option: $1
27245 Try \`$0 --help' for more information." >&2
27246 { (exit 1); exit 1; }; };;
27247 --help | --hel | -h )
27248 $as_echo "$ac_cs_usage"; exit ;;
27249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27250 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27251 ac_cs_silent=: ;;
27253 # This is an error.
27254 -*) { $as_echo "$as_me: error: unrecognized option: $1
27255 Try \`$0 --help' for more information." >&2
27256 { (exit 1); exit 1; }; } ;;
27258 *) ac_config_targets="$ac_config_targets $1"
27259 ac_need_defaults=false ;;
27261 esac
27262 shift
27263 done
27265 ac_configure_extra_args=
27267 if $ac_cs_silent; then
27268 exec 6>/dev/null
27269 ac_configure_extra_args="$ac_configure_extra_args --silent"
27272 _ACEOF
27273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27274 if \$ac_cs_recheck; then
27275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27276 shift
27277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27278 CONFIG_SHELL='$SHELL'
27279 export CONFIG_SHELL
27280 exec "\$@"
27283 _ACEOF
27284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27285 exec 5>>config.log
27287 echo
27288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27289 ## Running $as_me. ##
27290 _ASBOX
27291 $as_echo "$ac_log"
27292 } >&5
27294 _ACEOF
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27296 _ACEOF
27298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27300 # Handling of arguments.
27301 for ac_config_target in $ac_config_targets
27303 case $ac_config_target in
27304 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27305 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27306 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27307 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27308 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27309 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27310 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
27311 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
27313 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27314 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27315 { (exit 1); exit 1; }; };;
27316 esac
27317 done
27320 # If the user did not use the arguments to specify the items to instantiate,
27321 # then the envvar interface is used. Set only those that are not.
27322 # We use the long form for the default assignment because of an extremely
27323 # bizarre bug on SunOS 4.1.3.
27324 if $ac_need_defaults; then
27325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27329 # Have a temporary directory for convenience. Make it in the build tree
27330 # simply because there is no reason against having it here, and in addition,
27331 # creating and moving files from /tmp can sometimes cause problems.
27332 # Hook for its removal unless debugging.
27333 # Note that there is a small window in which the directory will not be cleaned:
27334 # after its creation but before its name has been assigned to `$tmp'.
27335 $debug ||
27337 tmp=
27338 trap 'exit_status=$?
27339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27341 trap '{ (exit 1); exit 1; }' 1 2 13 15
27343 # Create a (secure) tmp directory for tmp files.
27346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27347 test -n "$tmp" && test -d "$tmp"
27348 } ||
27350 tmp=./conf$$-$RANDOM
27351 (umask 077 && mkdir "$tmp")
27352 } ||
27354 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27355 { (exit 1); exit 1; }
27358 # Set up the scripts for CONFIG_FILES section.
27359 # No need to generate them if there are no CONFIG_FILES.
27360 # This happens for instance with `./config.status config.h'.
27361 if test -n "$CONFIG_FILES"; then
27364 ac_cr='
27366 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27367 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27368 ac_cs_awk_cr='\\r'
27369 else
27370 ac_cs_awk_cr=$ac_cr
27373 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27374 _ACEOF
27378 echo "cat >conf$$subs.awk <<_ACEOF" &&
27379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27380 echo "_ACEOF"
27381 } >conf$$subs.sh ||
27382 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27383 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27384 { (exit 1); exit 1; }; }
27385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27386 ac_delim='%!_!# '
27387 for ac_last_try in false false false false false :; do
27388 . ./conf$$subs.sh ||
27389 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27391 { (exit 1); exit 1; }; }
27393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27394 if test $ac_delim_n = $ac_delim_num; then
27395 break
27396 elif $ac_last_try; then
27397 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27398 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27399 { (exit 1); exit 1; }; }
27400 else
27401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27403 done
27404 rm -f conf$$subs.sh
27406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27407 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27408 _ACEOF
27409 sed -n '
27411 s/^/S["/; s/!.*/"]=/
27414 s/^[^!]*!//
27415 :repl
27416 t repl
27417 s/'"$ac_delim"'$//
27418 t delim
27421 s/\(.\{148\}\).*/\1/
27422 t more1
27423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27426 b repl
27427 :more1
27428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27431 s/.\{148\}//
27432 t nl
27433 :delim
27435 s/\(.\{148\}\).*/\1/
27436 t more2
27437 s/["\\]/\\&/g; s/^/"/; s/$/"/
27440 :more2
27441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27444 s/.\{148\}//
27445 t delim
27446 ' <conf$$subs.awk | sed '
27447 /^[^""]/{
27449 s/\n//
27451 ' >>$CONFIG_STATUS || ac_write_fail=1
27452 rm -f conf$$subs.awk
27453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27454 _ACAWK
27455 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27456 for (key in S) S_is_set[key] = 1
27457 FS = "\a"
27461 line = $ 0
27462 nfields = split(line, field, "@")
27463 substed = 0
27464 len = length(field[1])
27465 for (i = 2; i < nfields; i++) {
27466 key = field[i]
27467 keylen = length(key)
27468 if (S_is_set[key]) {
27469 value = S[key]
27470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27471 len += length(value) + length(field[++i])
27472 substed = 1
27473 } else
27474 len += 1 + keylen
27477 print line
27480 _ACAWK
27481 _ACEOF
27482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27485 else
27487 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27488 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27489 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27490 { (exit 1); exit 1; }; }
27491 _ACEOF
27493 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27494 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27495 # trailing colons and then remove the whole line if VPATH becomes empty
27496 # (actually we leave an empty line to preserve line numbers).
27497 if test "x$srcdir" = x.; then
27498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27499 s/:*\$(srcdir):*/:/
27500 s/:*\${srcdir}:*/:/
27501 s/:*@srcdir@:*/:/
27502 s/^\([^=]*=[ ]*\):*/\1/
27503 s/:*$//
27504 s/^[^=]*=[ ]*$//
27508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27509 fi # test -n "$CONFIG_FILES"
27511 # Set up the scripts for CONFIG_HEADERS section.
27512 # No need to generate them if there are no CONFIG_HEADERS.
27513 # This happens for instance with `./config.status Makefile'.
27514 if test -n "$CONFIG_HEADERS"; then
27515 cat >"$tmp/defines.awk" <<\_ACAWK ||
27516 BEGIN {
27517 _ACEOF
27519 # Transform confdefs.h into an awk script `defines.awk', embedded as
27520 # here-document in config.status, that substitutes the proper values into
27521 # config.h.in to produce config.h.
27523 # Create a delimiter string that does not exist in confdefs.h, to ease
27524 # handling of long lines.
27525 ac_delim='%!_!# '
27526 for ac_last_try in false false :; do
27527 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27528 if test -z "$ac_t"; then
27529 break
27530 elif $ac_last_try; then
27531 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27532 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27533 { (exit 1); exit 1; }; }
27534 else
27535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27537 done
27539 # For the awk script, D is an array of macro values keyed by name,
27540 # likewise P contains macro parameters if any. Preserve backslash
27541 # newline sequences.
27543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27544 sed -n '
27545 s/.\{148\}/&'"$ac_delim"'/g
27546 t rset
27547 :rset
27548 s/^[ ]*#[ ]*define[ ][ ]*/ /
27549 t def
27551 :def
27552 s/\\$//
27553 t bsnl
27554 s/["\\]/\\&/g
27555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27556 D["\1"]=" \3"/p
27557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27559 :bsnl
27560 s/["\\]/\\&/g
27561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27562 D["\1"]=" \3\\\\\\n"\\/p
27563 t cont
27564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27565 t cont
27567 :cont
27569 s/.\{148\}/&'"$ac_delim"'/g
27570 t clear
27571 :clear
27572 s/\\$//
27573 t bsnlc
27574 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27576 :bsnlc
27577 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27578 b cont
27579 ' <confdefs.h | sed '
27580 s/'"$ac_delim"'/"\\\
27581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27584 for (key in D) D_is_set[key] = 1
27585 FS = "\a"
27587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27588 line = \$ 0
27589 split(line, arg, " ")
27590 if (arg[1] == "#") {
27591 defundef = arg[2]
27592 mac1 = arg[3]
27593 } else {
27594 defundef = substr(arg[1], 2)
27595 mac1 = arg[2]
27597 split(mac1, mac2, "(") #)
27598 macro = mac2[1]
27599 prefix = substr(line, 1, index(line, defundef) - 1)
27600 if (D_is_set[macro]) {
27601 # Preserve the white space surrounding the "#".
27602 print prefix "define", macro P[macro] D[macro]
27603 next
27604 } else {
27605 # Replace #undef with comments. This is necessary, for example,
27606 # in the case of _POSIX_SOURCE, which is predefined and required
27607 # on some systems where configure will not decide to define it.
27608 if (defundef == "undef") {
27609 print "/*", prefix defundef, macro, "*/"
27610 next
27614 { print }
27615 _ACAWK
27616 _ACEOF
27617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27618 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27619 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27620 { (exit 1); exit 1; }; }
27621 fi # test -n "$CONFIG_HEADERS"
27624 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
27625 shift
27626 for ac_tag
27628 case $ac_tag in
27629 :[FHLC]) ac_mode=$ac_tag; continue;;
27630 esac
27631 case $ac_mode$ac_tag in
27632 :[FHL]*:*);;
27633 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27634 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27635 { (exit 1); exit 1; }; };;
27636 :[FH]-) ac_tag=-:-;;
27637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27638 esac
27639 ac_save_IFS=$IFS
27640 IFS=:
27641 set x $ac_tag
27642 IFS=$ac_save_IFS
27643 shift
27644 ac_file=$1
27645 shift
27647 case $ac_mode in
27648 :L) ac_source=$1;;
27649 :[FH])
27650 ac_file_inputs=
27651 for ac_f
27653 case $ac_f in
27654 -) ac_f="$tmp/stdin";;
27655 *) # Look for the file first in the build tree, then in the source tree
27656 # (if the path is not absolute). The absolute path cannot be DOS-style,
27657 # because $ac_f cannot contain `:'.
27658 test -f "$ac_f" ||
27659 case $ac_f in
27660 [\\/$]*) false;;
27661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27662 esac ||
27663 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27664 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27665 { (exit 1); exit 1; }; };;
27666 esac
27667 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27668 ac_file_inputs="$ac_file_inputs '$ac_f'"
27669 done
27671 # Let's still pretend it is `configure' which instantiates (i.e., don't
27672 # use $as_me), people would be surprised to read:
27673 # /* config.h. Generated by config.status. */
27674 configure_input='Generated from '`
27675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27676 `' by configure.'
27677 if test x"$ac_file" != x-; then
27678 configure_input="$ac_file. $configure_input"
27679 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27680 $as_echo "$as_me: creating $ac_file" >&6;}
27682 # Neutralize special characters interpreted by sed in replacement strings.
27683 case $configure_input in #(
27684 *\&* | *\|* | *\\* )
27685 ac_sed_conf_input=`$as_echo "$configure_input" |
27686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27687 *) ac_sed_conf_input=$configure_input;;
27688 esac
27690 case $ac_tag in
27691 *:-:* | *:-) cat >"$tmp/stdin" \
27692 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27693 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27694 { (exit 1); exit 1; }; } ;;
27695 esac
27697 esac
27699 ac_dir=`$as_dirname -- "$ac_file" ||
27700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27701 X"$ac_file" : 'X\(//\)[^/]' \| \
27702 X"$ac_file" : 'X\(//\)$' \| \
27703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27704 $as_echo X"$ac_file" |
27705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27706 s//\1/
27709 /^X\(\/\/\)[^/].*/{
27710 s//\1/
27713 /^X\(\/\/\)$/{
27714 s//\1/
27717 /^X\(\/\).*/{
27718 s//\1/
27721 s/.*/./; q'`
27722 { as_dir="$ac_dir"
27723 case $as_dir in #(
27724 -*) as_dir=./$as_dir;;
27725 esac
27726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27727 as_dirs=
27728 while :; do
27729 case $as_dir in #(
27730 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27731 *) as_qdir=$as_dir;;
27732 esac
27733 as_dirs="'$as_qdir' $as_dirs"
27734 as_dir=`$as_dirname -- "$as_dir" ||
27735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736 X"$as_dir" : 'X\(//\)[^/]' \| \
27737 X"$as_dir" : 'X\(//\)$' \| \
27738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27739 $as_echo X"$as_dir" |
27740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27741 s//\1/
27744 /^X\(\/\/\)[^/].*/{
27745 s//\1/
27748 /^X\(\/\/\)$/{
27749 s//\1/
27752 /^X\(\/\).*/{
27753 s//\1/
27756 s/.*/./; q'`
27757 test -d "$as_dir" && break
27758 done
27759 test -z "$as_dirs" || eval "mkdir $as_dirs"
27760 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27761 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27762 { (exit 1); exit 1; }; }; }
27763 ac_builddir=.
27765 case "$ac_dir" in
27766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27769 # A ".." for each directory in $ac_dir_suffix.
27770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27771 case $ac_top_builddir_sub in
27772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27774 esac ;;
27775 esac
27776 ac_abs_top_builddir=$ac_pwd
27777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27778 # for backward compatibility:
27779 ac_top_builddir=$ac_top_build_prefix
27781 case $srcdir in
27782 .) # We are building in place.
27783 ac_srcdir=.
27784 ac_top_srcdir=$ac_top_builddir_sub
27785 ac_abs_top_srcdir=$ac_pwd ;;
27786 [\\/]* | ?:[\\/]* ) # Absolute name.
27787 ac_srcdir=$srcdir$ac_dir_suffix;
27788 ac_top_srcdir=$srcdir
27789 ac_abs_top_srcdir=$srcdir ;;
27790 *) # Relative name.
27791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27792 ac_top_srcdir=$ac_top_build_prefix$srcdir
27793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27794 esac
27795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27798 case $ac_mode in
27801 # CONFIG_FILE
27804 case $INSTALL in
27805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27806 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27807 esac
27808 _ACEOF
27810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27811 # If the template does not know about datarootdir, expand it.
27812 # FIXME: This hack should be removed a few years after 2.60.
27813 ac_datarootdir_hack=; ac_datarootdir_seen=
27815 ac_sed_dataroot='
27816 /datarootdir/ {
27820 /@datadir@/p
27821 /@docdir@/p
27822 /@infodir@/p
27823 /@localedir@/p
27824 /@mandir@/p
27826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27827 *datarootdir*) ac_datarootdir_seen=yes;;
27828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27829 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27831 _ACEOF
27832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27833 ac_datarootdir_hack='
27834 s&@datadir@&$datadir&g
27835 s&@docdir@&$docdir&g
27836 s&@infodir@&$infodir&g
27837 s&@localedir@&$localedir&g
27838 s&@mandir@&$mandir&g
27839 s&\\\${datarootdir}&$datarootdir&g' ;;
27840 esac
27841 _ACEOF
27843 # Neutralize VPATH when `$srcdir' = `.'.
27844 # Shell code in configure.ac might set extrasub.
27845 # FIXME: do we really want to maintain this feature?
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27847 ac_sed_extra="$ac_vpsub
27848 $extrasub
27849 _ACEOF
27850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27853 s|@configure_input@|$ac_sed_conf_input|;t t
27854 s&@top_builddir@&$ac_top_builddir_sub&;t t
27855 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27856 s&@srcdir@&$ac_srcdir&;t t
27857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27858 s&@top_srcdir@&$ac_top_srcdir&;t t
27859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27860 s&@builddir@&$ac_builddir&;t t
27861 s&@abs_builddir@&$ac_abs_builddir&;t t
27862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27863 s&@INSTALL@&$ac_INSTALL&;t t
27864 $ac_datarootdir_hack
27866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27867 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27868 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27869 { (exit 1); exit 1; }; }
27871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27872 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27874 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27875 which seems to be undefined. Please make sure it is defined." >&5
27876 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27877 which seems to be undefined. Please make sure it is defined." >&2;}
27879 rm -f "$tmp/stdin"
27880 case $ac_file in
27881 -) cat "$tmp/out" && rm -f "$tmp/out";;
27882 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27883 esac \
27884 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27885 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27886 { (exit 1); exit 1; }; }
27890 # CONFIG_HEADER
27892 if test x"$ac_file" != x-; then
27894 $as_echo "/* $configure_input */" \
27895 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27896 } >"$tmp/config.h" \
27897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27899 { (exit 1); exit 1; }; }
27900 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27901 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27903 else
27904 rm -f "$ac_file"
27905 mv "$tmp/config.h" "$ac_file" \
27906 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27907 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27908 { (exit 1); exit 1; }; }
27910 else
27911 $as_echo "/* $configure_input */" \
27912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27913 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27914 $as_echo "$as_me: error: could not create -" >&2;}
27915 { (exit 1); exit 1; }; }
27920 esac
27922 done # for ac_tag
27925 { (exit 0); exit 0; }
27926 _ACEOF
27927 chmod +x $CONFIG_STATUS
27928 ac_clean_files=$ac_clean_files_save
27930 test $ac_write_fail = 0 ||
27931 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27932 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27933 { (exit 1); exit 1; }; }
27936 # configure is writing to config.log, and then calls config.status.
27937 # config.status does its own redirection, appending to config.log.
27938 # Unfortunately, on DOS this fails, as config.log is still kept open
27939 # by configure, so config.status won't be able to write to it; its
27940 # output is simply discarded. So we exec the FD to /dev/null,
27941 # effectively closing config.log, so it can be properly (re)opened and
27942 # appended to by config.status. When coming back to configure, we
27943 # need to make the FD available again.
27944 if test "$no_create" != yes; then
27945 ac_cs_success=:
27946 ac_config_status_args=
27947 test "$silent" = yes &&
27948 ac_config_status_args="$ac_config_status_args --quiet"
27949 exec 5>/dev/null
27950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27951 exec 5>>config.log
27952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27953 # would make configure fail if this is the last instruction.
27954 $ac_cs_success || { (exit 1); exit 1; }
27956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27957 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27958 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27962 echo "creating Modules/Setup"
27963 if test ! -f Modules/Setup
27964 then
27965 cp $srcdir/Modules/Setup.dist Modules/Setup
27968 echo "creating Modules/Setup.local"
27969 if test ! -f Modules/Setup.local
27970 then
27971 echo "# Edit this file for local setup changes" >Modules/Setup.local
27974 echo "creating Makefile"
27975 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27976 -s Modules Modules/Setup.config \
27977 Modules/Setup.local Modules/Setup
27978 mv config.c Modules