1 diff -ruN Python-2.5.2/configure Python-2.5.2.aros/configure
2 --- Python-2.5.2/configure 2008-02-13 19:17:17.000000000 +0000
3 +++ Python-2.5.2.aros/configure 2016-03-30 14:00:59.646930568 +0100
6 -# From configure.in Revision: 60465 .
7 +# From configure.in Revision: 60766 .
8 # Guess values for system-dependent variables and create Makefiles.
9 -# Generated by GNU Autoconf 2.61 for python 2.5.
10 +# Generated by GNU Autoconf 2.69 for python 2.5.
12 # Report bugs to <http://www.python.org/python-bugs>.
14 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15 -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
17 +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
22 -## --------------------- ##
23 -## M4sh Initialization. ##
24 -## --------------------- ##
25 +## -------------------- ##
26 +## M4sh Initialization. ##
27 +## -------------------- ##
29 # Be more Bourne compatible
30 DUALCASE=1; export DUALCASE # for MKS sh
31 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37 # is contrary to our usage. Disable this feature.
38 alias -g '${1+"$@"}'='"$@"'
41 - case `(set -o) 2>/dev/null` in
42 - *posix*) set -o posix ;;
43 + case `(set -o) 2>/dev/null` in #(
56 -# Avoid depending upon Character Ranges.
57 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60 -as_cr_digits='0123456789'
61 -as_cr_alnum=$as_cr_Letters$as_cr_digits
63 -# The user is always right.
64 -if test "${PATH_SEPARATOR+set}" != set; then
65 - echo "#! /bin/sh" >conf$$.sh
66 - echo "exit 0" >>conf$$.sh
68 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
74 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
75 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
76 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
77 +# Prefer a ksh shell builtin over an external printf program on Solaris,
78 +# but without wasting forks for bash or zsh.
79 +if test -z "$BASH_VERSION$ZSH_VERSION" \
80 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
81 + as_echo='print -r --'
82 + as_echo_n='print -rn --'
83 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
84 + as_echo='printf %s\n'
85 + as_echo_n='printf %s'
87 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
88 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
89 + as_echo_n='/usr/ucb/echo -n'
92 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
93 + as_echo_n_body='eval
97 + expr "X$arg" : "X\\(.*\\)$as_nl";
98 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
100 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
102 + export as_echo_n_body
103 + as_echo_n='sh -c $as_echo_n_body as_echo'
106 + export as_echo_body
107 + as_echo='sh -c $as_echo_body as_echo'
110 -# Support unset when possible.
111 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
115 +# The user is always right.
116 +if test "${PATH_SEPARATOR+set}" != set; then
118 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
119 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
126 # there to prevent editors from complaining about space-tab.
127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
128 # splitting by setting IFS to empty value.)
133 # Find who we are. Look in the path if we contain no directory separator.
137 *[\\/]* ) as_myself=$0 ;;
138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
142 test -z "$as_dir" && as_dir=.
143 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
145 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
150 @@ -90,354 +110,367 @@
153 if test ! -f "$as_myself"; then
154 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
155 - { (exit 1); exit 1; }
156 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
160 -# Work around bugs in pre-3.0 UWIN ksh.
161 -for as_var in ENV MAIL MAILPATH
162 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
163 +# Unset variables that we do not need and which cause bugs (e.g. in
164 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
165 +# suppresses any "Segmentation fault" message there. '((' could
166 +# trigger a bug in pdksh 5.2.14.
167 +for as_var in BASH_ENV ENV MAIL MAILPATH
168 +do eval test x\${$as_var+set} = xset \
169 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
177 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
178 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
179 - LC_TELEPHONE LC_TIME
181 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
182 - eval $as_var=C; export $as_var
184 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
188 -# Required to use basename.
189 -if expr a : '\(a\)' >/dev/null 2>&1 &&
190 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
196 -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
197 - as_basename=basename
203 -# Name of the executable.
204 -as_me=`$as_basename -- "$0" ||
205 -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
206 - X"$0" : 'X\(//\)$' \| \
207 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
209 - sed '/^.*\/\([^/][^/]*\)\/*$/{
230 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
232 +# Use a proper internal environment variable to ensure we don't fall
233 + # into an infinite loop, continuously re-executing ourselves.
234 + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
235 + _as_can_reexec=no; export _as_can_reexec;
236 + # We cannot yet assume a decent shell, so we have to provide a
237 +# neutralization value for shells without unset; and this also
238 +# works around shells that cannot unset nonexistent variables.
239 +# Preserve -v and -x to the replacement shell.
242 +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
244 + *v*x* | *x*v* ) as_opts=-vx ;;
245 + *v* ) as_opts=-v ;;
246 + *x* ) as_opts=-x ;;
249 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
250 +# Admittedly, this is quite paranoid, since all the known shells bail
251 +# out after a failed `exec'.
252 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
255 + # We don't want this to propagate to other subprocesses.
256 + { _as_can_reexec=; unset _as_can_reexec;}
257 if test "x$CONFIG_SHELL" = x; then
258 - if (eval ":") 2>/dev/null; then
259 - as_have_required=yes
260 + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
263 + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
264 + # is contrary to our usage. Disable this feature.
265 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
266 + setopt NO_GLOB_SUBST
268 - as_have_required=no
269 + case \`(set -o) 2>/dev/null\` in #(
277 - if test $as_have_required = yes && (eval ":
278 -(as_func_return () {
281 -as_func_success () {
284 -as_func_failure () {
287 -as_func_ret_success () {
290 -as_func_ret_failure () {
294 + as_required="as_fn_return () { (exit \$1); }
295 +as_fn_success () { as_fn_return 0; }
296 +as_fn_failure () { as_fn_return 1; }
297 +as_fn_ret_success () { return 0; }
298 +as_fn_ret_failure () { return 1; }
301 -if as_func_success; then
305 - echo as_func_success failed.
308 -if as_func_failure; then
310 - echo as_func_failure succeeded.
313 -if as_func_ret_success; then
317 - echo as_func_ret_success failed.
320 -if as_func_ret_failure; then
322 - echo as_func_ret_failure succeeded.
325 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
327 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
328 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
329 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
330 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
331 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
334 + exitcode=1; echo positional parameters were not saved.
336 +test x\$exitcode = x0 || exit 1
337 +test -x / || exit 1"
338 + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
339 + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
340 + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
341 + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
342 +test \$(( 1 + 1 )) = 2 || exit 1"
343 + if (eval "$as_required") 2>/dev/null; then :
344 + as_have_required=yes
347 - echo positional parameters were not saved.
348 + as_have_required=no
350 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
352 -test \$exitcode = 0) || { (exit 1); exit 1; }
355 - as_lineno_1=\$LINENO
356 - as_lineno_2=\$LINENO
357 - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
358 - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
359 -") 2> /dev/null; then
362 - as_candidate_shells=
363 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
364 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
366 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
369 test -z "$as_dir" && as_dir=.
374 for as_base in sh bash ksh sh5; do
375 - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
376 + # Try only shells that exist, to save several forks.
377 + as_shell=$as_dir/$as_base
378 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
379 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
380 + CONFIG_SHELL=$as_shell as_have_required=yes
381 + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
389 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
390 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
391 + CONFIG_SHELL=$SHELL as_have_required=yes
396 - for as_shell in $as_candidate_shells $SHELL; do
397 - # Try only shells that exist, to save several forks.
398 - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
399 - { ("$as_shell") 2> /dev/null <<\_ASEOF
400 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
403 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
404 - # is contrary to our usage. Disable this feature.
405 - alias -g '${1+"$@"}'='"$@"'
406 - setopt NO_GLOB_SUBST
408 - case `(set -o) 2>/dev/null` in
409 - *posix*) set -o posix ;;
412 + if test "x$CONFIG_SHELL" != x; then :
413 + export CONFIG_SHELL
414 + # We cannot yet assume a decent shell, so we have to provide a
415 +# neutralization value for shells without unset; and this also
416 +# works around shells that cannot unset nonexistent variables.
417 +# Preserve -v and -x to the replacement shell.
420 +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
422 + *v*x* | *x*v* ) as_opts=-vx ;;
423 + *v* ) as_opts=-v ;;
424 + *x* ) as_opts=-x ;;
427 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
428 +# Admittedly, this is quite paranoid, since all the known shells bail
429 +# out after a failed `exec'.
430 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
434 + if test x$as_have_required = xno; then :
435 + $as_echo "$0: This script requires a shell more modern than all"
436 + $as_echo "$0: the shells that I found on your system."
437 + if test x${ZSH_VERSION+set} = xset ; then
438 + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
439 + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
441 + $as_echo "$0: Please tell bug-autoconf@gnu.org and
442 +$0: http://www.python.org/python-bugs about your system,
443 +$0: including any error possibly output before this
444 +$0: message. Then install a modern shell, or manually run
445 +$0: the script under such a shell if you do have one."
455 - CONFIG_SHELL=$as_shell
456 - as_have_required=yes
457 - if { "$as_shell" 2> /dev/null <<\_ASEOF
458 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
461 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
462 - # is contrary to our usage. Disable this feature.
463 - alias -g '${1+"$@"}'='"$@"'
464 - setopt NO_GLOB_SUBST
466 - case `(set -o) 2>/dev/null` in
467 - *posix*) set -o posix ;;
471 +SHELL=${CONFIG_SHELL-/bin/sh}
473 +# Unset more variables known to interfere with behavior of common tools.
474 +CLICOLOR_FORCE= GREP_OPTIONS=
475 +unset CLICOLOR_FORCE GREP_OPTIONS
477 +## --------------------- ##
478 +## M4sh Shell Functions. ##
479 +## --------------------- ##
482 +# Portably unset VAR.
485 + { eval $1=; unset $1;}
487 +as_unset=as_fn_unset
489 +# as_fn_set_status STATUS
490 +# -----------------------
491 +# Set $? to STATUS, without forking.
495 +} # as_fn_set_status
499 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
503 + as_fn_set_status $1
509 +# Create "$as_dir" as a directory, including parents if necessary.
514 -(as_func_return () {
517 -as_func_success () {
520 -as_func_failure () {
523 -as_func_ret_success () {
526 -as_func_ret_failure () {
530 + -*) as_dir=./$as_dir;;
532 + test -d "$as_dir" || eval $as_mkdir_p || {
536 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
537 + *) as_qdir=$as_dir;;
539 + as_dirs="'$as_qdir' $as_dirs"
540 + as_dir=`$as_dirname -- "$as_dir" ||
541 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
542 + X"$as_dir" : 'X\(//\)[^/]' \| \
543 + X"$as_dir" : 'X\(//\)$' \| \
544 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
545 +$as_echo X"$as_dir" |
546 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
550 + /^X\(\/\/\)[^/].*/{
563 + test -d "$as_dir" && break
565 + test -z "$as_dirs" || eval "mkdir $as_dirs"
566 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
569 -if as_func_success; then
573 - echo as_func_success failed.
576 -if as_func_failure; then
578 - echo as_func_failure succeeded.
582 -if as_func_ret_success; then
584 +# as_fn_executable_p FILE
585 +# -----------------------
586 +# Test if FILE is an executable regular file.
587 +as_fn_executable_p ()
589 + test -f "$1" && test -x "$1"
590 +} # as_fn_executable_p
591 +# as_fn_append VAR VALUE
592 +# ----------------------
593 +# Append the text in VALUE to the end of the definition contained in VAR. Take
594 +# advantage of any shell optimizations that allow amortized linear growth over
595 +# repeated appends, instead of the typical quadratic growth present in naive
597 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
598 + eval 'as_fn_append ()
604 - echo as_func_ret_success failed.
607 -if as_func_ret_failure; then
609 - echo as_func_ret_failure succeeded.
617 -if ( set x; as_func_ret_success y && test x = "$1" ); then
619 +# as_fn_arith ARG...
620 +# ------------------
621 +# Perform arithmetic evaluation on the ARGs, and store the result in the
622 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
623 +# must be portable across $(()) and expr.
624 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
625 + eval 'as_fn_arith ()
631 - echo positional parameters were not saved.
634 -test $exitcode = 0) || { (exit 1); exit 1; }
637 - as_lineno_1=$LINENO
638 - as_lineno_2=$LINENO
639 - test "x$as_lineno_1" != "x$as_lineno_2" &&
640 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
651 - if test "x$CONFIG_SHELL" != x; then
652 - for as_var in BASH_ENV ENV
653 - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
655 - export CONFIG_SHELL
656 - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
660 - if test $as_have_required = no; then
661 - echo This script requires a shell more modern than all the
662 - echo shells that I found on your system. Please install a
663 - echo modern shell, or manually run the script under such a
664 - echo shell if you do have one.
665 - { (exit 1); exit 1; }
675 + as_val=`expr "$@" || test $? -eq 1`
680 -(eval "as_func_return () {
683 -as_func_success () {
686 -as_func_failure () {
689 -as_func_ret_success () {
692 -as_func_ret_failure () {
695 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
696 +# ----------------------------------------
697 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
698 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
699 +# script with STATUS, using 1 if that was 0.
702 + as_status=$1; test $as_status -eq 0 && as_status=1
704 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
705 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
707 + $as_echo "$as_me: error: $2" >&2
708 + as_fn_exit $as_status
712 -if as_func_success; then
714 +if expr a : '\(a\)' >/dev/null 2>&1 &&
715 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
719 - echo as_func_success failed.
722 -if as_func_failure; then
724 - echo as_func_failure succeeded.
728 -if as_func_ret_success; then
730 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
731 + as_basename=basename
734 - echo as_func_ret_success failed.
737 -if as_func_ret_failure; then
739 - echo as_func_ret_failure succeeded.
743 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
745 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
749 - echo positional parameters were not saved.
753 -test \$exitcode = 0") || {
754 - echo No shell found that supports shell functions.
755 - echo Please tell autoconf@gnu.org about your system,
756 - echo including any error possibly output before this
759 +as_me=`$as_basename -- "$0" ||
760 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
761 + X"$0" : 'X\(//\)$' \| \
762 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
764 + sed '/^.*\/\([^/][^/]*\)\/*$/{
778 +# Avoid depending upon Character Ranges.
779 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
780 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
781 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
782 +as_cr_digits='0123456789'
783 +as_cr_alnum=$as_cr_Letters$as_cr_digits
786 - as_lineno_1=$LINENO
787 - as_lineno_2=$LINENO
788 - test "x$as_lineno_1" != "x$as_lineno_2" &&
789 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
791 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
792 - # uniformly replaced by the line number. The first 'sed' inserts a
793 - # line-number line after each line using $LINENO; the second 'sed'
794 - # does the real work. The second script uses 'N' to pair each
795 - # line-number line with the line containing $LINENO, and appends
796 - # trailing '-' during substitution so that $LINENO is not a special
797 - # case at line end.
798 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
799 - # scripts with optimization help from Paolo Bonzini. Blame Lee
800 - # E. McMahon (1931-1989) for sed's syntax. :-)
801 + as_lineno_1=$LINENO as_lineno_1a=$LINENO
802 + as_lineno_2=$LINENO as_lineno_2a=$LINENO
803 + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
804 + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
805 + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
812 chmod +x "$as_me.lineno" ||
813 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
814 - { (exit 1); exit 1; }; }
815 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
817 + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
818 + # already done that, so ensure we don't try to do so again and fall
819 + # in an infinite loop. This has already happened in practice.
820 + _as_can_reexec=no; export _as_can_reexec
821 # Don't try to exec as it changes $[0], causing all sort of problems
822 # (the dirname of $[0] is not the place where we might find the
823 # original and so on. Autoconf is especially sensitive to this).
824 @@ -465,84 +501,55 @@
829 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
835 ECHO_C= ECHO_N= ECHO_T=
837 +case `echo -n x` in #(((((
839 - case `echo 'x\c'` in
840 + case `echo 'xy\c'` in
841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
844 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
851 -if expr a : '\(a\)' >/dev/null 2>&1 &&
852 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
858 rm -f conf$$ conf$$.exe conf$$.file
859 if test -d conf$$.dir; then
860 rm -f conf$$.dir/conf$$.file
864 + mkdir conf$$.dir 2>/dev/null
867 -if ln -s conf$$.file conf$$ 2>/dev/null; then
869 - # ... but there are two gotchas:
870 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
871 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
872 - # In both cases, we have to default to `cp -p'.
873 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
875 -elif ln conf$$.file conf$$ 2>/dev/null; then
877 +if (echo >conf$$.file) 2>/dev/null; then
878 + if ln -s conf$$.file conf$$ 2>/dev/null; then
880 + # ... but there are two gotchas:
881 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
882 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
883 + # In both cases, we have to default to `cp -pR'.
884 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
886 + elif ln conf$$.file conf$$ 2>/dev/null; then
895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
896 rmdir conf$$.dir 2>/dev/null
898 if mkdir -p . 2>/dev/null; then
900 + as_mkdir_p='mkdir -p "$as_dir"'
902 test -d ./-p && rmdir ./-p
906 -if test -x / >/dev/null 2>&1; then
907 - as_test_x='test -x'
909 - if ls -dL / >/dev/null 2>&1; then
916 - if test -d "$1"; then
922 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
923 - ???[sx]*):;;*)false;;esac;fi
927 -as_executable_p=$as_test_x
929 +as_executable_p=as_fn_executable_p
931 # Sed expression to map a string onto a valid CPP name.
932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
933 @@ -551,11 +558,11 @@
934 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
938 -exec 7<&0 </dev/null 6>&1
939 +test -n "$DJDIR" || exec 7<&0 </dev/null
943 -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
944 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
945 # so uname gets run too.
946 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
952 -SHELL=${CONFIG_SHELL-/bin/sh}
954 # Identity of this package.
955 PACKAGE_NAME='python'
957 PACKAGE_VERSION='2.5'
958 PACKAGE_STRING='python 2.5'
959 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
962 ac_unique_file="Include/object.h"
963 # Factoring default headers for most tests.
964 @@ -616,123 +623,152 @@
968 -ac_subst_vars='SHELL
977 -program_transform_name
1011 -PYTHONFRAMEWORKPREFIX
1012 -PYTHONFRAMEWORKINSTALLDIR
1013 -FRAMEWORKINSTALLFIRST
1014 -FRAMEWORKINSTALLLAST
1015 -FRAMEWORKALTINSTALLFIRST
1016 -FRAMEWORKALTINSTALLLAST
1017 -FRAMEWORKUNIXTOOLSPREFIX
1022 -CONFIGURE_MACOSX_DEPLOYMENT_TARGET
1023 -EXPORT_MACOSX_DEPLOYMENT_TARGET
1073 -HAVE_GETHOSTBYNAME_R_6_ARG
1074 -HAVE_GETHOSTBYNAME_R_5_ARG
1075 -HAVE_GETHOSTBYNAME_R_3_ARG
1076 -HAVE_GETHOSTBYNAME_R
1082 +ac_subst_vars='LTLIBOBJS
1090 +HAVE_GETHOSTBYNAME_R
1091 +HAVE_GETHOSTBYNAME_R_3_ARG
1092 +HAVE_GETHOSTBYNAME_R_5_ARG
1093 +HAVE_GETHOSTBYNAME_R_6_ARG
1143 +EXPORT_MACOSX_DEPLOYMENT_TARGET
1144 +CONFIGURE_MACOSX_DEPLOYMENT_TARGET
1149 +FRAMEWORKUNIXTOOLSPREFIX
1150 +FRAMEWORKALTINSTALLLAST
1151 +FRAMEWORKALTINSTALLFIRST
1152 +FRAMEWORKINSTALLLAST
1153 +FRAMEWORKINSTALLFIRST
1154 +PYTHONFRAMEWORKINSTALLDIR
1155 +PYTHONFRAMEWORKPREFIX
1189 +program_transform_name
1202 +enable_option_checking
1203 +enable_universalsdk
1211 +enable_toolbox_glue
1223 +with_wctype_functions
1229 ac_precious_vars='build_alias
1233 # Initialize some variables set by options.
1235 ac_init_version=false
1236 +ac_unrecognized_opts=
1237 +ac_unrecognized_sep=
1238 # The variables have the same names as the options, with
1239 # dashes changed to underlines.
1240 cache_file=/dev/null
1245 - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246 - *) ac_optarg=yes ;;
1247 + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1249 + *) ac_optarg=yes ;;
1252 # Accept the important Cygnus configure options, so we can diagnose typos.
1253 @@ -845,13 +884,20 @@
1254 datarootdir=$ac_optarg ;;
1256 -disable-* | --disable-*)
1257 - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1262 - { (exit 1); exit 1; }; }
1263 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1264 - eval enable_$ac_feature=no ;;
1265 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 + as_fn_error $? "invalid feature name: $ac_useropt"
1267 + ac_useropt_orig=$ac_useropt
1268 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 + case $ac_user_opts in
1271 +"enable_$ac_useropt"
1273 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1274 + ac_unrecognized_sep=', ';;
1276 + eval enable_$ac_useropt=no ;;
1278 -docdir | --docdir | --docdi | --doc | --do)
1280 @@ -864,13 +910,20 @@
1281 dvidir=$ac_optarg ;;
1283 -enable-* | --enable-*)
1284 - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1285 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1289 - { (exit 1); exit 1; }; }
1290 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1291 - eval enable_$ac_feature=\$ac_optarg ;;
1292 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 + as_fn_error $? "invalid feature name: $ac_useropt"
1294 + ac_useropt_orig=$ac_useropt
1295 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 + case $ac_user_opts in
1298 +"enable_$ac_useropt"
1300 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1301 + ac_unrecognized_sep=', ';;
1303 + eval enable_$ac_useropt=\$ac_optarg ;;
1305 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1306 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1307 @@ -1061,22 +1114,36 @@
1308 ac_init_version=: ;;
1311 - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 - { echo "$as_me: error: invalid package name: $ac_package" >&2
1316 - { (exit 1); exit 1; }; }
1317 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1318 - eval with_$ac_package=\$ac_optarg ;;
1319 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 + as_fn_error $? "invalid package name: $ac_useropt"
1321 + ac_useropt_orig=$ac_useropt
1322 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 + case $ac_user_opts in
1327 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 + ac_unrecognized_sep=', ';;
1330 + eval with_$ac_useropt=\$ac_optarg ;;
1332 -without-* | --without-*)
1333 - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 - { echo "$as_me: error: invalid package name: $ac_package" >&2
1338 - { (exit 1); exit 1; }; }
1339 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1340 - eval with_$ac_package=no ;;
1341 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 + as_fn_error $? "invalid package name: $ac_useropt"
1343 + ac_useropt_orig=$ac_useropt
1344 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 + case $ac_user_opts in
1349 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 + ac_unrecognized_sep=', ';;
1352 + eval with_$ac_useropt=no ;;
1355 # Obsolete; use --with-x.
1356 @@ -1096,26 +1163,26 @@
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1360 - -*) { echo "$as_me: error: unrecognized option: $ac_option
1361 -Try \`$0 --help' for more information." >&2
1362 - { (exit 1); exit 1; }; }
1363 + -*) as_fn_error $? "unrecognized option: \`$ac_option'
1364 +Try \`$0 --help' for more information"
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1371 - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1372 - { (exit 1); exit 1; }; }
1373 + case $ac_envvar in #(
1374 + '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1381 # FIXME: should be removed in autoconf 3.0.
1382 - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1392 @@ -1123,23 +1190,36 @@
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 - { echo "$as_me: error: missing argument to $ac_option" >&2
1397 - { (exit 1); exit 1; }; }
1398 + as_fn_error $? "missing argument to $ac_option"
1401 -# Be sure to have absolute directory names.
1402 -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 +if test -n "$ac_unrecognized_opts"; then
1404 + case $enable_option_checking in
1406 + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1407 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 +# Check all directory arguments for consistency.
1412 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413 datadir sysconfdir sharedstatedir localstatedir includedir \
1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415 libdir localedir mandir
1417 eval ac_val=\$$ac_var
1418 + # Remove trailing slashes.
1421 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422 + eval $ac_var=\$ac_val;;
1424 + # Be sure to have absolute directory names.
1426 [\\/$]* | ?:[\\/]* ) continue;;
1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429 - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1430 - { (exit 1); exit 1; }; }
1431 + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 # There might be people who depend on the old broken behavior: `$host'
1435 @@ -1153,8 +1233,6 @@
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 - If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1444 @@ -1169,23 +1247,21 @@
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 - { echo "$as_me: error: Working directory cannot be determined" >&2
1449 - { (exit 1); exit 1; }; }
1450 + as_fn_error $? "working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 - { echo "$as_me: error: pwd does not report name of working directory" >&2
1453 - { (exit 1); exit 1; }; }
1454 + as_fn_error $? "pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 - ac_confdir=`$as_dirname -- "$0" ||
1462 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 - X"$0" : 'X\(//\)[^/]' \| \
1464 - X"$0" : 'X\(//\)$' \| \
1465 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1467 + ac_confdir=`$as_dirname -- "$as_myself" ||
1468 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 + X"$as_myself" : 'X\(//\)[^/]' \| \
1470 + X"$as_myself" : 'X\(//\)$' \| \
1471 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 +$as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 @@ -1212,13 +1288,11 @@
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 - { (exit 1); exit 1; }; }
1482 + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1487 - { (exit 1); exit 1; }; }
1488 + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 @@ -1258,7 +1332,7 @@
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 - -q, --quiet, --silent do not print \`checking...' messages
1497 + -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 @@ -1266,9 +1340,9 @@
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 - [$ac_default_prefix]
1506 + [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 @@ -1278,25 +1352,25 @@
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 - --bindir=DIR user executables [EPREFIX/bin]
1518 - --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 - --libexecdir=DIR program executables [EPREFIX/libexec]
1520 - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 - --libdir=DIR object code libraries [EPREFIX/lib]
1524 - --includedir=DIR C header files [PREFIX/include]
1525 - --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 - --infodir=DIR info documentation [DATAROOTDIR/info]
1529 - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 - --mandir=DIR man documentation [DATAROOTDIR/man]
1531 - --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1532 - --htmldir=DIR html documentation [DOCDIR]
1533 - --dvidir=DIR dvi documentation [DOCDIR]
1534 - --pdfdir=DIR pdf documentation [DOCDIR]
1535 - --psdir=DIR ps documentation [DOCDIR]
1536 + --bindir=DIR user executables [EPREFIX/bin]
1537 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 + --libexecdir=DIR program executables [EPREFIX/libexec]
1539 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 + --libdir=DIR object code libraries [EPREFIX/lib]
1543 + --includedir=DIR C header files [PREFIX/include]
1544 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 + --infodir=DIR info documentation [DATAROOTDIR/info]
1548 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 + --mandir=DIR man documentation [DATAROOTDIR/man]
1550 + --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1551 + --htmldir=DIR html documentation [DOCDIR]
1552 + --dvidir=DIR dvi documentation [DOCDIR]
1553 + --pdfdir=DIR pdf documentation [DOCDIR]
1554 + --psdir=DIR ps documentation [DOCDIR]
1558 @@ -1310,6 +1384,7 @@
1562 + --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-universalsdk[=SDKDIR]
1566 @@ -1356,7 +1431,7 @@
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1575 @@ -1371,15 +1446,17 @@
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 - test -d "$ac_dir" || continue
1580 + test -d "$ac_dir" ||
1581 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 @@ -1415,7 +1492,7 @@
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1600 - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1605 @@ -1425,466 +1502,1146 @@
1606 if $ac_init_version; then
1608 python configure 2.5
1609 -generated by GNU Autoconf 2.61
1610 +generated by GNU Autoconf 2.69
1612 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614 +Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1620 -cat >config.log <<_ACEOF
1621 -This file contains any messages produced by compilers while
1622 -running configure, to aid debugging if configure makes a mistake.
1624 -It was created by python $as_me 2.5, which was
1625 -generated by GNU Autoconf 2.61. Invocation command line was
1626 +## ------------------------ ##
1627 +## Autoconf initialization. ##
1628 +## ------------------------ ##
1630 +# ac_fn_c_try_compile LINENO
1631 +# --------------------------
1632 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 +ac_fn_c_try_compile ()
1635 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 + rm -f conftest.$ac_objext
1637 + if { { ac_try="$ac_compile"
1638 +case "(($ac_try" in
1639 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 + *) ac_try_echo=$ac_try;;
1642 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 +$as_echo "$ac_try_echo"; } >&5
1644 + (eval "$ac_compile") 2>conftest.err
1646 + if test -s conftest.err; then
1647 + grep -v '^ *+' conftest.err >conftest.er1
1648 + cat conftest.er1 >&5
1649 + mv -f conftest.er1 conftest.err
1651 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 + test $ac_status = 0; } && {
1653 + test -z "$ac_c_werror_flag" ||
1654 + test ! -s conftest.err
1655 + } && test -s conftest.$ac_objext; then :
1658 + $as_echo "$as_me: failed program was:" >&5
1659 +sed 's/^/| /' conftest.$ac_ext >&5
1664 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 + as_fn_set_status $ac_retval
1669 +} # ac_fn_c_try_compile
1671 +# ac_fn_c_try_cpp LINENO
1672 +# ----------------------
1673 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 + if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 +case "(($ac_try" in
1683 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 + *) ac_try_echo=$ac_try;;
1686 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 +$as_echo "$ac_try_echo"; } >&5
1688 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 + if test -s conftest.err; then
1691 + grep -v '^ *+' conftest.err >conftest.er1
1692 + cat conftest.er1 >&5
1693 + mv -f conftest.er1 conftest.err
1695 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 + test $ac_status = 0; } > conftest.i && {
1697 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 + test ! -s conftest.err
1702 + $as_echo "$as_me: failed program was:" >&5
1703 +sed 's/^/| /' conftest.$ac_ext >&5
1705 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
1712 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 + as_fn_set_status $ac_retval
1715 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 +} # ac_fn_c_try_cpp
1719 -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723 -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725 -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1727 +# -------------------------------------------------------
1728 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1729 +# the include files in INCLUDES and setting the cache variable VAR
1731 +ac_fn_c_check_header_mongrel ()
1733 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 + if eval \${$3+:} false; then :
1735 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 +$as_echo_n "checking for $2... " >&6; }
1737 +if eval \${$3+:} false; then :
1738 + $as_echo_n "(cached) " >&6
1741 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 +$as_echo "$ac_res" >&6; }
1744 + # Is the header compilable?
1745 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1746 +$as_echo_n "checking $2 usability... " >&6; }
1747 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 +/* end confdefs.h. */
1752 +if ac_fn_c_try_compile "$LINENO"; then :
1753 + ac_header_compiler=yes
1755 + ac_header_compiler=no
1757 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1759 +$as_echo "$ac_header_compiler" >&6; }
1762 +# Is the header present?
1763 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 +$as_echo_n "checking $2 presence... " >&6; }
1765 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 +/* end confdefs.h. */
1769 +if ac_fn_c_try_cpp "$LINENO"; then :
1770 + ac_header_preproc=yes
1772 + ac_header_preproc=no
1774 +rm -f conftest.err conftest.i conftest.$ac_ext
1775 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 +$as_echo "$ac_header_preproc" >&6; }
1778 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 -for as_dir in $PATH
1782 - test -z "$as_dir" && as_dir=.
1783 - echo "PATH: $as_dir"
1786 +# So? What about this header?
1787 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1798 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1799 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1802 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1803 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 +( $as_echo "## ------------------------------------------------ ##
1806 +## Report this to http://www.python.org/python-bugs ##
1807 +## ------------------------------------------------ ##"
1808 + ) | sed "s/^/$as_me: WARNING: /" >&2
1811 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 +$as_echo_n "checking for $2... " >&6; }
1813 +if eval \${$3+:} false; then :
1814 + $as_echo_n "(cached) " >&6
1816 + eval "$3=\$ac_header_compiler"
1819 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 +$as_echo "$ac_res" >&6; }
1822 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 +} # ac_fn_c_check_header_mongrel
1828 +# ac_fn_c_try_run LINENO
1829 +# ----------------------
1830 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 +# that executables *can* be run.
1834 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 + if { { ac_try="$ac_link"
1836 +case "(($ac_try" in
1837 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 + *) ac_try_echo=$ac_try;;
1840 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 +$as_echo "$ac_try_echo"; } >&5
1842 + (eval "$ac_link") 2>&5
1844 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 + { { case "(($ac_try" in
1847 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 + *) ac_try_echo=$ac_try;;
1850 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 +$as_echo "$ac_try_echo"; } >&5
1852 + (eval "$ac_try") 2>&5
1854 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 + test $ac_status = 0; }; }; then :
1858 + $as_echo "$as_me: program exited with status $ac_status" >&5
1859 + $as_echo "$as_me: failed program was:" >&5
1860 +sed 's/^/| /' conftest.$ac_ext >&5
1862 + ac_retval=$ac_status
1864 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 + as_fn_set_status $ac_retval
1871 +} # ac_fn_c_try_run
1873 +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 +# -------------------------------------------------------
1875 +# Tests whether HEADER exists and can be compiled using the include files in
1876 +# INCLUDES, setting the cache variable VAR accordingly.
1877 +ac_fn_c_check_header_compile ()
1879 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 +$as_echo_n "checking for $2... " >&6; }
1882 +if eval \${$3+:} false; then :
1883 + $as_echo_n "(cached) " >&6
1885 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 +/* end confdefs.h. */
1890 +if ac_fn_c_try_compile "$LINENO"; then :
1895 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 +$as_echo "$ac_res" >&6; }
1900 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 +} # ac_fn_c_check_header_compile
1904 -# Keep a trace of the command line.
1905 -# Strip out --no-create and --no-recursion so they do not pile up.
1906 -# Strip out --silent because we don't want to record it for future runs.
1907 -# Also quote any args containing shell meta-characters.
1908 -# Make two passes to allow for proper duplicate-argument suppression.
1910 -ac_configure_args0=
1911 -ac_configure_args1=
1912 -ac_must_keep_next=false
1918 - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 - | -silent | --silent | --silen | --sile | --sil)
1923 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1928 - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1929 - if test $ac_must_keep_next = true; then
1930 - ac_must_keep_next=false # Got value, back to normal.
1933 - *=* | --config-cache | -C | -disable-* | --disable-* \
1934 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 - | -with-* | --with-* | -without-* | --without-* | --x)
1937 - case "$ac_configure_args0 " in
1938 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1941 - -* ) ac_must_keep_next=true ;;
1944 - ac_configure_args="$ac_configure_args '$ac_arg'"
1949 -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1950 -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1952 -# When interrupted or exit'd, cleanup temporary files, and complete
1953 -# config.log. We remove comments because anyway the quotes in there
1954 -# would cause problems or look ugly.
1955 -# WARNING: Use '\'' to represent an apostrophe within the trap.
1956 -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 -trap 'exit_status=$?
1958 - # Save into config.log some information that might help in debugging.
1961 +# ac_fn_c_try_link LINENO
1962 +# -----------------------
1963 +# Try to link conftest.$ac_ext, and return whether this succeeded.
1964 +ac_fn_c_try_link ()
1966 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 + rm -f conftest.$ac_objext conftest$ac_exeext
1968 + if { { ac_try="$ac_link"
1969 +case "(($ac_try" in
1970 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 + *) ac_try_echo=$ac_try;;
1973 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 +$as_echo "$ac_try_echo"; } >&5
1975 + (eval "$ac_link") 2>conftest.err
1977 + if test -s conftest.err; then
1978 + grep -v '^ *+' conftest.err >conftest.er1
1979 + cat conftest.er1 >&5
1980 + mv -f conftest.er1 conftest.err
1982 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 + test $ac_status = 0; } && {
1984 + test -z "$ac_c_werror_flag" ||
1985 + test ! -s conftest.err
1986 + } && test -s conftest$ac_exeext && {
1987 + test "$cross_compiling" = yes ||
1988 + test -x conftest$ac_exeext
1992 + $as_echo "$as_me: failed program was:" >&5
1993 +sed 's/^/| /' conftest.$ac_ext >&5
1996 -## ---------------- ##
1997 -## Cache variables. ##
1998 -## ---------------- ##
2001 - # The following way of writing the cache mishandles newlines in values,
2003 - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 - eval ac_val=\$$ac_var
2005 - case $ac_val in #(
2007 - case $ac_var in #(
2008 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2009 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2011 - case $ac_var in #(
2012 - _ | IFS | as_nl) ;; #(
2013 - *) $as_unset $ac_var ;;
2018 - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 - *${as_nl}ac_space=\ *)
2021 - "s/'\''/'\''\\\\'\'''\''/g;
2022 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 + # interfere with the next link command; also delete a directory that is
2036 + # left behind by Apple's compiler. We do this before executing the actions.
2037 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 + as_fn_set_status $ac_retval
2042 -## ----------------- ##
2043 -## Output variables. ##
2044 -## ----------------- ##
2047 - for ac_var in $ac_subst_vars
2049 - eval ac_val=\$$ac_var
2051 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 - echo "$ac_var='\''$ac_val'\''"
2056 +} # ac_fn_c_try_link
2058 - if test -n "$ac_subst_files"; then
2060 -## ------------------- ##
2061 -## File substitutions. ##
2062 -## ------------------- ##
2065 - for ac_var in $ac_subst_files
2067 - eval ac_val=\$$ac_var
2069 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 - echo "$ac_var='\''$ac_val'\''"
2075 +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 +# -------------------------------------------
2077 +# Tests whether TYPE exists after having included INCLUDES, setting cache
2078 +# variable VAR accordingly.
2079 +ac_fn_c_check_type ()
2081 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 +$as_echo_n "checking for $2... " >&6; }
2084 +if eval \${$3+:} false; then :
2085 + $as_echo_n "(cached) " >&6
2088 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 +/* end confdefs.h. */
2100 +if ac_fn_c_try_compile "$LINENO"; then :
2101 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 +/* end confdefs.h. */
2113 +if ac_fn_c_try_compile "$LINENO"; then :
2115 - if test -s confdefs.h; then
2125 - test "$ac_signal" != 0 &&
2126 - echo "$as_me: caught signal $ac_signal"
2127 - echo "$as_me: exit $exit_status"
2129 - rm -f core *.core core.conftest.* &&
2130 - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133 -for ac_signal in 1 2 13 15; do
2134 - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2140 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 +$as_echo "$ac_res" >&6; }
2147 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 -rm -f -r conftest* confdefs.h
2151 +} # ac_fn_c_check_type
2153 -# Predefined preprocessor variables.
2154 +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2155 +# --------------------------------------------
2156 +# Tries to find the compile-time value of EXPR in a program that includes
2157 +# INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 +ac_fn_c_compute_int ()
2161 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 + if test "$cross_compiling" = yes; then
2163 + # Depending upon the size, compute the lo and hi bounds.
2164 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 +/* end confdefs.h. */
2170 +static int test_array [1 - 2 * !(($2) >= 0)];
2171 +test_array [0] = 0;
2172 +return test_array [0];
2174 -cat >>confdefs.h <<_ACEOF
2175 -#define PACKAGE_NAME "$PACKAGE_NAME"
2180 +if ac_fn_c_try_compile "$LINENO"; then :
2183 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 +/* end confdefs.h. */
2189 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 +test_array [0] = 0;
2191 +return test_array [0];
2194 -cat >>confdefs.h <<_ACEOF
2195 -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 +if ac_fn_c_try_compile "$LINENO"; then :
2201 + ac_hi=$ac_mid; break
2203 + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2204 + if test $ac_lo -le $ac_mid; then
2208 + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2210 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 +/* end confdefs.h. */
2219 +static int test_array [1 - 2 * !(($2) < 0)];
2220 +test_array [0] = 0;
2221 +return test_array [0];
2224 -cat >>confdefs.h <<_ACEOF
2225 -#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230 +if ac_fn_c_try_compile "$LINENO"; then :
2231 + ac_hi=-1 ac_mid=-1
2233 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 +/* end confdefs.h. */
2239 +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2240 +test_array [0] = 0;
2241 +return test_array [0];
2244 -cat >>confdefs.h <<_ACEOF
2245 -#define PACKAGE_STRING "$PACKAGE_STRING"
2250 +if ac_fn_c_try_compile "$LINENO"; then :
2251 + ac_lo=$ac_mid; break
2253 + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2254 + if test $ac_mid -le $ac_hi; then
2258 + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2260 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 +# Binary search between lo and hi bounds.
2269 +while test "x$ac_lo" != "x$ac_hi"; do
2270 + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2271 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 +/* end confdefs.h. */
2277 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 +test_array [0] = 0;
2279 +return test_array [0];
2282 -cat >>confdefs.h <<_ACEOF
2283 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2290 -# Let the site file select an alternate cache file if it wants to.
2291 -# Prefer explicitly selected file to automatically selected ones.
2292 -if test -n "$CONFIG_SITE"; then
2293 - set x "$CONFIG_SITE"
2294 -elif test "x$prefix" != xNONE; then
2295 - set x "$prefix/share/config.site" "$prefix/etc/config.site"
2296 +if ac_fn_c_try_compile "$LINENO"; then :
2299 - set x "$ac_default_prefix/share/config.site" \
2300 - "$ac_default_prefix/etc/config.site"
2301 + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2306 - if test -r "$ac_site_file"; then
2307 - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2308 -echo "$as_me: loading site script $ac_site_file" >&6;}
2309 - sed 's/^/| /' "$ac_site_file" >&5
2312 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2319 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 +/* end confdefs.h. */
2322 +static long int longval () { return $2; }
2323 +static unsigned long int ulongval () { return $2; }
2325 +#include <stdlib.h>
2330 -if test -r "$cache_file"; then
2331 - # Some versions of bash will fail to source /dev/null (special
2332 - # files actually), so we avoid doing that.
2333 - if test -f "$cache_file"; then
2334 - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2335 -echo "$as_me: loading cache $cache_file" >&6;}
2336 - case $cache_file in
2337 - [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338 - *) . "./$cache_file";;
2341 + FILE *f = fopen ("conftest.val", "w");
2346 + long int i = longval ();
2349 + fprintf (f, "%ld", i);
2353 + unsigned long int i = ulongval ();
2356 + fprintf (f, "%lu", i);
2358 + /* Do not output a trailing newline, as this causes \r\n confusion
2359 + on some platforms. */
2360 + return ferror (f) || fclose (f) != 0;
2366 +if ac_fn_c_try_run "$LINENO"; then :
2367 + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2369 - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2370 -echo "$as_me: creating cache $cache_file" >&6;}
2374 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2375 + conftest.$ac_objext conftest.beam conftest.$ac_ext
2378 -# Check that the precious variables saved in the cache have kept the same
2380 -ac_cache_corrupted=false
2381 -for ac_var in $ac_precious_vars; do
2382 - eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 - eval ac_new_set=\$ac_env_${ac_var}_set
2384 - eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 - eval ac_new_val=\$ac_env_${ac_var}_value
2386 - case $ac_old_set,$ac_new_set in
2388 - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 - ac_cache_corrupted=: ;;
2392 - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2393 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 - ac_cache_corrupted=: ;;
2397 - if test "x$ac_old_val" != "x$ac_new_val"; then
2398 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2399 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2401 -echo "$as_me: former value: $ac_old_val" >&2;}
2402 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2403 -echo "$as_me: current value: $ac_new_val" >&2;}
2404 - ac_cache_corrupted=:
2407 - # Pass precious variables to config.status.
2408 - if test "$ac_new_set" = set; then
2409 - case $ac_new_val in
2410 - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 - *) ac_arg=$ac_var=$ac_new_val ;;
2413 - case " $ac_configure_args " in
2414 - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2415 - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2419 -if $ac_cache_corrupted; then
2420 - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2421 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2423 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2424 - { (exit 1); exit 1; }; }
2433 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434 + as_fn_set_status $ac_retval
2436 +} # ac_fn_c_compute_int
2438 +# ac_fn_c_check_func LINENO FUNC VAR
2439 +# ----------------------------------
2440 +# Tests whether FUNC exists, setting the cache variable VAR accordingly
2441 +ac_fn_c_check_func ()
2443 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 +$as_echo_n "checking for $2... " >&6; }
2446 +if eval \${$3+:} false; then :
2447 + $as_echo_n "(cached) " >&6
2449 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 +/* end confdefs.h. */
2451 +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2452 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
2453 +#define $2 innocuous_$2
2455 +/* System header to define __stub macros and hopefully few prototypes,
2456 + which can conflict with char $2 (); below.
2457 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2458 + <limits.h> exists even on freestanding compilers. */
2461 +# include <limits.h>
2463 +# include <assert.h>
2468 +/* Override any GCC internal prototype to avoid an error.
2469 + Use char because int might match the return type of a GCC
2470 + builtin and then its argument prototype would still apply. */
2475 +/* The GNU C library defines this for functions which it implements
2476 + to always fail with ENOSYS. Some functions are actually named
2477 + something starting with __ and the normal name is an alias. */
2478 +#if defined __stub_$2 || defined __stub___$2
2490 +if ac_fn_c_try_link "$LINENO"; then :
2495 +rm -f core conftest.err conftest.$ac_objext \
2496 + conftest$ac_exeext conftest.$ac_ext
2499 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 +$as_echo "$ac_res" >&6; }
2501 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503 +} # ac_fn_c_check_func
2505 +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2506 +# ----------------------------------------------------
2507 +# Tries to find if the field MEMBER exists in type AGGR, after including
2508 +# INCLUDES, setting cache variable VAR accordingly.
2509 +ac_fn_c_check_member ()
2511 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2513 +$as_echo_n "checking for $2.$3... " >&6; }
2514 +if eval \${$4+:} false; then :
2515 + $as_echo_n "(cached) " >&6
2517 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 +/* end confdefs.h. */
2530 +if ac_fn_c_try_compile "$LINENO"; then :
2533 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 +/* end confdefs.h. */
2540 +if (sizeof ac_aggr.$3)
2546 +if ac_fn_c_try_compile "$LINENO"; then :
2551 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 +$as_echo "$ac_res" >&6; }
2558 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 +} # ac_fn_c_check_member
2562 +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2563 +# ---------------------------------------------
2564 +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2566 +ac_fn_c_check_decl ()
2568 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 + as_decl_name=`echo $2|sed 's/ *(.*//'`
2570 + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2571 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2572 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2573 +if eval \${$3+:} false; then :
2574 + $as_echo_n "(cached) " >&6
2576 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 +/* end confdefs.h. */
2582 +#ifndef $as_decl_name
2584 + (void) $as_decl_use;
2586 + (void) $as_decl_name;
2594 +if ac_fn_c_try_compile "$LINENO"; then :
2599 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 +$as_echo "$ac_res" >&6; }
2604 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 +} # ac_fn_c_check_decl
2607 +cat >config.log <<_ACEOF
2608 +This file contains any messages produced by compilers while
2609 +running configure, to aid debugging if configure makes a mistake.
2611 +It was created by python $as_me 2.5, which was
2612 +generated by GNU Autoconf 2.69. Invocation command line was
2624 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2625 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
2626 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
2627 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
2628 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
2631 -ac_cpp='$CPP $CPPFLAGS'
2632 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2648 -ac_config_headers="$ac_config_headers pyconfig.h"
2649 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 +for as_dir in $PATH
2653 + test -z "$as_dir" && as_dir=.
2654 + $as_echo "PATH: $as_dir"
2670 -# We don't use PACKAGE_ variables, and they cause conflicts
2671 -# with other autoconf-based packages that include Python.h
2672 -grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2674 -mv confdefs.h.new confdefs.h
2675 +# Keep a trace of the command line.
2676 +# Strip out --no-create and --no-recursion so they do not pile up.
2677 +# Strip out --silent because we don't want to record it for future runs.
2678 +# Also quote any args containing shell meta-characters.
2679 +# Make two passes to allow for proper duplicate-argument suppression.
2681 +ac_configure_args0=
2682 +ac_configure_args1=
2683 +ac_must_keep_next=false
2689 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 + | -silent | --silent | --silen | --sile | --sil)
2694 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2699 + as_fn_append ac_configure_args1 " '$ac_arg'"
2700 + if test $ac_must_keep_next = true; then
2701 + ac_must_keep_next=false # Got value, back to normal.
2704 + *=* | --config-cache | -C | -disable-* | --disable-* \
2705 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 + | -with-* | --with-* | -without-* | --without-* | --x)
2708 + case "$ac_configure_args0 " in
2709 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2712 + -* ) ac_must_keep_next=true ;;
2715 + as_fn_append ac_configure_args " '$ac_arg'"
2720 +{ ac_configure_args0=; unset ac_configure_args0;}
2721 +{ ac_configure_args1=; unset ac_configure_args1;}
2723 +# When interrupted or exit'd, cleanup temporary files, and complete
2724 +# config.log. We remove comments because anyway the quotes in there
2725 +# would cause problems or look ugly.
2726 +# WARNING: Use '\'' to represent an apostrophe within the trap.
2727 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 +trap 'exit_status=$?
2729 + # Save into config.log some information that might help in debugging.
2734 + $as_echo "## ---------------- ##
2735 +## Cache variables. ##
2736 +## ---------------- ##"
2738 + # The following way of writing the cache mishandles newlines in values,
2740 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2741 + eval ac_val=\$$ac_var
2742 + case $ac_val in #(
2744 + case $ac_var in #(
2745 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2746 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748 + case $ac_var in #(
2749 + _ | IFS | as_nl) ;; #(
2750 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2751 + *) { eval $ac_var=; unset $ac_var;} ;;
2756 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2757 + *${as_nl}ac_space=\ *)
2759 + "s/'\''/'\''\\\\'\'''\''/g;
2760 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2770 + $as_echo "## ----------------- ##
2771 +## Output variables. ##
2772 +## ----------------- ##"
2774 + for ac_var in $ac_subst_vars
2776 + eval ac_val=\$$ac_var
2778 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 + $as_echo "$ac_var='\''$ac_val'\''"
2785 + if test -n "$ac_subst_files"; then
2786 + $as_echo "## ------------------- ##
2787 +## File substitutions. ##
2788 +## ------------------- ##"
2790 + for ac_var in $ac_subst_files
2792 + eval ac_val=\$$ac_var
2794 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 + $as_echo "$ac_var='\''$ac_val'\''"
2801 -# The later defininition of _XOPEN_SOURCE disables certain features
2802 -# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2803 + if test -s confdefs.h; then
2804 + $as_echo "## ----------- ##
2811 + test "$ac_signal" != 0 &&
2812 + $as_echo "$as_me: caught signal $ac_signal"
2813 + $as_echo "$as_me: exit $exit_status"
2815 + rm -f core *.core core.conftest.* &&
2816 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2819 +for ac_signal in 1 2 13 15; do
2820 + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2824 -cat >>confdefs.h <<\_ACEOF
2825 -#define _GNU_SOURCE 1
2827 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
2828 +rm -f -r conftest* confdefs.h
2830 +$as_echo "/* confdefs.h */" > confdefs.h
2832 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2833 -# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2835 +# Predefined preprocessor variables.
2837 -cat >>confdefs.h <<\_ACEOF
2838 -#define _NETBSD_SOURCE 1
2839 +cat >>confdefs.h <<_ACEOF
2840 +#define PACKAGE_NAME "$PACKAGE_NAME"
2844 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2845 -# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2848 -cat >>confdefs.h <<\_ACEOF
2849 -#define __BSD_VISIBLE 1
2850 +cat >>confdefs.h <<_ACEOF
2851 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2855 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2856 -# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2858 -cat >>confdefs.h <<\_ACEOF
2859 -#define _BSD_TYPES 1
2860 +cat >>confdefs.h <<_ACEOF
2861 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
2864 +cat >>confdefs.h <<_ACEOF
2865 +#define PACKAGE_STRING "$PACKAGE_STRING"
2868 -define_xopen_source=yes
2870 -# Arguments passed to configure.
2871 +cat >>confdefs.h <<_ACEOF
2872 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2875 -CONFIG_ARGS="$ac_configure_args"
2876 +cat >>confdefs.h <<_ACEOF
2877 +#define PACKAGE_URL "$PACKAGE_URL"
2880 -# Check whether --enable-universalsdk was given.
2881 -if test "${enable_universalsdk+set}" = set; then
2882 - enableval=$enable_universalsdk;
2883 - case $enableval in
2885 - enableval=/Developer/SDKs/MacOSX10.4u.sdk
2888 - case $enableval in
2891 - enable_universalsdk=
2894 - UNIVERSALSDK=$enableval
2898 +# Let the site file select an alternate cache file if it wants to.
2899 +# Prefer an explicitly selected file to automatically selected ones.
2902 +if test -n "$CONFIG_SITE"; then
2903 + # We do not want a PATH search for config.site.
2904 + case $CONFIG_SITE in #((
2905 + -*) ac_site_file1=./$CONFIG_SITE;;
2906 + */*) ac_site_file1=$CONFIG_SITE;;
2907 + *) ac_site_file1=./$CONFIG_SITE;;
2909 +elif test "x$prefix" != xNONE; then
2910 + ac_site_file1=$prefix/share/config.site
2911 + ac_site_file2=$prefix/etc/config.site
2915 - enable_universalsdk=
2917 + ac_site_file1=$ac_default_prefix/share/config.site
2918 + ac_site_file2=$ac_default_prefix/etc/config.site
2920 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2922 + test "x$ac_site_file" = xNONE && continue
2923 + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2924 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2925 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2926 + sed 's/^/| /' "$ac_site_file" >&5
2927 + . "$ac_site_file" \
2928 + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 +as_fn_error $? "failed to load site script $ac_site_file
2931 +See \`config.log' for more details" "$LINENO" 5; }
2935 +if test -r "$cache_file"; then
2936 + # Some versions of bash will fail to source /dev/null (special files
2937 + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2938 + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2939 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2940 +$as_echo "$as_me: loading cache $cache_file" >&6;}
2941 + case $cache_file in
2942 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
2943 + *) . "./$cache_file";;
2947 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2948 +$as_echo "$as_me: creating cache $cache_file" >&6;}
2953 -# Check whether --enable-framework was given.
2954 -if test "${enable_framework+set}" = set; then
2955 - enableval=$enable_framework;
2956 - case $enableval in
2958 - enableval=/Library/Frameworks
2959 +# Check that the precious variables saved in the cache have kept the same
2961 +ac_cache_corrupted=false
2962 +for ac_var in $ac_precious_vars; do
2963 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
2964 + eval ac_new_set=\$ac_env_${ac_var}_set
2965 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
2966 + eval ac_new_val=\$ac_env_${ac_var}_value
2967 + case $ac_old_set,$ac_new_set in
2969 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2971 + ac_cache_corrupted=: ;;
2973 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2975 + ac_cache_corrupted=: ;;
2978 + if test "x$ac_old_val" != "x$ac_new_val"; then
2979 + # differences in whitespace do not lead to failure.
2980 + ac_old_val_w=`echo x $ac_old_val`
2981 + ac_new_val_w=`echo x $ac_new_val`
2982 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
2983 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2985 + ac_cache_corrupted=:
2987 + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2989 + eval $ac_var=\$ac_old_val
2991 + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2993 + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2997 + # Pass precious variables to config.status.
2998 + if test "$ac_new_set" = set; then
2999 + case $ac_new_val in
3000 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 + *) ac_arg=$ac_var=$ac_new_val ;;
3003 + case " $ac_configure_args " in
3004 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3005 + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3009 +if $ac_cache_corrupted; then
3010 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3016 +## -------------------- ##
3017 +## Main body of script. ##
3018 +## -------------------- ##
3021 +ac_cpp='$CPP $CPPFLAGS'
3022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 +ac_config_headers="$ac_config_headers pyconfig.h"
3034 +# We don't use PACKAGE_ variables, and they cause conflicts
3035 +# with other autoconf-based packages that include Python.h
3036 +grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3038 +mv confdefs.h.new confdefs.h
3046 +# The later defininition of _XOPEN_SOURCE disables certain features
3047 +# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3049 +$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3052 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3053 +# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3056 +$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3059 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3060 +# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3063 +$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3066 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3067 +# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3069 +$as_echo "#define _BSD_TYPES 1" >>confdefs.h
3072 +define_xopen_source=yes
3074 +# Arguments passed to configure.
3076 +CONFIG_ARGS="$ac_configure_args"
3078 +# Check whether --enable-universalsdk was given.
3079 +if test "${enable_universalsdk+set}" = set; then :
3080 + enableval=$enable_universalsdk;
3081 + case $enableval in
3083 + enableval=/Developer/SDKs/MacOSX10.4u.sdk
3086 + case $enableval in
3089 + enable_universalsdk=
3092 + UNIVERSALSDK=$enableval
3099 + enable_universalsdk=
3105 +# Check whether --enable-framework was given.
3106 +if test "${enable_framework+set}" = set; then :
3107 + enableval=$enable_framework;
3108 + case $enableval in
3110 + enableval=/Library/Frameworks
3114 @@ -1964,8 +2721,8 @@
3116 # Set name for machine-dependent library files
3118 -{ echo "$as_me:$LINENO: checking MACHDEP" >&5
3119 -echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
3120 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3121 +$as_echo_n "checking MACHDEP... " >&6; }
3122 if test -z "$MACHDEP"
3124 ac_sys_system=`uname -s`
3125 @@ -2009,9 +2766,7 @@
3126 # also defined. This can be overridden by defining _BSD_SOURCE
3127 # As this has a different meaning on Linux, only define it on OpenBSD
3129 -cat >>confdefs.h <<\_ACEOF
3130 -#define _BSD_SOURCE 1
3132 +$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3135 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3136 @@ -2067,16 +2822,12 @@
3137 case $ac_sys_system/$ac_sys_release in
3138 SunOS/5.8|SunOS/5.9|SunOS/5.10)
3140 -cat >>confdefs.h <<\_ACEOF
3141 -#define _XOPEN_SOURCE 500
3143 +$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3148 -cat >>confdefs.h <<\_ACEOF
3149 -#define _XOPEN_SOURCE 600
3151 +$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3155 @@ -2092,17 +2843,13 @@
3159 -cat >>confdefs.h <<\_ACEOF
3160 -#define _XOPEN_SOURCE_EXTENDED 1
3162 +$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3168 -cat >>confdefs.h <<\_ACEOF
3169 -#define _POSIX_C_SOURCE 200112L
3171 +$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3175 @@ -2123,14 +2870,14 @@
3176 LDFLAGS="$SGI_ABI $LDFLAGS"
3177 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3179 -{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
3180 -echo "${ECHO_T}$MACHDEP" >&6; }
3181 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3182 +$as_echo "$MACHDEP" >&6; }
3184 # And add extra plat-mac for darwin
3187 -{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
3188 -echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
3189 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3190 +$as_echo_n "checking EXTRAPLATDIR... " >&6; }
3191 if test -z "$EXTRAPLATDIR"
3194 @@ -2144,8 +2891,8 @@
3198 -{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
3199 -echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
3200 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3201 +$as_echo "$EXTRAPLATDIR" >&6; }
3203 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3204 # it may influence the way we can build extensions, so distutils
3205 @@ -2165,11 +2912,11 @@
3207 # XXX shouldn't some/most/all of this code be merged with the stuff later
3208 # on that fiddles with OPT and BASECFLAGS?
3209 -{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
3210 -echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
3211 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3212 +$as_echo_n "checking for --without-gcc... " >&6; }
3214 # Check whether --with-gcc was given.
3215 -if test "${with_gcc+set}" = set; then
3216 +if test "${with_gcc+set}" = set; then :
3220 @@ -2199,9 +2946,7 @@
3224 - { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
3225 -echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
3226 - { (exit 1); exit 1; }; }
3227 + as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3230 AR="\$(srcdir)/Modules/ar_beos"
3231 @@ -2214,17 +2959,14 @@
3235 -{ echo "$as_me:$LINENO: result: $without_gcc" >&5
3236 -echo "${ECHO_T}$without_gcc" >&6; }
3237 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3238 +$as_echo "$without_gcc" >&6; }
3240 # If the user switches compilers, we can't believe the cache
3241 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3243 - { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
3244 -(it is also a good idea to do 'make clean' before compiling)" >&5
3245 -echo "$as_me: error: cached CC is different -- throw away $cache_file
3246 -(it is also a good idea to do 'make clean' before compiling)" >&2;}
3247 - { (exit 1); exit 1; }; }
3248 + as_fn_error $? "cached CC is different -- throw away $cache_file
3249 +(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3253 @@ -2235,10 +2977,10 @@
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3257 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 -if test "${ac_cv_prog_CC+set}" = set; then
3260 - echo $ECHO_N "(cached) $ECHO_C" >&6
3261 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 +$as_echo_n "checking for $ac_word... " >&6; }
3263 +if ${ac_cv_prog_CC+:} false; then :
3264 + $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 @@ -2248,25 +2990,25 @@
3271 test -z "$as_dir" && as_dir=.
3272 - for ac_exec_ext in '' $ac_executable_extensions; do
3273 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 + for ac_exec_ext in '' $ac_executable_extensions; do
3275 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CC"; then
3290 - { echo "$as_me:$LINENO: result: $CC" >&5
3291 -echo "${ECHO_T}$CC" >&6; }
3292 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 +$as_echo "$CC" >&6; }
3295 - { echo "$as_me:$LINENO: result: no" >&5
3296 -echo "${ECHO_T}no" >&6; }
3297 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 +$as_echo "no" >&6; }
3302 @@ -2275,10 +3017,10 @@
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3308 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309 - echo $ECHO_N "(cached) $ECHO_C" >&6
3310 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 +$as_echo_n "checking for $ac_word... " >&6; }
3312 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
3313 + $as_echo_n "(cached) " >&6
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 @@ -2288,25 +3030,25 @@
3320 test -z "$as_dir" && as_dir=.
3321 - for ac_exec_ext in '' $ac_executable_extensions; do
3322 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 + for ac_exec_ext in '' $ac_executable_extensions; do
3324 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 -echo "${ECHO_T}$ac_ct_CC" >&6; }
3341 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 +$as_echo "$ac_ct_CC" >&6; }
3344 - { echo "$as_me:$LINENO: result: no" >&5
3345 -echo "${ECHO_T}no" >&6; }
3346 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 +$as_echo "no" >&6; }
3350 if test "x$ac_ct_CC" = x; then
3351 @@ -2314,12 +3056,8 @@
3353 case $cross_compiling:$ac_tool_warned in
3355 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 -whose name does not start with the host triplet. If you think this
3357 -configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 -whose name does not start with the host triplet. If you think this
3360 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3366 @@ -2332,10 +3070,10 @@
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}cc; ac_word=$2
3370 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 -if test "${ac_cv_prog_CC+set}" = set; then
3373 - echo $ECHO_N "(cached) $ECHO_C" >&6
3374 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 +$as_echo_n "checking for $ac_word... " >&6; }
3376 +if ${ac_cv_prog_CC+:} false; then :
3377 + $as_echo_n "(cached) " >&6
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 @@ -2345,25 +3083,25 @@
3384 test -z "$as_dir" && as_dir=.
3385 - for ac_exec_ext in '' $ac_executable_extensions; do
3386 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 + for ac_exec_ext in '' $ac_executable_extensions; do
3388 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}cc"
3390 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 if test -n "$CC"; then
3403 - { echo "$as_me:$LINENO: result: $CC" >&5
3404 -echo "${ECHO_T}$CC" >&6; }
3405 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 +$as_echo "$CC" >&6; }
3408 - { echo "$as_me:$LINENO: result: no" >&5
3409 -echo "${ECHO_T}no" >&6; }
3410 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 +$as_echo "no" >&6; }
3415 @@ -2372,10 +3110,10 @@
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc; ac_word=$2
3419 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 -if test "${ac_cv_prog_CC+set}" = set; then
3422 - echo $ECHO_N "(cached) $ECHO_C" >&6
3423 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 +$as_echo_n "checking for $ac_word... " >&6; }
3425 +if ${ac_cv_prog_CC+:} false; then :
3426 + $as_echo_n "(cached) " >&6
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 @@ -2386,18 +3124,18 @@
3433 test -z "$as_dir" && as_dir=.
3434 - for ac_exec_ext in '' $ac_executable_extensions; do
3435 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 + for ac_exec_ext in '' $ac_executable_extensions; do
3437 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected=yes
3443 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 if test $ac_prog_rejected = yes; then
3453 @@ -2416,11 +3154,11 @@
3456 if test -n "$CC"; then
3457 - { echo "$as_me:$LINENO: result: $CC" >&5
3458 -echo "${ECHO_T}$CC" >&6; }
3459 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 +$as_echo "$CC" >&6; }
3462 - { echo "$as_me:$LINENO: result: no" >&5
3463 -echo "${ECHO_T}no" >&6; }
3464 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 +$as_echo "no" >&6; }
3469 @@ -2431,10 +3169,10 @@
3471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3473 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3475 -if test "${ac_cv_prog_CC+set}" = set; then
3476 - echo $ECHO_N "(cached) $ECHO_C" >&6
3477 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 +$as_echo_n "checking for $ac_word... " >&6; }
3479 +if ${ac_cv_prog_CC+:} false; then :
3480 + $as_echo_n "(cached) " >&6
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 @@ -2444,25 +3182,25 @@
3487 test -z "$as_dir" && as_dir=.
3488 - for ac_exec_ext in '' $ac_executable_extensions; do
3489 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 + for ac_exec_ext in '' $ac_executable_extensions; do
3491 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 if test -n "$CC"; then
3506 - { echo "$as_me:$LINENO: result: $CC" >&5
3507 -echo "${ECHO_T}$CC" >&6; }
3508 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 +$as_echo "$CC" >&6; }
3511 - { echo "$as_me:$LINENO: result: no" >&5
3512 -echo "${ECHO_T}no" >&6; }
3513 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 +$as_echo "no" >&6; }
3518 @@ -2475,10 +3213,10 @@
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3524 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525 - echo $ECHO_N "(cached) $ECHO_C" >&6
3526 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 +$as_echo_n "checking for $ac_word... " >&6; }
3528 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
3529 + $as_echo_n "(cached) " >&6
3531 if test -n "$ac_ct_CC"; then
3532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 @@ -2488,25 +3226,25 @@
3536 test -z "$as_dir" && as_dir=.
3537 - for ac_exec_ext in '' $ac_executable_extensions; do
3538 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 + for ac_exec_ext in '' $ac_executable_extensions; do
3540 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_CC="$ac_prog"
3542 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3556 -echo "${ECHO_T}$ac_ct_CC" >&6; }
3557 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 +$as_echo "$ac_ct_CC" >&6; }
3560 - { echo "$as_me:$LINENO: result: no" >&5
3561 -echo "${ECHO_T}no" >&6; }
3562 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 +$as_echo "no" >&6; }
3567 @@ -2518,12 +3256,8 @@
3569 case $cross_compiling:$ac_tool_warned in
3571 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3572 -whose name does not start with the host triplet. If you think this
3573 -configuration is useful to you, please write to autoconf@gnu.org." >&5
3574 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3575 -whose name does not start with the host triplet. If you think this
3576 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3577 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3582 @@ -2533,51 +3267,37 @@
3586 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3587 -See \`config.log' for more details." >&5
3588 -echo "$as_me: error: no acceptable C compiler found in \$PATH
3589 -See \`config.log' for more details." >&2;}
3590 - { (exit 1); exit 1; }; }
3591 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 +as_fn_error $? "no acceptable C compiler found in \$PATH
3594 +See \`config.log' for more details" "$LINENO" 5; }
3596 # Provide some information about the compiler.
3597 -echo "$as_me:$LINENO: checking for C compiler version" >&5
3598 -ac_compiler=`set X $ac_compile; echo $2`
3599 -{ (ac_try="$ac_compiler --version >&5"
3600 -case "(($ac_try" in
3601 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 - *) ac_try_echo=$ac_try;;
3604 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 - (eval "$ac_compiler --version >&5") 2>&5
3607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 - (exit $ac_status); }
3609 -{ (ac_try="$ac_compiler -v >&5"
3610 -case "(($ac_try" in
3611 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 - *) ac_try_echo=$ac_try;;
3614 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 - (eval "$ac_compiler -v >&5") 2>&5
3617 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 - (exit $ac_status); }
3619 -{ (ac_try="$ac_compiler -V >&5"
3620 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3623 +for ac_option in --version -v -V -qversion; do
3624 + { { ac_try="$ac_compiler $ac_option >&5"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 - (eval "$ac_compiler -V >&5") 2>&5
3631 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 +$as_echo "$ac_try_echo"; } >&5
3633 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3635 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 - (exit $ac_status); }
3637 + if test -s conftest.err; then
3639 +... rest of stderr output deleted ...
3640 + 10q' conftest.err >conftest.er1
3641 + cat conftest.er1 >&5
3643 + rm -f conftest.er1 conftest.err
3644 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 + test $ac_status = 0; }
3648 -cat >conftest.$ac_ext <<_ACEOF
3651 -cat confdefs.h >>conftest.$ac_ext
3652 -cat >>conftest.$ac_ext <<_ACEOF
3653 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 @@ -2589,42 +3309,38 @@
3660 ac_clean_files_save=$ac_clean_files
3661 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
3662 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3663 # Try to create an executable without -o first, disregard a.out.
3664 # It will help us diagnose broken compilers, and finding out an intuition
3666 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3667 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3668 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3670 -# List of possible output files, starting from the most likely.
3671 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3672 -# only as a last resort. b.out is created by i960 compilers.
3673 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3675 -# The IRIX 6 linker writes into existing files which may not be
3676 -# executable, retaining their permissions. Remove them first so a
3677 -# subsequent execution test works.
3678 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3679 +$as_echo_n "checking whether the C compiler works... " >&6; }
3680 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3682 +# The possible output files:
3683 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3686 for ac_file in $ac_files
3689 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3690 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3691 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3696 -if { (ac_try="$ac_link_default"
3697 +if { { ac_try="$ac_link_default"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 +$as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_link_default") 2>&5
3707 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 - (exit $ac_status); }; then
3709 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 + test $ac_status = 0; }; then :
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 @@ -2634,14 +3350,14 @@
3716 test -f "$ac_file" || continue
3718 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3719 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3722 # We found the default executable, but exeext='' is most
3726 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 @@ -2660,78 +3376,41 @@
3736 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
3737 -echo "${ECHO_T}$ac_file" >&6; }
3738 -if test -z "$ac_file"; then
3739 - echo "$as_me: failed program was:" >&5
3740 -sed 's/^/| /' conftest.$ac_ext >&5
3742 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3743 -See \`config.log' for more details." >&5
3744 -echo "$as_me: error: C compiler cannot create executables
3745 -See \`config.log' for more details." >&2;}
3746 - { (exit 77); exit 77; }; }
3749 +if test -z "$ac_file"; then :
3750 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 +$as_echo "no" >&6; }
3752 +$as_echo "$as_me: failed program was:" >&5
3753 +sed 's/^/| /' conftest.$ac_ext >&5
3755 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 +as_fn_error 77 "C compiler cannot create executables
3758 +See \`config.log' for more details" "$LINENO" 5; }
3760 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 +$as_echo "yes" >&6; }
3763 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764 +$as_echo_n "checking for C compiler default output file name... " >&6; }
3765 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3766 +$as_echo "$ac_file" >&6; }
3767 ac_exeext=$ac_cv_exeext
3769 -# Check that the compiler produces executables we can run. If not, either
3770 -# the compiler is broken, or we cross compile.
3771 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3772 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3773 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3774 -# If not cross compiling, check that we can run a simple program.
3775 -if test "$cross_compiling" != yes; then
3776 - if { ac_try='./$ac_file'
3777 - { (case "(($ac_try" in
3778 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 - *) ac_try_echo=$ac_try;;
3781 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782 - (eval "$ac_try") 2>&5
3784 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 - (exit $ac_status); }; }; then
3786 - cross_compiling=no
3788 - if test "$cross_compiling" = maybe; then
3789 - cross_compiling=yes
3791 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3792 -If you meant to cross compile, use \`--host'.
3793 -See \`config.log' for more details." >&5
3794 -echo "$as_me: error: cannot run C compiled programs.
3795 -If you meant to cross compile, use \`--host'.
3796 -See \`config.log' for more details." >&2;}
3797 - { (exit 1); exit 1; }; }
3801 -{ echo "$as_me:$LINENO: result: yes" >&5
3802 -echo "${ECHO_T}yes" >&6; }
3804 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
3805 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 -# Check that the compiler produces executables we can run. If not, either
3808 -# the compiler is broken, or we cross compile.
3809 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3810 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3811 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3812 -echo "${ECHO_T}$cross_compiling" >&6; }
3814 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3815 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3816 -if { (ac_try="$ac_link"
3817 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3818 +$as_echo_n "checking for suffix of executables... " >&6; }
3819 +if { { ac_try="$ac_link"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 +$as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link") 2>&5
3829 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 - (exit $ac_status); }; then
3831 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 + test $ac_status = 0; }; then :
3833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3834 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3835 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 @@ -2739,37 +3418,90 @@
3837 for ac_file in conftest.exe conftest conftest.*; do
3838 test -f "$ac_file" || continue
3840 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3841 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3848 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3849 -See \`config.log' for more details." >&5
3850 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3851 -See \`config.log' for more details." >&2;}
3852 - { (exit 1); exit 1; }; }
3855 -rm -f conftest$ac_cv_exeext
3856 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3857 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
3858 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861 +See \`config.log' for more details" "$LINENO" 5; }
3863 +rm -f conftest conftest$ac_cv_exeext
3864 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 +$as_echo "$ac_cv_exeext" >&6; }
3867 rm -f conftest.$ac_ext
3868 EXEEXT=$ac_cv_exeext
3870 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3871 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3872 -if test "${ac_cv_objext+set}" = set; then
3873 - echo $ECHO_N "(cached) $ECHO_C" >&6
3875 - cat >conftest.$ac_ext <<_ACEOF
3877 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 +/* end confdefs.h. */
3883 +FILE *f = fopen ("conftest.out", "w");
3884 + return ferror (f) || fclose (f) != 0;
3890 -cat confdefs.h >>conftest.$ac_ext
3891 -cat >>conftest.$ac_ext <<_ACEOF
3892 +ac_clean_files="$ac_clean_files conftest.out"
3893 +# Check that the compiler produces executables we can run. If not, either
3894 +# the compiler is broken, or we cross compile.
3895 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3896 +$as_echo_n "checking whether we are cross compiling... " >&6; }
3897 +if test "$cross_compiling" != yes; then
3898 + { { ac_try="$ac_link"
3899 +case "(($ac_try" in
3900 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 + *) ac_try_echo=$ac_try;;
3903 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 +$as_echo "$ac_try_echo"; } >&5
3905 + (eval "$ac_link") 2>&5
3907 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 + test $ac_status = 0; }
3909 + if { ac_try='./conftest$ac_cv_exeext'
3910 + { { case "(($ac_try" in
3911 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 + *) ac_try_echo=$ac_try;;
3914 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 +$as_echo "$ac_try_echo"; } >&5
3916 + (eval "$ac_try") 2>&5
3918 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 + test $ac_status = 0; }; }; then
3920 + cross_compiling=no
3922 + if test "$cross_compiling" = maybe; then
3923 + cross_compiling=yes
3925 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 +as_fn_error $? "cannot run C compiled programs.
3928 +If you meant to cross compile, use \`--host'.
3929 +See \`config.log' for more details" "$LINENO" 5; }
3933 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3934 +$as_echo "$cross_compiling" >&6; }
3936 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3937 +ac_clean_files=$ac_clean_files_save
3938 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 +$as_echo_n "checking for suffix of object files... " >&6; }
3940 +if ${ac_cv_objext+:} false; then :
3941 + $as_echo_n "(cached) " >&6
3943 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 @@ -2781,51 +3513,46 @@
3950 rm -f conftest.o conftest.obj
3951 -if { (ac_try="$ac_compile"
3952 +if { { ac_try="$ac_compile"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 +$as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_compile") 2>&5
3962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 - (exit $ac_status); }; then
3964 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 + test $ac_status = 0; }; then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3969 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3970 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976 - echo "$as_me: failed program was:" >&5
3977 + $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3981 -See \`config.log' for more details." >&5
3982 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
3983 -See \`config.log' for more details." >&2;}
3984 - { (exit 1); exit 1; }; }
3985 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 +as_fn_error $? "cannot compute suffix of object files: cannot compile
3988 +See \`config.log' for more details" "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3994 -echo "${ECHO_T}$ac_cv_objext" >&6; }
3995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 +$as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3999 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4000 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4001 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
4002 - echo $ECHO_N "(cached) $ECHO_C" >&6
4003 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 +if ${ac_cv_c_compiler_gnu+:} false; then :
4006 + $as_echo_n "(cached) " >&6
4008 - cat >conftest.$ac_ext <<_ACEOF
4011 -cat confdefs.h >>conftest.$ac_ext
4012 -cat >>conftest.$ac_ext <<_ACEOF
4013 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4017 @@ -2839,54 +3566,34 @@
4021 -rm -f conftest.$ac_objext
4022 -if { (ac_try="$ac_compile"
4023 -case "(($ac_try" in
4024 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 - *) ac_try_echo=$ac_try;;
4027 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 - (eval "$ac_compile") 2>conftest.er1
4030 - grep -v '^ *+' conftest.er1 >conftest.err
4031 - rm -f conftest.er1
4032 - cat conftest.err >&5
4033 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 - (exit $ac_status); } && {
4035 - test -z "$ac_c_werror_flag" ||
4036 - test ! -s conftest.err
4037 - } && test -s conftest.$ac_objext; then
4038 +if ac_fn_c_try_compile "$LINENO"; then :
4041 - echo "$as_me: failed program was:" >&5
4042 -sed 's/^/| /' conftest.$ac_ext >&5
4044 - ac_compiler_gnu=no
4045 + ac_compiler_gnu=no
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4052 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4053 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4054 -GCC=`test $ac_compiler_gnu = yes && echo yes`
4055 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4056 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4057 +if test $ac_compiler_gnu = yes; then
4062 ac_test_CFLAGS=${CFLAGS+set}
4063 ac_save_CFLAGS=$CFLAGS
4064 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4065 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4066 -if test "${ac_cv_prog_cc_g+set}" = set; then
4067 - echo $ECHO_N "(cached) $ECHO_C" >&6
4068 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 +if ${ac_cv_prog_cc_g+:} false; then :
4071 + $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 - cat >conftest.$ac_ext <<_ACEOF
4080 -cat confdefs.h >>conftest.$ac_ext
4081 -cat >>conftest.$ac_ext <<_ACEOF
4082 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 @@ -2897,34 +3604,11 @@
4090 -rm -f conftest.$ac_objext
4091 -if { (ac_try="$ac_compile"
4092 -case "(($ac_try" in
4093 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 - *) ac_try_echo=$ac_try;;
4096 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 - (eval "$ac_compile") 2>conftest.er1
4099 - grep -v '^ *+' conftest.er1 >conftest.err
4100 - rm -f conftest.er1
4101 - cat conftest.err >&5
4102 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 - (exit $ac_status); } && {
4104 - test -z "$ac_c_werror_flag" ||
4105 - test ! -s conftest.err
4106 - } && test -s conftest.$ac_objext; then
4107 +if ac_fn_c_try_compile "$LINENO"; then :
4110 - echo "$as_me: failed program was:" >&5
4111 -sed 's/^/| /' conftest.$ac_ext >&5
4114 - cat >conftest.$ac_ext <<_ACEOF
4117 -cat confdefs.h >>conftest.$ac_ext
4118 -cat >>conftest.$ac_ext <<_ACEOF
4120 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4124 @@ -2935,35 +3619,12 @@
4128 -rm -f conftest.$ac_objext
4129 -if { (ac_try="$ac_compile"
4130 -case "(($ac_try" in
4131 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 - *) ac_try_echo=$ac_try;;
4134 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 - (eval "$ac_compile") 2>conftest.er1
4137 - grep -v '^ *+' conftest.er1 >conftest.err
4138 - rm -f conftest.er1
4139 - cat conftest.err >&5
4140 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 - (exit $ac_status); } && {
4142 - test -z "$ac_c_werror_flag" ||
4143 - test ! -s conftest.err
4144 - } && test -s conftest.$ac_objext; then
4147 - echo "$as_me: failed program was:" >&5
4148 -sed 's/^/| /' conftest.$ac_ext >&5
4149 +if ac_fn_c_try_compile "$LINENO"; then :
4151 - ac_c_werror_flag=$ac_save_c_werror_flag
4153 + ac_c_werror_flag=$ac_save_c_werror_flag
4155 - cat >conftest.$ac_ext <<_ACEOF
4158 -cat confdefs.h >>conftest.$ac_ext
4159 -cat >>conftest.$ac_ext <<_ACEOF
4160 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4164 @@ -2974,42 +3635,18 @@
4168 -rm -f conftest.$ac_objext
4169 -if { (ac_try="$ac_compile"
4170 -case "(($ac_try" in
4171 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 - *) ac_try_echo=$ac_try;;
4174 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 - (eval "$ac_compile") 2>conftest.er1
4177 - grep -v '^ *+' conftest.er1 >conftest.err
4178 - rm -f conftest.er1
4179 - cat conftest.err >&5
4180 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 - (exit $ac_status); } && {
4182 - test -z "$ac_c_werror_flag" ||
4183 - test ! -s conftest.err
4184 - } && test -s conftest.$ac_objext; then
4185 +if ac_fn_c_try_compile "$LINENO"; then :
4188 - echo "$as_me: failed program was:" >&5
4189 -sed 's/^/| /' conftest.$ac_ext >&5
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4203 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4204 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4205 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 +$as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 @@ -3025,23 +3662,18 @@
4214 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4215 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4216 -if test "${ac_cv_prog_cc_c89+set}" = set; then
4217 - echo $ECHO_N "(cached) $ECHO_C" >&6
4218 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4219 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 +if ${ac_cv_prog_cc_c89+:} false; then :
4221 + $as_echo_n "(cached) " >&6
4223 ac_cv_prog_cc_c89=no
4225 -cat >conftest.$ac_ext <<_ACEOF
4228 -cat confdefs.h >>conftest.$ac_ext
4229 -cat >>conftest.$ac_ext <<_ACEOF
4230 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4234 -#include <sys/types.h>
4235 -#include <sys/stat.h>
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 @@ -3093,31 +3725,9 @@
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 - rm -f conftest.$ac_objext
4245 -if { (ac_try="$ac_compile"
4246 -case "(($ac_try" in
4247 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 - *) ac_try_echo=$ac_try;;
4250 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 - (eval "$ac_compile") 2>conftest.er1
4253 - grep -v '^ *+' conftest.er1 >conftest.err
4254 - rm -f conftest.er1
4255 - cat conftest.err >&5
4256 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 - (exit $ac_status); } && {
4258 - test -z "$ac_c_werror_flag" ||
4259 - test ! -s conftest.err
4260 - } && test -s conftest.$ac_objext; then
4261 + if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 - echo "$as_me: failed program was:" >&5
4265 -sed 's/^/| /' conftest.$ac_ext >&5
4270 rm -f core conftest.err conftest.$ac_objext
4271 test "x$ac_cv_prog_cc_c89" != "xno" && break
4273 @@ -3128,17 +3738,19 @@
4275 case "x$ac_cv_prog_cc_c89" in
4277 - { echo "$as_me:$LINENO: result: none needed" >&5
4278 -echo "${ECHO_T}none needed" >&6; } ;;
4279 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 +$as_echo "none needed" >&6; } ;;
4282 - { echo "$as_me:$LINENO: result: unsupported" >&5
4283 -echo "${ECHO_T}unsupported" >&6; } ;;
4284 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285 +$as_echo "unsupported" >&6; } ;;
4287 CC="$CC $ac_cv_prog_cc_c89"
4288 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4289 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4290 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4293 +if test "x$ac_cv_prog_cc_c89" != xno; then :
4298 ac_cpp='$CPP $CPPFLAGS'
4299 @@ -3149,11 +3761,11 @@
4303 -{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
4304 -echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
4305 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4306 +$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4308 # Check whether --with-cxx_main was given.
4309 -if test "${with_cxx_main+set}" = set; then
4310 +if test "${with_cxx_main+set}" = set; then :
4311 withval=$with_cxx_main;
4314 @@ -3175,8 +3787,8 @@
4318 -{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
4319 -echo "${ECHO_T}$with_cxx_main" >&6; }
4320 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4321 +$as_echo "$with_cxx_main" >&6; }
4325 @@ -3184,10 +3796,10 @@
4327 gcc) # Extract the first word of "g++", so it can be a program name with args.
4328 set dummy g++; ac_word=$2
4329 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 -if test "${ac_cv_path_CXX+set}" = set; then
4332 - echo $ECHO_N "(cached) $ECHO_C" >&6
4333 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 +$as_echo_n "checking for $ac_word... " >&6; }
4335 +if ${ac_cv_path_CXX+:} false; then :
4336 + $as_echo_n "(cached) " >&6
4340 @@ -3199,14 +3811,14 @@
4343 test -z "$as_dir" && as_dir=.
4344 - for ac_exec_ext in '' $ac_executable_extensions; do
4345 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 + for ac_exec_ext in '' $ac_executable_extensions; do
4347 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4349 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4359 @@ -3215,20 +3827,20 @@
4362 if test -n "$CXX"; then
4363 - { echo "$as_me:$LINENO: result: $CXX" >&5
4364 -echo "${ECHO_T}$CXX" >&6; }
4365 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4366 +$as_echo "$CXX" >&6; }
4368 - { echo "$as_me:$LINENO: result: no" >&5
4369 -echo "${ECHO_T}no" >&6; }
4370 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 +$as_echo "no" >&6; }
4375 cc) # Extract the first word of "c++", so it can be a program name with args.
4376 set dummy c++; ac_word=$2
4377 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 -if test "${ac_cv_path_CXX+set}" = set; then
4380 - echo $ECHO_N "(cached) $ECHO_C" >&6
4381 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 +$as_echo_n "checking for $ac_word... " >&6; }
4383 +if ${ac_cv_path_CXX+:} false; then :
4384 + $as_echo_n "(cached) " >&6
4388 @@ -3240,14 +3852,14 @@
4391 test -z "$as_dir" && as_dir=.
4392 - for ac_exec_ext in '' $ac_executable_extensions; do
4393 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 + for ac_exec_ext in '' $ac_executable_extensions; do
4395 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4397 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4407 @@ -3256,11 +3868,11 @@
4410 if test -n "$CXX"; then
4411 - { echo "$as_me:$LINENO: result: $CXX" >&5
4412 -echo "${ECHO_T}$CXX" >&6; }
4413 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4414 +$as_echo "$CXX" >&6; }
4416 - { echo "$as_me:$LINENO: result: no" >&5
4417 -echo "${ECHO_T}no" >&6; }
4418 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 +$as_echo "no" >&6; }
4423 @@ -3276,10 +3888,10 @@
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 -if test "${ac_cv_prog_CXX+set}" = set; then
4430 - echo $ECHO_N "(cached) $ECHO_C" >&6
4431 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 +$as_echo_n "checking for $ac_word... " >&6; }
4433 +if ${ac_cv_prog_CXX+:} false; then :
4434 + $as_echo_n "(cached) " >&6
4436 if test -n "$CXX"; then
4437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4438 @@ -3289,25 +3901,25 @@
4441 test -z "$as_dir" && as_dir=.
4442 - for ac_exec_ext in '' $ac_executable_extensions; do
4443 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 + for ac_exec_ext in '' $ac_executable_extensions; do
4445 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CXX="$ac_prog"
4447 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 if test -n "$CXX"; then
4460 - { echo "$as_me:$LINENO: result: $CXX" >&5
4461 -echo "${ECHO_T}$CXX" >&6; }
4462 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4463 +$as_echo "$CXX" >&6; }
4465 - { echo "$as_me:$LINENO: result: no" >&5
4466 -echo "${ECHO_T}no" >&6; }
4467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 +$as_echo "no" >&6; }
4472 @@ -3322,12 +3934,12 @@
4474 if test "$preset_cxx" != "$CXX"
4476 - { echo "$as_me:$LINENO: WARNING:
4477 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4479 By default, distutils will build C++ extension modules with \"$CXX\".
4480 If this is not intended, then set CXX on the configure command line.
4482 -echo "$as_me: WARNING:
4483 +$as_echo "$as_me: WARNING:
4485 By default, distutils will build C++ extension modules with \"$CXX\".
4486 If this is not intended, then set CXX on the configure command line.
4487 @@ -3342,15 +3954,15 @@
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4492 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4493 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4494 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
4495 # On Suns, sometimes $CPP names a directory.
4496 if test -n "$CPP" && test -d "$CPP"; then
4499 if test -z "$CPP"; then
4500 - if test "${ac_cv_prog_CPP+set}" = set; then
4501 - echo $ECHO_N "(cached) $ECHO_C" >&6
4502 + if ${ac_cv_prog_CPP+:} false; then :
4503 + $as_echo_n "(cached) " >&6
4505 # Double quotes because CPP needs to be expanded
4506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4507 @@ -3364,11 +3976,7 @@
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 - cat >conftest.$ac_ext <<_ACEOF
4514 -cat confdefs.h >>conftest.$ac_ext
4515 -cat >>conftest.$ac_ext <<_ACEOF
4516 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 # include <limits.h>
4520 @@ -3377,76 +3985,34 @@
4524 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4525 -case "(($ac_try" in
4526 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 - *) ac_try_echo=$ac_try;;
4529 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4532 - grep -v '^ *+' conftest.er1 >conftest.err
4533 - rm -f conftest.er1
4534 - cat conftest.err >&5
4535 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 - (exit $ac_status); } >/dev/null && {
4537 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4538 - test ! -s conftest.err
4542 - echo "$as_me: failed program was:" >&5
4543 -sed 's/^/| /' conftest.$ac_ext >&5
4544 +if ac_fn_c_try_cpp "$LINENO"; then :
4547 # Broken: fails on valid input.
4551 -rm -f conftest.err conftest.$ac_ext
4552 +rm -f conftest.err conftest.i conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 - cat >conftest.$ac_ext <<_ACEOF
4559 -cat confdefs.h >>conftest.$ac_ext
4560 -cat >>conftest.$ac_ext <<_ACEOF
4561 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #include <ac_nonexistent.h>
4565 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 -case "(($ac_try" in
4567 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 - *) ac_try_echo=$ac_try;;
4570 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4573 - grep -v '^ *+' conftest.er1 >conftest.err
4574 - rm -f conftest.er1
4575 - cat conftest.err >&5
4576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 - (exit $ac_status); } >/dev/null && {
4578 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579 - test ! -s conftest.err
4581 +if ac_fn_c_try_cpp "$LINENO"; then :
4582 # Broken: success on invalid input.
4585 - echo "$as_me: failed program was:" >&5
4586 -sed 's/^/| /' conftest.$ac_ext >&5
4588 # Passes both tests.
4593 -rm -f conftest.err conftest.$ac_ext
4594 +rm -f conftest.err conftest.i conftest.$ac_ext
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 -rm -f conftest.err conftest.$ac_ext
4599 -if $ac_preproc_ok; then
4600 +rm -f conftest.i conftest.err conftest.$ac_ext
4601 +if $ac_preproc_ok; then :
4605 @@ -3458,8 +4024,8 @@
4609 -{ echo "$as_me:$LINENO: result: $CPP" >&5
4610 -echo "${ECHO_T}$CPP" >&6; }
4611 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4612 +$as_echo "$CPP" >&6; }
4614 for ac_c_preproc_warn_flag in '' yes
4616 @@ -3469,11 +4035,7 @@
4617 # <limits.h> exists even on freestanding compilers.
4618 # On the NeXT, cc -E runs the code through the compiler's parser,
4619 # not just through cpp. "Syntax error" is here to catch this case.
4620 - cat >conftest.$ac_ext <<_ACEOF
4623 -cat confdefs.h >>conftest.$ac_ext
4624 -cat >>conftest.$ac_ext <<_ACEOF
4625 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4628 # include <limits.h>
4629 @@ -3482,83 +4044,40 @@
4633 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 -case "(($ac_try" in
4635 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 - *) ac_try_echo=$ac_try;;
4638 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4641 - grep -v '^ *+' conftest.er1 >conftest.err
4642 - rm -f conftest.er1
4643 - cat conftest.err >&5
4644 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 - (exit $ac_status); } >/dev/null && {
4646 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 - test ! -s conftest.err
4651 - echo "$as_me: failed program was:" >&5
4652 -sed 's/^/| /' conftest.$ac_ext >&5
4653 +if ac_fn_c_try_cpp "$LINENO"; then :
4656 # Broken: fails on valid input.
4660 -rm -f conftest.err conftest.$ac_ext
4661 +rm -f conftest.err conftest.i conftest.$ac_ext
4663 # OK, works on sane cases. Now check whether nonexistent headers
4664 # can be detected and how.
4665 - cat >conftest.$ac_ext <<_ACEOF
4668 -cat confdefs.h >>conftest.$ac_ext
4669 -cat >>conftest.$ac_ext <<_ACEOF
4670 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <ac_nonexistent.h>
4674 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4675 -case "(($ac_try" in
4676 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 - *) ac_try_echo=$ac_try;;
4679 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4682 - grep -v '^ *+' conftest.er1 >conftest.err
4683 - rm -f conftest.er1
4684 - cat conftest.err >&5
4685 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 - (exit $ac_status); } >/dev/null && {
4687 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4688 - test ! -s conftest.err
4690 +if ac_fn_c_try_cpp "$LINENO"; then :
4691 # Broken: success on invalid input.
4694 - echo "$as_me: failed program was:" >&5
4695 -sed 's/^/| /' conftest.$ac_ext >&5
4697 # Passes both tests.
4702 -rm -f conftest.err conftest.$ac_ext
4703 +rm -f conftest.err conftest.i conftest.$ac_ext
4706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4707 -rm -f conftest.err conftest.$ac_ext
4708 -if $ac_preproc_ok; then
4710 +rm -f conftest.i conftest.err conftest.$ac_ext
4711 +if $ac_preproc_ok; then :
4714 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4715 -See \`config.log' for more details." >&5
4716 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4717 -See \`config.log' for more details." >&2;}
4718 - { (exit 1); exit 1; }; }
4719 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4722 +See \`config.log' for more details" "$LINENO" 5; }
4726 @@ -3568,45 +4087,40 @@
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4731 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4732 -if test "${ac_cv_path_GREP+set}" = set; then
4733 - echo $ECHO_N "(cached) $ECHO_C" >&6
4735 - # Extract the first word of "grep ggrep" to use in msg output
4736 -if test -z "$GREP"; then
4737 -set dummy grep ggrep; ac_prog_name=$2
4738 -if test "${ac_cv_path_GREP+set}" = set; then
4739 - echo $ECHO_N "(cached) $ECHO_C" >&6
4740 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4741 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4742 +if ${ac_cv_path_GREP+:} false; then :
4743 + $as_echo_n "(cached) " >&6
4745 + if test -z "$GREP"; then
4746 ac_path_GREP_found=false
4747 -# Loop through the user's path and test for each of PROGNAME-LIST
4748 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 + # Loop through the user's path and test for each of PROGNAME-LIST
4750 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754 test -z "$as_dir" && as_dir=.
4755 - for ac_prog in grep ggrep; do
4756 - for ac_exec_ext in '' $ac_executable_extensions; do
4757 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4758 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4759 - # Check for GNU ac_path_GREP and select it if it is found.
4760 + for ac_prog in grep ggrep; do
4761 + for ac_exec_ext in '' $ac_executable_extensions; do
4762 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763 + as_fn_executable_p "$ac_path_GREP" || continue
4764 +# Check for GNU ac_path_GREP and select it if it is found.
4765 # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4772 + $as_echo_n 0123456789 >"conftest.in"
4775 cat "conftest.in" "conftest.in" >"conftest.tmp"
4776 mv "conftest.tmp" "conftest.in"
4777 cp "conftest.in" "conftest.nl"
4778 - echo 'GREP' >> "conftest.nl"
4779 + $as_echo 'GREP' >> "conftest.nl"
4780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 - ac_count=`expr $ac_count + 1`
4783 + as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_GREP="$ac_path_GREP"
4787 @@ -3618,77 +4132,61 @@
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 - $ac_path_GREP_found && break 3
4793 + $ac_path_GREP_found && break 3
4805 -GREP="$ac_cv_path_GREP"
4806 -if test -z "$GREP"; then
4807 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4808 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4809 - { (exit 1); exit 1; }; }
4812 + if test -z "$ac_cv_path_GREP"; then
4813 + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816 ac_cv_path_GREP=$GREP
4821 -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4822 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4823 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4824 +$as_echo "$ac_cv_path_GREP" >&6; }
4825 GREP="$ac_cv_path_GREP"
4828 -{ echo "$as_me:$LINENO: checking for egrep" >&5
4829 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4830 -if test "${ac_cv_path_EGREP+set}" = set; then
4831 - echo $ECHO_N "(cached) $ECHO_C" >&6
4832 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833 +$as_echo_n "checking for egrep... " >&6; }
4834 +if ${ac_cv_path_EGREP+:} false; then :
4835 + $as_echo_n "(cached) " >&6
4837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838 then ac_cv_path_EGREP="$GREP -E"
4840 - # Extract the first word of "egrep" to use in msg output
4841 -if test -z "$EGREP"; then
4842 -set dummy egrep; ac_prog_name=$2
4843 -if test "${ac_cv_path_EGREP+set}" = set; then
4844 - echo $ECHO_N "(cached) $ECHO_C" >&6
4846 + if test -z "$EGREP"; then
4847 ac_path_EGREP_found=false
4848 -# Loop through the user's path and test for each of PROGNAME-LIST
4849 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 + # Loop through the user's path and test for each of PROGNAME-LIST
4851 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855 test -z "$as_dir" && as_dir=.
4856 - for ac_prog in egrep; do
4857 - for ac_exec_ext in '' $ac_executable_extensions; do
4858 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4859 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4860 - # Check for GNU ac_path_EGREP and select it if it is found.
4861 + for ac_prog in egrep; do
4862 + for ac_exec_ext in '' $ac_executable_extensions; do
4863 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4864 + as_fn_executable_p "$ac_path_EGREP" || continue
4865 +# Check for GNU ac_path_EGREP and select it if it is found.
4866 # Check for GNU $ac_path_EGREP
4867 case `"$ac_path_EGREP" --version 2>&1` in
4869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4872 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4873 + $as_echo_n 0123456789 >"conftest.in"
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 - echo 'EGREP' >> "conftest.nl"
4880 + $as_echo 'EGREP' >> "conftest.nl"
4881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 - ac_count=`expr $ac_count + 1`
4884 + as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_EGREP="$ac_path_EGREP"
4888 @@ -3700,63 +4198,214 @@
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 - $ac_path_EGREP_found && break 3
4894 + $ac_path_EGREP_found && break 3
4904 + if test -z "$ac_cv_path_EGREP"; then
4905 + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 + ac_cv_path_EGREP=$EGREP
4911 -EGREP="$ac_cv_path_EGREP"
4912 -if test -z "$EGREP"; then
4913 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4914 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4915 - { (exit 1); exit 1; }; }
4918 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919 +$as_echo "$ac_cv_path_EGREP" >&6; }
4920 + EGREP="$ac_cv_path_EGREP"
4923 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4924 +$as_echo_n "checking for ANSI C header files... " >&6; }
4925 +if ${ac_cv_header_stdc+:} false; then :
4926 + $as_echo_n "(cached) " >&6
4928 - ac_cv_path_EGREP=$EGREP
4929 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 +/* end confdefs.h. */
4931 +#include <stdlib.h>
4932 +#include <stdarg.h>
4933 +#include <string.h>
4944 +if ac_fn_c_try_compile "$LINENO"; then :
4945 + ac_cv_header_stdc=yes
4947 + ac_cv_header_stdc=no
4949 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 +if test $ac_cv_header_stdc = yes; then
4952 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4953 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 +/* end confdefs.h. */
4955 +#include <string.h>
4958 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 + $EGREP "memchr" >/dev/null 2>&1; then :
4963 + ac_cv_header_stdc=no
4965 -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4966 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4967 - EGREP="$ac_cv_path_EGREP"
4972 +if test $ac_cv_header_stdc = yes; then
4973 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 +/* end confdefs.h. */
4976 +#include <stdlib.h>
4978 -{ echo "$as_me:$LINENO: checking for AIX" >&5
4979 -echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4980 -cat >conftest.$ac_ext <<_ACEOF
4983 -cat confdefs.h >>conftest.$ac_ext
4984 -cat >>conftest.$ac_ext <<_ACEOF
4985 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 + $EGREP "free" >/dev/null 2>&1; then :
4989 + ac_cv_header_stdc=no
4995 +if test $ac_cv_header_stdc = yes; then
4996 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997 + if test "$cross_compiling" = yes; then :
5000 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5005 +#include <stdlib.h>
5006 +#if ((' ' & 0x0FF) == 0x020)
5007 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010 +# define ISLOWER(c) \
5011 + (('a' <= (c) && (c) <= 'i') \
5012 + || ('j' <= (c) && (c) <= 'r') \
5013 + || ('s' <= (c) && (c) <= 'z'))
5014 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5022 + for (i = 0; i < 256; i++)
5023 + if (XOR (islower (i), ISLOWER (i))
5024 + || toupper (i) != TOUPPER (i))
5029 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 - $EGREP "yes" >/dev/null 2>&1; then
5031 - { echo "$as_me:$LINENO: result: yes" >&5
5032 -echo "${ECHO_T}yes" >&6; }
5033 -cat >>confdefs.h <<\_ACEOF
5034 -#define _ALL_SOURCE 1
5035 +if ac_fn_c_try_run "$LINENO"; then :
5038 + ac_cv_header_stdc=no
5040 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5041 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5046 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5047 +$as_echo "$ac_cv_header_stdc" >&6; }
5048 +if test $ac_cv_header_stdc = yes; then
5050 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5054 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056 + inttypes.h stdint.h unistd.h
5058 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5061 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5062 + cat >>confdefs.h <<_ACEOF
5063 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5073 +if test "x$ac_cv_header_minix_config_h" = xyes; then :
5076 - { echo "$as_me:$LINENO: result: no" >&5
5077 -echo "${ECHO_T}no" >&6; }
5083 + if test "$MINIX" = yes; then
5085 +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5088 +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5091 +$as_echo "#define _MINIX 1" >>confdefs.h
5096 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5097 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5098 +if ${ac_cv_safe_to_define___extensions__+:} false; then :
5099 + $as_echo_n "(cached) " >&6
5101 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 +/* end confdefs.h. */
5104 +# define __EXTENSIONS__ 1
5105 + $ac_includes_default
5114 +if ac_fn_c_try_compile "$LINENO"; then :
5115 + ac_cv_safe_to_define___extensions__=yes
5117 + ac_cv_safe_to_define___extensions__=no
5119 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5122 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5123 + test $ac_cv_safe_to_define___extensions__ = yes &&
5124 + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5126 + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5128 + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5130 + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5132 + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5137 @@ -3769,11 +4418,11 @@
5141 -{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
5142 -echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
5143 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5144 +$as_echo_n "checking for --with-suffix... " >&6; }
5146 # Check whether --with-suffix was given.
5147 -if test "${with_suffix+set}" = set; then
5148 +if test "${with_suffix+set}" = set; then :
5149 withval=$with_suffix;
5152 @@ -3782,26 +4431,26 @@
5156 -{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
5157 -echo "${ECHO_T}$EXEEXT" >&6; }
5158 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5159 +$as_echo "$EXEEXT" >&6; }
5161 # Test whether we're running on a non-case-sensitive system, in which
5162 # case we give a warning if no ext is given
5164 -{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
5165 -echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
5166 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5167 +$as_echo_n "checking for case-insensitive build directory... " >&6; }
5168 if test ! -d CaseSensitiveTestDir; then
5169 mkdir CaseSensitiveTestDir
5172 if test -d casesensitivetestdir
5174 - { echo "$as_me:$LINENO: result: yes" >&5
5175 -echo "${ECHO_T}yes" >&6; }
5176 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 +$as_echo "yes" >&6; }
5180 - { echo "$as_me:$LINENO: result: no" >&5
5181 -echo "${ECHO_T}no" >&6; }
5182 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 +$as_echo "no" >&6; }
5186 rmdir CaseSensitiveTestDir
5187 @@ -3825,23 +4474,21 @@
5189 # Some functions have a prototype only with that define, e.g. confstr
5191 -cat >>confdefs.h <<\_ACEOF
5192 -#define __EXTENSIONS__ 1
5194 +$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5201 -{ echo "$as_me:$LINENO: checking LIBRARY" >&5
5202 -echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
5203 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5204 +$as_echo_n "checking LIBRARY... " >&6; }
5205 if test -z "$LIBRARY"
5207 LIBRARY='libpython$(VERSION).a'
5209 -{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
5210 -echo "${ECHO_T}$LIBRARY" >&6; }
5211 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5212 +$as_echo "$LIBRARY" >&6; }
5214 # LDLIBRARY is the name of the library to link against (as opposed to the
5215 # name of the library into which to insert object files). BLDLIBRARY is also
5216 @@ -3876,8 +4523,8 @@
5217 # This is altered for AIX in order to build the export list before
5220 -{ echo "$as_me:$LINENO: checking LINKCC" >&5
5221 -echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
5222 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5223 +$as_echo_n "checking LINKCC... " >&6; }
5224 if test -z "$LINKCC"
5226 LINKCC='$(PURIFY) $(MAINCC)'
5227 @@ -3893,13 +4540,13 @@
5228 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
5231 -{ echo "$as_me:$LINENO: result: $LINKCC" >&5
5232 -echo "${ECHO_T}$LINKCC" >&6; }
5233 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5234 +$as_echo "$LINKCC" >&6; }
5236 -{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
5237 -echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
5238 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5239 +$as_echo_n "checking for --enable-shared... " >&6; }
5240 # Check whether --enable-shared was given.
5241 -if test "${enable_shared+set}" = set; then
5242 +if test "${enable_shared+set}" = set; then :
5243 enableval=$enable_shared;
5246 @@ -3913,64 +4560,36 @@
5247 enable_shared="no";;
5250 -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
5251 -echo "${ECHO_T}$enable_shared" >&6; }
5252 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5253 +$as_echo "$enable_shared" >&6; }
5255 -{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
5256 -echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
5257 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5258 +$as_echo_n "checking for --enable-profiling... " >&6; }
5259 # Check whether --enable-profiling was given.
5260 -if test "${enable_profiling+set}" = set; then
5261 +if test "${enable_profiling+set}" = set; then :
5262 enableval=$enable_profiling; ac_save_cc="$CC"
5264 - if test "$cross_compiling" = yes; then
5265 + if test "$cross_compiling" = yes; then :
5266 ac_enable_profiling="no"
5268 - cat >conftest.$ac_ext <<_ACEOF
5271 -cat confdefs.h >>conftest.$ac_ext
5272 -cat >>conftest.$ac_ext <<_ACEOF
5273 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int main() { return 0; }
5277 -rm -f conftest$ac_exeext
5278 -if { (ac_try="$ac_link"
5279 -case "(($ac_try" in
5280 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 - *) ac_try_echo=$ac_try;;
5283 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 - (eval "$ac_link") 2>&5
5286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5288 - { (case "(($ac_try" in
5289 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 - *) ac_try_echo=$ac_try;;
5292 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 - (eval "$ac_try") 2>&5
5295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 - (exit $ac_status); }; }; then
5297 +if ac_fn_c_try_run "$LINENO"; then :
5298 ac_enable_profiling="yes"
5300 - echo "$as_me: program exited with status $ac_status" >&5
5301 -echo "$as_me: failed program was:" >&5
5302 -sed 's/^/| /' conftest.$ac_ext >&5
5304 -( exit $ac_status )
5305 -ac_enable_profiling="no"
5306 + ac_enable_profiling="no"
5308 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5309 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5310 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5317 -{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
5318 -echo "${ECHO_T}$ac_enable_profiling" >&6; }
5319 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
5320 +$as_echo "$ac_enable_profiling" >&6; }
5322 case "$ac_enable_profiling" in
5324 @@ -3979,8 +4598,8 @@
5328 -{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
5329 -echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
5330 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5331 +$as_echo_n "checking LDLIBRARY... " >&6; }
5333 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5334 # library that we build, but we do not want to link against it (we
5335 @@ -4000,9 +4619,7 @@
5336 # Other platforms follow
5337 if test $enable_shared = "yes"; then
5339 -cat >>confdefs.h <<\_ACEOF
5340 -#define Py_ENABLE_SHARED 1
5342 +$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5344 case $ac_sys_system in
5346 @@ -4061,16 +4678,16 @@
5350 -{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
5351 -echo "${ECHO_T}$LDLIBRARY" >&6; }
5352 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5353 +$as_echo "$LDLIBRARY" >&6; }
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5358 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 -if test "${ac_cv_prog_RANLIB+set}" = set; then
5361 - echo $ECHO_N "(cached) $ECHO_C" >&6
5362 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 +$as_echo_n "checking for $ac_word... " >&6; }
5364 +if ${ac_cv_prog_RANLIB+:} false; then :
5365 + $as_echo_n "(cached) " >&6
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5369 @@ -4080,25 +4697,25 @@
5372 test -z "$as_dir" && as_dir=.
5373 - for ac_exec_ext in '' $ac_executable_extensions; do
5374 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 + for ac_exec_ext in '' $ac_executable_extensions; do
5376 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5378 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 RANLIB=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 - { echo "$as_me:$LINENO: result: $RANLIB" >&5
5392 -echo "${ECHO_T}$RANLIB" >&6; }
5393 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5394 +$as_echo "$RANLIB" >&6; }
5396 - { echo "$as_me:$LINENO: result: no" >&5
5397 -echo "${ECHO_T}no" >&6; }
5398 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 +$as_echo "no" >&6; }
5403 @@ -4107,10 +4724,10 @@
5404 ac_ct_RANLIB=$RANLIB
5405 # Extract the first word of "ranlib", so it can be a program name with args.
5406 set dummy ranlib; ac_word=$2
5407 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5410 - echo $ECHO_N "(cached) $ECHO_C" >&6
5411 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 +$as_echo_n "checking for $ac_word... " >&6; }
5413 +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5414 + $as_echo_n "(cached) " >&6
5416 if test -n "$ac_ct_RANLIB"; then
5417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5418 @@ -4120,25 +4737,25 @@
5421 test -z "$as_dir" && as_dir=.
5422 - for ac_exec_ext in '' $ac_executable_extensions; do
5423 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 + for ac_exec_ext in '' $ac_executable_extensions; do
5425 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_ac_ct_RANLIB="ranlib"
5427 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5439 if test -n "$ac_ct_RANLIB"; then
5440 - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5441 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5442 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5443 +$as_echo "$ac_ct_RANLIB" >&6; }
5445 - { echo "$as_me:$LINENO: result: no" >&5
5446 -echo "${ECHO_T}no" >&6; }
5447 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 +$as_echo "no" >&6; }
5451 if test "x$ac_ct_RANLIB" = x; then
5452 @@ -4146,12 +4763,8 @@
5454 case $cross_compiling:$ac_tool_warned in
5456 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5457 -whose name does not start with the host triplet. If you think this
5458 -configuration is useful to you, please write to autoconf@gnu.org." >&5
5459 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5460 -whose name does not start with the host triplet. If you think this
5461 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5462 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5466 RANLIB=$ac_ct_RANLIB
5467 @@ -4165,10 +4778,10 @@
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5473 -if test "${ac_cv_prog_AR+set}" = set; then
5474 - echo $ECHO_N "(cached) $ECHO_C" >&6
5475 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 +$as_echo_n "checking for $ac_word... " >&6; }
5477 +if ${ac_cv_prog_AR+:} false; then :
5478 + $as_echo_n "(cached) " >&6
5480 if test -n "$AR"; then
5481 ac_cv_prog_AR="$AR" # Let the user override the test.
5482 @@ -4178,25 +4791,25 @@
5485 test -z "$as_dir" && as_dir=.
5486 - for ac_exec_ext in '' $ac_executable_extensions; do
5487 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 + for ac_exec_ext in '' $ac_executable_extensions; do
5489 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_AR="$ac_prog"
5491 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 if test -n "$AR"; then
5504 - { echo "$as_me:$LINENO: result: $AR" >&5
5505 -echo "${ECHO_T}$AR" >&6; }
5506 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5507 +$as_echo "$AR" >&6; }
5509 - { echo "$as_me:$LINENO: result: no" >&5
5510 -echo "${ECHO_T}no" >&6; }
5511 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 +$as_echo "no" >&6; }
5516 @@ -4208,10 +4821,10 @@
5518 # Extract the first word of "svnversion", so it can be a program name with args.
5519 set dummy svnversion; ac_word=$2
5520 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 -if test "${ac_cv_prog_SVNVERSION+set}" = set; then
5523 - echo $ECHO_N "(cached) $ECHO_C" >&6
5524 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 +$as_echo_n "checking for $ac_word... " >&6; }
5526 +if ${ac_cv_prog_SVNVERSION+:} false; then :
5527 + $as_echo_n "(cached) " >&6
5529 if test -n "$SVNVERSION"; then
5530 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5531 @@ -4221,14 +4834,14 @@
5534 test -z "$as_dir" && as_dir=.
5535 - for ac_exec_ext in '' $ac_executable_extensions; do
5536 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 + for ac_exec_ext in '' $ac_executable_extensions; do
5538 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_SVNVERSION="found"
5540 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
5550 @@ -4236,11 +4849,11 @@
5552 SVNVERSION=$ac_cv_prog_SVNVERSION
5553 if test -n "$SVNVERSION"; then
5554 - { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
5555 -echo "${ECHO_T}$SVNVERSION" >&6; }
5556 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5557 +$as_echo "$SVNVERSION" >&6; }
5559 - { echo "$as_me:$LINENO: result: no" >&5
5560 -echo "${ECHO_T}no" >&6; }
5561 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 +$as_echo "no" >&6; }
5566 @@ -4276,9 +4889,7 @@
5569 if test -z "$ac_aux_dir"; then
5570 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5571 -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5572 - { (exit 1); exit 1; }; }
5573 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5576 # These three variables are undocumented and unsupported,
5577 @@ -4303,22 +4914,23 @@
5578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5579 # OS/2's system install, which has a completely different semantic
5580 # ./install, which can be erroneously created by make from ./install.sh.
5581 -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5582 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5583 +# Reject install programs that cannot install multiple files.
5584 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5585 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
5586 if test -z "$INSTALL"; then
5587 -if test "${ac_cv_path_install+set}" = set; then
5588 - echo $ECHO_N "(cached) $ECHO_C" >&6
5589 +if ${ac_cv_path_install+:} false; then :
5590 + $as_echo_n "(cached) " >&6
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 - # Account for people who put trailing slashes in PATH elements.
5599 - ./ | .// | /cC/* | \
5600 + # Account for people who put trailing slashes in PATH elements.
5601 +case $as_dir/ in #((
5602 + ./ | .// | /[cC]/* | \
5603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5604 - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5605 + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5608 # OSF1 and SCO ODT 3.0 have their own names for install.
5609 @@ -4326,7 +4938,7 @@
5611 for ac_prog in ginstall scoinst install; do
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5614 + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5615 if test $ac_prog = install &&
5616 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5617 # AIX install. It has an incompatible calling convention.
5618 @@ -4336,17 +4948,29 @@
5619 # program-specific install script used by HP pwplus--don't use.
5622 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5624 + rm -rf conftest.one conftest.two conftest.dir
5625 + echo one > conftest.one
5626 + echo two > conftest.two
5627 + mkdir conftest.dir
5628 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5629 + test -s conftest.one && test -s conftest.two &&
5630 + test -s conftest.dir/conftest.one &&
5631 + test -s conftest.dir/conftest.two
5633 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5647 +rm -rf conftest.one conftest.two conftest.dir
5650 if test "${ac_cv_path_install+set}" = set; then
5651 @@ -4359,8 +4983,8 @@
5652 INSTALL=$ac_install_sh
5655 -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5656 -echo "${ECHO_T}$INSTALL" >&6; }
5657 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5658 +$as_echo "$INSTALL" >&6; }
5660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5661 # It thinks the first close brace ends the variable substitution.
5662 @@ -4383,28 +5007,26 @@
5665 # Check for --with-pydebug
5666 -{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5667 -echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
5668 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5669 +$as_echo_n "checking for --with-pydebug... " >&6; }
5671 # Check whether --with-pydebug was given.
5672 -if test "${with_pydebug+set}" = set; then
5673 +if test "${with_pydebug+set}" = set; then :
5674 withval=$with_pydebug;
5675 if test "$withval" != no
5678 -cat >>confdefs.h <<\_ACEOF
5681 +$as_echo "#define Py_DEBUG 1" >>confdefs.h
5683 - { echo "$as_me:$LINENO: result: yes" >&5
5684 -echo "${ECHO_T}yes" >&6; };
5685 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 +$as_echo "yes" >&6; };
5688 -else { echo "$as_me:$LINENO: result: no" >&5
5689 -echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
5690 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 +$as_echo "no" >&6; }; Py_DEBUG='false'
5694 - { echo "$as_me:$LINENO: result: no" >&5
5695 -echo "${ECHO_T}no" >&6; }
5696 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 +$as_echo "no" >&6; }
5701 @@ -4477,57 +5099,29 @@
5702 # Python violates C99 rules, by casting between incompatible
5703 # pointer types. GCC may generate bad code as a result of that,
5704 # so use -fno-strict-aliasing if supported.
5705 - { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5706 -echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
5707 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
5708 +$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5710 CC="$CC -fno-strict-aliasing"
5711 - if test "$cross_compiling" = yes; then
5712 + if test "$cross_compiling" = yes; then :
5713 ac_cv_no_strict_aliasing_ok=no
5715 - cat >conftest.$ac_ext <<_ACEOF
5718 -cat confdefs.h >>conftest.$ac_ext
5719 -cat >>conftest.$ac_ext <<_ACEOF
5720 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int main() { return 0; }
5724 -rm -f conftest$ac_exeext
5725 -if { (ac_try="$ac_link"
5726 -case "(($ac_try" in
5727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 - *) ac_try_echo=$ac_try;;
5730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 - (eval "$ac_link") 2>&5
5733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 - { (case "(($ac_try" in
5736 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 - *) ac_try_echo=$ac_try;;
5739 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 - (eval "$ac_try") 2>&5
5742 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 - (exit $ac_status); }; }; then
5744 +if ac_fn_c_try_run "$LINENO"; then :
5745 ac_cv_no_strict_aliasing_ok=yes
5747 - echo "$as_me: program exited with status $ac_status" >&5
5748 -echo "$as_me: failed program was:" >&5
5749 -sed 's/^/| /' conftest.$ac_ext >&5
5751 -( exit $ac_status )
5752 -ac_cv_no_strict_aliasing_ok=no
5753 + ac_cv_no_strict_aliasing_ok=no
5755 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5756 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5757 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5762 - { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5763 -echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
5764 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
5765 +$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5766 if test $ac_cv_no_strict_aliasing_ok = yes
5768 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5769 @@ -4582,62 +5176,34 @@
5770 ac_cv_opt_olimit_ok=no
5773 -{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5774 -echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
5775 -if test "${ac_cv_opt_olimit_ok+set}" = set; then
5776 - echo $ECHO_N "(cached) $ECHO_C" >&6
5777 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5778 +$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5779 +if ${ac_cv_opt_olimit_ok+:} false; then :
5780 + $as_echo_n "(cached) " >&6
5783 CC="$CC -OPT:Olimit=0"
5784 -if test "$cross_compiling" = yes; then
5785 +if test "$cross_compiling" = yes; then :
5786 ac_cv_opt_olimit_ok=no
5788 - cat >conftest.$ac_ext <<_ACEOF
5791 -cat confdefs.h >>conftest.$ac_ext
5792 -cat >>conftest.$ac_ext <<_ACEOF
5793 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 int main() { return 0; }
5797 -rm -f conftest$ac_exeext
5798 -if { (ac_try="$ac_link"
5799 -case "(($ac_try" in
5800 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 - *) ac_try_echo=$ac_try;;
5803 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 - (eval "$ac_link") 2>&5
5806 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5808 - { (case "(($ac_try" in
5809 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 - *) ac_try_echo=$ac_try;;
5812 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 - (eval "$ac_try") 2>&5
5815 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 - (exit $ac_status); }; }; then
5817 +if ac_fn_c_try_run "$LINENO"; then :
5818 ac_cv_opt_olimit_ok=yes
5820 - echo "$as_me: program exited with status $ac_status" >&5
5821 -echo "$as_me: failed program was:" >&5
5822 -sed 's/^/| /' conftest.$ac_ext >&5
5824 -( exit $ac_status )
5825 -ac_cv_opt_olimit_ok=no
5826 + ac_cv_opt_olimit_ok=no
5828 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5829 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5830 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5837 -{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5838 -echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
5839 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5840 +$as_echo "$ac_cv_opt_olimit_ok" >&6; }
5841 if test $ac_cv_opt_olimit_ok = yes; then
5842 case $ac_sys_system in
5843 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5844 @@ -4650,62 +5216,34 @@
5848 - { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5849 -echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
5850 - if test "${ac_cv_olimit_ok+set}" = set; then
5851 - echo $ECHO_N "(cached) $ECHO_C" >&6
5852 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5853 +$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5854 + if ${ac_cv_olimit_ok+:} false; then :
5855 + $as_echo_n "(cached) " >&6
5858 CC="$CC -Olimit 1500"
5859 - if test "$cross_compiling" = yes; then
5860 + if test "$cross_compiling" = yes; then :
5863 - cat >conftest.$ac_ext <<_ACEOF
5866 -cat confdefs.h >>conftest.$ac_ext
5867 -cat >>conftest.$ac_ext <<_ACEOF
5868 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int main() { return 0; }
5872 -rm -f conftest$ac_exeext
5873 -if { (ac_try="$ac_link"
5874 -case "(($ac_try" in
5875 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 - *) ac_try_echo=$ac_try;;
5878 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 - (eval "$ac_link") 2>&5
5881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5883 - { (case "(($ac_try" in
5884 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 - *) ac_try_echo=$ac_try;;
5887 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 - (eval "$ac_try") 2>&5
5890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 - (exit $ac_status); }; }; then
5892 +if ac_fn_c_try_run "$LINENO"; then :
5895 - echo "$as_me: program exited with status $ac_status" >&5
5896 -echo "$as_me: failed program was:" >&5
5897 -sed 's/^/| /' conftest.$ac_ext >&5
5899 -( exit $ac_status )
5901 + ac_cv_olimit_ok=no
5903 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5904 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5905 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5912 - { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5913 -echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
5914 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5915 +$as_echo "$ac_cv_olimit_ok" >&6; }
5916 if test $ac_cv_olimit_ok = yes; then
5917 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5919 @@ -4716,19 +5254,15 @@
5920 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5921 # So we have to see first whether pthreads are available without
5922 # options before we can check whether -Kpthread improves anything.
5923 -{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5924 -echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5925 -if test "${ac_cv_pthread_is_default+set}" = set; then
5926 - echo $ECHO_N "(cached) $ECHO_C" >&6
5927 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
5928 +$as_echo_n "checking whether pthreads are available without options... " >&6; }
5929 +if ${ac_cv_pthread_is_default+:} false; then :
5930 + $as_echo_n "(cached) " >&6
5932 - if test "$cross_compiling" = yes; then
5933 + if test "$cross_compiling" = yes; then :
5934 ac_cv_pthread_is_default=no
5936 - cat >conftest.$ac_ext <<_ACEOF
5939 -cat confdefs.h >>conftest.$ac_ext
5940 -cat >>conftest.$ac_ext <<_ACEOF
5941 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5944 #include <pthread.h>
5945 @@ -4744,48 +5278,24 @@
5949 -rm -f conftest$ac_exeext
5950 -if { (ac_try="$ac_link"
5951 -case "(($ac_try" in
5952 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 - *) ac_try_echo=$ac_try;;
5955 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 - (eval "$ac_link") 2>&5
5958 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5960 - { (case "(($ac_try" in
5961 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 - *) ac_try_echo=$ac_try;;
5964 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 - (eval "$ac_try") 2>&5
5967 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 - (exit $ac_status); }; }; then
5969 +if ac_fn_c_try_run "$LINENO"; then :
5971 ac_cv_pthread_is_default=yes
5976 - echo "$as_me: program exited with status $ac_status" >&5
5977 -echo "$as_me: failed program was:" >&5
5978 -sed 's/^/| /' conftest.$ac_ext >&5
5980 -( exit $ac_status )
5981 -ac_cv_pthread_is_default=no
5982 + ac_cv_pthread_is_default=no
5984 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5986 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5993 -{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5994 -echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
5996 +$as_echo "$ac_cv_pthread_is_default" >&6; }
5999 if test $ac_cv_pthread_is_default = yes
6000 @@ -4797,21 +5307,17 @@
6001 # Some compilers won't report that they do not support -Kpthread,
6002 # so we need to run a program to see whether it really made the
6003 # function available.
6004 -{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
6005 -echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
6006 -if test "${ac_cv_kpthread+set}" = set; then
6007 - echo $ECHO_N "(cached) $ECHO_C" >&6
6008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6009 +$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6010 +if ${ac_cv_kpthread+:} false; then :
6011 + $as_echo_n "(cached) " >&6
6015 -if test "$cross_compiling" = yes; then
6016 +if test "$cross_compiling" = yes; then :
6019 - cat >conftest.$ac_ext <<_ACEOF
6022 -cat confdefs.h >>conftest.$ac_ext
6023 -cat >>conftest.$ac_ext <<_ACEOF
6024 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6027 #include <pthread.h>
6028 @@ -4827,44 +5333,20 @@
6032 -rm -f conftest$ac_exeext
6033 -if { (ac_try="$ac_link"
6034 -case "(($ac_try" in
6035 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 - *) ac_try_echo=$ac_try;;
6038 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 - (eval "$ac_link") 2>&5
6041 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043 - { (case "(($ac_try" in
6044 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 - *) ac_try_echo=$ac_try;;
6047 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 - (eval "$ac_try") 2>&5
6050 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 - (exit $ac_status); }; }; then
6052 +if ac_fn_c_try_run "$LINENO"; then :
6055 - echo "$as_me: program exited with status $ac_status" >&5
6056 -echo "$as_me: failed program was:" >&5
6057 -sed 's/^/| /' conftest.$ac_ext >&5
6059 -( exit $ac_status )
6063 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6065 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6072 -{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
6073 -echo "${ECHO_T}$ac_cv_kpthread" >&6; }
6074 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6075 +$as_echo "$ac_cv_kpthread" >&6; }
6078 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6079 @@ -4874,21 +5356,17 @@
6080 # Some compilers won't report that they do not support -Kthread,
6081 # so we need to run a program to see whether it really made the
6082 # function available.
6083 -{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
6084 -echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
6085 -if test "${ac_cv_kthread+set}" = set; then
6086 - echo $ECHO_N "(cached) $ECHO_C" >&6
6087 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6088 +$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6089 +if ${ac_cv_kthread+:} false; then :
6090 + $as_echo_n "(cached) " >&6
6094 -if test "$cross_compiling" = yes; then
6095 +if test "$cross_compiling" = yes; then :
6098 - cat >conftest.$ac_ext <<_ACEOF
6101 -cat confdefs.h >>conftest.$ac_ext
6102 -cat >>conftest.$ac_ext <<_ACEOF
6103 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6106 #include <pthread.h>
6107 @@ -4904,44 +5382,20 @@
6111 -rm -f conftest$ac_exeext
6112 -if { (ac_try="$ac_link"
6113 -case "(($ac_try" in
6114 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 - *) ac_try_echo=$ac_try;;
6117 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 - (eval "$ac_link") 2>&5
6120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6122 - { (case "(($ac_try" in
6123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 - *) ac_try_echo=$ac_try;;
6126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 - (eval "$ac_try") 2>&5
6129 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 - (exit $ac_status); }; }; then
6131 +if ac_fn_c_try_run "$LINENO"; then :
6134 - echo "$as_me: program exited with status $ac_status" >&5
6135 -echo "$as_me: failed program was:" >&5
6136 -sed 's/^/| /' conftest.$ac_ext >&5
6138 -( exit $ac_status )
6142 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6143 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6151 -{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
6152 -echo "${ECHO_T}$ac_cv_kthread" >&6; }
6153 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6154 +$as_echo "$ac_cv_kthread" >&6; }
6157 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6158 @@ -4951,21 +5405,17 @@
6159 # Some compilers won't report that they do not support -pthread,
6160 # so we need to run a program to see whether it really made the
6161 # function available.
6162 -{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
6163 -echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
6164 -if test "${ac_cv_thread+set}" = set; then
6165 - echo $ECHO_N "(cached) $ECHO_C" >&6
6166 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6167 +$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6168 +if ${ac_cv_thread+:} false; then :
6169 + $as_echo_n "(cached) " >&6
6173 -if test "$cross_compiling" = yes; then
6174 +if test "$cross_compiling" = yes; then :
6177 - cat >conftest.$ac_ext <<_ACEOF
6180 -cat confdefs.h >>conftest.$ac_ext
6181 -cat >>conftest.$ac_ext <<_ACEOF
6182 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6185 #include <pthread.h>
6186 @@ -4981,44 +5431,20 @@
6190 -rm -f conftest$ac_exeext
6191 -if { (ac_try="$ac_link"
6192 -case "(($ac_try" in
6193 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 - *) ac_try_echo=$ac_try;;
6196 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 - (eval "$ac_link") 2>&5
6199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6201 - { (case "(($ac_try" in
6202 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 - *) ac_try_echo=$ac_try;;
6205 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 - (eval "$ac_try") 2>&5
6208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 - (exit $ac_status); }; }; then
6210 +if ac_fn_c_try_run "$LINENO"; then :
6213 - echo "$as_me: program exited with status $ac_status" >&5
6214 -echo "$as_me: failed program was:" >&5
6215 -sed 's/^/| /' conftest.$ac_ext >&5
6217 -( exit $ac_status )
6221 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6223 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6230 -{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
6231 -echo "${ECHO_T}$ac_cv_pthread" >&6; }
6232 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6233 +$as_echo "$ac_cv_pthread" >&6; }
6236 # If we have set a CC compiler flag for thread support then
6237 @@ -5026,8 +5452,8 @@
6241 -{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
6242 -echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
6243 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6244 +$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
6247 if test "$ac_cv_kpthread" = "yes"
6248 @@ -5057,23 +5483,19 @@
6252 -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
6253 -echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
6254 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6255 +$as_echo "$ac_cv_cxx_thread" >&6; }
6260 # checks for header files
6261 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6262 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6263 -if test "${ac_cv_header_stdc+set}" = set; then
6264 - echo $ECHO_N "(cached) $ECHO_C" >&6
6265 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6266 +$as_echo_n "checking for ANSI C header files... " >&6; }
6267 +if ${ac_cv_header_stdc+:} false; then :
6268 + $as_echo_n "(cached) " >&6
6270 - cat >conftest.$ac_ext <<_ACEOF
6273 -cat confdefs.h >>conftest.$ac_ext
6274 -cat >>conftest.$ac_ext <<_ACEOF
6275 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6279 @@ -5088,47 +5510,23 @@
6283 -rm -f conftest.$ac_objext
6284 -if { (ac_try="$ac_compile"
6285 -case "(($ac_try" in
6286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 - *) ac_try_echo=$ac_try;;
6289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 - (eval "$ac_compile") 2>conftest.er1
6292 - grep -v '^ *+' conftest.er1 >conftest.err
6293 - rm -f conftest.er1
6294 - cat conftest.err >&5
6295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 - (exit $ac_status); } && {
6297 - test -z "$ac_c_werror_flag" ||
6298 - test ! -s conftest.err
6299 - } && test -s conftest.$ac_objext; then
6300 +if ac_fn_c_try_compile "$LINENO"; then :
6301 ac_cv_header_stdc=yes
6303 - echo "$as_me: failed program was:" >&5
6304 -sed 's/^/| /' conftest.$ac_ext >&5
6306 - ac_cv_header_stdc=no
6307 + ac_cv_header_stdc=no
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 if test $ac_cv_header_stdc = yes; then
6313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6314 - cat >conftest.$ac_ext <<_ACEOF
6317 -cat confdefs.h >>conftest.$ac_ext
6318 -cat >>conftest.$ac_ext <<_ACEOF
6319 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 - $EGREP "memchr" >/dev/null 2>&1; then
6327 + $EGREP "memchr" >/dev/null 2>&1; then :
6330 ac_cv_header_stdc=no
6332 @@ -5138,18 +5536,14 @@
6334 if test $ac_cv_header_stdc = yes; then
6335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336 - cat >conftest.$ac_ext <<_ACEOF
6339 -cat confdefs.h >>conftest.$ac_ext
6340 -cat >>conftest.$ac_ext <<_ACEOF
6341 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 - $EGREP "free" >/dev/null 2>&1; then
6349 + $EGREP "free" >/dev/null 2>&1; then :
6352 ac_cv_header_stdc=no
6354 @@ -5159,14 +5553,10 @@
6356 if test $ac_cv_header_stdc = yes; then
6357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358 - if test "$cross_compiling" = yes; then
6359 + if test "$cross_compiling" = yes; then :
6362 - cat >conftest.$ac_ext <<_ACEOF
6365 -cat confdefs.h >>conftest.$ac_ext
6366 -cat >>conftest.$ac_ext <<_ACEOF
6367 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6371 @@ -5193,10312 +5583,1501 @@
6375 -rm -f conftest$ac_exeext
6376 -if { (ac_try="$ac_link"
6377 -case "(($ac_try" in
6378 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 - *) ac_try_echo=$ac_try;;
6381 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 - (eval "$ac_link") 2>&5
6384 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6386 - { (case "(($ac_try" in
6387 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 - *) ac_try_echo=$ac_try;;
6390 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 - (eval "$ac_try") 2>&5
6393 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 - (exit $ac_status); }; }; then
6397 - echo "$as_me: program exited with status $ac_status" >&5
6398 -echo "$as_me: failed program was:" >&5
6399 -sed 's/^/| /' conftest.$ac_ext >&5
6400 +if ac_fn_c_try_run "$LINENO"; then :
6402 -( exit $ac_status )
6403 -ac_cv_header_stdc=no
6405 + ac_cv_header_stdc=no
6407 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6409 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6415 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6416 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6417 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6418 +$as_echo "$ac_cv_header_stdc" >&6; }
6419 if test $ac_cv_header_stdc = yes; then
6421 -cat >>confdefs.h <<\_ACEOF
6422 -#define STDC_HEADERS 1
6424 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6428 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6435 +for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6437 +io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6438 +shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6440 +sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
6442 +sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6444 +sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6445 +sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6446 +bluetooth/bluetooth.h
6448 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6450 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6451 + cat >>confdefs.h <<_ACEOF
6452 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6460 - inttypes.h stdint.h unistd.h
6462 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6465 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6466 - echo $ECHO_N "(cached) $ECHO_C" >&6
6467 +ac_header_dirent=no
6468 +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6469 + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6470 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6471 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6472 +if eval \${$as_ac_Header+:} false; then :
6473 + $as_echo_n "(cached) " >&6
6475 - cat >conftest.$ac_ext <<_ACEOF
6478 -cat confdefs.h >>conftest.$ac_ext
6479 -cat >>conftest.$ac_ext <<_ACEOF
6480 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 -$ac_includes_default
6483 +#include <sys/types.h>
6486 -#include <$ac_header>
6496 -rm -f conftest.$ac_objext
6497 -if { (ac_try="$ac_compile"
6498 -case "(($ac_try" in
6499 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 - *) ac_try_echo=$ac_try;;
6502 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 - (eval "$ac_compile") 2>conftest.er1
6505 - grep -v '^ *+' conftest.er1 >conftest.err
6506 - rm -f conftest.er1
6507 - cat conftest.err >&5
6508 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 - (exit $ac_status); } && {
6510 - test -z "$ac_c_werror_flag" ||
6511 - test ! -s conftest.err
6512 - } && test -s conftest.$ac_objext; then
6513 +if ac_fn_c_try_compile "$LINENO"; then :
6514 eval "$as_ac_Header=yes"
6516 - echo "$as_me: failed program was:" >&5
6517 -sed 's/^/| /' conftest.$ac_ext >&5
6519 - eval "$as_ac_Header=no"
6520 + eval "$as_ac_Header=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 -ac_res=`eval echo '${'$as_ac_Header'}'`
6526 - { echo "$as_me:$LINENO: result: $ac_res" >&5
6527 -echo "${ECHO_T}$ac_res" >&6; }
6528 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 +eval ac_res=\$$as_ac_Header
6530 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6531 +$as_echo "$ac_res" >&6; }
6532 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6533 cat >>confdefs.h <<_ACEOF
6534 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 +#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6538 +ac_header_dirent=$ac_hdr; break
6542 +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6543 +if test $ac_header_dirent = dirent.h; then
6544 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6545 +$as_echo_n "checking for library containing opendir... " >&6; }
6546 +if ${ac_cv_search_opendir+:} false; then :
6547 + $as_echo_n "(cached) " >&6
6549 + ac_func_search_save_LIBS=$LIBS
6550 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 +/* end confdefs.h. */
6553 +/* Override any GCC internal prototype to avoid an error.
6554 + Use char because int might match the return type of a GCC
6555 + builtin and then its argument prototype would still apply. */
6568 +for ac_lib in '' dir; do
6569 + if test -z "$ac_lib"; then
6570 + ac_res="none required"
6573 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6575 + if ac_fn_c_try_link "$LINENO"; then :
6576 + ac_cv_search_opendir=$ac_res
6578 +rm -f core conftest.err conftest.$ac_objext \
6579 + conftest$ac_exeext
6580 + if ${ac_cv_search_opendir+:} false; then :
6584 +if ${ac_cv_search_opendir+:} false; then :
6587 + ac_cv_search_opendir=no
6589 +rm conftest.$ac_ext
6590 +LIBS=$ac_func_search_save_LIBS
6592 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6593 +$as_echo "$ac_cv_search_opendir" >&6; }
6594 +ac_res=$ac_cv_search_opendir
6595 +if test "$ac_res" != no; then :
6596 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6601 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6602 +$as_echo_n "checking for library containing opendir... " >&6; }
6603 +if ${ac_cv_search_opendir+:} false; then :
6604 + $as_echo_n "(cached) " >&6
6606 + ac_func_search_save_LIBS=$LIBS
6607 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 +/* end confdefs.h. */
6610 +/* Override any GCC internal prototype to avoid an error.
6611 + Use char because int might match the return type of a GCC
6612 + builtin and then its argument prototype would still apply. */
6625 +for ac_lib in '' x; do
6626 + if test -z "$ac_lib"; then
6627 + ac_res="none required"
6630 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6632 + if ac_fn_c_try_link "$LINENO"; then :
6633 + ac_cv_search_opendir=$ac_res
6635 +rm -f core conftest.err conftest.$ac_objext \
6636 + conftest$ac_exeext
6637 + if ${ac_cv_search_opendir+:} false; then :
6641 +if ${ac_cv_search_opendir+:} false; then :
6644 + ac_cv_search_opendir=no
6646 +rm conftest.$ac_ext
6647 +LIBS=$ac_func_search_save_LIBS
6649 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6650 +$as_echo "$ac_cv_search_opendir" >&6; }
6651 +ac_res=$ac_cv_search_opendir
6652 +if test "$ac_res" != no; then :
6653 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6659 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6660 +$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6661 +if ${ac_cv_header_sys_types_h_makedev+:} false; then :
6662 + $as_echo_n "(cached) " >&6
6664 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 +/* end confdefs.h. */
6666 +#include <sys/types.h>
6670 +return makedev(0, 0);
6675 +if ac_fn_c_try_link "$LINENO"; then :
6676 + ac_cv_header_sys_types_h_makedev=yes
6678 + ac_cv_header_sys_types_h_makedev=no
6680 +rm -f core conftest.err conftest.$ac_objext \
6681 + conftest$ac_exeext conftest.$ac_ext
6684 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6685 +$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6687 +if test $ac_cv_header_sys_types_h_makedev = no; then
6688 +ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6689 +if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
6691 +$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6697 + if test $ac_cv_header_sys_mkdev_h = no; then
6698 + ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6699 +if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
6701 +$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6710 +# On Solaris, term.h requires curses.h
6711 +for ac_header in term.h
6713 + ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
6714 +#ifdef HAVE_CURSES_H
6715 +#include <curses.h>
6719 +if test "x$ac_cv_header_term_h" = xyes; then :
6720 + cat >>confdefs.h <<_ACEOF
6721 +#define HAVE_TERM_H 1
6729 +# On Linux, netlink.h requires asm/types.h
6730 +for ac_header in linux/netlink.h
6732 + ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
6733 +#ifdef HAVE_ASM_TYPES_H
6734 +#include <asm/types.h>
6736 +#ifdef HAVE_SYS_SOCKET_H
6737 +#include <sys/socket.h>
6741 +if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
6742 + cat >>confdefs.h <<_ACEOF
6743 +#define HAVE_LINUX_NETLINK_H 1
6751 +# checks for typedefs
6753 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
6754 +$as_echo_n "checking for clock_t in time.h... " >&6; }
6755 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 +/* end confdefs.h. */
6760 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 + $EGREP "clock_t" >/dev/null 2>&1; then :
6762 + was_it_defined=yes
6766 +$as_echo "#define clock_t long" >>confdefs.h
6772 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
6773 +$as_echo "$was_it_defined" >&6; }
6775 +# Check whether using makedev requires defining _OSF_SOURCE
6776 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
6777 +$as_echo_n "checking for makedev... " >&6; }
6778 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 +/* end confdefs.h. */
6780 +#include <sys/types.h>
6789 +if ac_fn_c_try_link "$LINENO"; then :
6790 + ac_cv_has_makedev=yes
6792 + ac_cv_has_makedev=no
6794 +rm -f core conftest.err conftest.$ac_objext \
6795 + conftest$ac_exeext conftest.$ac_ext
6796 +if test "$ac_cv_has_makedev" = "no"; then
6797 + # we didn't link, try if _OSF_SOURCE will allow us to link
6798 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 +/* end confdefs.h. */
6801 +#define _OSF_SOURCE 1
6802 +#include <sys/types.h>
6812 +if ac_fn_c_try_link "$LINENO"; then :
6813 + ac_cv_has_makedev=yes
6815 + ac_cv_has_makedev=no
6817 +rm -f core conftest.err conftest.$ac_objext \
6818 + conftest$ac_exeext conftest.$ac_ext
6819 + if test "$ac_cv_has_makedev" = "yes"; then
6821 +$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
6825 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
6826 +$as_echo "$ac_cv_has_makedev" >&6; }
6827 +if test "$ac_cv_has_makedev" = "yes"; then
6829 +$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
6833 +# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6834 +# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6835 +# defined, but the compiler does not support pragma redefine_extname,
6836 +# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6837 +# structures (such as rlimit64) without declaring them. As a
6838 +# work-around, disable LFS on such configurations
6841 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
6842 +$as_echo_n "checking Solaris LFS bug... " >&6; }
6843 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 +/* end confdefs.h. */
6846 +#define _LARGEFILE_SOURCE 1
6847 +#define _FILE_OFFSET_BITS 64
6848 +#include <sys/resource.h>
6852 -for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6854 -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6855 -shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6857 -sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
6859 -sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6861 -sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6862 -sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6863 -bluetooth/bluetooth.h
6865 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6866 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867 - { echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6869 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6870 - echo $ECHO_N "(cached) $ECHO_C" >&6
6872 -ac_res=`eval echo '${'$as_ac_Header'}'`
6873 - { echo "$as_me:$LINENO: result: $ac_res" >&5
6874 -echo "${ECHO_T}$ac_res" >&6; }
6876 - # Is the header compilable?
6877 -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6878 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6879 -cat >conftest.$ac_ext <<_ACEOF
6882 -cat confdefs.h >>conftest.$ac_ext
6883 -cat >>conftest.$ac_ext <<_ACEOF
6884 -/* end confdefs.h. */
6885 -$ac_includes_default
6886 -#include <$ac_header>
6895 -rm -f conftest.$ac_objext
6896 -if { (ac_try="$ac_compile"
6897 -case "(($ac_try" in
6898 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 - *) ac_try_echo=$ac_try;;
6901 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 - (eval "$ac_compile") 2>conftest.er1
6904 - grep -v '^ *+' conftest.er1 >conftest.err
6905 - rm -f conftest.er1
6906 - cat conftest.err >&5
6907 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 - (exit $ac_status); } && {
6909 - test -z "$ac_c_werror_flag" ||
6910 - test ! -s conftest.err
6911 - } && test -s conftest.$ac_objext; then
6912 - ac_header_compiler=yes
6913 +if ac_fn_c_try_compile "$LINENO"; then :
6916 - echo "$as_me: failed program was:" >&5
6917 -sed 's/^/| /' conftest.$ac_ext >&5
6919 - ac_header_compiler=no
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6925 -echo "${ECHO_T}$ac_header_compiler" >&6; }
6926 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
6927 +$as_echo "$sol_lfs_bug" >&6; }
6928 +if test "$sol_lfs_bug" = "yes"; then
6932 -# Is the header present?
6933 -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6934 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6935 -cat >conftest.$ac_ext <<_ACEOF
6938 -cat confdefs.h >>conftest.$ac_ext
6939 -cat >>conftest.$ac_ext <<_ACEOF
6940 -/* end confdefs.h. */
6941 -#include <$ac_header>
6943 -if { (ac_try="$ac_cpp conftest.$ac_ext"
6944 -case "(($ac_try" in
6945 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 - *) ac_try_echo=$ac_try;;
6948 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6951 - grep -v '^ *+' conftest.er1 >conftest.err
6952 - rm -f conftest.er1
6953 - cat conftest.err >&5
6954 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 - (exit $ac_status); } >/dev/null && {
6956 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6957 - test ! -s conftest.err
6959 - ac_header_preproc=yes
6961 - echo "$as_me: failed program was:" >&5
6962 -sed 's/^/| /' conftest.$ac_ext >&5
6963 +if test "$use_lfs" = "yes"; then
6964 +# Two defines needed to enable largefile support on various platforms
6965 +# These may affect some typedefs
6967 +$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
6970 +$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6972 - ac_header_preproc=no
6975 -rm -f conftest.err conftest.$ac_ext
6976 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6977 -echo "${ECHO_T}$ac_header_preproc" >&6; }
6978 +# Add some code to confdefs.h so that the test for off_t works on SCO
6979 +cat >> confdefs.h <<\EOF
6980 +#if defined(SCO_DS)
6985 +# Type availability checks
6986 +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6987 +if test "x$ac_cv_type_mode_t" = xyes; then :
6989 -# So? What about this header?
6990 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6992 - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6993 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6994 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6995 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6996 - ac_header_preproc=yes
6999 - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7000 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7001 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7002 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7003 - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7004 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7005 - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7006 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7007 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7009 - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7010 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7012 -## ------------------------------------------------ ##
7013 -## Report this to http://www.python.org/python-bugs ##
7014 -## ------------------------------------------------ ##
7016 - ) | sed "s/^/$as_me: WARNING: /" >&2
7019 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7021 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7022 - echo $ECHO_N "(cached) $ECHO_C" >&6
7024 - eval "$as_ac_Header=\$ac_header_preproc"
7026 -ac_res=`eval echo '${'$as_ac_Header'}'`
7027 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7028 -echo "${ECHO_T}$ac_res" >&6; }
7031 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7032 - cat >>confdefs.h <<_ACEOF
7033 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034 +cat >>confdefs.h <<_ACEOF
7042 +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7043 +if test "x$ac_cv_type_off_t" = xyes; then :
7047 +cat >>confdefs.h <<_ACEOF
7048 +#define off_t long int
7053 +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7054 +if test "x$ac_cv_type_pid_t" = xyes; then :
7056 -ac_header_dirent=no
7057 -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7058 - as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7059 -{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7060 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7061 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7062 - echo $ECHO_N "(cached) $ECHO_C" >&6
7064 - cat >conftest.$ac_ext <<_ACEOF
7067 +cat >>confdefs.h <<_ACEOF
7070 -cat confdefs.h >>conftest.$ac_ext
7071 -cat >>conftest.$ac_ext <<_ACEOF
7075 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7076 +$as_echo_n "checking return type of signal handlers... " >&6; }
7077 +if ${ac_cv_type_signal+:} false; then :
7078 + $as_echo_n "(cached) " >&6
7080 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <sys/types.h>
7084 +#include <signal.h>
7091 +return *(signal (0, 0)) (0) == 1;
7096 -rm -f conftest.$ac_objext
7097 -if { (ac_try="$ac_compile"
7098 -case "(($ac_try" in
7099 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 - *) ac_try_echo=$ac_try;;
7102 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 - (eval "$ac_compile") 2>conftest.er1
7105 - grep -v '^ *+' conftest.er1 >conftest.err
7106 - rm -f conftest.er1
7107 - cat conftest.err >&5
7108 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 - (exit $ac_status); } && {
7110 - test -z "$ac_c_werror_flag" ||
7111 - test ! -s conftest.err
7112 - } && test -s conftest.$ac_objext; then
7113 - eval "$as_ac_Header=yes"
7114 +if ac_fn_c_try_compile "$LINENO"; then :
7115 + ac_cv_type_signal=int
7117 - echo "$as_me: failed program was:" >&5
7118 -sed 's/^/| /' conftest.$ac_ext >&5
7120 - eval "$as_ac_Header=no"
7121 + ac_cv_type_signal=void
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 -ac_res=`eval echo '${'$as_ac_Header'}'`
7127 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7128 -echo "${ECHO_T}$ac_res" >&6; }
7129 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7130 - cat >>confdefs.h <<_ACEOF
7131 -#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7132 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7133 +$as_echo "$ac_cv_type_signal" >&6; }
7135 +cat >>confdefs.h <<_ACEOF
7136 +#define RETSIGTYPE $ac_cv_type_signal
7139 -ac_header_dirent=$ac_hdr; break
7143 -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7144 -if test $ac_header_dirent = dirent.h; then
7145 - { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7146 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7147 -if test "${ac_cv_search_opendir+set}" = set; then
7148 - echo $ECHO_N "(cached) $ECHO_C" >&6
7149 +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7150 +if test "x$ac_cv_type_size_t" = xyes; then :
7153 - ac_func_search_save_LIBS=$LIBS
7154 -cat >conftest.$ac_ext <<_ACEOF
7157 +cat >>confdefs.h <<_ACEOF
7158 +#define size_t unsigned int
7160 -cat confdefs.h >>conftest.$ac_ext
7161 -cat >>conftest.$ac_ext <<_ACEOF
7165 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7166 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7167 +if ${ac_cv_type_uid_t+:} false; then :
7168 + $as_echo_n "(cached) " >&6
7170 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 +#include <sys/types.h>
7174 -/* Override any GCC internal prototype to avoid an error.
7175 - Use char because int might match the return type of a GCC
7176 - builtin and then its argument prototype would still apply. */
7189 -for ac_lib in '' dir; do
7190 - if test -z "$ac_lib"; then
7191 - ac_res="none required"
7194 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7196 - rm -f conftest.$ac_objext conftest$ac_exeext
7197 -if { (ac_try="$ac_link"
7198 -case "(($ac_try" in
7199 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 - *) ac_try_echo=$ac_try;;
7202 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 - (eval "$ac_link") 2>conftest.er1
7205 - grep -v '^ *+' conftest.er1 >conftest.err
7206 - rm -f conftest.er1
7207 - cat conftest.err >&5
7208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 - (exit $ac_status); } && {
7210 - test -z "$ac_c_werror_flag" ||
7211 - test ! -s conftest.err
7212 - } && test -s conftest$ac_exeext &&
7213 - $as_test_x conftest$ac_exeext; then
7214 - ac_cv_search_opendir=$ac_res
7215 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 + $EGREP "uid_t" >/dev/null 2>&1; then :
7217 + ac_cv_type_uid_t=yes
7219 - echo "$as_me: failed program was:" >&5
7220 -sed 's/^/| /' conftest.$ac_ext >&5
7221 + ac_cv_type_uid_t=no
7226 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7227 +$as_echo "$ac_cv_type_uid_t" >&6; }
7228 +if test $ac_cv_type_uid_t = no; then
7230 +$as_echo "#define uid_t int" >>confdefs.h
7233 +$as_echo "#define gid_t int" >>confdefs.h
7237 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7238 - conftest$ac_exeext
7239 - if test "${ac_cv_search_opendir+set}" = set; then
7241 +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7242 +if test "x$ac_cv_type_ssize_t" = xyes; then :
7244 +$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
7248 -if test "${ac_cv_search_opendir+set}" = set; then
7252 +# Sizes of various common basic types
7253 +# ANSI C requires sizeof(char) == 1, so no need to check it
7254 +# The cast to long int works around a bug in the HP C Compiler
7255 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7256 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7257 +# This bug is HP SR number 8606223364.
7258 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7259 +$as_echo_n "checking size of int... " >&6; }
7260 +if ${ac_cv_sizeof_int+:} false; then :
7261 + $as_echo_n "(cached) " >&6
7263 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7266 - ac_cv_search_opendir=no
7268 -rm conftest.$ac_ext
7269 -LIBS=$ac_func_search_save_LIBS
7270 + if test "$ac_cv_type_int" = yes; then
7271 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7272 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7273 +as_fn_error 77 "cannot compute sizeof (int)
7274 +See \`config.log' for more details" "$LINENO" 5; }
7276 + ac_cv_sizeof_int=0
7279 -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7280 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7281 -ac_res=$ac_cv_search_opendir
7282 -if test "$ac_res" != no; then
7283 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7286 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7287 +$as_echo "$ac_cv_sizeof_int" >&6; }
7290 - { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7291 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7292 -if test "${ac_cv_search_opendir+set}" = set; then
7293 - echo $ECHO_N "(cached) $ECHO_C" >&6
7295 - ac_func_search_save_LIBS=$LIBS
7296 -cat >conftest.$ac_ext <<_ACEOF
7299 -cat confdefs.h >>conftest.$ac_ext
7300 -cat >>conftest.$ac_ext <<_ACEOF
7301 -/* end confdefs.h. */
7303 -/* Override any GCC internal prototype to avoid an error.
7304 - Use char because int might match the return type of a GCC
7305 - builtin and then its argument prototype would still apply. */
7318 +cat >>confdefs.h <<_ACEOF
7319 +#define SIZEOF_INT $ac_cv_sizeof_int
7321 -for ac_lib in '' x; do
7322 - if test -z "$ac_lib"; then
7323 - ac_res="none required"
7326 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7328 - rm -f conftest.$ac_objext conftest$ac_exeext
7329 -if { (ac_try="$ac_link"
7330 -case "(($ac_try" in
7331 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 - *) ac_try_echo=$ac_try;;
7334 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 - (eval "$ac_link") 2>conftest.er1
7337 - grep -v '^ *+' conftest.er1 >conftest.err
7338 - rm -f conftest.er1
7339 - cat conftest.err >&5
7340 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 - (exit $ac_status); } && {
7342 - test -z "$ac_c_werror_flag" ||
7343 - test ! -s conftest.err
7344 - } && test -s conftest$ac_exeext &&
7345 - $as_test_x conftest$ac_exeext; then
7346 - ac_cv_search_opendir=$ac_res
7348 - echo "$as_me: failed program was:" >&5
7349 -sed 's/^/| /' conftest.$ac_ext >&5
7353 +# The cast to long int works around a bug in the HP C Compiler
7354 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7355 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7356 +# This bug is HP SR number 8606223364.
7357 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7358 +$as_echo_n "checking size of long... " >&6; }
7359 +if ${ac_cv_sizeof_long+:} false; then :
7360 + $as_echo_n "(cached) " >&6
7362 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7364 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7365 - conftest$ac_exeext
7366 - if test "${ac_cv_search_opendir+set}" = set; then
7370 -if test "${ac_cv_search_opendir+set}" = set; then
7373 - ac_cv_search_opendir=no
7375 -rm conftest.$ac_ext
7376 -LIBS=$ac_func_search_save_LIBS
7377 + if test "$ac_cv_type_long" = yes; then
7378 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7379 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7380 +as_fn_error 77 "cannot compute sizeof (long)
7381 +See \`config.log' for more details" "$LINENO" 5; }
7383 + ac_cv_sizeof_long=0
7386 -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7387 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7388 -ac_res=$ac_cv_search_opendir
7389 -if test "$ac_res" != no; then
7390 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7393 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7394 +$as_echo "$ac_cv_sizeof_long" >&6; }
7398 -{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7399 -echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
7400 -if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7401 - echo $ECHO_N "(cached) $ECHO_C" >&6
7403 - cat >conftest.$ac_ext <<_ACEOF
7406 -cat confdefs.h >>conftest.$ac_ext
7407 -cat >>conftest.$ac_ext <<_ACEOF
7408 -/* end confdefs.h. */
7409 -#include <sys/types.h>
7413 -return makedev(0, 0);
7418 +cat >>confdefs.h <<_ACEOF
7419 +#define SIZEOF_LONG $ac_cv_sizeof_long
7421 -rm -f conftest.$ac_objext conftest$ac_exeext
7422 -if { (ac_try="$ac_link"
7423 -case "(($ac_try" in
7424 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 - *) ac_try_echo=$ac_try;;
7427 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 - (eval "$ac_link") 2>conftest.er1
7430 - grep -v '^ *+' conftest.er1 >conftest.err
7431 - rm -f conftest.er1
7432 - cat conftest.err >&5
7433 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 - (exit $ac_status); } && {
7435 - test -z "$ac_c_werror_flag" ||
7436 - test ! -s conftest.err
7437 - } && test -s conftest$ac_exeext &&
7438 - $as_test_x conftest$ac_exeext; then
7439 - ac_cv_header_sys_types_h_makedev=yes
7441 - echo "$as_me: failed program was:" >&5
7442 -sed 's/^/| /' conftest.$ac_ext >&5
7444 - ac_cv_header_sys_types_h_makedev=no
7447 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 - conftest$ac_exeext conftest.$ac_ext
7449 +# The cast to long int works around a bug in the HP C Compiler
7450 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7451 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7452 +# This bug is HP SR number 8606223364.
7453 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7454 +$as_echo_n "checking size of void *... " >&6; }
7455 +if ${ac_cv_sizeof_void_p+:} false; then :
7456 + $as_echo_n "(cached) " >&6
7458 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7461 + if test "$ac_cv_type_void_p" = yes; then
7462 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7463 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7464 +as_fn_error 77 "cannot compute sizeof (void *)
7465 +See \`config.log' for more details" "$LINENO" 5; }
7467 + ac_cv_sizeof_void_p=0
7470 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7471 -echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
7473 -if test $ac_cv_header_sys_types_h_makedev = no; then
7474 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7475 - { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7476 -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7477 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7478 - echo $ECHO_N "(cached) $ECHO_C" >&6
7480 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7481 -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7483 - # Is the header compilable?
7484 -{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7485 -echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
7486 -cat >conftest.$ac_ext <<_ACEOF
7489 -cat confdefs.h >>conftest.$ac_ext
7490 -cat >>conftest.$ac_ext <<_ACEOF
7491 -/* end confdefs.h. */
7492 -$ac_includes_default
7493 -#include <sys/mkdev.h>
7495 -rm -f conftest.$ac_objext
7496 -if { (ac_try="$ac_compile"
7497 -case "(($ac_try" in
7498 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 - *) ac_try_echo=$ac_try;;
7501 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 - (eval "$ac_compile") 2>conftest.er1
7504 - grep -v '^ *+' conftest.er1 >conftest.err
7505 - rm -f conftest.er1
7506 - cat conftest.err >&5
7507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 - (exit $ac_status); } && {
7509 - test -z "$ac_c_werror_flag" ||
7510 - test ! -s conftest.err
7511 - } && test -s conftest.$ac_objext; then
7512 - ac_header_compiler=yes
7514 - echo "$as_me: failed program was:" >&5
7515 -sed 's/^/| /' conftest.$ac_ext >&5
7516 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7517 +$as_echo "$ac_cv_sizeof_void_p" >&6; }
7519 - ac_header_compiler=no
7522 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 -echo "${ECHO_T}$ac_header_compiler" >&6; }
7526 -# Is the header present?
7527 -{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7528 -echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
7529 -cat >conftest.$ac_ext <<_ACEOF
7532 -cat confdefs.h >>conftest.$ac_ext
7533 -cat >>conftest.$ac_ext <<_ACEOF
7534 -/* end confdefs.h. */
7535 -#include <sys/mkdev.h>
7536 +cat >>confdefs.h <<_ACEOF
7537 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7539 -if { (ac_try="$ac_cpp conftest.$ac_ext"
7540 -case "(($ac_try" in
7541 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 - *) ac_try_echo=$ac_try;;
7544 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7547 - grep -v '^ *+' conftest.er1 >conftest.err
7548 - rm -f conftest.er1
7549 - cat conftest.err >&5
7550 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 - (exit $ac_status); } >/dev/null && {
7552 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7553 - test ! -s conftest.err
7555 - ac_header_preproc=yes
7557 - echo "$as_me: failed program was:" >&5
7558 -sed 's/^/| /' conftest.$ac_ext >&5
7560 - ac_header_preproc=no
7563 -rm -f conftest.err conftest.$ac_ext
7564 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7565 -echo "${ECHO_T}$ac_header_preproc" >&6; }
7566 +# The cast to long int works around a bug in the HP C Compiler
7567 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7568 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7569 +# This bug is HP SR number 8606223364.
7570 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7571 +$as_echo_n "checking size of short... " >&6; }
7572 +if ${ac_cv_sizeof_short+:} false; then :
7573 + $as_echo_n "(cached) " >&6
7575 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7577 -# So? What about this header?
7578 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7580 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7581 -echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7583 -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7584 - ac_header_preproc=yes
7587 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7588 -echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7589 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7590 -echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7591 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7592 -echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7593 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7594 -echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7595 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7596 -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7597 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7598 -echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7600 -## ------------------------------------------------ ##
7601 -## Report this to http://www.python.org/python-bugs ##
7602 -## ------------------------------------------------ ##
7604 - ) | sed "s/^/$as_me: WARNING: /" >&2
7607 -{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7608 -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7609 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7610 - echo $ECHO_N "(cached) $ECHO_C" >&6
7612 - ac_cv_header_sys_mkdev_h=$ac_header_preproc
7613 + if test "$ac_cv_type_short" = yes; then
7614 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7615 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7616 +as_fn_error 77 "cannot compute sizeof (short)
7617 +See \`config.log' for more details" "$LINENO" 5; }
7619 + ac_cv_sizeof_short=0
7622 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7623 -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7626 -if test $ac_cv_header_sys_mkdev_h = yes; then
7627 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7628 +$as_echo "$ac_cv_sizeof_short" >&6; }
7631 -cat >>confdefs.h <<\_ACEOF
7632 -#define MAJOR_IN_MKDEV 1
7634 +cat >>confdefs.h <<_ACEOF
7635 +#define SIZEOF_SHORT $ac_cv_sizeof_short
7640 +# The cast to long int works around a bug in the HP C Compiler
7641 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7642 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7643 +# This bug is HP SR number 8606223364.
7644 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7645 +$as_echo_n "checking size of float... " >&6; }
7646 +if ${ac_cv_sizeof_float+:} false; then :
7647 + $as_echo_n "(cached) " >&6
7649 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
7652 + if test "$ac_cv_type_float" = yes; then
7653 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7654 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7655 +as_fn_error 77 "cannot compute sizeof (float)
7656 +See \`config.log' for more details" "$LINENO" 5; }
7658 + ac_cv_sizeof_float=0
7662 - if test $ac_cv_header_sys_mkdev_h = no; then
7663 - if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7664 - { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7665 -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7666 -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7667 - echo $ECHO_N "(cached) $ECHO_C" >&6
7669 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7670 -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7672 - # Is the header compilable?
7673 -{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7674 -echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
7675 -cat >conftest.$ac_ext <<_ACEOF
7678 -cat confdefs.h >>conftest.$ac_ext
7679 -cat >>conftest.$ac_ext <<_ACEOF
7680 -/* end confdefs.h. */
7681 -$ac_includes_default
7682 -#include <sys/sysmacros.h>
7684 -rm -f conftest.$ac_objext
7685 -if { (ac_try="$ac_compile"
7686 -case "(($ac_try" in
7687 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 - *) ac_try_echo=$ac_try;;
7690 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 - (eval "$ac_compile") 2>conftest.er1
7693 - grep -v '^ *+' conftest.er1 >conftest.err
7694 - rm -f conftest.er1
7695 - cat conftest.err >&5
7696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 - (exit $ac_status); } && {
7698 - test -z "$ac_c_werror_flag" ||
7699 - test ! -s conftest.err
7700 - } && test -s conftest.$ac_objext; then
7701 - ac_header_compiler=yes
7703 - echo "$as_me: failed program was:" >&5
7704 -sed 's/^/| /' conftest.$ac_ext >&5
7705 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7706 +$as_echo "$ac_cv_sizeof_float" >&6; }
7708 - ac_header_compiler=no
7711 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7713 -echo "${ECHO_T}$ac_header_compiler" >&6; }
7715 -# Is the header present?
7716 -{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7717 -echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7718 -cat >conftest.$ac_ext <<_ACEOF
7721 -cat confdefs.h >>conftest.$ac_ext
7722 -cat >>conftest.$ac_ext <<_ACEOF
7723 -/* end confdefs.h. */
7724 -#include <sys/sysmacros.h>
7725 +cat >>confdefs.h <<_ACEOF
7726 +#define SIZEOF_FLOAT $ac_cv_sizeof_float
7728 -if { (ac_try="$ac_cpp conftest.$ac_ext"
7729 -case "(($ac_try" in
7730 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 - *) ac_try_echo=$ac_try;;
7733 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7736 - grep -v '^ *+' conftest.er1 >conftest.err
7737 - rm -f conftest.er1
7738 - cat conftest.err >&5
7739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 - (exit $ac_status); } >/dev/null && {
7741 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7742 - test ! -s conftest.err
7744 - ac_header_preproc=yes
7746 - echo "$as_me: failed program was:" >&5
7747 -sed 's/^/| /' conftest.$ac_ext >&5
7749 - ac_header_preproc=no
7752 -rm -f conftest.err conftest.$ac_ext
7753 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7754 -echo "${ECHO_T}$ac_header_preproc" >&6; }
7755 +# The cast to long int works around a bug in the HP C Compiler
7756 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7757 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7758 +# This bug is HP SR number 8606223364.
7759 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7760 +$as_echo_n "checking size of double... " >&6; }
7761 +if ${ac_cv_sizeof_double+:} false; then :
7762 + $as_echo_n "(cached) " >&6
7764 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
7766 -# So? What about this header?
7767 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7769 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7770 -echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7772 -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7773 - ac_header_preproc=yes
7776 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7777 -echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7778 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7779 -echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7780 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7781 -echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7782 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7783 -echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7784 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7785 -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7786 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7787 -echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7789 -## ------------------------------------------------ ##
7790 -## Report this to http://www.python.org/python-bugs ##
7791 -## ------------------------------------------------ ##
7793 - ) | sed "s/^/$as_me: WARNING: /" >&2
7796 -{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7797 -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7798 -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7799 - echo $ECHO_N "(cached) $ECHO_C" >&6
7801 - ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7802 + if test "$ac_cv_type_double" = yes; then
7803 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7804 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7805 +as_fn_error 77 "cannot compute sizeof (double)
7806 +See \`config.log' for more details" "$LINENO" 5; }
7808 + ac_cv_sizeof_double=0
7811 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7812 -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7815 -if test $ac_cv_header_sys_sysmacros_h = yes; then
7816 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7817 +$as_echo "$ac_cv_sizeof_double" >&6; }
7820 -cat >>confdefs.h <<\_ACEOF
7821 -#define MAJOR_IN_SYSMACROS 1
7823 +cat >>confdefs.h <<_ACEOF
7824 +#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7829 +# The cast to long int works around a bug in the HP C Compiler
7830 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7831 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7832 +# This bug is HP SR number 8606223364.
7833 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7834 +$as_echo_n "checking size of fpos_t... " >&6; }
7835 +if ${ac_cv_sizeof_fpos_t+:} false; then :
7836 + $as_echo_n "(cached) " >&6
7838 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
7842 + if test "$ac_cv_type_fpos_t" = yes; then
7843 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7845 +as_fn_error 77 "cannot compute sizeof (fpos_t)
7846 +See \`config.log' for more details" "$LINENO" 5; }
7848 + ac_cv_sizeof_fpos_t=0
7853 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7854 +$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
7856 -# On Solaris, term.h requires curses.h
7858 -for ac_header in term.h
7860 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7861 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7863 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864 - echo $ECHO_N "(cached) $ECHO_C" >&6
7866 - cat >conftest.$ac_ext <<_ACEOF
7869 +cat >>confdefs.h <<_ACEOF
7870 +#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7872 -cat confdefs.h >>conftest.$ac_ext
7873 -cat >>conftest.$ac_ext <<_ACEOF
7874 -/* end confdefs.h. */
7876 -#ifdef HAVE_CURSES_H
7877 -#include <curses.h>
7880 +# The cast to long int works around a bug in the HP C Compiler
7881 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7882 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7883 +# This bug is HP SR number 8606223364.
7884 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7885 +$as_echo_n "checking size of size_t... " >&6; }
7886 +if ${ac_cv_sizeof_size_t+:} false; then :
7887 + $as_echo_n "(cached) " >&6
7889 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
7891 -#include <$ac_header>
7893 -rm -f conftest.$ac_objext
7894 -if { (ac_try="$ac_compile"
7895 -case "(($ac_try" in
7896 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 - *) ac_try_echo=$ac_try;;
7899 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 - (eval "$ac_compile") 2>conftest.er1
7902 - grep -v '^ *+' conftest.er1 >conftest.err
7903 - rm -f conftest.er1
7904 - cat conftest.err >&5
7905 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 - (exit $ac_status); } && {
7907 - test -z "$ac_c_werror_flag" ||
7908 - test ! -s conftest.err
7909 - } && test -s conftest.$ac_objext; then
7910 - eval "$as_ac_Header=yes"
7912 - echo "$as_me: failed program was:" >&5
7913 -sed 's/^/| /' conftest.$ac_ext >&5
7915 - eval "$as_ac_Header=no"
7916 + if test "$ac_cv_type_size_t" = yes; then
7917 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7918 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7919 +as_fn_error 77 "cannot compute sizeof (size_t)
7920 +See \`config.log' for more details" "$LINENO" 5; }
7922 + ac_cv_sizeof_size_t=0
7926 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 -ac_res=`eval echo '${'$as_ac_Header'}'`
7929 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7930 -echo "${ECHO_T}$ac_res" >&6; }
7931 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 - cat >>confdefs.h <<_ACEOF
7933 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7936 +$as_echo "$ac_cv_sizeof_size_t" >&6; }
7942 +cat >>confdefs.h <<_ACEOF
7943 +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7946 -# On Linux, netlink.h requires asm/types.h
7948 -for ac_header in linux/netlink.h
7950 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7953 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7954 - echo $ECHO_N "(cached) $ECHO_C" >&6
7956 - cat >conftest.$ac_ext <<_ACEOF
7959 -cat confdefs.h >>conftest.$ac_ext
7960 -cat >>conftest.$ac_ext <<_ACEOF
7962 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7963 +$as_echo_n "checking for long long support... " >&6; }
7965 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7968 -#ifdef HAVE_ASM_TYPES_H
7969 -#include <asm/types.h>
7971 -#ifdef HAVE_SYS_SOCKET_H
7972 -#include <sys/socket.h>
7977 +long long x; x = (long long)0;
7982 +if ac_fn_c_try_compile "$LINENO"; then :
7985 -#include <$ac_header>
7987 -rm -f conftest.$ac_objext
7988 -if { (ac_try="$ac_compile"
7989 -case "(($ac_try" in
7990 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 - *) ac_try_echo=$ac_try;;
7993 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 - (eval "$ac_compile") 2>conftest.er1
7996 - grep -v '^ *+' conftest.er1 >conftest.err
7997 - rm -f conftest.er1
7998 - cat conftest.err >&5
7999 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 - (exit $ac_status); } && {
8001 - test -z "$ac_c_werror_flag" ||
8002 - test ! -s conftest.err
8003 - } && test -s conftest.$ac_objext; then
8004 - eval "$as_ac_Header=yes"
8006 - echo "$as_me: failed program was:" >&5
8007 -sed 's/^/| /' conftest.$ac_ext >&5
8008 +$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8010 - eval "$as_ac_Header=no"
8012 + have_long_long=yes
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
8017 +$as_echo "$have_long_long" >&6; }
8018 +if test "$have_long_long" = yes ; then
8019 +# The cast to long int works around a bug in the HP C Compiler
8020 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8021 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8022 +# This bug is HP SR number 8606223364.
8023 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8024 +$as_echo_n "checking size of long long... " >&6; }
8025 +if ${ac_cv_sizeof_long_long+:} false; then :
8026 + $as_echo_n "(cached) " >&6
8028 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8031 + if test "$ac_cv_type_long_long" = yes; then
8032 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8033 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8034 +as_fn_error 77 "cannot compute sizeof (long long)
8035 +See \`config.log' for more details" "$LINENO" 5; }
8037 + ac_cv_sizeof_long_long=0
8040 -ac_res=`eval echo '${'$as_ac_Header'}'`
8041 - { echo "$as_me:$LINENO: result: $ac_res" >&5
8042 -echo "${ECHO_T}$ac_res" >&6; }
8043 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 - cat >>confdefs.h <<_ACEOF
8045 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8049 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8050 +$as_echo "$ac_cv_sizeof_long_long" >&6; }
8055 -# checks for typedefs
8057 -{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
8058 -echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
8059 -cat >conftest.$ac_ext <<_ACEOF
8061 +cat >>confdefs.h <<_ACEOF
8062 +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8064 -cat confdefs.h >>conftest.$ac_ext
8065 -cat >>conftest.$ac_ext <<_ACEOF
8066 -/* end confdefs.h. */
8070 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071 - $EGREP "clock_t" >/dev/null 2>&1; then
8072 - was_it_defined=yes
8077 +ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8078 + #include <stdint.h>
8081 +if test "x$ac_cv_type_uintptr_t" = xyes; then :
8083 -cat >>confdefs.h <<\_ACEOF
8084 -#define clock_t long
8085 +cat >>confdefs.h <<_ACEOF
8086 +#define HAVE_UINTPTR_T 1
8089 +# The cast to long int works around a bug in the HP C Compiler
8090 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8091 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8092 +# This bug is HP SR number 8606223364.
8093 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8094 +$as_echo_n "checking size of uintptr_t... " >&6; }
8095 +if ${ac_cv_sizeof_uintptr_t+:} false; then :
8096 + $as_echo_n "(cached) " >&6
8098 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8101 + if test "$ac_cv_type_uintptr_t" = yes; then
8102 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8103 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8104 +as_fn_error 77 "cannot compute sizeof (uintptr_t)
8105 +See \`config.log' for more details" "$LINENO" 5; }
8107 + ac_cv_sizeof_uintptr_t=0
8113 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8114 +$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8116 -{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
8117 -echo "${ECHO_T}$was_it_defined" >&6; }
8119 -# Check whether using makedev requires defining _OSF_SOURCE
8120 -{ echo "$as_me:$LINENO: checking for makedev" >&5
8121 -echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
8122 -cat >conftest.$ac_ext <<_ACEOF
8125 -cat confdefs.h >>conftest.$ac_ext
8126 -cat >>conftest.$ac_ext <<_ACEOF
8127 -/* end confdefs.h. */
8128 -#include <sys/types.h>
8137 +cat >>confdefs.h <<_ACEOF
8138 +#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8140 -rm -f conftest.$ac_objext conftest$ac_exeext
8141 -if { (ac_try="$ac_link"
8142 -case "(($ac_try" in
8143 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 - *) ac_try_echo=$ac_try;;
8146 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 - (eval "$ac_link") 2>conftest.er1
8149 - grep -v '^ *+' conftest.er1 >conftest.err
8150 - rm -f conftest.er1
8151 - cat conftest.err >&5
8152 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 - (exit $ac_status); } && {
8154 - test -z "$ac_c_werror_flag" ||
8155 - test ! -s conftest.err
8156 - } && test -s conftest$ac_exeext &&
8157 - $as_test_x conftest$ac_exeext; then
8158 - ac_cv_has_makedev=yes
8160 - echo "$as_me: failed program was:" >&5
8161 -sed 's/^/| /' conftest.$ac_ext >&5
8163 - ac_cv_has_makedev=no
8167 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8168 - conftest$ac_exeext conftest.$ac_ext
8169 -if test "$ac_cv_has_makedev" = "no"; then
8170 - # we didn't link, try if _OSF_SOURCE will allow us to link
8171 - cat >conftest.$ac_ext <<_ACEOF
8174 -cat confdefs.h >>conftest.$ac_ext
8175 -cat >>conftest.$ac_ext <<_ACEOF
8176 -/* end confdefs.h. */
8178 -#define _OSF_SOURCE 1
8179 -#include <sys/types.h>
8183 +# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8184 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8185 +$as_echo_n "checking size of off_t... " >&6; }
8186 +if ${ac_cv_sizeof_off_t+:} false; then :
8187 + $as_echo_n "(cached) " >&6
8189 + if test "$cross_compiling" = yes; then :
8190 + ac_cv_sizeof_off_t=4
8192 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 +/* end confdefs.h. */
8195 +#include <sys/types.h>
8201 + FILE *f=fopen("conftestval", "w");
8203 + fprintf(f, "%d\n", sizeof(off_t));
8207 -rm -f conftest.$ac_objext conftest$ac_exeext
8208 -if { (ac_try="$ac_link"
8209 -case "(($ac_try" in
8210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 - *) ac_try_echo=$ac_try;;
8213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 - (eval "$ac_link") 2>conftest.er1
8216 - grep -v '^ *+' conftest.er1 >conftest.err
8217 - rm -f conftest.er1
8218 - cat conftest.err >&5
8219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 - (exit $ac_status); } && {
8221 - test -z "$ac_c_werror_flag" ||
8222 - test ! -s conftest.err
8223 - } && test -s conftest$ac_exeext &&
8224 - $as_test_x conftest$ac_exeext; then
8225 - ac_cv_has_makedev=yes
8226 +if ac_fn_c_try_run "$LINENO"; then :
8227 + ac_cv_sizeof_off_t=`cat conftestval`
8229 - echo "$as_me: failed program was:" >&5
8230 -sed 's/^/| /' conftest.$ac_ext >&5
8231 + ac_cv_sizeof_off_t=0
8233 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8234 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8238 - ac_cv_has_makedev=no
8241 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242 - conftest$ac_exeext conftest.$ac_ext
8243 - if test "$ac_cv_has_makedev" = "yes"; then
8244 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8245 +$as_echo "$ac_cv_sizeof_off_t" >&6; }
8247 -cat >>confdefs.h <<\_ACEOF
8248 -#define _OSF_SOURCE 1
8249 +cat >>confdefs.h <<_ACEOF
8250 +#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8255 -{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
8256 -echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
8257 -if test "$ac_cv_has_makedev" = "yes"; then
8259 -cat >>confdefs.h <<\_ACEOF
8260 -#define HAVE_MAKEDEV 1
8262 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8263 +$as_echo_n "checking whether to enable large file support... " >&6; }
8264 +if test "$have_long_long" = yes -a \
8265 + "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8266 + "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8268 +$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8270 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271 +$as_echo "yes" >&6; }
8273 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 +$as_echo "no" >&6; }
8277 -# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
8278 -# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
8279 -# defined, but the compiler does not support pragma redefine_extname,
8280 -# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
8281 -# structures (such as rlimit64) without declaring them. As a
8282 -# work-around, disable LFS on such configurations
8285 -{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
8286 -echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
8287 -cat >conftest.$ac_ext <<_ACEOF
8290 -cat confdefs.h >>conftest.$ac_ext
8291 -cat >>conftest.$ac_ext <<_ACEOF
8292 +# AC_CHECK_SIZEOF() doesn't include <time.h>.
8293 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8294 +$as_echo_n "checking size of time_t... " >&6; }
8295 +if ${ac_cv_sizeof_time_t+:} false; then :
8296 + $as_echo_n "(cached) " >&6
8298 + if test "$cross_compiling" = yes; then :
8299 + ac_cv_sizeof_time_t=4
8301 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8304 -#define _LARGEFILE_SOURCE 1
8305 -#define _FILE_OFFSET_BITS 64
8306 -#include <sys/resource.h>
8317 + FILE *f=fopen("conftestval", "w");
8319 + fprintf(f, "%d\n", sizeof(time_t));
8323 -rm -f conftest.$ac_objext
8324 -if { (ac_try="$ac_compile"
8325 -case "(($ac_try" in
8326 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 - *) ac_try_echo=$ac_try;;
8329 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 - (eval "$ac_compile") 2>conftest.er1
8332 - grep -v '^ *+' conftest.er1 >conftest.err
8333 - rm -f conftest.er1
8334 - cat conftest.err >&5
8335 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 - (exit $ac_status); } && {
8337 - test -z "$ac_c_werror_flag" ||
8338 - test ! -s conftest.err
8339 - } && test -s conftest.$ac_objext; then
8341 +if ac_fn_c_try_run "$LINENO"; then :
8342 + ac_cv_sizeof_time_t=`cat conftestval`
8344 - echo "$as_me: failed program was:" >&5
8345 -sed 's/^/| /' conftest.$ac_ext >&5
8348 + ac_cv_sizeof_time_t=0
8351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 -{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
8353 -echo "${ECHO_T}$sol_lfs_bug" >&6; }
8354 -if test "$sol_lfs_bug" = "yes"; then
8356 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8357 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8360 -if test "$use_lfs" = "yes"; then
8361 -# Two defines needed to enable largefile support on various platforms
8362 -# These may affect some typedefs
8364 -cat >>confdefs.h <<\_ACEOF
8365 -#define _LARGEFILE_SOURCE 1
8369 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8370 +$as_echo "$ac_cv_sizeof_time_t" >&6; }
8372 -cat >>confdefs.h <<\_ACEOF
8373 -#define _FILE_OFFSET_BITS 64
8374 +cat >>confdefs.h <<_ACEOF
8375 +#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8380 -# Add some code to confdefs.h so that the test for off_t works on SCO
8381 -cat >> confdefs.h <<\EOF
8382 -#if defined(SCO_DS)
8387 -# Type availability checks
8388 -{ echo "$as_me:$LINENO: checking for mode_t" >&5
8389 -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8390 -if test "${ac_cv_type_mode_t+set}" = set; then
8391 - echo $ECHO_N "(cached) $ECHO_C" >&6
8393 - cat >conftest.$ac_ext <<_ACEOF
8396 -cat confdefs.h >>conftest.$ac_ext
8397 -cat >>conftest.$ac_ext <<_ACEOF
8398 +# if have pthread_t then define SIZEOF_PTHREAD_T
8400 +if test "$ac_cv_kpthread" = "yes"
8401 +then CC="$CC -Kpthread"
8402 +elif test "$ac_cv_kthread" = "yes"
8403 +then CC="$CC -Kthread"
8404 +elif test "$ac_cv_pthread" = "yes"
8405 +then CC="$CC -pthread"
8407 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8408 +$as_echo_n "checking for pthread_t... " >&6; }
8410 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 -$ac_includes_default
8413 -typedef mode_t ac__type_new_;
8414 +#include <pthread.h>
8418 -if ((ac__type_new_ *) 0)
8420 -if (sizeof (ac__type_new_))
8422 +pthread_t x; x = *(pthread_t*)0;
8427 -rm -f conftest.$ac_objext
8428 -if { (ac_try="$ac_compile"
8429 -case "(($ac_try" in
8430 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 - *) ac_try_echo=$ac_try;;
8433 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 - (eval "$ac_compile") 2>conftest.er1
8436 - grep -v '^ *+' conftest.er1 >conftest.err
8437 - rm -f conftest.er1
8438 - cat conftest.err >&5
8439 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 - (exit $ac_status); } && {
8441 - test -z "$ac_c_werror_flag" ||
8442 - test ! -s conftest.err
8443 - } && test -s conftest.$ac_objext; then
8444 - ac_cv_type_mode_t=yes
8446 - echo "$as_me: failed program was:" >&5
8447 -sed 's/^/| /' conftest.$ac_ext >&5
8449 - ac_cv_type_mode_t=no
8450 +if ac_fn_c_try_compile "$LINENO"; then :
8451 + have_pthread_t=yes
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 -{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8457 -echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8458 -if test $ac_cv_type_mode_t = yes; then
8460 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8461 +$as_echo "$have_pthread_t" >&6; }
8462 +if test "$have_pthread_t" = yes ; then
8463 + # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
8464 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8465 +$as_echo_n "checking size of pthread_t... " >&6; }
8466 + if ${ac_cv_sizeof_pthread_t+:} false; then :
8467 + $as_echo_n "(cached) " >&6
8470 -cat >>confdefs.h <<_ACEOF
8476 -{ echo "$as_me:$LINENO: checking for off_t" >&5
8477 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8478 -if test "${ac_cv_type_off_t+set}" = set; then
8479 - echo $ECHO_N "(cached) $ECHO_C" >&6
8480 + if test "$cross_compiling" = yes; then :
8481 + ac_cv_sizeof_pthread_t=4
8483 - cat >conftest.$ac_ext <<_ACEOF
8486 -cat confdefs.h >>conftest.$ac_ext
8487 -cat >>conftest.$ac_ext <<_ACEOF
8488 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 -$ac_includes_default
8491 -typedef off_t ac__type_new_;
8495 -if ((ac__type_new_ *) 0)
8497 -if (sizeof (ac__type_new_))
8503 +#include <pthread.h>
8506 + FILE *f=fopen("conftestval", "w");
8508 + fprintf(f, "%d\n", sizeof(pthread_t));
8512 -rm -f conftest.$ac_objext
8513 -if { (ac_try="$ac_compile"
8514 -case "(($ac_try" in
8515 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 - *) ac_try_echo=$ac_try;;
8518 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 - (eval "$ac_compile") 2>conftest.er1
8521 - grep -v '^ *+' conftest.er1 >conftest.err
8522 - rm -f conftest.er1
8523 - cat conftest.err >&5
8524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 - (exit $ac_status); } && {
8526 - test -z "$ac_c_werror_flag" ||
8527 - test ! -s conftest.err
8528 - } && test -s conftest.$ac_objext; then
8529 - ac_cv_type_off_t=yes
8530 +if ac_fn_c_try_run "$LINENO"; then :
8531 + ac_cv_sizeof_pthread_t=`cat conftestval`
8533 - echo "$as_me: failed program was:" >&5
8534 -sed 's/^/| /' conftest.$ac_ext >&5
8536 - ac_cv_type_off_t=no
8537 + ac_cv_sizeof_pthread_t=0
8540 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8545 -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8546 -if test $ac_cv_type_off_t = yes; then
8550 -cat >>confdefs.h <<_ACEOF
8551 -#define off_t long int
8556 -{ echo "$as_me:$LINENO: checking for pid_t" >&5
8557 -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8558 -if test "${ac_cv_type_pid_t+set}" = set; then
8559 - echo $ECHO_N "(cached) $ECHO_C" >&6
8561 - cat >conftest.$ac_ext <<_ACEOF
8564 -cat confdefs.h >>conftest.$ac_ext
8565 -cat >>conftest.$ac_ext <<_ACEOF
8566 -/* end confdefs.h. */
8567 -$ac_includes_default
8568 -typedef pid_t ac__type_new_;
8572 -if ((ac__type_new_ *) 0)
8574 -if (sizeof (ac__type_new_))
8579 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8580 +$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
8582 +cat >>confdefs.h <<_ACEOF
8583 +#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8585 -rm -f conftest.$ac_objext
8586 -if { (ac_try="$ac_compile"
8587 -case "(($ac_try" in
8588 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 - *) ac_try_echo=$ac_try;;
8591 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 - (eval "$ac_compile") 2>conftest.er1
8594 - grep -v '^ *+' conftest.er1 >conftest.err
8595 - rm -f conftest.er1
8596 - cat conftest.err >&5
8597 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 - (exit $ac_status); } && {
8599 - test -z "$ac_c_werror_flag" ||
8600 - test ! -s conftest.err
8601 - } && test -s conftest.$ac_objext; then
8602 - ac_cv_type_pid_t=yes
8604 - echo "$as_me: failed program was:" >&5
8605 -sed 's/^/| /' conftest.$ac_ext >&5
8607 - ac_cv_type_pid_t=no
8611 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8613 +$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
8614 +# Check whether --enable-toolbox-glue was given.
8615 +if test "${enable_toolbox_glue+set}" = set; then :
8616 + enableval=$enable_toolbox_glue;
8618 -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8619 -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8620 -if test $ac_cv_type_pid_t = yes; then
8624 -cat >>confdefs.h <<_ACEOF
8628 +if test -z "$enable_toolbox_glue"
8630 + case $ac_sys_system/$ac_sys_release in
8632 + enable_toolbox_glue="yes";;
8634 + enable_toolbox_glue="no";;
8637 +case "$enable_toolbox_glue" in
8639 + extra_machdep_objs="Python/mactoolboxglue.o"
8640 + extra_undefs="-u _PyMac_Error"
8642 -{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8643 -echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8644 -if test "${ac_cv_type_signal+set}" = set; then
8645 - echo $ECHO_N "(cached) $ECHO_C" >&6
8647 - cat >conftest.$ac_ext <<_ACEOF
8650 -cat confdefs.h >>conftest.$ac_ext
8651 -cat >>conftest.$ac_ext <<_ACEOF
8652 -/* end confdefs.h. */
8653 -#include <sys/types.h>
8654 -#include <signal.h>
8655 +$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
8660 -return *(signal (0, 0)) (0) == 1;
8665 -rm -f conftest.$ac_objext
8666 -if { (ac_try="$ac_compile"
8667 -case "(($ac_try" in
8668 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 - *) ac_try_echo=$ac_try;;
8672 + extra_machdep_objs=""
8676 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 - (eval "$ac_compile") 2>conftest.er1
8679 - grep -v '^ *+' conftest.er1 >conftest.err
8680 - rm -f conftest.er1
8681 - cat conftest.err >&5
8682 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 - (exit $ac_status); } && {
8684 - test -z "$ac_c_werror_flag" ||
8685 - test ! -s conftest.err
8686 - } && test -s conftest.$ac_objext; then
8687 - ac_cv_type_signal=int
8689 - echo "$as_me: failed program was:" >&5
8690 -sed 's/^/| /' conftest.$ac_ext >&5
8691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8692 +$as_echo "$enable_toolbox_glue" >&6; }
8694 - ac_cv_type_signal=void
8697 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 -{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8700 -echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8701 +case $ac_sys_system/$ac_sys_release in
8702 + Darwin/[01567]\..*)
8703 + OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8706 + OTHER_LIBTOOL_OPT=""
8710 -cat >>confdefs.h <<_ACEOF
8711 -#define RETSIGTYPE $ac_cv_type_signal
8714 +case $ac_sys_system/$ac_sys_release in
8715 + Darwin/[01567]\..*)
8716 + LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8717 + if test "${enable_universalsdk}"; then
8720 + LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
8722 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8723 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8725 + gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
8726 + if test ${gcc_version} '<' 4.0
8728 + LIBTOOL_CRUFT="-lcc_dynamic"
8732 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
8733 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8734 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8737 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8738 +$as_echo_n "checking for --enable-framework... " >&6; }
8739 +if test "$enable_framework"
8741 + BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
8742 + # -F. is needed to allow linking to the framework while
8743 + # in the build location.
8745 +$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
8747 -{ echo "$as_me:$LINENO: checking for size_t" >&5
8748 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8749 -if test "${ac_cv_type_size_t+set}" = set; then
8750 - echo $ECHO_N "(cached) $ECHO_C" >&6
8751 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8752 +$as_echo "yes" >&6; }
8754 - cat >conftest.$ac_ext <<_ACEOF
8757 -cat confdefs.h >>conftest.$ac_ext
8758 -cat >>conftest.$ac_ext <<_ACEOF
8759 -/* end confdefs.h. */
8760 -$ac_includes_default
8761 -typedef size_t ac__type_new_;
8765 -if ((ac__type_new_ *) 0)
8767 -if (sizeof (ac__type_new_))
8773 -rm -f conftest.$ac_objext
8774 -if { (ac_try="$ac_compile"
8775 -case "(($ac_try" in
8776 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 - *) ac_try_echo=$ac_try;;
8779 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 - (eval "$ac_compile") 2>conftest.er1
8782 - grep -v '^ *+' conftest.er1 >conftest.err
8783 - rm -f conftest.er1
8784 - cat conftest.err >&5
8785 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 - (exit $ac_status); } && {
8787 - test -z "$ac_c_werror_flag" ||
8788 - test ! -s conftest.err
8789 - } && test -s conftest.$ac_objext; then
8790 - ac_cv_type_size_t=yes
8792 - echo "$as_me: failed program was:" >&5
8793 -sed 's/^/| /' conftest.$ac_ext >&5
8795 - ac_cv_type_size_t=no
8798 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8801 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8802 -if test $ac_cv_type_size_t = yes; then
8806 -cat >>confdefs.h <<_ACEOF
8807 -#define size_t unsigned int
8812 -{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8813 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8814 -if test "${ac_cv_type_uid_t+set}" = set; then
8815 - echo $ECHO_N "(cached) $ECHO_C" >&6
8817 - cat >conftest.$ac_ext <<_ACEOF
8820 -cat confdefs.h >>conftest.$ac_ext
8821 -cat >>conftest.$ac_ext <<_ACEOF
8822 -/* end confdefs.h. */
8823 -#include <sys/types.h>
8826 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 - $EGREP "uid_t" >/dev/null 2>&1; then
8828 - ac_cv_type_uid_t=yes
8830 - ac_cv_type_uid_t=no
8831 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 +$as_echo "no" >&6; }
8837 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8838 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8839 -if test $ac_cv_type_uid_t = no; then
8841 -cat >>confdefs.h <<\_ACEOF
8846 -cat >>confdefs.h <<\_ACEOF
8849 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8850 +$as_echo_n "checking for dyld... " >&6; }
8851 +case $ac_sys_system/$ac_sys_release in
8855 +$as_echo "#define WITH_DYLD 1" >>confdefs.h
8857 -{ echo "$as_me:$LINENO: checking for ssize_t" >&5
8858 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8859 -if test "${ac_cv_type_ssize_t+set}" = set; then
8860 - echo $ECHO_N "(cached) $ECHO_C" >&6
8862 - cat >conftest.$ac_ext <<_ACEOF
8865 -cat confdefs.h >>conftest.$ac_ext
8866 -cat >>conftest.$ac_ext <<_ACEOF
8867 -/* end confdefs.h. */
8868 -$ac_includes_default
8869 -typedef ssize_t ac__type_new_;
8873 -if ((ac__type_new_ *) 0)
8875 -if (sizeof (ac__type_new_))
8881 -rm -f conftest.$ac_objext
8882 -if { (ac_try="$ac_compile"
8883 -case "(($ac_try" in
8884 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 - *) ac_try_echo=$ac_try;;
8886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8887 +$as_echo "always on for Darwin" >&6; }
8890 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 +$as_echo "no" >&6; }
8894 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 - (eval "$ac_compile") 2>conftest.er1
8897 - grep -v '^ *+' conftest.er1 >conftest.err
8898 - rm -f conftest.er1
8899 - cat conftest.err >&5
8900 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 - (exit $ac_status); } && {
8902 - test -z "$ac_c_werror_flag" ||
8903 - test ! -s conftest.err
8904 - } && test -s conftest.$ac_objext; then
8905 - ac_cv_type_ssize_t=yes
8907 - echo "$as_me: failed program was:" >&5
8908 -sed 's/^/| /' conftest.$ac_ext >&5
8910 - ac_cv_type_ssize_t=no
8912 +# Set info about shared libraries.
8914 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 -{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8917 -echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
8918 -if test $ac_cv_type_ssize_t = yes; then
8920 -cat >>confdefs.h <<\_ACEOF
8921 -#define HAVE_SSIZE_T 1
8927 -# Sizes of various common basic types
8928 -# ANSI C requires sizeof(char) == 1, so no need to check it
8929 -{ echo "$as_me:$LINENO: checking for int" >&5
8930 -echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8931 -if test "${ac_cv_type_int+set}" = set; then
8932 - echo $ECHO_N "(cached) $ECHO_C" >&6
8934 - cat >conftest.$ac_ext <<_ACEOF
8937 -cat confdefs.h >>conftest.$ac_ext
8938 -cat >>conftest.$ac_ext <<_ACEOF
8939 -/* end confdefs.h. */
8940 -$ac_includes_default
8941 -typedef int ac__type_new_;
8945 -if ((ac__type_new_ *) 0)
8947 -if (sizeof (ac__type_new_))
8953 -rm -f conftest.$ac_objext
8954 -if { (ac_try="$ac_compile"
8955 -case "(($ac_try" in
8956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 - *) ac_try_echo=$ac_try;;
8959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 - (eval "$ac_compile") 2>conftest.er1
8962 - grep -v '^ *+' conftest.er1 >conftest.err
8963 - rm -f conftest.er1
8964 - cat conftest.err >&5
8965 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 - (exit $ac_status); } && {
8967 - test -z "$ac_c_werror_flag" ||
8968 - test ! -s conftest.err
8969 - } && test -s conftest.$ac_objext; then
8970 - ac_cv_type_int=yes
8971 +# SO is the extension of shared libraries `(including the dot!)
8972 +# -- usually .so, .sl on HP-UX, .dll on Cygwin
8973 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8974 +$as_echo_n "checking SO... " >&6; }
8977 + case $ac_sys_system in
8979 + case `uname -m` in
8984 + CYGWIN*) SO=.dll;;
8988 - echo "$as_me: failed program was:" >&5
8989 -sed 's/^/| /' conftest.$ac_ext >&5
8994 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 + # this might also be a termcap variable, see #610332
8997 + echo '====================================================================='
8999 + echo '+ WARNING: You have set SO in your environment. +'
9000 + echo '+ Do you really mean to change the extension for shared libraries? +'
9001 + echo '+ Continuing in 10 seconds to let you to ponder. +'
9003 + echo '====================================================================='
9006 -{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9007 -echo "${ECHO_T}$ac_cv_type_int" >&6; }
9008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
9009 +$as_echo "$SO" >&6; }
9011 -# The cast to long int works around a bug in the HP C Compiler
9012 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9013 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9014 -# This bug is HP SR number 8606223364.
9015 -{ echo "$as_me:$LINENO: checking size of int" >&5
9016 -echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
9017 -if test "${ac_cv_sizeof_int+set}" = set; then
9018 - echo $ECHO_N "(cached) $ECHO_C" >&6
9020 - if test "$cross_compiling" = yes; then
9021 - # Depending upon the size, compute the lo and hi bounds.
9022 -cat >conftest.$ac_ext <<_ACEOF
9024 +cat >>confdefs.h <<_ACEOF
9025 +#define SHLIB_EXT "$SO"
9027 -cat confdefs.h >>conftest.$ac_ext
9028 -cat >>conftest.$ac_ext <<_ACEOF
9029 -/* end confdefs.h. */
9030 -$ac_includes_default
9031 - typedef int ac__type_sizeof_;
9035 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9042 -rm -f conftest.$ac_objext
9043 -if { (ac_try="$ac_compile"
9044 -case "(($ac_try" in
9045 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 - *) ac_try_echo=$ac_try;;
9048 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 - (eval "$ac_compile") 2>conftest.er1
9051 - grep -v '^ *+' conftest.er1 >conftest.err
9052 - rm -f conftest.er1
9053 - cat conftest.err >&5
9054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 - (exit $ac_status); } && {
9056 - test -z "$ac_c_werror_flag" ||
9057 - test ! -s conftest.err
9058 - } && test -s conftest.$ac_objext; then
9061 - cat >conftest.$ac_ext <<_ACEOF
9064 -cat confdefs.h >>conftest.$ac_ext
9065 -cat >>conftest.$ac_ext <<_ACEOF
9066 -/* end confdefs.h. */
9067 -$ac_includes_default
9068 - typedef int ac__type_sizeof_;
9072 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9074 +# LDSHARED is the ld *command* used to create shared library
9075 +# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9076 +# (Shared libraries in this instance are shared modules to be loaded into
9077 +# Python, as opposed to building Python itself as a shared library.)
9078 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9079 +$as_echo_n "checking LDSHARED... " >&6; }
9080 +if test -z "$LDSHARED"
9082 + case $ac_sys_system/$ac_sys_release in
9084 + BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9085 + LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9088 + BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9089 + LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9091 + IRIX/5*) LDSHARED="ld -shared";;
9092 + IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9094 + if test "$GCC" = "yes"
9095 + then LDSHARED='$(CC) -shared'
9096 + else LDSHARED='$(CC) -G';
9098 + hp*|HP*) LDSHARED="ld -b";;
9099 + OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
9101 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9102 + if test "$enable_framework" ; then
9103 + # Link against the framework. All externals should be defined.
9104 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9105 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9107 + # No framework. Ignore undefined symbols, assuming they come from Python
9108 + LDSHARED="$LDSHARED -undefined suppress"
9110 + Darwin/1.4*|Darwin/5.*|Darwin/6.*)
9111 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9112 + if test "$enable_framework" ; then
9113 + # Link against the framework. All externals should be defined.
9114 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9115 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9117 + # No framework, use the Python app as bundle-loader
9118 + BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9119 + LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9122 + # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9123 + # This allows an extension to be used in any Python
9124 + cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
9125 + if test ${cur_target} '>' 10.2; then
9128 + CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
9134 -rm -f conftest.$ac_objext
9135 -if { (ac_try="$ac_compile"
9136 -case "(($ac_try" in
9137 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 - *) ac_try_echo=$ac_try;;
9140 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 - (eval "$ac_compile") 2>conftest.er1
9143 - grep -v '^ *+' conftest.er1 >conftest.err
9144 - rm -f conftest.er1
9145 - cat conftest.err >&5
9146 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 - (exit $ac_status); } && {
9148 - test -z "$ac_c_werror_flag" ||
9149 - test ! -s conftest.err
9150 - } && test -s conftest.$ac_objext; then
9151 - ac_hi=$ac_mid; break
9153 - echo "$as_me: failed program was:" >&5
9154 -sed 's/^/| /' conftest.$ac_ext >&5
9155 + # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
9156 + # environment with a value that is the same as what we'll use
9157 + # in the Makefile to ensure that we'll get the same compiler
9158 + # environment during configure and build time.
9159 + MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
9160 + export MACOSX_DEPLOYMENT_TARGET
9162 - ac_lo=`expr $ac_mid + 1`
9163 - if test $ac_lo -le $ac_mid; then
9166 + EXPORT_MACOSX_DEPLOYMENT_TARGET=''
9167 + if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
9169 + if test "${enable_universalsdk}"; then
9170 + LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
9172 - ac_mid=`expr 2 '*' $ac_mid + 1`
9175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178 - echo "$as_me: failed program was:" >&5
9179 -sed 's/^/| /' conftest.$ac_ext >&5
9181 - cat >conftest.$ac_ext <<_ACEOF
9184 -cat confdefs.h >>conftest.$ac_ext
9185 -cat >>conftest.$ac_ext <<_ACEOF
9186 -/* end confdefs.h. */
9187 -$ac_includes_default
9188 - typedef int ac__type_sizeof_;
9192 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9199 -rm -f conftest.$ac_objext
9200 -if { (ac_try="$ac_compile"
9201 -case "(($ac_try" in
9202 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 - *) ac_try_echo=$ac_try;;
9205 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 - (eval "$ac_compile") 2>conftest.er1
9208 - grep -v '^ *+' conftest.er1 >conftest.err
9209 - rm -f conftest.er1
9210 - cat conftest.err >&5
9211 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 - (exit $ac_status); } && {
9213 - test -z "$ac_c_werror_flag" ||
9214 - test ! -s conftest.err
9215 - } && test -s conftest.$ac_objext; then
9216 - ac_hi=-1 ac_mid=-1
9218 - cat >conftest.$ac_ext <<_ACEOF
9221 -cat confdefs.h >>conftest.$ac_ext
9222 -cat >>conftest.$ac_ext <<_ACEOF
9223 -/* end confdefs.h. */
9224 -$ac_includes_default
9225 - typedef int ac__type_sizeof_;
9229 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9236 -rm -f conftest.$ac_objext
9237 -if { (ac_try="$ac_compile"
9238 -case "(($ac_try" in
9239 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 - *) ac_try_echo=$ac_try;;
9242 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 - (eval "$ac_compile") 2>conftest.er1
9245 - grep -v '^ *+' conftest.er1 >conftest.err
9246 - rm -f conftest.er1
9247 - cat conftest.err >&5
9248 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 - (exit $ac_status); } && {
9250 - test -z "$ac_c_werror_flag" ||
9251 - test ! -s conftest.err
9252 - } && test -s conftest.$ac_objext; then
9253 - ac_lo=$ac_mid; break
9255 - echo "$as_me: failed program was:" >&5
9256 -sed 's/^/| /' conftest.$ac_ext >&5
9258 - ac_hi=`expr '(' $ac_mid ')' - 1`
9259 - if test $ac_mid -le $ac_hi; then
9262 + LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
9263 + BLDSHARED="$LDSHARED"
9265 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9266 + if test "$enable_framework" ; then
9267 + # Link against the framework. All externals should be defined.
9268 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9269 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9271 + # No framework, use the Python app as bundle-loader
9272 + BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9273 + LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9275 - ac_mid=`expr 2 '*' $ac_mid`
9278 + Linux*|GNU*) LDSHARED='$(CC) -shared';;
9279 + BSD/OS*/4*) LDSHARED="gcc -shared";;
9281 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9283 + LDSHARED="$CC -shared ${LDFLAGS}"
9285 + LDSHARED="ld -Bshareable ${LDFLAGS}"
9288 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9290 + LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
9292 + case `uname -r` in
9293 + [01].* | 2.[0-7] | 2.[0-7].*)
9294 + LDSHARED="ld -Bshareable ${LDFLAGS}"
9297 + LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
9301 + NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
9302 + OpenUNIX*|UnixWare*)
9303 + if test "$GCC" = "yes"
9304 + then LDSHARED='$(CC) -shared'
9305 + else LDSHARED='$(CC) -G'
9307 + SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
9308 + Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9309 + CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
9310 + atheos*) LDSHARED="gcc -shared";;
9311 + *) LDSHARED="ld";;
9315 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 - echo "$as_me: failed program was:" >&5
9319 -sed 's/^/| /' conftest.$ac_ext >&5
9322 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9323 +$as_echo "$LDSHARED" >&6; }
9324 +BLDSHARED=${BLDSHARED-$LDSHARED}
9325 +# CCSHARED are the C *flags* used to create objects to go into a shared
9326 +# library (module) -- this is only needed for a few systems
9327 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9328 +$as_echo_n "checking CCSHARED... " >&6; }
9329 +if test -z "$CCSHARED"
9331 + case $ac_sys_system/$ac_sys_release in
9332 + SunOS*) if test "$GCC" = yes;
9333 + then CCSHARED="-fPIC";
9334 + elif test `uname -p` = sparc;
9335 + then CCSHARED="-xcode=pic32";
9336 + else CCSHARED="-Kpic";
9338 + hp*|HP*) if test "$GCC" = yes;
9339 + then CCSHARED="-fPIC";
9340 + else CCSHARED="+z";
9342 + Linux*|GNU*) CCSHARED="-fPIC";;
9343 + BSD/OS*/4*) CCSHARED="-fpic";;
9344 + FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9345 + OpenUNIX*|UnixWare*)
9346 + if test "$GCC" = "yes"
9347 + then CCSHARED="-fPIC"
9348 + else CCSHARED="-KPIC"
9351 + if test "$GCC" = "yes"
9352 + then CCSHARED="-fPIC"
9353 + else CCSHARED="-Kpic -belf"
9355 + Monterey*) CCSHARED="-G";;
9356 + IRIX*/6*) case $CC in
9357 + *gcc*) CCSHARED="-shared";;
9360 + atheos*) CCSHARED="-fPIC";;
9363 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9364 +$as_echo "$CCSHARED" >&6; }
9365 +# LINKFORSHARED are the flags passed to the $(CC) command that links
9366 +# the python executable -- this is only needed for a few systems
9367 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9368 +$as_echo_n "checking LINKFORSHARED... " >&6; }
9369 +if test -z "$LINKFORSHARED"
9371 + case $ac_sys_system/$ac_sys_release in
9372 + AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9374 + LINKFORSHARED="-Wl,-E -Wl,+s";;
9375 +# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9376 + BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
9377 + Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9378 + # -u libsys_s pulls in all symbols in libsys
9380 + # -u _PyMac_Error is needed to pull in the mac toolbox glue,
9382 + # not used by the core itself but which needs to be in the core so
9383 + # that dynamically loaded extension modules have access to it.
9384 + # -prebind is no longer used, because it actually seems to give a
9385 + # slowdown in stead of a speedup, maybe due to the large number of
9386 + # dynamic loads Python does.
9388 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 -# Binary search between lo and hi bounds.
9393 -while test "x$ac_lo" != "x$ac_hi"; do
9394 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9395 - cat >conftest.$ac_ext <<_ACEOF
9398 -cat confdefs.h >>conftest.$ac_ext
9399 -cat >>conftest.$ac_ext <<_ACEOF
9400 -/* end confdefs.h. */
9401 -$ac_includes_default
9402 - typedef int ac__type_sizeof_;
9406 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9413 -rm -f conftest.$ac_objext
9414 -if { (ac_try="$ac_compile"
9415 -case "(($ac_try" in
9416 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 - *) ac_try_echo=$ac_try;;
9419 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 - (eval "$ac_compile") 2>conftest.er1
9422 - grep -v '^ *+' conftest.er1 >conftest.err
9423 - rm -f conftest.er1
9424 - cat conftest.err >&5
9425 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 - (exit $ac_status); } && {
9427 - test -z "$ac_c_werror_flag" ||
9428 - test ! -s conftest.err
9429 - } && test -s conftest.$ac_objext; then
9432 - echo "$as_me: failed program was:" >&5
9433 -sed 's/^/| /' conftest.$ac_ext >&5
9435 - ac_lo=`expr '(' $ac_mid ')' + 1`
9438 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441 -?*) ac_cv_sizeof_int=$ac_lo;;
9442 -'') if test "$ac_cv_type_int" = yes; then
9443 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9444 -See \`config.log' for more details." >&5
9445 -echo "$as_me: error: cannot compute sizeof (int)
9446 -See \`config.log' for more details." >&2;}
9447 - { (exit 77); exit 77; }; }
9449 - ac_cv_sizeof_int=0
9453 - cat >conftest.$ac_ext <<_ACEOF
9456 -cat confdefs.h >>conftest.$ac_ext
9457 -cat >>conftest.$ac_ext <<_ACEOF
9458 -/* end confdefs.h. */
9459 -$ac_includes_default
9460 - typedef int ac__type_sizeof_;
9461 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9462 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9464 -#include <stdlib.h>
9469 - FILE *f = fopen ("conftest.val", "w");
9472 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9474 - long int i = longval ();
9475 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9477 - fprintf (f, "%ld\n", i);
9481 - unsigned long int i = ulongval ();
9482 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9484 - fprintf (f, "%lu\n", i);
9486 - return ferror (f) || fclose (f) != 0;
9492 -rm -f conftest$ac_exeext
9493 -if { (ac_try="$ac_link"
9494 -case "(($ac_try" in
9495 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 - *) ac_try_echo=$ac_try;;
9498 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 - (eval "$ac_link") 2>&5
9501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9503 - { (case "(($ac_try" in
9504 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 - *) ac_try_echo=$ac_try;;
9507 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 - (eval "$ac_try") 2>&5
9510 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 - (exit $ac_status); }; }; then
9512 - ac_cv_sizeof_int=`cat conftest.val`
9514 - echo "$as_me: program exited with status $ac_status" >&5
9515 -echo "$as_me: failed program was:" >&5
9516 -sed 's/^/| /' conftest.$ac_ext >&5
9518 -( exit $ac_status )
9519 -if test "$ac_cv_type_int" = yes; then
9520 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9521 -See \`config.log' for more details." >&5
9522 -echo "$as_me: error: cannot compute sizeof (int)
9523 -See \`config.log' for more details." >&2;}
9524 - { (exit 77); exit 77; }; }
9526 - ac_cv_sizeof_int=0
9529 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9533 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9534 -echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9538 -cat >>confdefs.h <<_ACEOF
9539 -#define SIZEOF_INT $ac_cv_sizeof_int
9543 -{ echo "$as_me:$LINENO: checking for long" >&5
9544 -echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9545 -if test "${ac_cv_type_long+set}" = set; then
9546 - echo $ECHO_N "(cached) $ECHO_C" >&6
9548 - cat >conftest.$ac_ext <<_ACEOF
9551 -cat confdefs.h >>conftest.$ac_ext
9552 -cat >>conftest.$ac_ext <<_ACEOF
9553 -/* end confdefs.h. */
9554 -$ac_includes_default
9555 -typedef long ac__type_new_;
9559 -if ((ac__type_new_ *) 0)
9561 -if (sizeof (ac__type_new_))
9567 -rm -f conftest.$ac_objext
9568 -if { (ac_try="$ac_compile"
9569 -case "(($ac_try" in
9570 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 - *) ac_try_echo=$ac_try;;
9573 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 - (eval "$ac_compile") 2>conftest.er1
9576 - grep -v '^ *+' conftest.er1 >conftest.err
9577 - rm -f conftest.er1
9578 - cat conftest.err >&5
9579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 - (exit $ac_status); } && {
9581 - test -z "$ac_c_werror_flag" ||
9582 - test ! -s conftest.err
9583 - } && test -s conftest.$ac_objext; then
9584 - ac_cv_type_long=yes
9586 - echo "$as_me: failed program was:" >&5
9587 -sed 's/^/| /' conftest.$ac_ext >&5
9589 - ac_cv_type_long=no
9592 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 -{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9595 -echo "${ECHO_T}$ac_cv_type_long" >&6; }
9597 -# The cast to long int works around a bug in the HP C Compiler
9598 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9599 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9600 -# This bug is HP SR number 8606223364.
9601 -{ echo "$as_me:$LINENO: checking size of long" >&5
9602 -echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9603 -if test "${ac_cv_sizeof_long+set}" = set; then
9604 - echo $ECHO_N "(cached) $ECHO_C" >&6
9606 - if test "$cross_compiling" = yes; then
9607 - # Depending upon the size, compute the lo and hi bounds.
9608 -cat >conftest.$ac_ext <<_ACEOF
9611 -cat confdefs.h >>conftest.$ac_ext
9612 -cat >>conftest.$ac_ext <<_ACEOF
9613 -/* end confdefs.h. */
9614 -$ac_includes_default
9615 - typedef long ac__type_sizeof_;
9619 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9626 -rm -f conftest.$ac_objext
9627 -if { (ac_try="$ac_compile"
9628 -case "(($ac_try" in
9629 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 - *) ac_try_echo=$ac_try;;
9632 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 - (eval "$ac_compile") 2>conftest.er1
9635 - grep -v '^ *+' conftest.er1 >conftest.err
9636 - rm -f conftest.er1
9637 - cat conftest.err >&5
9638 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 - (exit $ac_status); } && {
9640 - test -z "$ac_c_werror_flag" ||
9641 - test ! -s conftest.err
9642 - } && test -s conftest.$ac_objext; then
9645 - cat >conftest.$ac_ext <<_ACEOF
9648 -cat confdefs.h >>conftest.$ac_ext
9649 -cat >>conftest.$ac_ext <<_ACEOF
9650 -/* end confdefs.h. */
9651 -$ac_includes_default
9652 - typedef long ac__type_sizeof_;
9656 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9663 -rm -f conftest.$ac_objext
9664 -if { (ac_try="$ac_compile"
9665 -case "(($ac_try" in
9666 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 - *) ac_try_echo=$ac_try;;
9669 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 - (eval "$ac_compile") 2>conftest.er1
9672 - grep -v '^ *+' conftest.er1 >conftest.err
9673 - rm -f conftest.er1
9674 - cat conftest.err >&5
9675 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 - (exit $ac_status); } && {
9677 - test -z "$ac_c_werror_flag" ||
9678 - test ! -s conftest.err
9679 - } && test -s conftest.$ac_objext; then
9680 - ac_hi=$ac_mid; break
9682 - echo "$as_me: failed program was:" >&5
9683 -sed 's/^/| /' conftest.$ac_ext >&5
9685 - ac_lo=`expr $ac_mid + 1`
9686 - if test $ac_lo -le $ac_mid; then
9690 - ac_mid=`expr 2 '*' $ac_mid + 1`
9693 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 - echo "$as_me: failed program was:" >&5
9697 -sed 's/^/| /' conftest.$ac_ext >&5
9699 - cat >conftest.$ac_ext <<_ACEOF
9702 -cat confdefs.h >>conftest.$ac_ext
9703 -cat >>conftest.$ac_ext <<_ACEOF
9704 -/* end confdefs.h. */
9705 -$ac_includes_default
9706 - typedef long ac__type_sizeof_;
9710 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9717 -rm -f conftest.$ac_objext
9718 -if { (ac_try="$ac_compile"
9719 -case "(($ac_try" in
9720 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 - *) ac_try_echo=$ac_try;;
9723 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 - (eval "$ac_compile") 2>conftest.er1
9726 - grep -v '^ *+' conftest.er1 >conftest.err
9727 - rm -f conftest.er1
9728 - cat conftest.err >&5
9729 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 - (exit $ac_status); } && {
9731 - test -z "$ac_c_werror_flag" ||
9732 - test ! -s conftest.err
9733 - } && test -s conftest.$ac_objext; then
9734 - ac_hi=-1 ac_mid=-1
9736 - cat >conftest.$ac_ext <<_ACEOF
9739 -cat confdefs.h >>conftest.$ac_ext
9740 -cat >>conftest.$ac_ext <<_ACEOF
9741 -/* end confdefs.h. */
9742 -$ac_includes_default
9743 - typedef long ac__type_sizeof_;
9747 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9754 -rm -f conftest.$ac_objext
9755 -if { (ac_try="$ac_compile"
9756 -case "(($ac_try" in
9757 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 - *) ac_try_echo=$ac_try;;
9760 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 - (eval "$ac_compile") 2>conftest.er1
9763 - grep -v '^ *+' conftest.er1 >conftest.err
9764 - rm -f conftest.er1
9765 - cat conftest.err >&5
9766 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 - (exit $ac_status); } && {
9768 - test -z "$ac_c_werror_flag" ||
9769 - test ! -s conftest.err
9770 - } && test -s conftest.$ac_objext; then
9771 - ac_lo=$ac_mid; break
9773 - echo "$as_me: failed program was:" >&5
9774 -sed 's/^/| /' conftest.$ac_ext >&5
9776 - ac_hi=`expr '(' $ac_mid ')' - 1`
9777 - if test $ac_mid -le $ac_hi; then
9781 - ac_mid=`expr 2 '*' $ac_mid`
9784 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 - echo "$as_me: failed program was:" >&5
9788 -sed 's/^/| /' conftest.$ac_ext >&5
9793 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 -# Binary search between lo and hi bounds.
9798 -while test "x$ac_lo" != "x$ac_hi"; do
9799 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9800 - cat >conftest.$ac_ext <<_ACEOF
9803 -cat confdefs.h >>conftest.$ac_ext
9804 -cat >>conftest.$ac_ext <<_ACEOF
9805 -/* end confdefs.h. */
9806 -$ac_includes_default
9807 - typedef long ac__type_sizeof_;
9811 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9818 -rm -f conftest.$ac_objext
9819 -if { (ac_try="$ac_compile"
9820 -case "(($ac_try" in
9821 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 - *) ac_try_echo=$ac_try;;
9824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 - (eval "$ac_compile") 2>conftest.er1
9827 - grep -v '^ *+' conftest.er1 >conftest.err
9828 - rm -f conftest.er1
9829 - cat conftest.err >&5
9830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 - (exit $ac_status); } && {
9832 - test -z "$ac_c_werror_flag" ||
9833 - test ! -s conftest.err
9834 - } && test -s conftest.$ac_objext; then
9837 - echo "$as_me: failed program was:" >&5
9838 -sed 's/^/| /' conftest.$ac_ext >&5
9840 - ac_lo=`expr '(' $ac_mid ')' + 1`
9843 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 -?*) ac_cv_sizeof_long=$ac_lo;;
9847 -'') if test "$ac_cv_type_long" = yes; then
9848 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9849 -See \`config.log' for more details." >&5
9850 -echo "$as_me: error: cannot compute sizeof (long)
9851 -See \`config.log' for more details." >&2;}
9852 - { (exit 77); exit 77; }; }
9854 - ac_cv_sizeof_long=0
9858 - cat >conftest.$ac_ext <<_ACEOF
9861 -cat confdefs.h >>conftest.$ac_ext
9862 -cat >>conftest.$ac_ext <<_ACEOF
9863 -/* end confdefs.h. */
9864 -$ac_includes_default
9865 - typedef long ac__type_sizeof_;
9866 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9867 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9869 -#include <stdlib.h>
9874 - FILE *f = fopen ("conftest.val", "w");
9877 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9879 - long int i = longval ();
9880 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9882 - fprintf (f, "%ld\n", i);
9886 - unsigned long int i = ulongval ();
9887 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9889 - fprintf (f, "%lu\n", i);
9891 - return ferror (f) || fclose (f) != 0;
9897 -rm -f conftest$ac_exeext
9898 -if { (ac_try="$ac_link"
9899 -case "(($ac_try" in
9900 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 - *) ac_try_echo=$ac_try;;
9903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 - (eval "$ac_link") 2>&5
9906 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9908 - { (case "(($ac_try" in
9909 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 - *) ac_try_echo=$ac_try;;
9912 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 - (eval "$ac_try") 2>&5
9915 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 - (exit $ac_status); }; }; then
9917 - ac_cv_sizeof_long=`cat conftest.val`
9919 - echo "$as_me: program exited with status $ac_status" >&5
9920 -echo "$as_me: failed program was:" >&5
9921 -sed 's/^/| /' conftest.$ac_ext >&5
9923 -( exit $ac_status )
9924 -if test "$ac_cv_type_long" = yes; then
9925 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9926 -See \`config.log' for more details." >&5
9927 -echo "$as_me: error: cannot compute sizeof (long)
9928 -See \`config.log' for more details." >&2;}
9929 - { (exit 77); exit 77; }; }
9931 - ac_cv_sizeof_long=0
9934 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9938 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9939 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9943 -cat >>confdefs.h <<_ACEOF
9944 -#define SIZEOF_LONG $ac_cv_sizeof_long
9948 -{ echo "$as_me:$LINENO: checking for void *" >&5
9949 -echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
9950 -if test "${ac_cv_type_void_p+set}" = set; then
9951 - echo $ECHO_N "(cached) $ECHO_C" >&6
9953 - cat >conftest.$ac_ext <<_ACEOF
9956 -cat confdefs.h >>conftest.$ac_ext
9957 -cat >>conftest.$ac_ext <<_ACEOF
9958 -/* end confdefs.h. */
9959 -$ac_includes_default
9960 -typedef void * ac__type_new_;
9964 -if ((ac__type_new_ *) 0)
9966 -if (sizeof (ac__type_new_))
9972 -rm -f conftest.$ac_objext
9973 -if { (ac_try="$ac_compile"
9974 -case "(($ac_try" in
9975 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 - *) ac_try_echo=$ac_try;;
9978 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 - (eval "$ac_compile") 2>conftest.er1
9981 - grep -v '^ *+' conftest.er1 >conftest.err
9982 - rm -f conftest.er1
9983 - cat conftest.err >&5
9984 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 - (exit $ac_status); } && {
9986 - test -z "$ac_c_werror_flag" ||
9987 - test ! -s conftest.err
9988 - } && test -s conftest.$ac_objext; then
9989 - ac_cv_type_void_p=yes
9991 - echo "$as_me: failed program was:" >&5
9992 -sed 's/^/| /' conftest.$ac_ext >&5
9994 - ac_cv_type_void_p=no
9997 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 -{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
10000 -echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
10002 -# The cast to long int works around a bug in the HP C Compiler
10003 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10004 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10005 -# This bug is HP SR number 8606223364.
10006 -{ echo "$as_me:$LINENO: checking size of void *" >&5
10007 -echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
10008 -if test "${ac_cv_sizeof_void_p+set}" = set; then
10009 - echo $ECHO_N "(cached) $ECHO_C" >&6
10011 - if test "$cross_compiling" = yes; then
10012 - # Depending upon the size, compute the lo and hi bounds.
10013 -cat >conftest.$ac_ext <<_ACEOF
10016 -cat confdefs.h >>conftest.$ac_ext
10017 -cat >>conftest.$ac_ext <<_ACEOF
10018 -/* end confdefs.h. */
10019 -$ac_includes_default
10020 - typedef void * ac__type_sizeof_;
10024 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10025 -test_array [0] = 0
10031 -rm -f conftest.$ac_objext
10032 -if { (ac_try="$ac_compile"
10033 -case "(($ac_try" in
10034 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 - *) ac_try_echo=$ac_try;;
10037 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 - (eval "$ac_compile") 2>conftest.er1
10040 - grep -v '^ *+' conftest.er1 >conftest.err
10041 - rm -f conftest.er1
10042 - cat conftest.err >&5
10043 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 - (exit $ac_status); } && {
10045 - test -z "$ac_c_werror_flag" ||
10046 - test ! -s conftest.err
10047 - } && test -s conftest.$ac_objext; then
10050 - cat >conftest.$ac_ext <<_ACEOF
10053 -cat confdefs.h >>conftest.$ac_ext
10054 -cat >>conftest.$ac_ext <<_ACEOF
10055 -/* end confdefs.h. */
10056 -$ac_includes_default
10057 - typedef void * ac__type_sizeof_;
10061 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10062 -test_array [0] = 0
10068 -rm -f conftest.$ac_objext
10069 -if { (ac_try="$ac_compile"
10070 -case "(($ac_try" in
10071 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 - *) ac_try_echo=$ac_try;;
10074 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 - (eval "$ac_compile") 2>conftest.er1
10077 - grep -v '^ *+' conftest.er1 >conftest.err
10078 - rm -f conftest.er1
10079 - cat conftest.err >&5
10080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 - (exit $ac_status); } && {
10082 - test -z "$ac_c_werror_flag" ||
10083 - test ! -s conftest.err
10084 - } && test -s conftest.$ac_objext; then
10085 - ac_hi=$ac_mid; break
10087 - echo "$as_me: failed program was:" >&5
10088 -sed 's/^/| /' conftest.$ac_ext >&5
10090 - ac_lo=`expr $ac_mid + 1`
10091 - if test $ac_lo -le $ac_mid; then
10095 - ac_mid=`expr 2 '*' $ac_mid + 1`
10098 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101 - echo "$as_me: failed program was:" >&5
10102 -sed 's/^/| /' conftest.$ac_ext >&5
10104 - cat >conftest.$ac_ext <<_ACEOF
10107 -cat confdefs.h >>conftest.$ac_ext
10108 -cat >>conftest.$ac_ext <<_ACEOF
10109 -/* end confdefs.h. */
10110 -$ac_includes_default
10111 - typedef void * ac__type_sizeof_;
10115 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10116 -test_array [0] = 0
10122 -rm -f conftest.$ac_objext
10123 -if { (ac_try="$ac_compile"
10124 -case "(($ac_try" in
10125 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 - *) ac_try_echo=$ac_try;;
10128 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 - (eval "$ac_compile") 2>conftest.er1
10131 - grep -v '^ *+' conftest.er1 >conftest.err
10132 - rm -f conftest.er1
10133 - cat conftest.err >&5
10134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 - (exit $ac_status); } && {
10136 - test -z "$ac_c_werror_flag" ||
10137 - test ! -s conftest.err
10138 - } && test -s conftest.$ac_objext; then
10139 - ac_hi=-1 ac_mid=-1
10141 - cat >conftest.$ac_ext <<_ACEOF
10144 -cat confdefs.h >>conftest.$ac_ext
10145 -cat >>conftest.$ac_ext <<_ACEOF
10146 -/* end confdefs.h. */
10147 -$ac_includes_default
10148 - typedef void * ac__type_sizeof_;
10152 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10153 -test_array [0] = 0
10159 -rm -f conftest.$ac_objext
10160 -if { (ac_try="$ac_compile"
10161 -case "(($ac_try" in
10162 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 - *) ac_try_echo=$ac_try;;
10165 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 - (eval "$ac_compile") 2>conftest.er1
10168 - grep -v '^ *+' conftest.er1 >conftest.err
10169 - rm -f conftest.er1
10170 - cat conftest.err >&5
10171 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 - (exit $ac_status); } && {
10173 - test -z "$ac_c_werror_flag" ||
10174 - test ! -s conftest.err
10175 - } && test -s conftest.$ac_objext; then
10176 - ac_lo=$ac_mid; break
10178 - echo "$as_me: failed program was:" >&5
10179 -sed 's/^/| /' conftest.$ac_ext >&5
10181 - ac_hi=`expr '(' $ac_mid ')' - 1`
10182 - if test $ac_mid -le $ac_hi; then
10186 - ac_mid=`expr 2 '*' $ac_mid`
10189 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 - echo "$as_me: failed program was:" >&5
10193 -sed 's/^/| /' conftest.$ac_ext >&5
10198 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 -# Binary search between lo and hi bounds.
10203 -while test "x$ac_lo" != "x$ac_hi"; do
10204 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10205 - cat >conftest.$ac_ext <<_ACEOF
10208 -cat confdefs.h >>conftest.$ac_ext
10209 -cat >>conftest.$ac_ext <<_ACEOF
10210 -/* end confdefs.h. */
10211 -$ac_includes_default
10212 - typedef void * ac__type_sizeof_;
10216 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10217 -test_array [0] = 0
10223 -rm -f conftest.$ac_objext
10224 -if { (ac_try="$ac_compile"
10225 -case "(($ac_try" in
10226 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 - *) ac_try_echo=$ac_try;;
10229 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 - (eval "$ac_compile") 2>conftest.er1
10232 - grep -v '^ *+' conftest.er1 >conftest.err
10233 - rm -f conftest.er1
10234 - cat conftest.err >&5
10235 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 - (exit $ac_status); } && {
10237 - test -z "$ac_c_werror_flag" ||
10238 - test ! -s conftest.err
10239 - } && test -s conftest.$ac_objext; then
10242 - echo "$as_me: failed program was:" >&5
10243 -sed 's/^/| /' conftest.$ac_ext >&5
10245 - ac_lo=`expr '(' $ac_mid ')' + 1`
10248 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251 -?*) ac_cv_sizeof_void_p=$ac_lo;;
10252 -'') if test "$ac_cv_type_void_p" = yes; then
10253 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10254 -See \`config.log' for more details." >&5
10255 -echo "$as_me: error: cannot compute sizeof (void *)
10256 -See \`config.log' for more details." >&2;}
10257 - { (exit 77); exit 77; }; }
10259 - ac_cv_sizeof_void_p=0
10263 - cat >conftest.$ac_ext <<_ACEOF
10266 -cat confdefs.h >>conftest.$ac_ext
10267 -cat >>conftest.$ac_ext <<_ACEOF
10268 -/* end confdefs.h. */
10269 -$ac_includes_default
10270 - typedef void * ac__type_sizeof_;
10271 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10272 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10273 -#include <stdio.h>
10274 -#include <stdlib.h>
10279 - FILE *f = fopen ("conftest.val", "w");
10282 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10284 - long int i = longval ();
10285 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10287 - fprintf (f, "%ld\n", i);
10291 - unsigned long int i = ulongval ();
10292 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10294 - fprintf (f, "%lu\n", i);
10296 - return ferror (f) || fclose (f) != 0;
10302 -rm -f conftest$ac_exeext
10303 -if { (ac_try="$ac_link"
10304 -case "(($ac_try" in
10305 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 - *) ac_try_echo=$ac_try;;
10308 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 - (eval "$ac_link") 2>&5
10311 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10313 - { (case "(($ac_try" in
10314 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 - *) ac_try_echo=$ac_try;;
10317 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 - (eval "$ac_try") 2>&5
10320 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 - (exit $ac_status); }; }; then
10322 - ac_cv_sizeof_void_p=`cat conftest.val`
10324 - echo "$as_me: program exited with status $ac_status" >&5
10325 -echo "$as_me: failed program was:" >&5
10326 -sed 's/^/| /' conftest.$ac_ext >&5
10328 -( exit $ac_status )
10329 -if test "$ac_cv_type_void_p" = yes; then
10330 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10331 -See \`config.log' for more details." >&5
10332 -echo "$as_me: error: cannot compute sizeof (void *)
10333 -See \`config.log' for more details." >&2;}
10334 - { (exit 77); exit 77; }; }
10336 - ac_cv_sizeof_void_p=0
10339 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10341 -rm -f conftest.val
10343 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
10344 -echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
10348 -cat >>confdefs.h <<_ACEOF
10349 -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10353 -{ echo "$as_me:$LINENO: checking for short" >&5
10354 -echo $ECHO_N "checking for short... $ECHO_C" >&6; }
10355 -if test "${ac_cv_type_short+set}" = set; then
10356 - echo $ECHO_N "(cached) $ECHO_C" >&6
10358 - cat >conftest.$ac_ext <<_ACEOF
10361 -cat confdefs.h >>conftest.$ac_ext
10362 -cat >>conftest.$ac_ext <<_ACEOF
10363 -/* end confdefs.h. */
10364 -$ac_includes_default
10365 -typedef short ac__type_new_;
10369 -if ((ac__type_new_ *) 0)
10371 -if (sizeof (ac__type_new_))
10377 -rm -f conftest.$ac_objext
10378 -if { (ac_try="$ac_compile"
10379 -case "(($ac_try" in
10380 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 - *) ac_try_echo=$ac_try;;
10383 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 - (eval "$ac_compile") 2>conftest.er1
10386 - grep -v '^ *+' conftest.er1 >conftest.err
10387 - rm -f conftest.er1
10388 - cat conftest.err >&5
10389 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 - (exit $ac_status); } && {
10391 - test -z "$ac_c_werror_flag" ||
10392 - test ! -s conftest.err
10393 - } && test -s conftest.$ac_objext; then
10394 - ac_cv_type_short=yes
10396 - echo "$as_me: failed program was:" >&5
10397 -sed 's/^/| /' conftest.$ac_ext >&5
10399 - ac_cv_type_short=no
10402 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 -{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10405 -echo "${ECHO_T}$ac_cv_type_short" >&6; }
10407 -# The cast to long int works around a bug in the HP C Compiler
10408 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10409 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10410 -# This bug is HP SR number 8606223364.
10411 -{ echo "$as_me:$LINENO: checking size of short" >&5
10412 -echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
10413 -if test "${ac_cv_sizeof_short+set}" = set; then
10414 - echo $ECHO_N "(cached) $ECHO_C" >&6
10416 - if test "$cross_compiling" = yes; then
10417 - # Depending upon the size, compute the lo and hi bounds.
10418 -cat >conftest.$ac_ext <<_ACEOF
10421 -cat confdefs.h >>conftest.$ac_ext
10422 -cat >>conftest.$ac_ext <<_ACEOF
10423 -/* end confdefs.h. */
10424 -$ac_includes_default
10425 - typedef short ac__type_sizeof_;
10429 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10430 -test_array [0] = 0
10436 -rm -f conftest.$ac_objext
10437 -if { (ac_try="$ac_compile"
10438 -case "(($ac_try" in
10439 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 - *) ac_try_echo=$ac_try;;
10442 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 - (eval "$ac_compile") 2>conftest.er1
10445 - grep -v '^ *+' conftest.er1 >conftest.err
10446 - rm -f conftest.er1
10447 - cat conftest.err >&5
10448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 - (exit $ac_status); } && {
10450 - test -z "$ac_c_werror_flag" ||
10451 - test ! -s conftest.err
10452 - } && test -s conftest.$ac_objext; then
10455 - cat >conftest.$ac_ext <<_ACEOF
10458 -cat confdefs.h >>conftest.$ac_ext
10459 -cat >>conftest.$ac_ext <<_ACEOF
10460 -/* end confdefs.h. */
10461 -$ac_includes_default
10462 - typedef short ac__type_sizeof_;
10466 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10467 -test_array [0] = 0
10473 -rm -f conftest.$ac_objext
10474 -if { (ac_try="$ac_compile"
10475 -case "(($ac_try" in
10476 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 - *) ac_try_echo=$ac_try;;
10479 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 - (eval "$ac_compile") 2>conftest.er1
10482 - grep -v '^ *+' conftest.er1 >conftest.err
10483 - rm -f conftest.er1
10484 - cat conftest.err >&5
10485 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 - (exit $ac_status); } && {
10487 - test -z "$ac_c_werror_flag" ||
10488 - test ! -s conftest.err
10489 - } && test -s conftest.$ac_objext; then
10490 - ac_hi=$ac_mid; break
10492 - echo "$as_me: failed program was:" >&5
10493 -sed 's/^/| /' conftest.$ac_ext >&5
10495 - ac_lo=`expr $ac_mid + 1`
10496 - if test $ac_lo -le $ac_mid; then
10500 - ac_mid=`expr 2 '*' $ac_mid + 1`
10503 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 - echo "$as_me: failed program was:" >&5
10507 -sed 's/^/| /' conftest.$ac_ext >&5
10509 - cat >conftest.$ac_ext <<_ACEOF
10512 -cat confdefs.h >>conftest.$ac_ext
10513 -cat >>conftest.$ac_ext <<_ACEOF
10514 -/* end confdefs.h. */
10515 -$ac_includes_default
10516 - typedef short ac__type_sizeof_;
10520 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10521 -test_array [0] = 0
10527 -rm -f conftest.$ac_objext
10528 -if { (ac_try="$ac_compile"
10529 -case "(($ac_try" in
10530 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 - *) ac_try_echo=$ac_try;;
10533 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 - (eval "$ac_compile") 2>conftest.er1
10536 - grep -v '^ *+' conftest.er1 >conftest.err
10537 - rm -f conftest.er1
10538 - cat conftest.err >&5
10539 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 - (exit $ac_status); } && {
10541 - test -z "$ac_c_werror_flag" ||
10542 - test ! -s conftest.err
10543 - } && test -s conftest.$ac_objext; then
10544 - ac_hi=-1 ac_mid=-1
10546 - cat >conftest.$ac_ext <<_ACEOF
10549 -cat confdefs.h >>conftest.$ac_ext
10550 -cat >>conftest.$ac_ext <<_ACEOF
10551 -/* end confdefs.h. */
10552 -$ac_includes_default
10553 - typedef short ac__type_sizeof_;
10557 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10558 -test_array [0] = 0
10564 -rm -f conftest.$ac_objext
10565 -if { (ac_try="$ac_compile"
10566 -case "(($ac_try" in
10567 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 - *) ac_try_echo=$ac_try;;
10570 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 - (eval "$ac_compile") 2>conftest.er1
10573 - grep -v '^ *+' conftest.er1 >conftest.err
10574 - rm -f conftest.er1
10575 - cat conftest.err >&5
10576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 - (exit $ac_status); } && {
10578 - test -z "$ac_c_werror_flag" ||
10579 - test ! -s conftest.err
10580 - } && test -s conftest.$ac_objext; then
10581 - ac_lo=$ac_mid; break
10583 - echo "$as_me: failed program was:" >&5
10584 -sed 's/^/| /' conftest.$ac_ext >&5
10586 - ac_hi=`expr '(' $ac_mid ')' - 1`
10587 - if test $ac_mid -le $ac_hi; then
10591 - ac_mid=`expr 2 '*' $ac_mid`
10594 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 - echo "$as_me: failed program was:" >&5
10598 -sed 's/^/| /' conftest.$ac_ext >&5
10603 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 -# Binary search between lo and hi bounds.
10608 -while test "x$ac_lo" != "x$ac_hi"; do
10609 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10610 - cat >conftest.$ac_ext <<_ACEOF
10613 -cat confdefs.h >>conftest.$ac_ext
10614 -cat >>conftest.$ac_ext <<_ACEOF
10615 -/* end confdefs.h. */
10616 -$ac_includes_default
10617 - typedef short ac__type_sizeof_;
10621 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10622 -test_array [0] = 0
10628 -rm -f conftest.$ac_objext
10629 -if { (ac_try="$ac_compile"
10630 -case "(($ac_try" in
10631 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 - *) ac_try_echo=$ac_try;;
10634 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 - (eval "$ac_compile") 2>conftest.er1
10637 - grep -v '^ *+' conftest.er1 >conftest.err
10638 - rm -f conftest.er1
10639 - cat conftest.err >&5
10640 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 - (exit $ac_status); } && {
10642 - test -z "$ac_c_werror_flag" ||
10643 - test ! -s conftest.err
10644 - } && test -s conftest.$ac_objext; then
10647 - echo "$as_me: failed program was:" >&5
10648 -sed 's/^/| /' conftest.$ac_ext >&5
10650 - ac_lo=`expr '(' $ac_mid ')' + 1`
10653 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 -?*) ac_cv_sizeof_short=$ac_lo;;
10657 -'') if test "$ac_cv_type_short" = yes; then
10658 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10659 -See \`config.log' for more details." >&5
10660 -echo "$as_me: error: cannot compute sizeof (short)
10661 -See \`config.log' for more details." >&2;}
10662 - { (exit 77); exit 77; }; }
10664 - ac_cv_sizeof_short=0
10668 - cat >conftest.$ac_ext <<_ACEOF
10671 -cat confdefs.h >>conftest.$ac_ext
10672 -cat >>conftest.$ac_ext <<_ACEOF
10673 -/* end confdefs.h. */
10674 -$ac_includes_default
10675 - typedef short ac__type_sizeof_;
10676 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10677 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10678 -#include <stdio.h>
10679 -#include <stdlib.h>
10684 - FILE *f = fopen ("conftest.val", "w");
10687 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10689 - long int i = longval ();
10690 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10692 - fprintf (f, "%ld\n", i);
10696 - unsigned long int i = ulongval ();
10697 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10699 - fprintf (f, "%lu\n", i);
10701 - return ferror (f) || fclose (f) != 0;
10707 -rm -f conftest$ac_exeext
10708 -if { (ac_try="$ac_link"
10709 -case "(($ac_try" in
10710 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 - *) ac_try_echo=$ac_try;;
10713 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 - (eval "$ac_link") 2>&5
10716 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10718 - { (case "(($ac_try" in
10719 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 - *) ac_try_echo=$ac_try;;
10722 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 - (eval "$ac_try") 2>&5
10725 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 - (exit $ac_status); }; }; then
10727 - ac_cv_sizeof_short=`cat conftest.val`
10729 - echo "$as_me: program exited with status $ac_status" >&5
10730 -echo "$as_me: failed program was:" >&5
10731 -sed 's/^/| /' conftest.$ac_ext >&5
10733 -( exit $ac_status )
10734 -if test "$ac_cv_type_short" = yes; then
10735 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10736 -See \`config.log' for more details." >&5
10737 -echo "$as_me: error: cannot compute sizeof (short)
10738 -See \`config.log' for more details." >&2;}
10739 - { (exit 77); exit 77; }; }
10741 - ac_cv_sizeof_short=0
10744 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10746 -rm -f conftest.val
10748 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10749 -echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
10753 -cat >>confdefs.h <<_ACEOF
10754 -#define SIZEOF_SHORT $ac_cv_sizeof_short
10758 -{ echo "$as_me:$LINENO: checking for float" >&5
10759 -echo $ECHO_N "checking for float... $ECHO_C" >&6; }
10760 -if test "${ac_cv_type_float+set}" = set; then
10761 - echo $ECHO_N "(cached) $ECHO_C" >&6
10763 - cat >conftest.$ac_ext <<_ACEOF
10766 -cat confdefs.h >>conftest.$ac_ext
10767 -cat >>conftest.$ac_ext <<_ACEOF
10768 -/* end confdefs.h. */
10769 -$ac_includes_default
10770 -typedef float ac__type_new_;
10774 -if ((ac__type_new_ *) 0)
10776 -if (sizeof (ac__type_new_))
10782 -rm -f conftest.$ac_objext
10783 -if { (ac_try="$ac_compile"
10784 -case "(($ac_try" in
10785 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 - *) ac_try_echo=$ac_try;;
10788 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 - (eval "$ac_compile") 2>conftest.er1
10791 - grep -v '^ *+' conftest.er1 >conftest.err
10792 - rm -f conftest.er1
10793 - cat conftest.err >&5
10794 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 - (exit $ac_status); } && {
10796 - test -z "$ac_c_werror_flag" ||
10797 - test ! -s conftest.err
10798 - } && test -s conftest.$ac_objext; then
10799 - ac_cv_type_float=yes
10801 - echo "$as_me: failed program was:" >&5
10802 -sed 's/^/| /' conftest.$ac_ext >&5
10804 - ac_cv_type_float=no
10807 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 -{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
10810 -echo "${ECHO_T}$ac_cv_type_float" >&6; }
10812 -# The cast to long int works around a bug in the HP C Compiler
10813 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10814 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10815 -# This bug is HP SR number 8606223364.
10816 -{ echo "$as_me:$LINENO: checking size of float" >&5
10817 -echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
10818 -if test "${ac_cv_sizeof_float+set}" = set; then
10819 - echo $ECHO_N "(cached) $ECHO_C" >&6
10821 - if test "$cross_compiling" = yes; then
10822 - # Depending upon the size, compute the lo and hi bounds.
10823 -cat >conftest.$ac_ext <<_ACEOF
10826 -cat confdefs.h >>conftest.$ac_ext
10827 -cat >>conftest.$ac_ext <<_ACEOF
10828 -/* end confdefs.h. */
10829 -$ac_includes_default
10830 - typedef float ac__type_sizeof_;
10834 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10835 -test_array [0] = 0
10841 -rm -f conftest.$ac_objext
10842 -if { (ac_try="$ac_compile"
10843 -case "(($ac_try" in
10844 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 - *) ac_try_echo=$ac_try;;
10847 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 - (eval "$ac_compile") 2>conftest.er1
10850 - grep -v '^ *+' conftest.er1 >conftest.err
10851 - rm -f conftest.er1
10852 - cat conftest.err >&5
10853 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 - (exit $ac_status); } && {
10855 - test -z "$ac_c_werror_flag" ||
10856 - test ! -s conftest.err
10857 - } && test -s conftest.$ac_objext; then
10860 - cat >conftest.$ac_ext <<_ACEOF
10863 -cat confdefs.h >>conftest.$ac_ext
10864 -cat >>conftest.$ac_ext <<_ACEOF
10865 -/* end confdefs.h. */
10866 -$ac_includes_default
10867 - typedef float ac__type_sizeof_;
10871 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10872 -test_array [0] = 0
10878 -rm -f conftest.$ac_objext
10879 -if { (ac_try="$ac_compile"
10880 -case "(($ac_try" in
10881 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 - *) ac_try_echo=$ac_try;;
10884 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 - (eval "$ac_compile") 2>conftest.er1
10887 - grep -v '^ *+' conftest.er1 >conftest.err
10888 - rm -f conftest.er1
10889 - cat conftest.err >&5
10890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 - (exit $ac_status); } && {
10892 - test -z "$ac_c_werror_flag" ||
10893 - test ! -s conftest.err
10894 - } && test -s conftest.$ac_objext; then
10895 - ac_hi=$ac_mid; break
10897 - echo "$as_me: failed program was:" >&5
10898 -sed 's/^/| /' conftest.$ac_ext >&5
10900 - ac_lo=`expr $ac_mid + 1`
10901 - if test $ac_lo -le $ac_mid; then
10905 - ac_mid=`expr 2 '*' $ac_mid + 1`
10908 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911 - echo "$as_me: failed program was:" >&5
10912 -sed 's/^/| /' conftest.$ac_ext >&5
10914 - cat >conftest.$ac_ext <<_ACEOF
10917 -cat confdefs.h >>conftest.$ac_ext
10918 -cat >>conftest.$ac_ext <<_ACEOF
10919 -/* end confdefs.h. */
10920 -$ac_includes_default
10921 - typedef float ac__type_sizeof_;
10925 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10926 -test_array [0] = 0
10932 -rm -f conftest.$ac_objext
10933 -if { (ac_try="$ac_compile"
10934 -case "(($ac_try" in
10935 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 - *) ac_try_echo=$ac_try;;
10938 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 - (eval "$ac_compile") 2>conftest.er1
10941 - grep -v '^ *+' conftest.er1 >conftest.err
10942 - rm -f conftest.er1
10943 - cat conftest.err >&5
10944 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 - (exit $ac_status); } && {
10946 - test -z "$ac_c_werror_flag" ||
10947 - test ! -s conftest.err
10948 - } && test -s conftest.$ac_objext; then
10949 - ac_hi=-1 ac_mid=-1
10951 - cat >conftest.$ac_ext <<_ACEOF
10954 -cat confdefs.h >>conftest.$ac_ext
10955 -cat >>conftest.$ac_ext <<_ACEOF
10956 -/* end confdefs.h. */
10957 -$ac_includes_default
10958 - typedef float ac__type_sizeof_;
10962 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10963 -test_array [0] = 0
10969 -rm -f conftest.$ac_objext
10970 -if { (ac_try="$ac_compile"
10971 -case "(($ac_try" in
10972 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 - *) ac_try_echo=$ac_try;;
10975 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 - (eval "$ac_compile") 2>conftest.er1
10978 - grep -v '^ *+' conftest.er1 >conftest.err
10979 - rm -f conftest.er1
10980 - cat conftest.err >&5
10981 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 - (exit $ac_status); } && {
10983 - test -z "$ac_c_werror_flag" ||
10984 - test ! -s conftest.err
10985 - } && test -s conftest.$ac_objext; then
10986 - ac_lo=$ac_mid; break
10988 - echo "$as_me: failed program was:" >&5
10989 -sed 's/^/| /' conftest.$ac_ext >&5
10991 - ac_hi=`expr '(' $ac_mid ')' - 1`
10992 - if test $ac_mid -le $ac_hi; then
10996 - ac_mid=`expr 2 '*' $ac_mid`
10999 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 - echo "$as_me: failed program was:" >&5
11003 -sed 's/^/| /' conftest.$ac_ext >&5
11008 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 -# Binary search between lo and hi bounds.
11013 -while test "x$ac_lo" != "x$ac_hi"; do
11014 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11015 - cat >conftest.$ac_ext <<_ACEOF
11018 -cat confdefs.h >>conftest.$ac_ext
11019 -cat >>conftest.$ac_ext <<_ACEOF
11020 -/* end confdefs.h. */
11021 -$ac_includes_default
11022 - typedef float ac__type_sizeof_;
11026 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11027 -test_array [0] = 0
11033 -rm -f conftest.$ac_objext
11034 -if { (ac_try="$ac_compile"
11035 -case "(($ac_try" in
11036 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 - *) ac_try_echo=$ac_try;;
11039 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 - (eval "$ac_compile") 2>conftest.er1
11042 - grep -v '^ *+' conftest.er1 >conftest.err
11043 - rm -f conftest.er1
11044 - cat conftest.err >&5
11045 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 - (exit $ac_status); } && {
11047 - test -z "$ac_c_werror_flag" ||
11048 - test ! -s conftest.err
11049 - } && test -s conftest.$ac_objext; then
11052 - echo "$as_me: failed program was:" >&5
11053 -sed 's/^/| /' conftest.$ac_ext >&5
11055 - ac_lo=`expr '(' $ac_mid ')' + 1`
11058 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 -?*) ac_cv_sizeof_float=$ac_lo;;
11062 -'') if test "$ac_cv_type_float" = yes; then
11063 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11064 -See \`config.log' for more details." >&5
11065 -echo "$as_me: error: cannot compute sizeof (float)
11066 -See \`config.log' for more details." >&2;}
11067 - { (exit 77); exit 77; }; }
11069 - ac_cv_sizeof_float=0
11073 - cat >conftest.$ac_ext <<_ACEOF
11076 -cat confdefs.h >>conftest.$ac_ext
11077 -cat >>conftest.$ac_ext <<_ACEOF
11078 -/* end confdefs.h. */
11079 -$ac_includes_default
11080 - typedef float ac__type_sizeof_;
11081 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11082 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11083 -#include <stdio.h>
11084 -#include <stdlib.h>
11089 - FILE *f = fopen ("conftest.val", "w");
11092 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11094 - long int i = longval ();
11095 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11097 - fprintf (f, "%ld\n", i);
11101 - unsigned long int i = ulongval ();
11102 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11104 - fprintf (f, "%lu\n", i);
11106 - return ferror (f) || fclose (f) != 0;
11112 -rm -f conftest$ac_exeext
11113 -if { (ac_try="$ac_link"
11114 -case "(($ac_try" in
11115 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 - *) ac_try_echo=$ac_try;;
11118 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 - (eval "$ac_link") 2>&5
11121 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11123 - { (case "(($ac_try" in
11124 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 - *) ac_try_echo=$ac_try;;
11127 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 - (eval "$ac_try") 2>&5
11130 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 - (exit $ac_status); }; }; then
11132 - ac_cv_sizeof_float=`cat conftest.val`
11134 - echo "$as_me: program exited with status $ac_status" >&5
11135 -echo "$as_me: failed program was:" >&5
11136 -sed 's/^/| /' conftest.$ac_ext >&5
11138 -( exit $ac_status )
11139 -if test "$ac_cv_type_float" = yes; then
11140 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11141 -See \`config.log' for more details." >&5
11142 -echo "$as_me: error: cannot compute sizeof (float)
11143 -See \`config.log' for more details." >&2;}
11144 - { (exit 77); exit 77; }; }
11146 - ac_cv_sizeof_float=0
11149 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151 -rm -f conftest.val
11153 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
11154 -echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
11158 -cat >>confdefs.h <<_ACEOF
11159 -#define SIZEOF_FLOAT $ac_cv_sizeof_float
11163 -{ echo "$as_me:$LINENO: checking for double" >&5
11164 -echo $ECHO_N "checking for double... $ECHO_C" >&6; }
11165 -if test "${ac_cv_type_double+set}" = set; then
11166 - echo $ECHO_N "(cached) $ECHO_C" >&6
11168 - cat >conftest.$ac_ext <<_ACEOF
11171 -cat confdefs.h >>conftest.$ac_ext
11172 -cat >>conftest.$ac_ext <<_ACEOF
11173 -/* end confdefs.h. */
11174 -$ac_includes_default
11175 -typedef double ac__type_new_;
11179 -if ((ac__type_new_ *) 0)
11181 -if (sizeof (ac__type_new_))
11187 -rm -f conftest.$ac_objext
11188 -if { (ac_try="$ac_compile"
11189 -case "(($ac_try" in
11190 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 - *) ac_try_echo=$ac_try;;
11193 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 - (eval "$ac_compile") 2>conftest.er1
11196 - grep -v '^ *+' conftest.er1 >conftest.err
11197 - rm -f conftest.er1
11198 - cat conftest.err >&5
11199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 - (exit $ac_status); } && {
11201 - test -z "$ac_c_werror_flag" ||
11202 - test ! -s conftest.err
11203 - } && test -s conftest.$ac_objext; then
11204 - ac_cv_type_double=yes
11206 - echo "$as_me: failed program was:" >&5
11207 -sed 's/^/| /' conftest.$ac_ext >&5
11209 - ac_cv_type_double=no
11212 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 -{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11215 -echo "${ECHO_T}$ac_cv_type_double" >&6; }
11217 -# The cast to long int works around a bug in the HP C Compiler
11218 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11219 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11220 -# This bug is HP SR number 8606223364.
11221 -{ echo "$as_me:$LINENO: checking size of double" >&5
11222 -echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
11223 -if test "${ac_cv_sizeof_double+set}" = set; then
11224 - echo $ECHO_N "(cached) $ECHO_C" >&6
11226 - if test "$cross_compiling" = yes; then
11227 - # Depending upon the size, compute the lo and hi bounds.
11228 -cat >conftest.$ac_ext <<_ACEOF
11231 -cat confdefs.h >>conftest.$ac_ext
11232 -cat >>conftest.$ac_ext <<_ACEOF
11233 -/* end confdefs.h. */
11234 -$ac_includes_default
11235 - typedef double ac__type_sizeof_;
11239 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11240 -test_array [0] = 0
11246 -rm -f conftest.$ac_objext
11247 -if { (ac_try="$ac_compile"
11248 -case "(($ac_try" in
11249 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 - *) ac_try_echo=$ac_try;;
11252 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 - (eval "$ac_compile") 2>conftest.er1
11255 - grep -v '^ *+' conftest.er1 >conftest.err
11256 - rm -f conftest.er1
11257 - cat conftest.err >&5
11258 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 - (exit $ac_status); } && {
11260 - test -z "$ac_c_werror_flag" ||
11261 - test ! -s conftest.err
11262 - } && test -s conftest.$ac_objext; then
11265 - cat >conftest.$ac_ext <<_ACEOF
11268 -cat confdefs.h >>conftest.$ac_ext
11269 -cat >>conftest.$ac_ext <<_ACEOF
11270 -/* end confdefs.h. */
11271 -$ac_includes_default
11272 - typedef double ac__type_sizeof_;
11276 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11277 -test_array [0] = 0
11283 -rm -f conftest.$ac_objext
11284 -if { (ac_try="$ac_compile"
11285 -case "(($ac_try" in
11286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 - *) ac_try_echo=$ac_try;;
11289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 - (eval "$ac_compile") 2>conftest.er1
11292 - grep -v '^ *+' conftest.er1 >conftest.err
11293 - rm -f conftest.er1
11294 - cat conftest.err >&5
11295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 - (exit $ac_status); } && {
11297 - test -z "$ac_c_werror_flag" ||
11298 - test ! -s conftest.err
11299 - } && test -s conftest.$ac_objext; then
11300 - ac_hi=$ac_mid; break
11302 - echo "$as_me: failed program was:" >&5
11303 -sed 's/^/| /' conftest.$ac_ext >&5
11305 - ac_lo=`expr $ac_mid + 1`
11306 - if test $ac_lo -le $ac_mid; then
11310 - ac_mid=`expr 2 '*' $ac_mid + 1`
11313 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 - echo "$as_me: failed program was:" >&5
11317 -sed 's/^/| /' conftest.$ac_ext >&5
11319 - cat >conftest.$ac_ext <<_ACEOF
11322 -cat confdefs.h >>conftest.$ac_ext
11323 -cat >>conftest.$ac_ext <<_ACEOF
11324 -/* end confdefs.h. */
11325 -$ac_includes_default
11326 - typedef double ac__type_sizeof_;
11330 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11331 -test_array [0] = 0
11337 -rm -f conftest.$ac_objext
11338 -if { (ac_try="$ac_compile"
11339 -case "(($ac_try" in
11340 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 - *) ac_try_echo=$ac_try;;
11343 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 - (eval "$ac_compile") 2>conftest.er1
11346 - grep -v '^ *+' conftest.er1 >conftest.err
11347 - rm -f conftest.er1
11348 - cat conftest.err >&5
11349 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 - (exit $ac_status); } && {
11351 - test -z "$ac_c_werror_flag" ||
11352 - test ! -s conftest.err
11353 - } && test -s conftest.$ac_objext; then
11354 - ac_hi=-1 ac_mid=-1
11356 - cat >conftest.$ac_ext <<_ACEOF
11359 -cat confdefs.h >>conftest.$ac_ext
11360 -cat >>conftest.$ac_ext <<_ACEOF
11361 -/* end confdefs.h. */
11362 -$ac_includes_default
11363 - typedef double ac__type_sizeof_;
11367 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11368 -test_array [0] = 0
11374 -rm -f conftest.$ac_objext
11375 -if { (ac_try="$ac_compile"
11376 -case "(($ac_try" in
11377 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 - *) ac_try_echo=$ac_try;;
11380 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 - (eval "$ac_compile") 2>conftest.er1
11383 - grep -v '^ *+' conftest.er1 >conftest.err
11384 - rm -f conftest.er1
11385 - cat conftest.err >&5
11386 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 - (exit $ac_status); } && {
11388 - test -z "$ac_c_werror_flag" ||
11389 - test ! -s conftest.err
11390 - } && test -s conftest.$ac_objext; then
11391 - ac_lo=$ac_mid; break
11393 - echo "$as_me: failed program was:" >&5
11394 -sed 's/^/| /' conftest.$ac_ext >&5
11396 - ac_hi=`expr '(' $ac_mid ')' - 1`
11397 - if test $ac_mid -le $ac_hi; then
11401 - ac_mid=`expr 2 '*' $ac_mid`
11404 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 - echo "$as_me: failed program was:" >&5
11408 -sed 's/^/| /' conftest.$ac_ext >&5
11413 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 -# Binary search between lo and hi bounds.
11418 -while test "x$ac_lo" != "x$ac_hi"; do
11419 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11420 - cat >conftest.$ac_ext <<_ACEOF
11423 -cat confdefs.h >>conftest.$ac_ext
11424 -cat >>conftest.$ac_ext <<_ACEOF
11425 -/* end confdefs.h. */
11426 -$ac_includes_default
11427 - typedef double ac__type_sizeof_;
11431 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11432 -test_array [0] = 0
11438 -rm -f conftest.$ac_objext
11439 -if { (ac_try="$ac_compile"
11440 -case "(($ac_try" in
11441 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 - *) ac_try_echo=$ac_try;;
11444 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 - (eval "$ac_compile") 2>conftest.er1
11447 - grep -v '^ *+' conftest.er1 >conftest.err
11448 - rm -f conftest.er1
11449 - cat conftest.err >&5
11450 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 - (exit $ac_status); } && {
11452 - test -z "$ac_c_werror_flag" ||
11453 - test ! -s conftest.err
11454 - } && test -s conftest.$ac_objext; then
11457 - echo "$as_me: failed program was:" >&5
11458 -sed 's/^/| /' conftest.$ac_ext >&5
11460 - ac_lo=`expr '(' $ac_mid ')' + 1`
11463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 -?*) ac_cv_sizeof_double=$ac_lo;;
11467 -'') if test "$ac_cv_type_double" = yes; then
11468 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
11469 -See \`config.log' for more details." >&5
11470 -echo "$as_me: error: cannot compute sizeof (double)
11471 -See \`config.log' for more details." >&2;}
11472 - { (exit 77); exit 77; }; }
11474 - ac_cv_sizeof_double=0
11478 - cat >conftest.$ac_ext <<_ACEOF
11481 -cat confdefs.h >>conftest.$ac_ext
11482 -cat >>conftest.$ac_ext <<_ACEOF
11483 -/* end confdefs.h. */
11484 -$ac_includes_default
11485 - typedef double ac__type_sizeof_;
11486 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11487 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11488 -#include <stdio.h>
11489 -#include <stdlib.h>
11494 - FILE *f = fopen ("conftest.val", "w");
11497 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11499 - long int i = longval ();
11500 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11502 - fprintf (f, "%ld\n", i);
11506 - unsigned long int i = ulongval ();
11507 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11509 - fprintf (f, "%lu\n", i);
11511 - return ferror (f) || fclose (f) != 0;
11517 -rm -f conftest$ac_exeext
11518 -if { (ac_try="$ac_link"
11519 -case "(($ac_try" in
11520 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 - *) ac_try_echo=$ac_try;;
11523 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 - (eval "$ac_link") 2>&5
11526 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11528 - { (case "(($ac_try" in
11529 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 - *) ac_try_echo=$ac_try;;
11532 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 - (eval "$ac_try") 2>&5
11535 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 - (exit $ac_status); }; }; then
11537 - ac_cv_sizeof_double=`cat conftest.val`
11539 - echo "$as_me: program exited with status $ac_status" >&5
11540 -echo "$as_me: failed program was:" >&5
11541 -sed 's/^/| /' conftest.$ac_ext >&5
11543 -( exit $ac_status )
11544 -if test "$ac_cv_type_double" = yes; then
11545 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
11546 -See \`config.log' for more details." >&5
11547 -echo "$as_me: error: cannot compute sizeof (double)
11548 -See \`config.log' for more details." >&2;}
11549 - { (exit 77); exit 77; }; }
11551 - ac_cv_sizeof_double=0
11554 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556 -rm -f conftest.val
11558 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11559 -echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
11563 -cat >>confdefs.h <<_ACEOF
11564 -#define SIZEOF_DOUBLE $ac_cv_sizeof_double
11568 -{ echo "$as_me:$LINENO: checking for fpos_t" >&5
11569 -echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
11570 -if test "${ac_cv_type_fpos_t+set}" = set; then
11571 - echo $ECHO_N "(cached) $ECHO_C" >&6
11573 - cat >conftest.$ac_ext <<_ACEOF
11576 -cat confdefs.h >>conftest.$ac_ext
11577 -cat >>conftest.$ac_ext <<_ACEOF
11578 -/* end confdefs.h. */
11579 -$ac_includes_default
11580 -typedef fpos_t ac__type_new_;
11584 -if ((ac__type_new_ *) 0)
11586 -if (sizeof (ac__type_new_))
11592 -rm -f conftest.$ac_objext
11593 -if { (ac_try="$ac_compile"
11594 -case "(($ac_try" in
11595 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 - *) ac_try_echo=$ac_try;;
11598 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 - (eval "$ac_compile") 2>conftest.er1
11601 - grep -v '^ *+' conftest.er1 >conftest.err
11602 - rm -f conftest.er1
11603 - cat conftest.err >&5
11604 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 - (exit $ac_status); } && {
11606 - test -z "$ac_c_werror_flag" ||
11607 - test ! -s conftest.err
11608 - } && test -s conftest.$ac_objext; then
11609 - ac_cv_type_fpos_t=yes
11611 - echo "$as_me: failed program was:" >&5
11612 -sed 's/^/| /' conftest.$ac_ext >&5
11614 - ac_cv_type_fpos_t=no
11617 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 -{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
11620 -echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
11622 -# The cast to long int works around a bug in the HP C Compiler
11623 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11624 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11625 -# This bug is HP SR number 8606223364.
11626 -{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
11627 -echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
11628 -if test "${ac_cv_sizeof_fpos_t+set}" = set; then
11629 - echo $ECHO_N "(cached) $ECHO_C" >&6
11631 - if test "$cross_compiling" = yes; then
11632 - # Depending upon the size, compute the lo and hi bounds.
11633 -cat >conftest.$ac_ext <<_ACEOF
11636 -cat confdefs.h >>conftest.$ac_ext
11637 -cat >>conftest.$ac_ext <<_ACEOF
11638 -/* end confdefs.h. */
11639 -$ac_includes_default
11640 - typedef fpos_t ac__type_sizeof_;
11644 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11645 -test_array [0] = 0
11651 -rm -f conftest.$ac_objext
11652 -if { (ac_try="$ac_compile"
11653 -case "(($ac_try" in
11654 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 - *) ac_try_echo=$ac_try;;
11657 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 - (eval "$ac_compile") 2>conftest.er1
11660 - grep -v '^ *+' conftest.er1 >conftest.err
11661 - rm -f conftest.er1
11662 - cat conftest.err >&5
11663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 - (exit $ac_status); } && {
11665 - test -z "$ac_c_werror_flag" ||
11666 - test ! -s conftest.err
11667 - } && test -s conftest.$ac_objext; then
11670 - cat >conftest.$ac_ext <<_ACEOF
11673 -cat confdefs.h >>conftest.$ac_ext
11674 -cat >>conftest.$ac_ext <<_ACEOF
11675 -/* end confdefs.h. */
11676 -$ac_includes_default
11677 - typedef fpos_t ac__type_sizeof_;
11681 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11682 -test_array [0] = 0
11688 -rm -f conftest.$ac_objext
11689 -if { (ac_try="$ac_compile"
11690 -case "(($ac_try" in
11691 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 - *) ac_try_echo=$ac_try;;
11694 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 - (eval "$ac_compile") 2>conftest.er1
11697 - grep -v '^ *+' conftest.er1 >conftest.err
11698 - rm -f conftest.er1
11699 - cat conftest.err >&5
11700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 - (exit $ac_status); } && {
11702 - test -z "$ac_c_werror_flag" ||
11703 - test ! -s conftest.err
11704 - } && test -s conftest.$ac_objext; then
11705 - ac_hi=$ac_mid; break
11707 - echo "$as_me: failed program was:" >&5
11708 -sed 's/^/| /' conftest.$ac_ext >&5
11710 - ac_lo=`expr $ac_mid + 1`
11711 - if test $ac_lo -le $ac_mid; then
11715 - ac_mid=`expr 2 '*' $ac_mid + 1`
11718 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 - echo "$as_me: failed program was:" >&5
11722 -sed 's/^/| /' conftest.$ac_ext >&5
11724 - cat >conftest.$ac_ext <<_ACEOF
11727 -cat confdefs.h >>conftest.$ac_ext
11728 -cat >>conftest.$ac_ext <<_ACEOF
11729 -/* end confdefs.h. */
11730 -$ac_includes_default
11731 - typedef fpos_t ac__type_sizeof_;
11735 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11736 -test_array [0] = 0
11742 -rm -f conftest.$ac_objext
11743 -if { (ac_try="$ac_compile"
11744 -case "(($ac_try" in
11745 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 - *) ac_try_echo=$ac_try;;
11748 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 - (eval "$ac_compile") 2>conftest.er1
11751 - grep -v '^ *+' conftest.er1 >conftest.err
11752 - rm -f conftest.er1
11753 - cat conftest.err >&5
11754 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 - (exit $ac_status); } && {
11756 - test -z "$ac_c_werror_flag" ||
11757 - test ! -s conftest.err
11758 - } && test -s conftest.$ac_objext; then
11759 - ac_hi=-1 ac_mid=-1
11761 - cat >conftest.$ac_ext <<_ACEOF
11764 -cat confdefs.h >>conftest.$ac_ext
11765 -cat >>conftest.$ac_ext <<_ACEOF
11766 -/* end confdefs.h. */
11767 -$ac_includes_default
11768 - typedef fpos_t ac__type_sizeof_;
11772 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11773 -test_array [0] = 0
11779 -rm -f conftest.$ac_objext
11780 -if { (ac_try="$ac_compile"
11781 -case "(($ac_try" in
11782 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 - *) ac_try_echo=$ac_try;;
11785 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 - (eval "$ac_compile") 2>conftest.er1
11788 - grep -v '^ *+' conftest.er1 >conftest.err
11789 - rm -f conftest.er1
11790 - cat conftest.err >&5
11791 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 - (exit $ac_status); } && {
11793 - test -z "$ac_c_werror_flag" ||
11794 - test ! -s conftest.err
11795 - } && test -s conftest.$ac_objext; then
11796 - ac_lo=$ac_mid; break
11798 - echo "$as_me: failed program was:" >&5
11799 -sed 's/^/| /' conftest.$ac_ext >&5
11801 - ac_hi=`expr '(' $ac_mid ')' - 1`
11802 - if test $ac_mid -le $ac_hi; then
11806 - ac_mid=`expr 2 '*' $ac_mid`
11809 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 - echo "$as_me: failed program was:" >&5
11813 -sed 's/^/| /' conftest.$ac_ext >&5
11818 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 -# Binary search between lo and hi bounds.
11823 -while test "x$ac_lo" != "x$ac_hi"; do
11824 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11825 - cat >conftest.$ac_ext <<_ACEOF
11828 -cat confdefs.h >>conftest.$ac_ext
11829 -cat >>conftest.$ac_ext <<_ACEOF
11830 -/* end confdefs.h. */
11831 -$ac_includes_default
11832 - typedef fpos_t ac__type_sizeof_;
11836 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11837 -test_array [0] = 0
11843 -rm -f conftest.$ac_objext
11844 -if { (ac_try="$ac_compile"
11845 -case "(($ac_try" in
11846 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 - *) ac_try_echo=$ac_try;;
11849 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 - (eval "$ac_compile") 2>conftest.er1
11852 - grep -v '^ *+' conftest.er1 >conftest.err
11853 - rm -f conftest.er1
11854 - cat conftest.err >&5
11855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 - (exit $ac_status); } && {
11857 - test -z "$ac_c_werror_flag" ||
11858 - test ! -s conftest.err
11859 - } && test -s conftest.$ac_objext; then
11862 - echo "$as_me: failed program was:" >&5
11863 -sed 's/^/| /' conftest.$ac_ext >&5
11865 - ac_lo=`expr '(' $ac_mid ')' + 1`
11868 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 -?*) ac_cv_sizeof_fpos_t=$ac_lo;;
11872 -'') if test "$ac_cv_type_fpos_t" = yes; then
11873 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
11874 -See \`config.log' for more details." >&5
11875 -echo "$as_me: error: cannot compute sizeof (fpos_t)
11876 -See \`config.log' for more details." >&2;}
11877 - { (exit 77); exit 77; }; }
11879 - ac_cv_sizeof_fpos_t=0
11883 - cat >conftest.$ac_ext <<_ACEOF
11886 -cat confdefs.h >>conftest.$ac_ext
11887 -cat >>conftest.$ac_ext <<_ACEOF
11888 -/* end confdefs.h. */
11889 -$ac_includes_default
11890 - typedef fpos_t ac__type_sizeof_;
11891 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11892 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11893 -#include <stdio.h>
11894 -#include <stdlib.h>
11899 - FILE *f = fopen ("conftest.val", "w");
11902 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11904 - long int i = longval ();
11905 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11907 - fprintf (f, "%ld\n", i);
11911 - unsigned long int i = ulongval ();
11912 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11914 - fprintf (f, "%lu\n", i);
11916 - return ferror (f) || fclose (f) != 0;
11922 -rm -f conftest$ac_exeext
11923 -if { (ac_try="$ac_link"
11924 -case "(($ac_try" in
11925 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 - *) ac_try_echo=$ac_try;;
11928 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 - (eval "$ac_link") 2>&5
11931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11933 - { (case "(($ac_try" in
11934 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 - *) ac_try_echo=$ac_try;;
11937 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 - (eval "$ac_try") 2>&5
11940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 - (exit $ac_status); }; }; then
11942 - ac_cv_sizeof_fpos_t=`cat conftest.val`
11944 - echo "$as_me: program exited with status $ac_status" >&5
11945 -echo "$as_me: failed program was:" >&5
11946 -sed 's/^/| /' conftest.$ac_ext >&5
11948 -( exit $ac_status )
11949 -if test "$ac_cv_type_fpos_t" = yes; then
11950 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
11951 -See \`config.log' for more details." >&5
11952 -echo "$as_me: error: cannot compute sizeof (fpos_t)
11953 -See \`config.log' for more details." >&2;}
11954 - { (exit 77); exit 77; }; }
11956 - ac_cv_sizeof_fpos_t=0
11959 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11961 -rm -f conftest.val
11963 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
11964 -echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
11968 -cat >>confdefs.h <<_ACEOF
11969 -#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
11973 -{ echo "$as_me:$LINENO: checking for size_t" >&5
11974 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11975 -if test "${ac_cv_type_size_t+set}" = set; then
11976 - echo $ECHO_N "(cached) $ECHO_C" >&6
11978 - cat >conftest.$ac_ext <<_ACEOF
11981 -cat confdefs.h >>conftest.$ac_ext
11982 -cat >>conftest.$ac_ext <<_ACEOF
11983 -/* end confdefs.h. */
11984 -$ac_includes_default
11985 -typedef size_t ac__type_new_;
11989 -if ((ac__type_new_ *) 0)
11991 -if (sizeof (ac__type_new_))
11997 -rm -f conftest.$ac_objext
11998 -if { (ac_try="$ac_compile"
11999 -case "(($ac_try" in
12000 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 - *) ac_try_echo=$ac_try;;
12003 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 - (eval "$ac_compile") 2>conftest.er1
12006 - grep -v '^ *+' conftest.er1 >conftest.err
12007 - rm -f conftest.er1
12008 - cat conftest.err >&5
12009 - 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
12014 - ac_cv_type_size_t=yes
12016 - echo "$as_me: failed program was:" >&5
12017 -sed 's/^/| /' conftest.$ac_ext >&5
12019 - ac_cv_type_size_t=no
12022 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12025 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12027 -# The cast to long int works around a bug in the HP C Compiler
12028 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12029 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12030 -# This bug is HP SR number 8606223364.
12031 -{ echo "$as_me:$LINENO: checking size of size_t" >&5
12032 -echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
12033 -if test "${ac_cv_sizeof_size_t+set}" = set; then
12034 - echo $ECHO_N "(cached) $ECHO_C" >&6
12036 - if test "$cross_compiling" = yes; then
12037 - # Depending upon the size, compute the lo and hi bounds.
12038 -cat >conftest.$ac_ext <<_ACEOF
12041 -cat confdefs.h >>conftest.$ac_ext
12042 -cat >>conftest.$ac_ext <<_ACEOF
12043 -/* end confdefs.h. */
12044 -$ac_includes_default
12045 - typedef size_t ac__type_sizeof_;
12049 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12050 -test_array [0] = 0
12056 -rm -f conftest.$ac_objext
12057 -if { (ac_try="$ac_compile"
12058 -case "(($ac_try" in
12059 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 - *) ac_try_echo=$ac_try;;
12062 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 - (eval "$ac_compile") 2>conftest.er1
12065 - grep -v '^ *+' conftest.er1 >conftest.err
12066 - rm -f conftest.er1
12067 - cat conftest.err >&5
12068 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 - (exit $ac_status); } && {
12070 - test -z "$ac_c_werror_flag" ||
12071 - test ! -s conftest.err
12072 - } && test -s conftest.$ac_objext; then
12075 - cat >conftest.$ac_ext <<_ACEOF
12078 -cat confdefs.h >>conftest.$ac_ext
12079 -cat >>conftest.$ac_ext <<_ACEOF
12080 -/* end confdefs.h. */
12081 -$ac_includes_default
12082 - typedef size_t ac__type_sizeof_;
12086 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12087 -test_array [0] = 0
12093 -rm -f conftest.$ac_objext
12094 -if { (ac_try="$ac_compile"
12095 -case "(($ac_try" in
12096 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 - *) ac_try_echo=$ac_try;;
12099 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 - (eval "$ac_compile") 2>conftest.er1
12102 - grep -v '^ *+' conftest.er1 >conftest.err
12103 - rm -f conftest.er1
12104 - cat conftest.err >&5
12105 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 - (exit $ac_status); } && {
12107 - test -z "$ac_c_werror_flag" ||
12108 - test ! -s conftest.err
12109 - } && test -s conftest.$ac_objext; then
12110 - ac_hi=$ac_mid; break
12112 - echo "$as_me: failed program was:" >&5
12113 -sed 's/^/| /' conftest.$ac_ext >&5
12115 - ac_lo=`expr $ac_mid + 1`
12116 - if test $ac_lo -le $ac_mid; then
12120 - ac_mid=`expr 2 '*' $ac_mid + 1`
12123 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 - echo "$as_me: failed program was:" >&5
12127 -sed 's/^/| /' conftest.$ac_ext >&5
12129 - cat >conftest.$ac_ext <<_ACEOF
12132 -cat confdefs.h >>conftest.$ac_ext
12133 -cat >>conftest.$ac_ext <<_ACEOF
12134 -/* end confdefs.h. */
12135 -$ac_includes_default
12136 - typedef size_t ac__type_sizeof_;
12140 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12141 -test_array [0] = 0
12147 -rm -f conftest.$ac_objext
12148 -if { (ac_try="$ac_compile"
12149 -case "(($ac_try" in
12150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 - *) ac_try_echo=$ac_try;;
12153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 - (eval "$ac_compile") 2>conftest.er1
12156 - grep -v '^ *+' conftest.er1 >conftest.err
12157 - rm -f conftest.er1
12158 - cat conftest.err >&5
12159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 - (exit $ac_status); } && {
12161 - test -z "$ac_c_werror_flag" ||
12162 - test ! -s conftest.err
12163 - } && test -s conftest.$ac_objext; then
12164 - ac_hi=-1 ac_mid=-1
12166 - cat >conftest.$ac_ext <<_ACEOF
12169 -cat confdefs.h >>conftest.$ac_ext
12170 -cat >>conftest.$ac_ext <<_ACEOF
12171 -/* end confdefs.h. */
12172 -$ac_includes_default
12173 - typedef size_t ac__type_sizeof_;
12177 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12178 -test_array [0] = 0
12184 -rm -f conftest.$ac_objext
12185 -if { (ac_try="$ac_compile"
12186 -case "(($ac_try" in
12187 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 - *) ac_try_echo=$ac_try;;
12190 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 - (eval "$ac_compile") 2>conftest.er1
12193 - grep -v '^ *+' conftest.er1 >conftest.err
12194 - rm -f conftest.er1
12195 - cat conftest.err >&5
12196 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 - (exit $ac_status); } && {
12198 - test -z "$ac_c_werror_flag" ||
12199 - test ! -s conftest.err
12200 - } && test -s conftest.$ac_objext; then
12201 - ac_lo=$ac_mid; break
12203 - echo "$as_me: failed program was:" >&5
12204 -sed 's/^/| /' conftest.$ac_ext >&5
12206 - ac_hi=`expr '(' $ac_mid ')' - 1`
12207 - if test $ac_mid -le $ac_hi; then
12211 - ac_mid=`expr 2 '*' $ac_mid`
12214 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 - echo "$as_me: failed program was:" >&5
12218 -sed 's/^/| /' conftest.$ac_ext >&5
12223 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 -# Binary search between lo and hi bounds.
12228 -while test "x$ac_lo" != "x$ac_hi"; do
12229 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12230 - cat >conftest.$ac_ext <<_ACEOF
12233 -cat confdefs.h >>conftest.$ac_ext
12234 -cat >>conftest.$ac_ext <<_ACEOF
12235 -/* end confdefs.h. */
12236 -$ac_includes_default
12237 - typedef size_t ac__type_sizeof_;
12241 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12242 -test_array [0] = 0
12248 -rm -f conftest.$ac_objext
12249 -if { (ac_try="$ac_compile"
12250 -case "(($ac_try" in
12251 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 - *) ac_try_echo=$ac_try;;
12254 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 - (eval "$ac_compile") 2>conftest.er1
12257 - grep -v '^ *+' conftest.er1 >conftest.err
12258 - rm -f conftest.er1
12259 - cat conftest.err >&5
12260 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 - (exit $ac_status); } && {
12262 - test -z "$ac_c_werror_flag" ||
12263 - test ! -s conftest.err
12264 - } && test -s conftest.$ac_objext; then
12267 - echo "$as_me: failed program was:" >&5
12268 -sed 's/^/| /' conftest.$ac_ext >&5
12270 - ac_lo=`expr '(' $ac_mid ')' + 1`
12273 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 -?*) ac_cv_sizeof_size_t=$ac_lo;;
12277 -'') if test "$ac_cv_type_size_t" = yes; then
12278 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
12279 -See \`config.log' for more details." >&5
12280 -echo "$as_me: error: cannot compute sizeof (size_t)
12281 -See \`config.log' for more details." >&2;}
12282 - { (exit 77); exit 77; }; }
12284 - ac_cv_sizeof_size_t=0
12288 - cat >conftest.$ac_ext <<_ACEOF
12291 -cat confdefs.h >>conftest.$ac_ext
12292 -cat >>conftest.$ac_ext <<_ACEOF
12293 -/* end confdefs.h. */
12294 -$ac_includes_default
12295 - typedef size_t ac__type_sizeof_;
12296 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12297 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12298 -#include <stdio.h>
12299 -#include <stdlib.h>
12304 - FILE *f = fopen ("conftest.val", "w");
12307 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12309 - long int i = longval ();
12310 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12312 - fprintf (f, "%ld\n", i);
12316 - unsigned long int i = ulongval ();
12317 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12319 - fprintf (f, "%lu\n", i);
12321 - return ferror (f) || fclose (f) != 0;
12327 -rm -f conftest$ac_exeext
12328 -if { (ac_try="$ac_link"
12329 -case "(($ac_try" in
12330 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 - *) ac_try_echo=$ac_try;;
12333 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 - (eval "$ac_link") 2>&5
12336 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12338 - { (case "(($ac_try" in
12339 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 - *) ac_try_echo=$ac_try;;
12342 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 - (eval "$ac_try") 2>&5
12345 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 - (exit $ac_status); }; }; then
12347 - ac_cv_sizeof_size_t=`cat conftest.val`
12349 - echo "$as_me: program exited with status $ac_status" >&5
12350 -echo "$as_me: failed program was:" >&5
12351 -sed 's/^/| /' conftest.$ac_ext >&5
12353 -( exit $ac_status )
12354 -if test "$ac_cv_type_size_t" = yes; then
12355 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
12356 -See \`config.log' for more details." >&5
12357 -echo "$as_me: error: cannot compute sizeof (size_t)
12358 -See \`config.log' for more details." >&2;}
12359 - { (exit 77); exit 77; }; }
12361 - ac_cv_sizeof_size_t=0
12364 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12366 -rm -f conftest.val
12368 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
12369 -echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
12373 -cat >>confdefs.h <<_ACEOF
12374 -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12379 -{ echo "$as_me:$LINENO: checking for long long support" >&5
12380 -echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
12382 -cat >conftest.$ac_ext <<_ACEOF
12385 -cat confdefs.h >>conftest.$ac_ext
12386 -cat >>conftest.$ac_ext <<_ACEOF
12387 -/* end confdefs.h. */
12392 -long long x; x = (long long)0;
12397 -rm -f conftest.$ac_objext
12398 -if { (ac_try="$ac_compile"
12399 -case "(($ac_try" in
12400 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 - *) ac_try_echo=$ac_try;;
12403 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 - (eval "$ac_compile") 2>conftest.er1
12406 - grep -v '^ *+' conftest.er1 >conftest.err
12407 - rm -f conftest.er1
12408 - cat conftest.err >&5
12409 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 - (exit $ac_status); } && {
12411 - test -z "$ac_c_werror_flag" ||
12412 - test ! -s conftest.err
12413 - } && test -s conftest.$ac_objext; then
12416 -cat >>confdefs.h <<\_ACEOF
12417 -#define HAVE_LONG_LONG 1
12420 - have_long_long=yes
12423 - echo "$as_me: failed program was:" >&5
12424 -sed 's/^/| /' conftest.$ac_ext >&5
12429 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 -{ echo "$as_me:$LINENO: result: $have_long_long" >&5
12431 -echo "${ECHO_T}$have_long_long" >&6; }
12432 -if test "$have_long_long" = yes ; then
12433 -{ echo "$as_me:$LINENO: checking for long long" >&5
12434 -echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
12435 -if test "${ac_cv_type_long_long+set}" = set; then
12436 - echo $ECHO_N "(cached) $ECHO_C" >&6
12438 - cat >conftest.$ac_ext <<_ACEOF
12441 -cat confdefs.h >>conftest.$ac_ext
12442 -cat >>conftest.$ac_ext <<_ACEOF
12443 -/* end confdefs.h. */
12444 -$ac_includes_default
12445 -typedef long long ac__type_new_;
12449 -if ((ac__type_new_ *) 0)
12451 -if (sizeof (ac__type_new_))
12457 -rm -f conftest.$ac_objext
12458 -if { (ac_try="$ac_compile"
12459 -case "(($ac_try" in
12460 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 - *) ac_try_echo=$ac_try;;
12463 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 - (eval "$ac_compile") 2>conftest.er1
12466 - grep -v '^ *+' conftest.er1 >conftest.err
12467 - rm -f conftest.er1
12468 - cat conftest.err >&5
12469 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 - (exit $ac_status); } && {
12471 - test -z "$ac_c_werror_flag" ||
12472 - test ! -s conftest.err
12473 - } && test -s conftest.$ac_objext; then
12474 - ac_cv_type_long_long=yes
12476 - echo "$as_me: failed program was:" >&5
12477 -sed 's/^/| /' conftest.$ac_ext >&5
12479 - ac_cv_type_long_long=no
12482 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12485 -echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
12487 -# The cast to long int works around a bug in the HP C Compiler
12488 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12489 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12490 -# This bug is HP SR number 8606223364.
12491 -{ echo "$as_me:$LINENO: checking size of long long" >&5
12492 -echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
12493 -if test "${ac_cv_sizeof_long_long+set}" = set; then
12494 - echo $ECHO_N "(cached) $ECHO_C" >&6
12496 - if test "$cross_compiling" = yes; then
12497 - # Depending upon the size, compute the lo and hi bounds.
12498 -cat >conftest.$ac_ext <<_ACEOF
12501 -cat confdefs.h >>conftest.$ac_ext
12502 -cat >>conftest.$ac_ext <<_ACEOF
12503 -/* end confdefs.h. */
12504 -$ac_includes_default
12505 - typedef long long ac__type_sizeof_;
12509 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12510 -test_array [0] = 0
12516 -rm -f conftest.$ac_objext
12517 -if { (ac_try="$ac_compile"
12518 -case "(($ac_try" in
12519 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 - *) ac_try_echo=$ac_try;;
12522 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 - (eval "$ac_compile") 2>conftest.er1
12525 - grep -v '^ *+' conftest.er1 >conftest.err
12526 - rm -f conftest.er1
12527 - cat conftest.err >&5
12528 - 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
12535 - cat >conftest.$ac_ext <<_ACEOF
12538 -cat confdefs.h >>conftest.$ac_ext
12539 -cat >>conftest.$ac_ext <<_ACEOF
12540 -/* end confdefs.h. */
12541 -$ac_includes_default
12542 - typedef long long ac__type_sizeof_;
12546 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12547 -test_array [0] = 0
12553 -rm -f conftest.$ac_objext
12554 -if { (ac_try="$ac_compile"
12555 -case "(($ac_try" in
12556 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 - *) ac_try_echo=$ac_try;;
12559 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 - (eval "$ac_compile") 2>conftest.er1
12562 - grep -v '^ *+' conftest.er1 >conftest.err
12563 - rm -f conftest.er1
12564 - cat conftest.err >&5
12565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 - (exit $ac_status); } && {
12567 - test -z "$ac_c_werror_flag" ||
12568 - test ! -s conftest.err
12569 - } && test -s conftest.$ac_objext; then
12570 - ac_hi=$ac_mid; break
12572 - echo "$as_me: failed program was:" >&5
12573 -sed 's/^/| /' conftest.$ac_ext >&5
12575 - ac_lo=`expr $ac_mid + 1`
12576 - if test $ac_lo -le $ac_mid; then
12580 - ac_mid=`expr 2 '*' $ac_mid + 1`
12583 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 - echo "$as_me: failed program was:" >&5
12587 -sed 's/^/| /' conftest.$ac_ext >&5
12589 - cat >conftest.$ac_ext <<_ACEOF
12592 -cat confdefs.h >>conftest.$ac_ext
12593 -cat >>conftest.$ac_ext <<_ACEOF
12594 -/* end confdefs.h. */
12595 -$ac_includes_default
12596 - typedef long long ac__type_sizeof_;
12600 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12601 -test_array [0] = 0
12607 -rm -f conftest.$ac_objext
12608 -if { (ac_try="$ac_compile"
12609 -case "(($ac_try" in
12610 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 - *) ac_try_echo=$ac_try;;
12613 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 - (eval "$ac_compile") 2>conftest.er1
12616 - grep -v '^ *+' conftest.er1 >conftest.err
12617 - rm -f conftest.er1
12618 - cat conftest.err >&5
12619 - 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_hi=-1 ac_mid=-1
12626 - cat >conftest.$ac_ext <<_ACEOF
12629 -cat confdefs.h >>conftest.$ac_ext
12630 -cat >>conftest.$ac_ext <<_ACEOF
12631 -/* end confdefs.h. */
12632 -$ac_includes_default
12633 - typedef long long ac__type_sizeof_;
12637 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12638 -test_array [0] = 0
12644 -rm -f conftest.$ac_objext
12645 -if { (ac_try="$ac_compile"
12646 -case "(($ac_try" in
12647 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 - *) ac_try_echo=$ac_try;;
12650 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 - (eval "$ac_compile") 2>conftest.er1
12653 - grep -v '^ *+' conftest.er1 >conftest.err
12654 - rm -f conftest.er1
12655 - cat conftest.err >&5
12656 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 - (exit $ac_status); } && {
12658 - test -z "$ac_c_werror_flag" ||
12659 - test ! -s conftest.err
12660 - } && test -s conftest.$ac_objext; then
12661 - ac_lo=$ac_mid; break
12663 - echo "$as_me: failed program was:" >&5
12664 -sed 's/^/| /' conftest.$ac_ext >&5
12666 - ac_hi=`expr '(' $ac_mid ')' - 1`
12667 - if test $ac_mid -le $ac_hi; then
12671 - ac_mid=`expr 2 '*' $ac_mid`
12674 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677 - echo "$as_me: failed program was:" >&5
12678 -sed 's/^/| /' conftest.$ac_ext >&5
12683 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 -# Binary search between lo and hi bounds.
12688 -while test "x$ac_lo" != "x$ac_hi"; do
12689 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12690 - cat >conftest.$ac_ext <<_ACEOF
12693 -cat confdefs.h >>conftest.$ac_ext
12694 -cat >>conftest.$ac_ext <<_ACEOF
12695 -/* end confdefs.h. */
12696 -$ac_includes_default
12697 - typedef long long ac__type_sizeof_;
12701 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12702 -test_array [0] = 0
12708 -rm -f conftest.$ac_objext
12709 -if { (ac_try="$ac_compile"
12710 -case "(($ac_try" in
12711 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 - *) ac_try_echo=$ac_try;;
12714 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 - (eval "$ac_compile") 2>conftest.er1
12717 - grep -v '^ *+' conftest.er1 >conftest.err
12718 - rm -f conftest.er1
12719 - cat conftest.err >&5
12720 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 - (exit $ac_status); } && {
12722 - test -z "$ac_c_werror_flag" ||
12723 - test ! -s conftest.err
12724 - } && test -s conftest.$ac_objext; then
12727 - echo "$as_me: failed program was:" >&5
12728 -sed 's/^/| /' conftest.$ac_ext >&5
12730 - ac_lo=`expr '(' $ac_mid ')' + 1`
12733 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 -?*) ac_cv_sizeof_long_long=$ac_lo;;
12737 -'') if test "$ac_cv_type_long_long" = yes; then
12738 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12739 -See \`config.log' for more details." >&5
12740 -echo "$as_me: error: cannot compute sizeof (long long)
12741 -See \`config.log' for more details." >&2;}
12742 - { (exit 77); exit 77; }; }
12744 - ac_cv_sizeof_long_long=0
12748 - cat >conftest.$ac_ext <<_ACEOF
12751 -cat confdefs.h >>conftest.$ac_ext
12752 -cat >>conftest.$ac_ext <<_ACEOF
12753 -/* end confdefs.h. */
12754 -$ac_includes_default
12755 - typedef long long ac__type_sizeof_;
12756 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12757 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12758 -#include <stdio.h>
12759 -#include <stdlib.h>
12764 - FILE *f = fopen ("conftest.val", "w");
12767 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12769 - long int i = longval ();
12770 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12772 - fprintf (f, "%ld\n", i);
12776 - unsigned long int i = ulongval ();
12777 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12779 - fprintf (f, "%lu\n", i);
12781 - return ferror (f) || fclose (f) != 0;
12787 -rm -f conftest$ac_exeext
12788 -if { (ac_try="$ac_link"
12789 -case "(($ac_try" in
12790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 - *) ac_try_echo=$ac_try;;
12793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 - (eval "$ac_link") 2>&5
12796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12798 - { (case "(($ac_try" in
12799 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 - *) ac_try_echo=$ac_try;;
12802 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 - (eval "$ac_try") 2>&5
12805 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 - (exit $ac_status); }; }; then
12807 - ac_cv_sizeof_long_long=`cat conftest.val`
12809 - echo "$as_me: program exited with status $ac_status" >&5
12810 -echo "$as_me: failed program was:" >&5
12811 -sed 's/^/| /' conftest.$ac_ext >&5
12813 -( exit $ac_status )
12814 -if test "$ac_cv_type_long_long" = yes; then
12815 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12816 -See \`config.log' for more details." >&5
12817 -echo "$as_me: error: cannot compute sizeof (long long)
12818 -See \`config.log' for more details." >&2;}
12819 - { (exit 77); exit 77; }; }
12821 - ac_cv_sizeof_long_long=0
12824 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12826 -rm -f conftest.val
12828 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12829 -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
12833 -cat >>confdefs.h <<_ACEOF
12834 -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12840 -{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12841 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12842 -if test "${ac_cv_type_uintptr_t+set}" = set; then
12843 - echo $ECHO_N "(cached) $ECHO_C" >&6
12845 - cat >conftest.$ac_ext <<_ACEOF
12848 -cat confdefs.h >>conftest.$ac_ext
12849 -cat >>conftest.$ac_ext <<_ACEOF
12850 -/* end confdefs.h. */
12851 -#ifdef HAVE_STDINT_H
12852 - #include <stdint.h>
12855 -typedef uintptr_t ac__type_new_;
12859 -if ((ac__type_new_ *) 0)
12861 -if (sizeof (ac__type_new_))
12867 -rm -f conftest.$ac_objext
12868 -if { (ac_try="$ac_compile"
12869 -case "(($ac_try" in
12870 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 - *) ac_try_echo=$ac_try;;
12873 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 - (eval "$ac_compile") 2>conftest.er1
12876 - grep -v '^ *+' conftest.er1 >conftest.err
12877 - rm -f conftest.er1
12878 - cat conftest.err >&5
12879 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 - (exit $ac_status); } && {
12881 - test -z "$ac_c_werror_flag" ||
12882 - test ! -s conftest.err
12883 - } && test -s conftest.$ac_objext; then
12884 - ac_cv_type_uintptr_t=yes
12886 - echo "$as_me: failed program was:" >&5
12887 -sed 's/^/| /' conftest.$ac_ext >&5
12889 - ac_cv_type_uintptr_t=no
12892 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12895 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12896 -if test $ac_cv_type_uintptr_t = yes; then
12898 -cat >>confdefs.h <<_ACEOF
12899 -#define HAVE_UINTPTR_T 1
12902 -{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12903 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12904 -if test "${ac_cv_type_uintptr_t+set}" = set; then
12905 - echo $ECHO_N "(cached) $ECHO_C" >&6
12907 - cat >conftest.$ac_ext <<_ACEOF
12910 -cat confdefs.h >>conftest.$ac_ext
12911 -cat >>conftest.$ac_ext <<_ACEOF
12912 -/* end confdefs.h. */
12913 -$ac_includes_default
12914 -typedef uintptr_t ac__type_new_;
12918 -if ((ac__type_new_ *) 0)
12920 -if (sizeof (ac__type_new_))
12926 -rm -f conftest.$ac_objext
12927 -if { (ac_try="$ac_compile"
12928 -case "(($ac_try" in
12929 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 - *) ac_try_echo=$ac_try;;
12932 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 - (eval "$ac_compile") 2>conftest.er1
12935 - grep -v '^ *+' conftest.er1 >conftest.err
12936 - rm -f conftest.er1
12937 - cat conftest.err >&5
12938 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 - (exit $ac_status); } && {
12940 - test -z "$ac_c_werror_flag" ||
12941 - test ! -s conftest.err
12942 - } && test -s conftest.$ac_objext; then
12943 - ac_cv_type_uintptr_t=yes
12945 - echo "$as_me: failed program was:" >&5
12946 -sed 's/^/| /' conftest.$ac_ext >&5
12948 - ac_cv_type_uintptr_t=no
12951 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12954 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12956 -# The cast to long int works around a bug in the HP C Compiler
12957 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12958 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12959 -# This bug is HP SR number 8606223364.
12960 -{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12961 -echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12962 -if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12963 - echo $ECHO_N "(cached) $ECHO_C" >&6
12965 - if test "$cross_compiling" = yes; then
12966 - # Depending upon the size, compute the lo and hi bounds.
12967 -cat >conftest.$ac_ext <<_ACEOF
12970 -cat confdefs.h >>conftest.$ac_ext
12971 -cat >>conftest.$ac_ext <<_ACEOF
12972 -/* end confdefs.h. */
12973 -$ac_includes_default
12974 - typedef uintptr_t ac__type_sizeof_;
12978 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12979 -test_array [0] = 0
12985 -rm -f conftest.$ac_objext
12986 -if { (ac_try="$ac_compile"
12987 -case "(($ac_try" in
12988 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 - *) ac_try_echo=$ac_try;;
12991 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 - (eval "$ac_compile") 2>conftest.er1
12994 - grep -v '^ *+' conftest.er1 >conftest.err
12995 - rm -f conftest.er1
12996 - cat conftest.err >&5
12997 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 - (exit $ac_status); } && {
12999 - test -z "$ac_c_werror_flag" ||
13000 - test ! -s conftest.err
13001 - } && test -s conftest.$ac_objext; then
13004 - cat >conftest.$ac_ext <<_ACEOF
13007 -cat confdefs.h >>conftest.$ac_ext
13008 -cat >>conftest.$ac_ext <<_ACEOF
13009 -/* end confdefs.h. */
13010 -$ac_includes_default
13011 - typedef uintptr_t ac__type_sizeof_;
13015 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13016 -test_array [0] = 0
13022 -rm -f conftest.$ac_objext
13023 -if { (ac_try="$ac_compile"
13024 -case "(($ac_try" in
13025 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 - *) ac_try_echo=$ac_try;;
13028 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 - (eval "$ac_compile") 2>conftest.er1
13031 - grep -v '^ *+' conftest.er1 >conftest.err
13032 - rm -f conftest.er1
13033 - cat conftest.err >&5
13034 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 - (exit $ac_status); } && {
13036 - test -z "$ac_c_werror_flag" ||
13037 - test ! -s conftest.err
13038 - } && test -s conftest.$ac_objext; then
13039 - ac_hi=$ac_mid; break
13041 - echo "$as_me: failed program was:" >&5
13042 -sed 's/^/| /' conftest.$ac_ext >&5
13044 - ac_lo=`expr $ac_mid + 1`
13045 - if test $ac_lo -le $ac_mid; then
13049 - ac_mid=`expr 2 '*' $ac_mid + 1`
13052 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 - echo "$as_me: failed program was:" >&5
13056 -sed 's/^/| /' conftest.$ac_ext >&5
13058 - cat >conftest.$ac_ext <<_ACEOF
13061 -cat confdefs.h >>conftest.$ac_ext
13062 -cat >>conftest.$ac_ext <<_ACEOF
13063 -/* end confdefs.h. */
13064 -$ac_includes_default
13065 - typedef uintptr_t ac__type_sizeof_;
13069 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13070 -test_array [0] = 0
13076 -rm -f conftest.$ac_objext
13077 -if { (ac_try="$ac_compile"
13078 -case "(($ac_try" in
13079 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 - *) ac_try_echo=$ac_try;;
13082 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 - (eval "$ac_compile") 2>conftest.er1
13085 - grep -v '^ *+' conftest.er1 >conftest.err
13086 - rm -f conftest.er1
13087 - cat conftest.err >&5
13088 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 - (exit $ac_status); } && {
13090 - test -z "$ac_c_werror_flag" ||
13091 - test ! -s conftest.err
13092 - } && test -s conftest.$ac_objext; then
13093 - ac_hi=-1 ac_mid=-1
13095 - cat >conftest.$ac_ext <<_ACEOF
13098 -cat confdefs.h >>conftest.$ac_ext
13099 -cat >>conftest.$ac_ext <<_ACEOF
13100 -/* end confdefs.h. */
13101 -$ac_includes_default
13102 - typedef uintptr_t ac__type_sizeof_;
13106 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13107 -test_array [0] = 0
13113 -rm -f conftest.$ac_objext
13114 -if { (ac_try="$ac_compile"
13115 -case "(($ac_try" in
13116 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 - *) ac_try_echo=$ac_try;;
13119 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 - (eval "$ac_compile") 2>conftest.er1
13122 - grep -v '^ *+' conftest.er1 >conftest.err
13123 - rm -f conftest.er1
13124 - cat conftest.err >&5
13125 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 - (exit $ac_status); } && {
13127 - test -z "$ac_c_werror_flag" ||
13128 - test ! -s conftest.err
13129 - } && test -s conftest.$ac_objext; then
13130 - ac_lo=$ac_mid; break
13132 - echo "$as_me: failed program was:" >&5
13133 -sed 's/^/| /' conftest.$ac_ext >&5
13135 - ac_hi=`expr '(' $ac_mid ')' - 1`
13136 - if test $ac_mid -le $ac_hi; then
13140 - ac_mid=`expr 2 '*' $ac_mid`
13143 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146 - echo "$as_me: failed program was:" >&5
13147 -sed 's/^/| /' conftest.$ac_ext >&5
13152 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 -# Binary search between lo and hi bounds.
13157 -while test "x$ac_lo" != "x$ac_hi"; do
13158 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13159 - cat >conftest.$ac_ext <<_ACEOF
13162 -cat confdefs.h >>conftest.$ac_ext
13163 -cat >>conftest.$ac_ext <<_ACEOF
13164 -/* end confdefs.h. */
13165 -$ac_includes_default
13166 - typedef uintptr_t ac__type_sizeof_;
13170 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13171 -test_array [0] = 0
13177 -rm -f conftest.$ac_objext
13178 -if { (ac_try="$ac_compile"
13179 -case "(($ac_try" in
13180 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 - *) ac_try_echo=$ac_try;;
13183 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 - (eval "$ac_compile") 2>conftest.er1
13186 - grep -v '^ *+' conftest.er1 >conftest.err
13187 - rm -f conftest.er1
13188 - cat conftest.err >&5
13189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 - (exit $ac_status); } && {
13191 - test -z "$ac_c_werror_flag" ||
13192 - test ! -s conftest.err
13193 - } && test -s conftest.$ac_objext; then
13196 - echo "$as_me: failed program was:" >&5
13197 -sed 's/^/| /' conftest.$ac_ext >&5
13199 - ac_lo=`expr '(' $ac_mid ')' + 1`
13202 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 -?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13206 -'') if test "$ac_cv_type_uintptr_t" = yes; then
13207 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13208 -See \`config.log' for more details." >&5
13209 -echo "$as_me: error: cannot compute sizeof (uintptr_t)
13210 -See \`config.log' for more details." >&2;}
13211 - { (exit 77); exit 77; }; }
13213 - ac_cv_sizeof_uintptr_t=0
13217 - cat >conftest.$ac_ext <<_ACEOF
13220 -cat confdefs.h >>conftest.$ac_ext
13221 -cat >>conftest.$ac_ext <<_ACEOF
13222 -/* end confdefs.h. */
13223 -$ac_includes_default
13224 - typedef uintptr_t ac__type_sizeof_;
13225 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13226 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13227 -#include <stdio.h>
13228 -#include <stdlib.h>
13233 - FILE *f = fopen ("conftest.val", "w");
13236 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13238 - long int i = longval ();
13239 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
13241 - fprintf (f, "%ld\n", i);
13245 - unsigned long int i = ulongval ();
13246 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
13248 - fprintf (f, "%lu\n", i);
13250 - return ferror (f) || fclose (f) != 0;
13256 -rm -f conftest$ac_exeext
13257 -if { (ac_try="$ac_link"
13258 -case "(($ac_try" in
13259 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 - *) ac_try_echo=$ac_try;;
13262 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 - (eval "$ac_link") 2>&5
13265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13267 - { (case "(($ac_try" in
13268 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 - *) ac_try_echo=$ac_try;;
13271 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 - (eval "$ac_try") 2>&5
13274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 - (exit $ac_status); }; }; then
13276 - ac_cv_sizeof_uintptr_t=`cat conftest.val`
13278 - echo "$as_me: program exited with status $ac_status" >&5
13279 -echo "$as_me: failed program was:" >&5
13280 -sed 's/^/| /' conftest.$ac_ext >&5
13282 -( exit $ac_status )
13283 -if test "$ac_cv_type_uintptr_t" = yes; then
13284 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13285 -See \`config.log' for more details." >&5
13286 -echo "$as_me: error: cannot compute sizeof (uintptr_t)
13287 -See \`config.log' for more details." >&2;}
13288 - { (exit 77); exit 77; }; }
13290 - ac_cv_sizeof_uintptr_t=0
13293 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13295 -rm -f conftest.val
13297 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13298 -echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13302 -cat >>confdefs.h <<_ACEOF
13303 -#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13311 -# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13312 -{ echo "$as_me:$LINENO: checking size of off_t" >&5
13313 -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13314 -if test "${ac_cv_sizeof_off_t+set}" = set; then
13315 - echo $ECHO_N "(cached) $ECHO_C" >&6
13317 - if test "$cross_compiling" = yes; then
13318 - ac_cv_sizeof_off_t=4
13320 - cat >conftest.$ac_ext <<_ACEOF
13323 -cat confdefs.h >>conftest.$ac_ext
13324 -cat >>conftest.$ac_ext <<_ACEOF
13325 -/* end confdefs.h. */
13326 -#include <stdio.h>
13327 -#include <sys/types.h>
13330 - FILE *f=fopen("conftestval", "w");
13332 - fprintf(f, "%d\n", sizeof(off_t));
13336 -rm -f conftest$ac_exeext
13337 -if { (ac_try="$ac_link"
13338 -case "(($ac_try" in
13339 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 - *) ac_try_echo=$ac_try;;
13342 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 - (eval "$ac_link") 2>&5
13345 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13347 - { (case "(($ac_try" in
13348 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 - *) ac_try_echo=$ac_try;;
13351 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 - (eval "$ac_try") 2>&5
13354 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 - (exit $ac_status); }; }; then
13356 - ac_cv_sizeof_off_t=`cat conftestval`
13358 - echo "$as_me: program exited with status $ac_status" >&5
13359 -echo "$as_me: failed program was:" >&5
13360 -sed 's/^/| /' conftest.$ac_ext >&5
13362 -( exit $ac_status )
13363 -ac_cv_sizeof_off_t=0
13365 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13372 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13373 -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13375 -cat >>confdefs.h <<_ACEOF
13376 -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13380 -{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13381 -echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13382 -if test "$have_long_long" = yes -a \
13383 - "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13384 - "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13386 -cat >>confdefs.h <<\_ACEOF
13387 -#define HAVE_LARGEFILE_SUPPORT 1
13390 - { echo "$as_me:$LINENO: result: yes" >&5
13391 -echo "${ECHO_T}yes" >&6; }
13393 - { echo "$as_me:$LINENO: result: no" >&5
13394 -echo "${ECHO_T}no" >&6; }
13397 -# AC_CHECK_SIZEOF() doesn't include <time.h>.
13398 -{ echo "$as_me:$LINENO: checking size of time_t" >&5
13399 -echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13400 -if test "${ac_cv_sizeof_time_t+set}" = set; then
13401 - echo $ECHO_N "(cached) $ECHO_C" >&6
13403 - if test "$cross_compiling" = yes; then
13404 - ac_cv_sizeof_time_t=4
13406 - cat >conftest.$ac_ext <<_ACEOF
13409 -cat confdefs.h >>conftest.$ac_ext
13410 -cat >>conftest.$ac_ext <<_ACEOF
13411 -/* end confdefs.h. */
13412 -#include <stdio.h>
13416 - FILE *f=fopen("conftestval", "w");
13418 - fprintf(f, "%d\n", sizeof(time_t));
13422 -rm -f conftest$ac_exeext
13423 -if { (ac_try="$ac_link"
13424 -case "(($ac_try" in
13425 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 - *) ac_try_echo=$ac_try;;
13428 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 - (eval "$ac_link") 2>&5
13431 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13433 - { (case "(($ac_try" in
13434 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 - *) ac_try_echo=$ac_try;;
13437 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 - (eval "$ac_try") 2>&5
13440 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 - (exit $ac_status); }; }; then
13442 - ac_cv_sizeof_time_t=`cat conftestval`
13444 - echo "$as_me: program exited with status $ac_status" >&5
13445 -echo "$as_me: failed program was:" >&5
13446 -sed 's/^/| /' conftest.$ac_ext >&5
13448 -( exit $ac_status )
13449 -ac_cv_sizeof_time_t=0
13451 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13458 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13459 -echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13461 -cat >>confdefs.h <<_ACEOF
13462 -#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13467 -# if have pthread_t then define SIZEOF_PTHREAD_T
13469 -if test "$ac_cv_kpthread" = "yes"
13470 -then CC="$CC -Kpthread"
13471 -elif test "$ac_cv_kthread" = "yes"
13472 -then CC="$CC -Kthread"
13473 -elif test "$ac_cv_pthread" = "yes"
13474 -then CC="$CC -pthread"
13476 -{ echo "$as_me:$LINENO: checking for pthread_t" >&5
13477 -echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13479 -cat >conftest.$ac_ext <<_ACEOF
13482 -cat confdefs.h >>conftest.$ac_ext
13483 -cat >>conftest.$ac_ext <<_ACEOF
13484 -/* end confdefs.h. */
13485 -#include <pthread.h>
13489 -pthread_t x; x = *(pthread_t*)0;
13494 -rm -f conftest.$ac_objext
13495 -if { (ac_try="$ac_compile"
13496 -case "(($ac_try" in
13497 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 - *) ac_try_echo=$ac_try;;
13500 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 - (eval "$ac_compile") 2>conftest.er1
13503 - grep -v '^ *+' conftest.er1 >conftest.err
13504 - rm -f conftest.er1
13505 - cat conftest.err >&5
13506 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 - (exit $ac_status); } && {
13508 - test -z "$ac_c_werror_flag" ||
13509 - test ! -s conftest.err
13510 - } && test -s conftest.$ac_objext; then
13511 - have_pthread_t=yes
13513 - echo "$as_me: failed program was:" >&5
13514 -sed 's/^/| /' conftest.$ac_ext >&5
13519 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 -{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13521 -echo "${ECHO_T}$have_pthread_t" >&6; }
13522 -if test "$have_pthread_t" = yes ; then
13523 - # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13524 - { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13525 -echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13526 - if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13527 - echo $ECHO_N "(cached) $ECHO_C" >&6
13529 - if test "$cross_compiling" = yes; then
13530 - ac_cv_sizeof_pthread_t=4
13532 - cat >conftest.$ac_ext <<_ACEOF
13535 -cat confdefs.h >>conftest.$ac_ext
13536 -cat >>conftest.$ac_ext <<_ACEOF
13537 -/* end confdefs.h. */
13538 -#include <stdio.h>
13539 -#include <pthread.h>
13542 - FILE *f=fopen("conftestval", "w");
13544 - fprintf(f, "%d\n", sizeof(pthread_t));
13548 -rm -f conftest$ac_exeext
13549 -if { (ac_try="$ac_link"
13550 -case "(($ac_try" in
13551 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 - *) ac_try_echo=$ac_try;;
13554 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 - (eval "$ac_link") 2>&5
13557 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13559 - { (case "(($ac_try" in
13560 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 - *) ac_try_echo=$ac_try;;
13563 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 - (eval "$ac_try") 2>&5
13566 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 - (exit $ac_status); }; }; then
13568 - ac_cv_sizeof_pthread_t=`cat conftestval`
13570 - echo "$as_me: program exited with status $ac_status" >&5
13571 -echo "$as_me: failed program was:" >&5
13572 -sed 's/^/| /' conftest.$ac_ext >&5
13574 -( exit $ac_status )
13575 -ac_cv_sizeof_pthread_t=0
13577 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13584 - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13585 -echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13587 -cat >>confdefs.h <<_ACEOF
13588 -#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13594 -{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13595 -echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13596 -# Check whether --enable-toolbox-glue was given.
13597 -if test "${enable_toolbox_glue+set}" = set; then
13598 - enableval=$enable_toolbox_glue;
13602 -if test -z "$enable_toolbox_glue"
13604 - case $ac_sys_system/$ac_sys_release in
13606 - enable_toolbox_glue="yes";;
13608 - enable_toolbox_glue="no";;
13611 -case "$enable_toolbox_glue" in
13613 - extra_machdep_objs="Python/mactoolboxglue.o"
13614 - extra_undefs="-u _PyMac_Error"
13616 -cat >>confdefs.h <<\_ACEOF
13617 -#define USE_TOOLBOX_OBJECT_GLUE 1
13622 - extra_machdep_objs=""
13626 -{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13627 -echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13630 -case $ac_sys_system/$ac_sys_release in
13631 - Darwin/[01567]\..*)
13632 - OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13635 - OTHER_LIBTOOL_OPT=""
13640 -case $ac_sys_system/$ac_sys_release in
13641 - Darwin/[01567]\..*)
13642 - LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13643 - if test "${enable_universalsdk}"; then
13646 - LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13648 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13649 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13651 - gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13652 - if test ${gcc_version} '<' 4.0
13654 - LIBTOOL_CRUFT="-lcc_dynamic"
13658 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13659 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13660 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13663 -{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
13664 -echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13665 -if test "$enable_framework"
13667 - BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13668 - # -F. is needed to allow linking to the framework while
13669 - # in the build location.
13671 -cat >>confdefs.h <<\_ACEOF
13672 -#define WITH_NEXT_FRAMEWORK 1
13675 - { echo "$as_me:$LINENO: result: yes" >&5
13676 -echo "${ECHO_T}yes" >&6; }
13678 - { echo "$as_me:$LINENO: result: no" >&5
13679 -echo "${ECHO_T}no" >&6; }
13682 -{ echo "$as_me:$LINENO: checking for dyld" >&5
13683 -echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13684 -case $ac_sys_system/$ac_sys_release in
13687 -cat >>confdefs.h <<\_ACEOF
13688 -#define WITH_DYLD 1
13691 - { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13692 -echo "${ECHO_T}always on for Darwin" >&6; }
13695 - { echo "$as_me:$LINENO: result: no" >&5
13696 -echo "${ECHO_T}no" >&6; }
13700 -# Set info about shared libraries.
13706 -# SO is the extension of shared libraries `(including the dot!)
13707 -# -- usually .so, .sl on HP-UX, .dll on Cygwin
13708 -{ echo "$as_me:$LINENO: checking SO" >&5
13709 -echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13712 - case $ac_sys_system in
13714 - case `uname -m` in
13719 - CYGWIN*) SO=.dll;;
13723 - # this might also be a termcap variable, see #610332
13725 - echo '====================================================================='
13727 - echo '+ WARNING: You have set SO in your environment. +'
13728 - echo '+ Do you really mean to change the extension for shared libraries? +'
13729 - echo '+ Continuing in 10 seconds to let you to ponder. +'
13731 - echo '====================================================================='
13734 -{ echo "$as_me:$LINENO: result: $SO" >&5
13735 -echo "${ECHO_T}$SO" >&6; }
13737 -cat >>confdefs.h <<_ACEOF
13738 -#define SHLIB_EXT "$SO"
13741 -# LDSHARED is the ld *command* used to create shared library
13742 -# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13743 -# (Shared libraries in this instance are shared modules to be loaded into
13744 -# Python, as opposed to building Python itself as a shared library.)
13745 -{ echo "$as_me:$LINENO: checking LDSHARED" >&5
13746 -echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13747 -if test -z "$LDSHARED"
13749 - case $ac_sys_system/$ac_sys_release in
13751 - BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13752 - LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13755 - BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13756 - LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13758 - IRIX/5*) LDSHARED="ld -shared";;
13759 - IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13761 - if test "$GCC" = "yes"
13762 - then LDSHARED='$(CC) -shared'
13763 - else LDSHARED='$(CC) -G';
13765 - hp*|HP*) LDSHARED="ld -b";;
13766 - OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13768 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13769 - if test "$enable_framework" ; then
13770 - # Link against the framework. All externals should be defined.
13771 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13772 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13774 - # No framework. Ignore undefined symbols, assuming they come from Python
13775 - LDSHARED="$LDSHARED -undefined suppress"
13777 - Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13778 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13779 - if test "$enable_framework" ; then
13780 - # Link against the framework. All externals should be defined.
13781 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13782 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13784 - # No framework, use the Python app as bundle-loader
13785 - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13786 - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13789 - # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13790 - # This allows an extension to be used in any Python
13791 - cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
13792 - if test ${cur_target} '>' 10.2; then
13795 - CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
13797 - # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
13798 - # environment with a value that is the same as what we'll use
13799 - # in the Makefile to ensure that we'll get the same compiler
13800 - # environment during configure and build time.
13801 - MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
13802 - export MACOSX_DEPLOYMENT_TARGET
13804 - EXPORT_MACOSX_DEPLOYMENT_TARGET=''
13805 - if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
13807 - if test "${enable_universalsdk}"; then
13808 - LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13810 - LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13811 - BLDSHARED="$LDSHARED"
13813 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13814 - if test "$enable_framework" ; then
13815 - # Link against the framework. All externals should be defined.
13816 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13817 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13819 - # No framework, use the Python app as bundle-loader
13820 - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13821 - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13825 - Linux*|GNU*) LDSHARED='$(CC) -shared';;
13826 - BSD/OS*/4*) LDSHARED="gcc -shared";;
13828 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13830 - LDSHARED="$CC -shared ${LDFLAGS}"
13832 - LDSHARED="ld -Bshareable ${LDFLAGS}"
13835 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13837 - LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13839 - case `uname -r` in
13840 - [01].* | 2.[0-7] | 2.[0-7].*)
13841 - LDSHARED="ld -Bshareable ${LDFLAGS}"
13844 - LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13848 - NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13849 - OpenUNIX*|UnixWare*)
13850 - if test "$GCC" = "yes"
13851 - then LDSHARED='$(CC) -shared'
13852 - else LDSHARED='$(CC) -G'
13854 - SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13855 - Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13856 - CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13857 - atheos*) LDSHARED="gcc -shared";;
13858 - *) LDSHARED="ld";;
13861 -{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
13862 -echo "${ECHO_T}$LDSHARED" >&6; }
13863 -BLDSHARED=${BLDSHARED-$LDSHARED}
13864 -# CCSHARED are the C *flags* used to create objects to go into a shared
13865 -# library (module) -- this is only needed for a few systems
13866 -{ echo "$as_me:$LINENO: checking CCSHARED" >&5
13867 -echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13868 -if test -z "$CCSHARED"
13870 - case $ac_sys_system/$ac_sys_release in
13871 - SunOS*) if test "$GCC" = yes;
13872 - then CCSHARED="-fPIC";
13873 - elif test `uname -p` = sparc;
13874 - then CCSHARED="-xcode=pic32";
13875 - else CCSHARED="-Kpic";
13877 - hp*|HP*) if test "$GCC" = yes;
13878 - then CCSHARED="-fPIC";
13879 - else CCSHARED="+z";
13881 - Linux*|GNU*) CCSHARED="-fPIC";;
13882 - BSD/OS*/4*) CCSHARED="-fpic";;
13883 - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13884 - OpenUNIX*|UnixWare*)
13885 - if test "$GCC" = "yes"
13886 - then CCSHARED="-fPIC"
13887 - else CCSHARED="-KPIC"
13890 - if test "$GCC" = "yes"
13891 - then CCSHARED="-fPIC"
13892 - else CCSHARED="-Kpic -belf"
13894 - Monterey*) CCSHARED="-G";;
13895 - IRIX*/6*) case $CC in
13896 - *gcc*) CCSHARED="-shared";;
13899 - atheos*) CCSHARED="-fPIC";;
13902 -{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
13903 -echo "${ECHO_T}$CCSHARED" >&6; }
13904 -# LINKFORSHARED are the flags passed to the $(CC) command that links
13905 -# the python executable -- this is only needed for a few systems
13906 -{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13907 -echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13908 -if test -z "$LINKFORSHARED"
13910 - case $ac_sys_system/$ac_sys_release in
13911 - AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13913 - LINKFORSHARED="-Wl,-E -Wl,+s";;
13914 -# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13915 - BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13916 - Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13917 - # -u libsys_s pulls in all symbols in libsys
13919 - # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13921 - # not used by the core itself but which needs to be in the core so
13922 - # that dynamically loaded extension modules have access to it.
13923 - # -prebind is no longer used, because it actually seems to give a
13924 - # slowdown in stead of a speedup, maybe due to the large number of
13925 - # dynamic loads Python does.
13927 - LINKFORSHARED="$extra_undefs"
13928 - if test "$enable_framework"
13930 - LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13932 - LINKFORSHARED="$LINKFORSHARED";;
13933 - OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13934 - SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13935 - ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13936 - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13937 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13939 - LINKFORSHARED="-Wl,--export-dynamic"
13941 - SunOS/5*) case $CC in
13943 - if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13945 - LINKFORSHARED="-Xlinker --export-dynamic"
13949 - if test $enable_shared = "no"
13951 - LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13955 -{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13956 -echo "${ECHO_T}$LINKFORSHARED" >&6; }
13959 -{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13960 -echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13961 -if test ! "$LIBRARY" = "$LDLIBRARY"
13963 - case $ac_sys_system in
13965 - # Cygwin needs CCSHARED when building extension DLLs
13966 - # but not when building the interpreter DLL.
13967 - CFLAGSFORSHARED='';;
13969 - CFLAGSFORSHARED='$(CCSHARED)'
13972 -{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13973 -echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13975 -# SHLIBS are libraries (except -lc and -lm) to link to the python shared
13976 -# library (with --enable-shared).
13977 -# For platforms on which shared libraries are not allowed to have unresolved
13978 -# symbols, this must be set to $(LIBS) (expanded by make). We do this even
13979 -# if it is not required, since it creates a dependency of the shared library
13980 -# to LIBS. This, in turn, means that applications linking the shared libpython
13981 -# don't need to link LIBS explicitly. The default should be only changed
13982 -# on systems where this approach causes problems.
13984 -{ echo "$as_me:$LINENO: checking SHLIBS" >&5
13985 -echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13986 -case "$ac_sys_system" in
13988 - SHLIBS='$(LIBS)';;
13990 -{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
13991 -echo "${ECHO_T}$SHLIBS" >&6; }
13994 -# checks for libraries
13996 -{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13998 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 - echo $ECHO_N "(cached) $ECHO_C" >&6
14001 - ac_check_lib_save_LIBS=$LIBS
14003 -cat >conftest.$ac_ext <<_ACEOF
14006 -cat confdefs.h >>conftest.$ac_ext
14007 -cat >>conftest.$ac_ext <<_ACEOF
14008 -/* end confdefs.h. */
14010 -/* Override any GCC internal prototype to avoid an error.
14011 - Use char because int might match the return type of a GCC
14012 - builtin and then its argument prototype would still apply. */
14013 -#ifdef __cplusplus
14025 -rm -f conftest.$ac_objext conftest$ac_exeext
14026 -if { (ac_try="$ac_link"
14027 -case "(($ac_try" in
14028 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 - *) ac_try_echo=$ac_try;;
14031 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 - (eval "$ac_link") 2>conftest.er1
14034 - grep -v '^ *+' conftest.er1 >conftest.err
14035 - rm -f conftest.er1
14036 - cat conftest.err >&5
14037 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 - (exit $ac_status); } && {
14039 - test -z "$ac_c_werror_flag" ||
14040 - test ! -s conftest.err
14041 - } && test -s conftest$ac_exeext &&
14042 - $as_test_x conftest$ac_exeext; then
14043 - ac_cv_lib_dl_dlopen=yes
14045 - echo "$as_me: failed program was:" >&5
14046 -sed 's/^/| /' conftest.$ac_ext >&5
14048 - ac_cv_lib_dl_dlopen=no
14051 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14052 - conftest$ac_exeext conftest.$ac_ext
14053 -LIBS=$ac_check_lib_save_LIBS
14055 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14056 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14057 -if test $ac_cv_lib_dl_dlopen = yes; then
14058 - cat >>confdefs.h <<_ACEOF
14059 -#define HAVE_LIBDL 1
14062 - LIBS="-ldl $LIBS"
14065 - # Dynamic linking for SunOS/Solaris and SYSV
14067 -{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14068 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14069 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14070 - echo $ECHO_N "(cached) $ECHO_C" >&6
14072 - ac_check_lib_save_LIBS=$LIBS
14073 -LIBS="-ldld $LIBS"
14074 -cat >conftest.$ac_ext <<_ACEOF
14077 -cat confdefs.h >>conftest.$ac_ext
14078 -cat >>conftest.$ac_ext <<_ACEOF
14079 -/* end confdefs.h. */
14081 -/* Override any GCC internal prototype to avoid an error.
14082 - Use char because int might match the return type of a GCC
14083 - builtin and then its argument prototype would still apply. */
14084 -#ifdef __cplusplus
14091 -return shl_load ();
14096 -rm -f conftest.$ac_objext conftest$ac_exeext
14097 -if { (ac_try="$ac_link"
14098 -case "(($ac_try" in
14099 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 - *) ac_try_echo=$ac_try;;
14102 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 - (eval "$ac_link") 2>conftest.er1
14105 - grep -v '^ *+' conftest.er1 >conftest.err
14106 - rm -f conftest.er1
14107 - cat conftest.err >&5
14108 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 - (exit $ac_status); } && {
14110 - test -z "$ac_c_werror_flag" ||
14111 - test ! -s conftest.err
14112 - } && test -s conftest$ac_exeext &&
14113 - $as_test_x conftest$ac_exeext; then
14114 - ac_cv_lib_dld_shl_load=yes
14116 - echo "$as_me: failed program was:" >&5
14117 -sed 's/^/| /' conftest.$ac_ext >&5
14119 - ac_cv_lib_dld_shl_load=no
14122 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14123 - conftest$ac_exeext conftest.$ac_ext
14124 -LIBS=$ac_check_lib_save_LIBS
14126 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14127 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14128 -if test $ac_cv_lib_dld_shl_load = yes; then
14129 - cat >>confdefs.h <<_ACEOF
14130 -#define HAVE_LIBDLD 1
14133 - LIBS="-ldld $LIBS"
14136 - # Dynamic linking for HP-UX
14138 -# only check for sem_ini if thread support is requested
14139 -if test "$with_threads" = "yes" -o -z "$with_threads"; then
14140 - { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14141 -echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
14142 -if test "${ac_cv_search_sem_init+set}" = set; then
14143 - echo $ECHO_N "(cached) $ECHO_C" >&6
14145 - ac_func_search_save_LIBS=$LIBS
14146 -cat >conftest.$ac_ext <<_ACEOF
14149 -cat confdefs.h >>conftest.$ac_ext
14150 -cat >>conftest.$ac_ext <<_ACEOF
14151 -/* end confdefs.h. */
14153 -/* Override any GCC internal prototype to avoid an error.
14154 - Use char because int might match the return type of a GCC
14155 - builtin and then its argument prototype would still apply. */
14156 -#ifdef __cplusplus
14163 -return sem_init ();
14168 -for ac_lib in '' pthread rt posix4; do
14169 - if test -z "$ac_lib"; then
14170 - ac_res="none required"
14173 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14175 - rm -f conftest.$ac_objext conftest$ac_exeext
14176 -if { (ac_try="$ac_link"
14177 -case "(($ac_try" in
14178 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 - *) ac_try_echo=$ac_try;;
14181 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 - (eval "$ac_link") 2>conftest.er1
14184 - grep -v '^ *+' conftest.er1 >conftest.err
14185 - rm -f conftest.er1
14186 - cat conftest.err >&5
14187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 - (exit $ac_status); } && {
14189 - test -z "$ac_c_werror_flag" ||
14190 - test ! -s conftest.err
14191 - } && test -s conftest$ac_exeext &&
14192 - $as_test_x conftest$ac_exeext; then
14193 - ac_cv_search_sem_init=$ac_res
14195 - echo "$as_me: failed program was:" >&5
14196 -sed 's/^/| /' conftest.$ac_ext >&5
14201 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14202 - conftest$ac_exeext
14203 - if test "${ac_cv_search_sem_init+set}" = set; then
14207 -if test "${ac_cv_search_sem_init+set}" = set; then
14210 - ac_cv_search_sem_init=no
14212 -rm conftest.$ac_ext
14213 -LIBS=$ac_func_search_save_LIBS
14215 -{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14216 -echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
14217 -ac_res=$ac_cv_search_sem_init
14218 -if test "$ac_res" != no; then
14219 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222 - # 'Real Time' functions on Solaris
14223 - # posix4 on Solaris 2.6
14224 - # pthread (first!) on Linux
14227 -# check if we need libintl for locale functions
14228 -{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14229 -echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
14230 -if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14231 - echo $ECHO_N "(cached) $ECHO_C" >&6
14233 - ac_check_lib_save_LIBS=$LIBS
14234 -LIBS="-lintl $LIBS"
14235 -cat >conftest.$ac_ext <<_ACEOF
14238 -cat confdefs.h >>conftest.$ac_ext
14239 -cat >>conftest.$ac_ext <<_ACEOF
14240 -/* end confdefs.h. */
14242 -/* Override any GCC internal prototype to avoid an error.
14243 - Use char because int might match the return type of a GCC
14244 - builtin and then its argument prototype would still apply. */
14245 -#ifdef __cplusplus
14248 -char textdomain ();
14252 -return textdomain ();
14257 -rm -f conftest.$ac_objext conftest$ac_exeext
14258 -if { (ac_try="$ac_link"
14259 -case "(($ac_try" in
14260 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 - *) ac_try_echo=$ac_try;;
14263 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 - (eval "$ac_link") 2>conftest.er1
14266 - grep -v '^ *+' conftest.er1 >conftest.err
14267 - rm -f conftest.er1
14268 - cat conftest.err >&5
14269 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 - (exit $ac_status); } && {
14271 - test -z "$ac_c_werror_flag" ||
14272 - test ! -s conftest.err
14273 - } && test -s conftest$ac_exeext &&
14274 - $as_test_x conftest$ac_exeext; then
14275 - ac_cv_lib_intl_textdomain=yes
14277 - echo "$as_me: failed program was:" >&5
14278 -sed 's/^/| /' conftest.$ac_ext >&5
14280 - ac_cv_lib_intl_textdomain=no
14283 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14284 - conftest$ac_exeext conftest.$ac_ext
14285 -LIBS=$ac_check_lib_save_LIBS
14287 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14288 -echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14289 -if test $ac_cv_lib_intl_textdomain = yes; then
14291 -cat >>confdefs.h <<\_ACEOF
14292 -#define WITH_LIBINTL 1
14298 -# checks for system dependent C++ extensions support
14299 -case "$ac_sys_system" in
14300 - AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14301 -echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14302 - cat >conftest.$ac_ext <<_ACEOF
14305 -cat confdefs.h >>conftest.$ac_ext
14306 -cat >>conftest.$ac_ext <<_ACEOF
14307 -/* end confdefs.h. */
14308 -#include "/usr/lpp/xlC/include/load.h"
14312 -loadAndInit("", 0, "")
14317 -rm -f conftest.$ac_objext conftest$ac_exeext
14318 -if { (ac_try="$ac_link"
14319 -case "(($ac_try" in
14320 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 - *) ac_try_echo=$ac_try;;
14323 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 - (eval "$ac_link") 2>conftest.er1
14326 - grep -v '^ *+' conftest.er1 >conftest.err
14327 - rm -f conftest.er1
14328 - cat conftest.err >&5
14329 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 - (exit $ac_status); } && {
14331 - test -z "$ac_c_werror_flag" ||
14332 - test ! -s conftest.err
14333 - } && test -s conftest$ac_exeext &&
14334 - $as_test_x conftest$ac_exeext; then
14336 -cat >>confdefs.h <<\_ACEOF
14337 -#define AIX_GENUINE_CPLUSPLUS 1
14340 - { echo "$as_me:$LINENO: result: yes" >&5
14341 -echo "${ECHO_T}yes" >&6; }
14343 - echo "$as_me: failed program was:" >&5
14344 -sed 's/^/| /' conftest.$ac_ext >&5
14346 - { echo "$as_me:$LINENO: result: no" >&5
14347 -echo "${ECHO_T}no" >&6; }
14350 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 - conftest$ac_exeext conftest.$ac_ext;;
14355 -# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14356 -# BeOS' sockets are stashed in libnet.
14357 -{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14358 -echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14359 -if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14360 - echo $ECHO_N "(cached) $ECHO_C" >&6
14362 - ac_check_lib_save_LIBS=$LIBS
14363 -LIBS="-lnsl $LIBS"
14364 -cat >conftest.$ac_ext <<_ACEOF
14367 -cat confdefs.h >>conftest.$ac_ext
14368 -cat >>conftest.$ac_ext <<_ACEOF
14369 -/* end confdefs.h. */
14371 -/* Override any GCC internal prototype to avoid an error.
14372 - Use char because int might match the return type of a GCC
14373 - builtin and then its argument prototype would still apply. */
14374 -#ifdef __cplusplus
14386 -rm -f conftest.$ac_objext conftest$ac_exeext
14387 -if { (ac_try="$ac_link"
14388 -case "(($ac_try" in
14389 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 - *) ac_try_echo=$ac_try;;
14392 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 - (eval "$ac_link") 2>conftest.er1
14395 - grep -v '^ *+' conftest.er1 >conftest.err
14396 - rm -f conftest.er1
14397 - cat conftest.err >&5
14398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 - (exit $ac_status); } && {
14400 - test -z "$ac_c_werror_flag" ||
14401 - test ! -s conftest.err
14402 - } && test -s conftest$ac_exeext &&
14403 - $as_test_x conftest$ac_exeext; then
14404 - ac_cv_lib_nsl_t_open=yes
14406 - echo "$as_me: failed program was:" >&5
14407 -sed 's/^/| /' conftest.$ac_ext >&5
14409 - ac_cv_lib_nsl_t_open=no
14412 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 - conftest$ac_exeext conftest.$ac_ext
14414 -LIBS=$ac_check_lib_save_LIBS
14416 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14417 -echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14418 -if test $ac_cv_lib_nsl_t_open = yes; then
14419 - LIBS="-lnsl $LIBS"
14422 -{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14423 -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14424 -if test "${ac_cv_lib_socket_socket+set}" = set; then
14425 - echo $ECHO_N "(cached) $ECHO_C" >&6
14427 - ac_check_lib_save_LIBS=$LIBS
14428 -LIBS="-lsocket $LIBS $LIBS"
14429 -cat >conftest.$ac_ext <<_ACEOF
14432 -cat confdefs.h >>conftest.$ac_ext
14433 -cat >>conftest.$ac_ext <<_ACEOF
14434 -/* end confdefs.h. */
14436 -/* Override any GCC internal prototype to avoid an error.
14437 - Use char because int might match the return type of a GCC
14438 - builtin and then its argument prototype would still apply. */
14439 -#ifdef __cplusplus
14451 -rm -f conftest.$ac_objext conftest$ac_exeext
14452 -if { (ac_try="$ac_link"
14453 -case "(($ac_try" in
14454 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 - *) ac_try_echo=$ac_try;;
14457 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 - (eval "$ac_link") 2>conftest.er1
14460 - grep -v '^ *+' conftest.er1 >conftest.err
14461 - rm -f conftest.er1
14462 - cat conftest.err >&5
14463 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 - (exit $ac_status); } && {
14465 - test -z "$ac_c_werror_flag" ||
14466 - test ! -s conftest.err
14467 - } && test -s conftest$ac_exeext &&
14468 - $as_test_x conftest$ac_exeext; then
14469 - ac_cv_lib_socket_socket=yes
14471 - echo "$as_me: failed program was:" >&5
14472 -sed 's/^/| /' conftest.$ac_ext >&5
14474 - ac_cv_lib_socket_socket=no
14477 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14478 - conftest$ac_exeext conftest.$ac_ext
14479 -LIBS=$ac_check_lib_save_LIBS
14481 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14482 -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14483 -if test $ac_cv_lib_socket_socket = yes; then
14484 - LIBS="-lsocket $LIBS"
14488 -case "$ac_sys_system" in
14490 -{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14491 -echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14492 -if test "${ac_cv_lib_net_socket+set}" = set; then
14493 - echo $ECHO_N "(cached) $ECHO_C" >&6
14495 - ac_check_lib_save_LIBS=$LIBS
14496 -LIBS="-lnet $LIBS $LIBS"
14497 -cat >conftest.$ac_ext <<_ACEOF
14500 -cat confdefs.h >>conftest.$ac_ext
14501 -cat >>conftest.$ac_ext <<_ACEOF
14502 -/* end confdefs.h. */
14504 -/* Override any GCC internal prototype to avoid an error.
14505 - Use char because int might match the return type of a GCC
14506 - builtin and then its argument prototype would still apply. */
14507 -#ifdef __cplusplus
14519 -rm -f conftest.$ac_objext conftest$ac_exeext
14520 -if { (ac_try="$ac_link"
14521 -case "(($ac_try" in
14522 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 - *) ac_try_echo=$ac_try;;
14525 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 - (eval "$ac_link") 2>conftest.er1
14528 - grep -v '^ *+' conftest.er1 >conftest.err
14529 - rm -f conftest.er1
14530 - cat conftest.err >&5
14531 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 - (exit $ac_status); } && {
14533 - test -z "$ac_c_werror_flag" ||
14534 - test ! -s conftest.err
14535 - } && test -s conftest$ac_exeext &&
14536 - $as_test_x conftest$ac_exeext; then
14537 - ac_cv_lib_net_socket=yes
14539 - echo "$as_me: failed program was:" >&5
14540 -sed 's/^/| /' conftest.$ac_ext >&5
14542 - ac_cv_lib_net_socket=no
14545 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14546 - conftest$ac_exeext conftest.$ac_ext
14547 -LIBS=$ac_check_lib_save_LIBS
14549 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14550 -echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14551 -if test $ac_cv_lib_net_socket = yes; then
14552 - LIBS="-lnet $LIBS"
14558 -{ echo "$as_me:$LINENO: checking for --with-libs" >&5
14559 -echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14561 -# Check whether --with-libs was given.
14562 -if test "${with_libs+set}" = set; then
14563 - withval=$with_libs;
14564 -{ echo "$as_me:$LINENO: result: $withval" >&5
14565 -echo "${ECHO_T}$withval" >&6; }
14566 -LIBS="$withval $LIBS"
14569 - { echo "$as_me:$LINENO: result: no" >&5
14570 -echo "${ECHO_T}no" >&6; }
14574 -# Check for use of the system libffi library
14575 -if test "${ac_cv_header_ffi_h+set}" = set; then
14576 - { echo "$as_me:$LINENO: checking for ffi.h" >&5
14577 -echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
14578 -if test "${ac_cv_header_ffi_h+set}" = set; then
14579 - echo $ECHO_N "(cached) $ECHO_C" >&6
14581 -{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
14582 -echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
14584 - # Is the header compilable?
14585 -{ echo "$as_me:$LINENO: checking ffi.h usability" >&5
14586 -echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
14587 -cat >conftest.$ac_ext <<_ACEOF
14590 -cat confdefs.h >>conftest.$ac_ext
14591 -cat >>conftest.$ac_ext <<_ACEOF
14592 -/* end confdefs.h. */
14593 -$ac_includes_default
14596 -rm -f conftest.$ac_objext
14597 -if { (ac_try="$ac_compile"
14598 -case "(($ac_try" in
14599 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 - *) ac_try_echo=$ac_try;;
14602 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 - (eval "$ac_compile") 2>conftest.er1
14605 - grep -v '^ *+' conftest.er1 >conftest.err
14606 - rm -f conftest.er1
14607 - cat conftest.err >&5
14608 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 - (exit $ac_status); } && {
14610 - test -z "$ac_c_werror_flag" ||
14611 - test ! -s conftest.err
14612 - } && test -s conftest.$ac_objext; then
14613 - ac_header_compiler=yes
14615 - echo "$as_me: failed program was:" >&5
14616 -sed 's/^/| /' conftest.$ac_ext >&5
14618 - ac_header_compiler=no
14621 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623 -echo "${ECHO_T}$ac_header_compiler" >&6; }
14625 -# Is the header present?
14626 -{ echo "$as_me:$LINENO: checking ffi.h presence" >&5
14627 -echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
14628 -cat >conftest.$ac_ext <<_ACEOF
14631 -cat confdefs.h >>conftest.$ac_ext
14632 -cat >>conftest.$ac_ext <<_ACEOF
14633 -/* end confdefs.h. */
14636 -if { (ac_try="$ac_cpp conftest.$ac_ext"
14637 -case "(($ac_try" in
14638 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 - *) ac_try_echo=$ac_try;;
14641 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14644 - grep -v '^ *+' conftest.er1 >conftest.err
14645 - rm -f conftest.er1
14646 - cat conftest.err >&5
14647 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 - (exit $ac_status); } >/dev/null && {
14649 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14650 - test ! -s conftest.err
14652 - ac_header_preproc=yes
14654 - echo "$as_me: failed program was:" >&5
14655 -sed 's/^/| /' conftest.$ac_ext >&5
14657 - ac_header_preproc=no
14660 -rm -f conftest.err conftest.$ac_ext
14661 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14662 -echo "${ECHO_T}$ac_header_preproc" >&6; }
14664 -# So? What about this header?
14665 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14667 - { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
14668 -echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14669 - { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
14670 -echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
14671 - ac_header_preproc=yes
14674 - { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
14675 -echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
14676 - { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
14677 -echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
14678 - { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
14679 -echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
14680 - { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
14681 -echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
14682 - { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
14683 -echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
14684 - { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
14685 -echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
14687 -## ------------------------------------------------ ##
14688 -## Report this to http://www.python.org/python-bugs ##
14689 -## ------------------------------------------------ ##
14691 - ) | sed "s/^/$as_me: WARNING: /" >&2
14694 -{ echo "$as_me:$LINENO: checking for ffi.h" >&5
14695 -echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
14696 -if test "${ac_cv_header_ffi_h+set}" = set; then
14697 - echo $ECHO_N "(cached) $ECHO_C" >&6
14699 - ac_cv_header_ffi_h=$ac_header_preproc
14701 -{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
14702 -echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
14707 -{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14708 -echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14710 -# Check whether --with-system_ffi was given.
14711 -if test "${with_system_ffi+set}" = set; then
14712 - withval=$with_system_ffi;
14716 -if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
14717 - case "$ac_sys_system/`uname -m`" in
14718 - Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
14719 - *) with_system_ffi="no"
14722 -{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14723 -echo "${ECHO_T}$with_system_ffi" >&6; }
14725 -# Determine if signalmodule should be used.
14728 -{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14729 -echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14731 -# Check whether --with-signal-module was given.
14732 -if test "${with_signal_module+set}" = set; then
14733 - withval=$with_signal_module;
14737 -if test -z "$with_signal_module"
14738 -then with_signal_module="yes"
14740 -{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
14741 -echo "${ECHO_T}$with_signal_module" >&6; }
14743 -if test "${with_signal_module}" = "yes"; then
14744 - USE_SIGNAL_MODULE=""
14747 - USE_SIGNAL_MODULE="#"
14748 - SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14751 -# This is used to generate Setup.config
14753 -USE_THREAD_MODULE=""
14755 -{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14756 -echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14759 -# Check whether --with-dec-threads was given.
14760 -if test "${with_dec_threads+set}" = set; then
14761 - withval=$with_dec_threads;
14762 -{ echo "$as_me:$LINENO: result: $withval" >&5
14763 -echo "${ECHO_T}$withval" >&6; }
14765 -if test "${with_thread+set}" != set; then
14766 - with_thread="$withval";
14769 - { echo "$as_me:$LINENO: result: no" >&5
14770 -echo "${ECHO_T}no" >&6; }
14774 -# Templates for things AC_DEFINEd more than once.
14775 -# For a single AC_DEFINE, no template is needed.
14783 -{ echo "$as_me:$LINENO: checking for --with-threads" >&5
14784 -echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14786 -# Check whether --with-threads was given.
14787 -if test "${with_threads+set}" = set; then
14788 - withval=$with_threads;
14792 -# --with-thread is deprecated, but check for it anyway
14794 -# Check whether --with-thread was given.
14795 -if test "${with_thread+set}" = set; then
14796 - withval=$with_thread; with_threads=$with_thread
14800 -if test -z "$with_threads"
14801 -then with_threads="yes"
14803 -{ echo "$as_me:$LINENO: result: $with_threads" >&5
14804 -echo "${ECHO_T}$with_threads" >&6; }
14807 -if test "$with_threads" = "no"
14809 - USE_THREAD_MODULE="#"
14810 -elif test "$ac_cv_pthread_is_default" = yes
14812 - cat >>confdefs.h <<\_ACEOF
14813 -#define WITH_THREAD 1
14816 - # Defining _REENTRANT on system with POSIX threads should not hurt.
14817 - cat >>confdefs.h <<\_ACEOF
14818 -#define _REENTRANT 1
14821 - posix_threads=yes
14822 - THREADOBJ="Python/thread.o"
14823 -elif test "$ac_cv_kpthread" = "yes"
14825 - CC="$CC -Kpthread"
14826 - if test "$ac_cv_cxx_thread" = "yes"; then
14827 - CXX="$CXX -Kpthread"
14829 - cat >>confdefs.h <<\_ACEOF
14830 -#define WITH_THREAD 1
14833 - posix_threads=yes
14834 - THREADOBJ="Python/thread.o"
14835 -elif test "$ac_cv_kthread" = "yes"
14837 - CC="$CC -Kthread"
14838 - if test "$ac_cv_cxx_thread" = "yes"; then
14839 - CXX="$CXX -Kthread"
14841 - cat >>confdefs.h <<\_ACEOF
14842 -#define WITH_THREAD 1
14845 - posix_threads=yes
14846 - THREADOBJ="Python/thread.o"
14847 -elif test "$ac_cv_pthread" = "yes"
14849 - CC="$CC -pthread"
14850 - if test "$ac_cv_cxx_thread" = "yes"; then
14851 - CXX="$CXX -pthread"
14853 - cat >>confdefs.h <<\_ACEOF
14854 -#define WITH_THREAD 1
14857 - posix_threads=yes
14858 - THREADOBJ="Python/thread.o"
14860 - if test ! -z "$with_threads" -a -d "$with_threads"
14861 - then LDFLAGS="$LDFLAGS -L$with_threads"
14863 - if test ! -z "$withval" -a -d "$withval"
14864 - then LDFLAGS="$LDFLAGS -L$withval"
14867 - # According to the POSIX spec, a pthreads implementation must
14868 - # define _POSIX_THREADS in unistd.h. Some apparently don't
14869 - # (e.g. gnu pth with pthread emulation)
14870 - { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14871 -echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14872 - cat >conftest.$ac_ext <<_ACEOF
14875 -cat confdefs.h >>conftest.$ac_ext
14876 -cat >>conftest.$ac_ext <<_ACEOF
14877 -/* end confdefs.h. */
14879 -#include <unistd.h>
14880 -#ifdef _POSIX_THREADS
14885 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14886 - $EGREP "yes" >/dev/null 2>&1; then
14887 - unistd_defines_pthreads=yes
14889 - unistd_defines_pthreads=no
14893 - { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14894 -echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14896 - cat >>confdefs.h <<\_ACEOF
14897 -#define _REENTRANT 1
14900 - if test "${ac_cv_header_cthreads_h+set}" = set; then
14901 - { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14902 -echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14903 -if test "${ac_cv_header_cthreads_h+set}" = set; then
14904 - echo $ECHO_N "(cached) $ECHO_C" >&6
14906 -{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14907 -echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14909 - # Is the header compilable?
14910 -{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14911 -echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14912 -cat >conftest.$ac_ext <<_ACEOF
14915 -cat confdefs.h >>conftest.$ac_ext
14916 -cat >>conftest.$ac_ext <<_ACEOF
14917 -/* end confdefs.h. */
14918 -$ac_includes_default
14919 -#include <cthreads.h>
14921 -rm -f conftest.$ac_objext
14922 -if { (ac_try="$ac_compile"
14923 -case "(($ac_try" in
14924 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 - *) ac_try_echo=$ac_try;;
14927 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 - (eval "$ac_compile") 2>conftest.er1
14930 - grep -v '^ *+' conftest.er1 >conftest.err
14931 - rm -f conftest.er1
14932 - cat conftest.err >&5
14933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 - (exit $ac_status); } && {
14935 - test -z "$ac_c_werror_flag" ||
14936 - test ! -s conftest.err
14937 - } && test -s conftest.$ac_objext; then
14938 - ac_header_compiler=yes
14940 - echo "$as_me: failed program was:" >&5
14941 -sed 's/^/| /' conftest.$ac_ext >&5
14943 - ac_header_compiler=no
14946 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14948 -echo "${ECHO_T}$ac_header_compiler" >&6; }
14950 -# Is the header present?
14951 -{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14952 -echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14953 -cat >conftest.$ac_ext <<_ACEOF
14956 -cat confdefs.h >>conftest.$ac_ext
14957 -cat >>conftest.$ac_ext <<_ACEOF
14958 -/* end confdefs.h. */
14959 -#include <cthreads.h>
14961 -if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 -case "(($ac_try" in
14963 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 - *) ac_try_echo=$ac_try;;
14966 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969 - grep -v '^ *+' conftest.er1 >conftest.err
14970 - rm -f conftest.er1
14971 - cat conftest.err >&5
14972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 - (exit $ac_status); } >/dev/null && {
14974 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14975 - test ! -s conftest.err
14977 - ac_header_preproc=yes
14979 - echo "$as_me: failed program was:" >&5
14980 -sed 's/^/| /' conftest.$ac_ext >&5
14982 - ac_header_preproc=no
14985 -rm -f conftest.err conftest.$ac_ext
14986 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 -echo "${ECHO_T}$ac_header_preproc" >&6; }
14989 -# So? What about this header?
14990 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 - { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993 -echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 - { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14995 -echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14996 - ac_header_preproc=yes
14999 - { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15000 -echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15001 - { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15002 -echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15003 - { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15004 -echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15005 - { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15006 -echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15007 - { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15008 -echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15009 - { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15010 -echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15012 -## ------------------------------------------------ ##
15013 -## Report this to http://www.python.org/python-bugs ##
15014 -## ------------------------------------------------ ##
15016 - ) | sed "s/^/$as_me: WARNING: /" >&2
15019 -{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
15020 -echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15021 -if test "${ac_cv_header_cthreads_h+set}" = set; then
15022 - echo $ECHO_N "(cached) $ECHO_C" >&6
15024 - ac_cv_header_cthreads_h=$ac_header_preproc
15026 -{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15027 -echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15030 -if test $ac_cv_header_cthreads_h = yes; then
15031 - cat >>confdefs.h <<\_ACEOF
15032 -#define WITH_THREAD 1
15035 - cat >>confdefs.h <<\_ACEOF
15036 -#define C_THREADS 1
15040 -cat >>confdefs.h <<\_ACEOF
15041 -#define HURD_C_THREADS 1
15044 - LIBS="$LIBS -lthreads"
15045 - THREADOBJ="Python/thread.o"
15048 - if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15049 - { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15050 -echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15051 -if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15052 - echo $ECHO_N "(cached) $ECHO_C" >&6
15054 -{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15055 -echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15057 - # Is the header compilable?
15058 -{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15059 -echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15060 -cat >conftest.$ac_ext <<_ACEOF
15063 -cat confdefs.h >>conftest.$ac_ext
15064 -cat >>conftest.$ac_ext <<_ACEOF
15065 -/* end confdefs.h. */
15066 -$ac_includes_default
15067 -#include <mach/cthreads.h>
15069 -rm -f conftest.$ac_objext
15070 -if { (ac_try="$ac_compile"
15071 -case "(($ac_try" in
15072 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 - *) ac_try_echo=$ac_try;;
15075 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 - (eval "$ac_compile") 2>conftest.er1
15078 - grep -v '^ *+' conftest.er1 >conftest.err
15079 - rm -f conftest.er1
15080 - cat conftest.err >&5
15081 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 - (exit $ac_status); } && {
15083 - test -z "$ac_c_werror_flag" ||
15084 - test ! -s conftest.err
15085 - } && test -s conftest.$ac_objext; then
15086 - ac_header_compiler=yes
15088 - echo "$as_me: failed program was:" >&5
15089 -sed 's/^/| /' conftest.$ac_ext >&5
15091 - ac_header_compiler=no
15094 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15098 -# Is the header present?
15099 -{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15100 -echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15101 -cat >conftest.$ac_ext <<_ACEOF
15104 -cat confdefs.h >>conftest.$ac_ext
15105 -cat >>conftest.$ac_ext <<_ACEOF
15106 -/* end confdefs.h. */
15107 -#include <mach/cthreads.h>
15109 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15110 -case "(($ac_try" in
15111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 - *) ac_try_echo=$ac_try;;
15114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15117 - grep -v '^ *+' conftest.er1 >conftest.err
15118 - rm -f conftest.er1
15119 - cat conftest.err >&5
15120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 - (exit $ac_status); } >/dev/null && {
15122 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15123 - test ! -s conftest.err
15125 - ac_header_preproc=yes
15127 - echo "$as_me: failed program was:" >&5
15128 -sed 's/^/| /' conftest.$ac_ext >&5
15130 - ac_header_preproc=no
15133 -rm -f conftest.err conftest.$ac_ext
15134 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15135 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15137 -# So? What about this header?
15138 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15140 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15141 -echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15142 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15143 -echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15144 - ac_header_preproc=yes
15147 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15148 -echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15149 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15150 -echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15151 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15152 -echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15153 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15154 -echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15155 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15156 -echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15157 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15158 -echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15160 -## ------------------------------------------------ ##
15161 -## Report this to http://www.python.org/python-bugs ##
15162 -## ------------------------------------------------ ##
15164 - ) | sed "s/^/$as_me: WARNING: /" >&2
15167 -{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15168 -echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15169 -if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15170 - echo $ECHO_N "(cached) $ECHO_C" >&6
15172 - ac_cv_header_mach_cthreads_h=$ac_header_preproc
15174 -{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15175 -echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15178 -if test $ac_cv_header_mach_cthreads_h = yes; then
15179 - cat >>confdefs.h <<\_ACEOF
15180 -#define WITH_THREAD 1
15183 - cat >>confdefs.h <<\_ACEOF
15184 -#define C_THREADS 1
15188 -cat >>confdefs.h <<\_ACEOF
15189 -#define MACH_C_THREADS 1
15192 - THREADOBJ="Python/thread.o"
15195 - { echo "$as_me:$LINENO: checking for --with-pth" >&5
15196 -echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
15198 -# Check whether --with-pth was given.
15199 -if test "${with_pth+set}" = set; then
15200 - withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
15201 -echo "${ECHO_T}$withval" >&6; }
15202 - cat >>confdefs.h <<\_ACEOF
15203 -#define WITH_THREAD 1
15207 -cat >>confdefs.h <<\_ACEOF
15208 -#define HAVE_PTH 1
15211 - LIBS="-lpth $LIBS"
15212 - THREADOBJ="Python/thread.o"
15214 - { echo "$as_me:$LINENO: result: no" >&5
15215 -echo "${ECHO_T}no" >&6; }
15217 - # Just looking for pthread_create in libpthread is not enough:
15218 - # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15219 - # So we really have to include pthread.h, and then link.
15221 - LIBS="$LIBS -lpthread"
15222 - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15223 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
15224 - cat >conftest.$ac_ext <<_ACEOF
15227 -cat confdefs.h >>conftest.$ac_ext
15228 -cat >>conftest.$ac_ext <<_ACEOF
15229 -/* end confdefs.h. */
15230 -#include <pthread.h>
15232 -void * start_routine (void *arg) { exit (0); }
15237 -pthread_create (NULL, NULL, start_routine, NULL)
15242 -rm -f conftest.$ac_objext conftest$ac_exeext
15243 -if { (ac_try="$ac_link"
15244 -case "(($ac_try" in
15245 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 - *) ac_try_echo=$ac_try;;
15248 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 - (eval "$ac_link") 2>conftest.er1
15251 - grep -v '^ *+' conftest.er1 >conftest.err
15252 - rm -f conftest.er1
15253 - cat conftest.err >&5
15254 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 - (exit $ac_status); } && {
15256 - test -z "$ac_c_werror_flag" ||
15257 - test ! -s conftest.err
15258 - } && test -s conftest$ac_exeext &&
15259 - $as_test_x conftest$ac_exeext; then
15261 - { echo "$as_me:$LINENO: result: yes" >&5
15262 -echo "${ECHO_T}yes" >&6; }
15263 - cat >>confdefs.h <<\_ACEOF
15264 -#define WITH_THREAD 1
15267 - posix_threads=yes
15268 - THREADOBJ="Python/thread.o"
15270 - echo "$as_me: failed program was:" >&5
15271 -sed 's/^/| /' conftest.$ac_ext >&5
15275 - { echo "$as_me:$LINENO: checking for pthread_detach" >&5
15276 -echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
15277 -if test "${ac_cv_func_pthread_detach+set}" = set; then
15278 - echo $ECHO_N "(cached) $ECHO_C" >&6
15280 - cat >conftest.$ac_ext <<_ACEOF
15283 -cat confdefs.h >>conftest.$ac_ext
15284 -cat >>conftest.$ac_ext <<_ACEOF
15285 -/* end confdefs.h. */
15286 -/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15287 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 -#define pthread_detach innocuous_pthread_detach
15290 -/* System header to define __stub macros and hopefully few prototypes,
15291 - which can conflict with char pthread_detach (); below.
15292 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 - <limits.h> exists even on freestanding compilers. */
15296 -# include <limits.h>
15298 -# include <assert.h>
15301 -#undef pthread_detach
15303 -/* Override any GCC internal prototype to avoid an error.
15304 - Use char because int might match the return type of a GCC
15305 - builtin and then its argument prototype would still apply. */
15306 -#ifdef __cplusplus
15309 -char pthread_detach ();
15310 -/* The GNU C library defines this for functions which it implements
15311 - to always fail with ENOSYS. Some functions are actually named
15312 - something starting with __ and the normal name is an alias. */
15313 -#if defined __stub_pthread_detach || defined __stub___pthread_detach
15320 -return pthread_detach ();
15325 -rm -f conftest.$ac_objext conftest$ac_exeext
15326 -if { (ac_try="$ac_link"
15327 -case "(($ac_try" in
15328 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 - *) ac_try_echo=$ac_try;;
15331 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 - (eval "$ac_link") 2>conftest.er1
15334 - grep -v '^ *+' conftest.er1 >conftest.err
15335 - rm -f conftest.er1
15336 - cat conftest.err >&5
15337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 - (exit $ac_status); } && {
15339 - test -z "$ac_c_werror_flag" ||
15340 - test ! -s conftest.err
15341 - } && test -s conftest$ac_exeext &&
15342 - $as_test_x conftest$ac_exeext; then
15343 - ac_cv_func_pthread_detach=yes
15345 - echo "$as_me: failed program was:" >&5
15346 -sed 's/^/| /' conftest.$ac_ext >&5
15348 - ac_cv_func_pthread_detach=no
15351 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 - conftest$ac_exeext conftest.$ac_ext
15354 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15355 -echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
15356 -if test $ac_cv_func_pthread_detach = yes; then
15357 - cat >>confdefs.h <<\_ACEOF
15358 -#define WITH_THREAD 1
15361 - posix_threads=yes
15362 - THREADOBJ="Python/thread.o"
15365 - if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15366 - { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15367 -echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15368 -if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15369 - echo $ECHO_N "(cached) $ECHO_C" >&6
15371 -{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15372 -echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15374 - # Is the header compilable?
15375 -{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15376 -echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
15377 -cat >conftest.$ac_ext <<_ACEOF
15380 -cat confdefs.h >>conftest.$ac_ext
15381 -cat >>conftest.$ac_ext <<_ACEOF
15382 -/* end confdefs.h. */
15383 -$ac_includes_default
15384 -#include <atheos/threads.h>
15386 -rm -f conftest.$ac_objext
15387 -if { (ac_try="$ac_compile"
15388 -case "(($ac_try" in
15389 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 - *) ac_try_echo=$ac_try;;
15392 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 - (eval "$ac_compile") 2>conftest.er1
15395 - grep -v '^ *+' conftest.er1 >conftest.err
15396 - rm -f conftest.er1
15397 - cat conftest.err >&5
15398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 - (exit $ac_status); } && {
15400 - test -z "$ac_c_werror_flag" ||
15401 - test ! -s conftest.err
15402 - } && test -s conftest.$ac_objext; then
15403 - ac_header_compiler=yes
15405 - echo "$as_me: failed program was:" >&5
15406 -sed 's/^/| /' conftest.$ac_ext >&5
15408 - ac_header_compiler=no
15411 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15415 -# Is the header present?
15416 -{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15417 -echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15418 -cat >conftest.$ac_ext <<_ACEOF
15421 -cat confdefs.h >>conftest.$ac_ext
15422 -cat >>conftest.$ac_ext <<_ACEOF
15423 -/* end confdefs.h. */
15424 -#include <atheos/threads.h>
15426 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15427 -case "(($ac_try" in
15428 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 - *) ac_try_echo=$ac_try;;
15431 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15434 - grep -v '^ *+' conftest.er1 >conftest.err
15435 - rm -f conftest.er1
15436 - cat conftest.err >&5
15437 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 - (exit $ac_status); } >/dev/null && {
15439 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15440 - test ! -s conftest.err
15442 - ac_header_preproc=yes
15444 - echo "$as_me: failed program was:" >&5
15445 -sed 's/^/| /' conftest.$ac_ext >&5
15447 - ac_header_preproc=no
15450 -rm -f conftest.err conftest.$ac_ext
15451 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15454 -# So? What about this header?
15455 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15457 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15458 -echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15460 -echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15461 - ac_header_preproc=yes
15464 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15465 -echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15466 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15467 -echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15468 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15469 -echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15470 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15471 -echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15472 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15473 -echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15474 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15475 -echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15477 -## ------------------------------------------------ ##
15478 -## Report this to http://www.python.org/python-bugs ##
15479 -## ------------------------------------------------ ##
15481 - ) | sed "s/^/$as_me: WARNING: /" >&2
15484 -{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15485 -echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15486 -if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15487 - echo $ECHO_N "(cached) $ECHO_C" >&6
15489 - ac_cv_header_atheos_threads_h=$ac_header_preproc
15491 -{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15492 -echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15495 -if test $ac_cv_header_atheos_threads_h = yes; then
15496 - cat >>confdefs.h <<\_ACEOF
15497 -#define WITH_THREAD 1
15501 -cat >>confdefs.h <<\_ACEOF
15502 -#define ATHEOS_THREADS 1
15505 - THREADOBJ="Python/thread.o"
15508 - if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15509 - { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15510 -echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15511 -if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15512 - echo $ECHO_N "(cached) $ECHO_C" >&6
15514 -{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15515 -echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15517 - # Is the header compilable?
15518 -{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15519 -echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15520 -cat >conftest.$ac_ext <<_ACEOF
15523 -cat confdefs.h >>conftest.$ac_ext
15524 -cat >>conftest.$ac_ext <<_ACEOF
15525 -/* end confdefs.h. */
15526 -$ac_includes_default
15527 -#include <kernel/OS.h>
15529 -rm -f conftest.$ac_objext
15530 -if { (ac_try="$ac_compile"
15531 -case "(($ac_try" in
15532 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 - *) ac_try_echo=$ac_try;;
15535 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 - (eval "$ac_compile") 2>conftest.er1
15538 - grep -v '^ *+' conftest.er1 >conftest.err
15539 - rm -f conftest.er1
15540 - cat conftest.err >&5
15541 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 - (exit $ac_status); } && {
15543 - test -z "$ac_c_werror_flag" ||
15544 - test ! -s conftest.err
15545 - } && test -s conftest.$ac_objext; then
15546 - ac_header_compiler=yes
15548 - echo "$as_me: failed program was:" >&5
15549 -sed 's/^/| /' conftest.$ac_ext >&5
15551 - ac_header_compiler=no
15554 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15556 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15558 -# Is the header present?
15559 -{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15560 -echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15561 -cat >conftest.$ac_ext <<_ACEOF
15564 -cat confdefs.h >>conftest.$ac_ext
15565 -cat >>conftest.$ac_ext <<_ACEOF
15566 -/* end confdefs.h. */
15567 -#include <kernel/OS.h>
15569 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15570 -case "(($ac_try" in
15571 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 - *) ac_try_echo=$ac_try;;
15574 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15577 - grep -v '^ *+' conftest.er1 >conftest.err
15578 - rm -f conftest.er1
15579 - cat conftest.err >&5
15580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 - (exit $ac_status); } >/dev/null && {
15582 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15583 - test ! -s conftest.err
15585 - ac_header_preproc=yes
15587 - echo "$as_me: failed program was:" >&5
15588 -sed 's/^/| /' conftest.$ac_ext >&5
15590 - ac_header_preproc=no
15593 -rm -f conftest.err conftest.$ac_ext
15594 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15595 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15597 -# So? What about this header?
15598 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15600 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15601 -echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15602 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15603 -echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15604 - ac_header_preproc=yes
15607 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15608 -echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15609 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15610 -echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15611 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15612 -echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15613 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15614 -echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15615 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15616 -echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15617 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15618 -echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15620 -## ------------------------------------------------ ##
15621 -## Report this to http://www.python.org/python-bugs ##
15622 -## ------------------------------------------------ ##
15624 - ) | sed "s/^/$as_me: WARNING: /" >&2
15627 -{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15628 -echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15629 -if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15630 - echo $ECHO_N "(cached) $ECHO_C" >&6
15632 - ac_cv_header_kernel_OS_h=$ac_header_preproc
15634 -{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15635 -echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15638 -if test $ac_cv_header_kernel_OS_h = yes; then
15639 - cat >>confdefs.h <<\_ACEOF
15640 -#define WITH_THREAD 1
15644 -cat >>confdefs.h <<\_ACEOF
15645 -#define BEOS_THREADS 1
15648 - THREADOBJ="Python/thread.o"
15651 - { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15652 -echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15653 -if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15654 - echo $ECHO_N "(cached) $ECHO_C" >&6
15656 - ac_check_lib_save_LIBS=$LIBS
15657 -LIBS="-lpthreads $LIBS"
15658 -cat >conftest.$ac_ext <<_ACEOF
15661 -cat confdefs.h >>conftest.$ac_ext
15662 -cat >>conftest.$ac_ext <<_ACEOF
15663 -/* end confdefs.h. */
15665 -/* Override any GCC internal prototype to avoid an error.
15666 - Use char because int might match the return type of a GCC
15667 - builtin and then its argument prototype would still apply. */
15668 -#ifdef __cplusplus
15671 -char pthread_create ();
15675 -return pthread_create ();
15680 -rm -f conftest.$ac_objext conftest$ac_exeext
15681 -if { (ac_try="$ac_link"
15682 -case "(($ac_try" in
15683 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 - *) ac_try_echo=$ac_try;;
15686 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 - (eval "$ac_link") 2>conftest.er1
15689 - grep -v '^ *+' conftest.er1 >conftest.err
15690 - rm -f conftest.er1
15691 - cat conftest.err >&5
15692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 - (exit $ac_status); } && {
15694 - test -z "$ac_c_werror_flag" ||
15695 - test ! -s conftest.err
15696 - } && test -s conftest$ac_exeext &&
15697 - $as_test_x conftest$ac_exeext; then
15698 - ac_cv_lib_pthreads_pthread_create=yes
15700 - echo "$as_me: failed program was:" >&5
15701 -sed 's/^/| /' conftest.$ac_ext >&5
15703 - ac_cv_lib_pthreads_pthread_create=no
15706 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 - conftest$ac_exeext conftest.$ac_ext
15708 -LIBS=$ac_check_lib_save_LIBS
15710 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15711 -echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15712 -if test $ac_cv_lib_pthreads_pthread_create = yes; then
15713 - cat >>confdefs.h <<\_ACEOF
15714 -#define WITH_THREAD 1
15717 - posix_threads=yes
15718 - LIBS="$LIBS -lpthreads"
15719 - THREADOBJ="Python/thread.o"
15722 - { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15723 -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15724 -if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15725 - echo $ECHO_N "(cached) $ECHO_C" >&6
15727 - ac_check_lib_save_LIBS=$LIBS
15728 -LIBS="-lc_r $LIBS"
15729 -cat >conftest.$ac_ext <<_ACEOF
15732 -cat confdefs.h >>conftest.$ac_ext
15733 -cat >>conftest.$ac_ext <<_ACEOF
15734 -/* end confdefs.h. */
15736 -/* Override any GCC internal prototype to avoid an error.
15737 - Use char because int might match the return type of a GCC
15738 - builtin and then its argument prototype would still apply. */
15739 -#ifdef __cplusplus
15742 -char pthread_create ();
15746 -return pthread_create ();
15751 -rm -f conftest.$ac_objext conftest$ac_exeext
15752 -if { (ac_try="$ac_link"
15753 -case "(($ac_try" in
15754 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 - *) ac_try_echo=$ac_try;;
15757 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 - (eval "$ac_link") 2>conftest.er1
15760 - grep -v '^ *+' conftest.er1 >conftest.err
15761 - rm -f conftest.er1
15762 - cat conftest.err >&5
15763 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 - (exit $ac_status); } && {
15765 - test -z "$ac_c_werror_flag" ||
15766 - test ! -s conftest.err
15767 - } && test -s conftest$ac_exeext &&
15768 - $as_test_x conftest$ac_exeext; then
15769 - ac_cv_lib_c_r_pthread_create=yes
15771 - echo "$as_me: failed program was:" >&5
15772 -sed 's/^/| /' conftest.$ac_ext >&5
15774 - ac_cv_lib_c_r_pthread_create=no
15777 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778 - conftest$ac_exeext conftest.$ac_ext
15779 -LIBS=$ac_check_lib_save_LIBS
15781 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15782 -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15783 -if test $ac_cv_lib_c_r_pthread_create = yes; then
15784 - cat >>confdefs.h <<\_ACEOF
15785 -#define WITH_THREAD 1
15788 - posix_threads=yes
15789 - LIBS="$LIBS -lc_r"
15790 - THREADOBJ="Python/thread.o"
15793 - { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15794 -echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15795 -if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15796 - echo $ECHO_N "(cached) $ECHO_C" >&6
15798 - ac_check_lib_save_LIBS=$LIBS
15799 -LIBS="-lpthread $LIBS"
15800 -cat >conftest.$ac_ext <<_ACEOF
15803 -cat confdefs.h >>conftest.$ac_ext
15804 -cat >>conftest.$ac_ext <<_ACEOF
15805 -/* end confdefs.h. */
15807 -/* Override any GCC internal prototype to avoid an error.
15808 - Use char because int might match the return type of a GCC
15809 - builtin and then its argument prototype would still apply. */
15810 -#ifdef __cplusplus
15813 -char __pthread_create_system ();
15817 -return __pthread_create_system ();
15822 -rm -f conftest.$ac_objext conftest$ac_exeext
15823 -if { (ac_try="$ac_link"
15824 -case "(($ac_try" in
15825 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 - *) ac_try_echo=$ac_try;;
15828 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 - (eval "$ac_link") 2>conftest.er1
15831 - grep -v '^ *+' conftest.er1 >conftest.err
15832 - rm -f conftest.er1
15833 - cat conftest.err >&5
15834 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 - (exit $ac_status); } && {
15836 - test -z "$ac_c_werror_flag" ||
15837 - test ! -s conftest.err
15838 - } && test -s conftest$ac_exeext &&
15839 - $as_test_x conftest$ac_exeext; then
15840 - ac_cv_lib_pthread___pthread_create_system=yes
15842 - echo "$as_me: failed program was:" >&5
15843 -sed 's/^/| /' conftest.$ac_ext >&5
15845 - ac_cv_lib_pthread___pthread_create_system=no
15848 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15849 - conftest$ac_exeext conftest.$ac_ext
15850 -LIBS=$ac_check_lib_save_LIBS
15852 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15853 -echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15854 -if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15855 - cat >>confdefs.h <<\_ACEOF
15856 -#define WITH_THREAD 1
15859 - posix_threads=yes
15860 - LIBS="$LIBS -lpthread"
15861 - THREADOBJ="Python/thread.o"
15864 - { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15865 -echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15866 -if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15867 - echo $ECHO_N "(cached) $ECHO_C" >&6
15869 - ac_check_lib_save_LIBS=$LIBS
15870 -LIBS="-lcma $LIBS"
15871 -cat >conftest.$ac_ext <<_ACEOF
15874 -cat confdefs.h >>conftest.$ac_ext
15875 -cat >>conftest.$ac_ext <<_ACEOF
15876 -/* end confdefs.h. */
15878 -/* Override any GCC internal prototype to avoid an error.
15879 - Use char because int might match the return type of a GCC
15880 - builtin and then its argument prototype would still apply. */
15881 -#ifdef __cplusplus
15884 -char pthread_create ();
15888 -return pthread_create ();
15893 -rm -f conftest.$ac_objext conftest$ac_exeext
15894 -if { (ac_try="$ac_link"
15895 -case "(($ac_try" in
15896 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 - *) ac_try_echo=$ac_try;;
15899 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 - (eval "$ac_link") 2>conftest.er1
15902 - grep -v '^ *+' conftest.er1 >conftest.err
15903 - rm -f conftest.er1
15904 - cat conftest.err >&5
15905 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 - (exit $ac_status); } && {
15907 - test -z "$ac_c_werror_flag" ||
15908 - test ! -s conftest.err
15909 - } && test -s conftest$ac_exeext &&
15910 - $as_test_x conftest$ac_exeext; then
15911 - ac_cv_lib_cma_pthread_create=yes
15913 - echo "$as_me: failed program was:" >&5
15914 -sed 's/^/| /' conftest.$ac_ext >&5
15916 - ac_cv_lib_cma_pthread_create=no
15919 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15920 - conftest$ac_exeext conftest.$ac_ext
15921 -LIBS=$ac_check_lib_save_LIBS
15923 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15924 -echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15925 -if test $ac_cv_lib_cma_pthread_create = yes; then
15926 - cat >>confdefs.h <<\_ACEOF
15927 -#define WITH_THREAD 1
15930 - posix_threads=yes
15931 - LIBS="$LIBS -lcma"
15932 - THREADOBJ="Python/thread.o"
15935 - USE_THREAD_MODULE="#"
15955 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 - conftest$ac_exeext conftest.$ac_ext
15966 - { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15967 -echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15968 -if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15969 - echo $ECHO_N "(cached) $ECHO_C" >&6
15971 - ac_check_lib_save_LIBS=$LIBS
15972 -LIBS="-lmpc $LIBS"
15973 -cat >conftest.$ac_ext <<_ACEOF
15976 -cat confdefs.h >>conftest.$ac_ext
15977 -cat >>conftest.$ac_ext <<_ACEOF
15978 -/* end confdefs.h. */
15980 -/* Override any GCC internal prototype to avoid an error.
15981 - Use char because int might match the return type of a GCC
15982 - builtin and then its argument prototype would still apply. */
15983 -#ifdef __cplusplus
15990 -return usconfig ();
15995 -rm -f conftest.$ac_objext conftest$ac_exeext
15996 -if { (ac_try="$ac_link"
15997 -case "(($ac_try" in
15998 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 - *) ac_try_echo=$ac_try;;
16001 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 - (eval "$ac_link") 2>conftest.er1
16004 - grep -v '^ *+' conftest.er1 >conftest.err
16005 - rm -f conftest.er1
16006 - cat conftest.err >&5
16007 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 - (exit $ac_status); } && {
16009 - test -z "$ac_c_werror_flag" ||
16010 - test ! -s conftest.err
16011 - } && test -s conftest$ac_exeext &&
16012 - $as_test_x conftest$ac_exeext; then
16013 - ac_cv_lib_mpc_usconfig=yes
16015 - echo "$as_me: failed program was:" >&5
16016 -sed 's/^/| /' conftest.$ac_ext >&5
16018 - ac_cv_lib_mpc_usconfig=no
16021 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16022 - conftest$ac_exeext conftest.$ac_ext
16023 -LIBS=$ac_check_lib_save_LIBS
16025 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16026 -echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16027 -if test $ac_cv_lib_mpc_usconfig = yes; then
16028 - cat >>confdefs.h <<\_ACEOF
16029 -#define WITH_THREAD 1
16032 - LIBS="$LIBS -lmpc"
16033 - THREADOBJ="Python/thread.o"
16034 - USE_THREAD_MODULE=""
16038 - if test "$posix_threads" != "yes"; then
16039 - { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16040 -echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16041 -if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16042 - echo $ECHO_N "(cached) $ECHO_C" >&6
16044 - ac_check_lib_save_LIBS=$LIBS
16045 -LIBS="-lthread $LIBS"
16046 -cat >conftest.$ac_ext <<_ACEOF
16049 -cat confdefs.h >>conftest.$ac_ext
16050 -cat >>conftest.$ac_ext <<_ACEOF
16051 -/* end confdefs.h. */
16053 -/* Override any GCC internal prototype to avoid an error.
16054 - Use char because int might match the return type of a GCC
16055 - builtin and then its argument prototype would still apply. */
16056 -#ifdef __cplusplus
16059 -char thr_create ();
16063 -return thr_create ();
16068 -rm -f conftest.$ac_objext conftest$ac_exeext
16069 -if { (ac_try="$ac_link"
16070 -case "(($ac_try" in
16071 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 - *) ac_try_echo=$ac_try;;
16074 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 - (eval "$ac_link") 2>conftest.er1
16077 - grep -v '^ *+' conftest.er1 >conftest.err
16078 - rm -f conftest.er1
16079 - cat conftest.err >&5
16080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 - (exit $ac_status); } && {
16082 - test -z "$ac_c_werror_flag" ||
16083 - test ! -s conftest.err
16084 - } && test -s conftest$ac_exeext &&
16085 - $as_test_x conftest$ac_exeext; then
16086 - ac_cv_lib_thread_thr_create=yes
16088 - echo "$as_me: failed program was:" >&5
16089 -sed 's/^/| /' conftest.$ac_ext >&5
16091 - ac_cv_lib_thread_thr_create=no
16094 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16095 - conftest$ac_exeext conftest.$ac_ext
16096 -LIBS=$ac_check_lib_save_LIBS
16098 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16099 -echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16100 -if test $ac_cv_lib_thread_thr_create = yes; then
16101 - cat >>confdefs.h <<\_ACEOF
16102 -#define WITH_THREAD 1
16105 - LIBS="$LIBS -lthread"
16106 - THREADOBJ="Python/thread.o"
16107 - USE_THREAD_MODULE=""
16112 - if test "$USE_THREAD_MODULE" != "#"
16114 - # If the above checks didn't disable threads, (at least) OSF1
16115 - # needs this '-threads' argument during linking.
16116 - case $ac_sys_system in
16117 - OSF1) LDLAST=-threads;;
16122 -if test "$posix_threads" = "yes"; then
16123 - if test "$unistd_defines_pthreads" = "no"; then
16125 -cat >>confdefs.h <<\_ACEOF
16126 -#define _POSIX_THREADS 1
16131 - # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16132 - case $ac_sys_system/$ac_sys_release in
16134 -cat >>confdefs.h <<\_ACEOF
16135 -#define HAVE_PTHREAD_DESTRUCTOR 1
16140 -cat >>confdefs.h <<\_ACEOF
16141 -#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16146 -cat >>confdefs.h <<\_ACEOF
16147 -#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16153 - { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16154 -echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16155 - if test "${ac_cv_pthread_system_supported+set}" = set; then
16156 - echo $ECHO_N "(cached) $ECHO_C" >&6
16158 - if test "$cross_compiling" = yes; then
16159 - ac_cv_pthread_system_supported=no
16161 - cat >conftest.$ac_ext <<_ACEOF
16164 -cat confdefs.h >>conftest.$ac_ext
16165 -cat >>conftest.$ac_ext <<_ACEOF
16166 -/* end confdefs.h. */
16167 -#include <pthread.h>
16168 - void *foo(void *parm) {
16172 - pthread_attr_t attr;
16174 - if (pthread_attr_init(&attr)) exit(-1);
16175 - if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16176 - if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16180 -rm -f conftest$ac_exeext
16181 -if { (ac_try="$ac_link"
16182 -case "(($ac_try" in
16183 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 - *) ac_try_echo=$ac_try;;
16186 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 - (eval "$ac_link") 2>&5
16189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16191 - { (case "(($ac_try" in
16192 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 - *) ac_try_echo=$ac_try;;
16195 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 - (eval "$ac_try") 2>&5
16198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 - (exit $ac_status); }; }; then
16200 - ac_cv_pthread_system_supported=yes
16202 - echo "$as_me: program exited with status $ac_status" >&5
16203 -echo "$as_me: failed program was:" >&5
16204 -sed 's/^/| /' conftest.$ac_ext >&5
16206 -( exit $ac_status )
16207 -ac_cv_pthread_system_supported=no
16209 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216 - { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16217 -echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
16218 - if test "$ac_cv_pthread_system_supported" = "yes"; then
16220 -cat >>confdefs.h <<\_ACEOF
16221 -#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16226 -for ac_func in pthread_sigmask
16228 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16229 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16230 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16231 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16232 - echo $ECHO_N "(cached) $ECHO_C" >&6
16234 - cat >conftest.$ac_ext <<_ACEOF
16237 -cat confdefs.h >>conftest.$ac_ext
16238 -cat >>conftest.$ac_ext <<_ACEOF
16239 -/* end confdefs.h. */
16240 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16241 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
16242 -#define $ac_func innocuous_$ac_func
16244 -/* System header to define __stub macros and hopefully few prototypes,
16245 - which can conflict with char $ac_func (); below.
16246 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247 - <limits.h> exists even on freestanding compilers. */
16250 -# include <limits.h>
16252 -# include <assert.h>
16257 -/* Override any GCC internal prototype to avoid an error.
16258 - Use char because int might match the return type of a GCC
16259 - builtin and then its argument prototype would still apply. */
16260 -#ifdef __cplusplus
16264 -/* The GNU C library defines this for functions which it implements
16265 - to always fail with ENOSYS. Some functions are actually named
16266 - something starting with __ and the normal name is an alias. */
16267 -#if defined __stub_$ac_func || defined __stub___$ac_func
16274 -return $ac_func ();
16279 -rm -f conftest.$ac_objext conftest$ac_exeext
16280 -if { (ac_try="$ac_link"
16281 -case "(($ac_try" in
16282 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 - *) ac_try_echo=$ac_try;;
16285 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 - (eval "$ac_link") 2>conftest.er1
16288 - grep -v '^ *+' conftest.er1 >conftest.err
16289 - rm -f conftest.er1
16290 - cat conftest.err >&5
16291 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 - (exit $ac_status); } && {
16293 - test -z "$ac_c_werror_flag" ||
16294 - test ! -s conftest.err
16295 - } && test -s conftest$ac_exeext &&
16296 - $as_test_x conftest$ac_exeext; then
16297 - eval "$as_ac_var=yes"
16299 - echo "$as_me: failed program was:" >&5
16300 -sed 's/^/| /' conftest.$ac_ext >&5
16302 - eval "$as_ac_var=no"
16305 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16306 - conftest$ac_exeext conftest.$ac_ext
16308 -ac_res=`eval echo '${'$as_ac_var'}'`
16309 - { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 -echo "${ECHO_T}$ac_res" >&6; }
16311 -if test `eval echo '${'$as_ac_var'}'` = yes; then
16312 - cat >>confdefs.h <<_ACEOF
16313 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16315 - case $ac_sys_system in
16318 -cat >>confdefs.h <<\_ACEOF
16319 -#define HAVE_BROKEN_PTHREAD_SIGMASK 1
16330 -# Check for enable-ipv6
16333 -{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16334 -echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
16335 -# Check whether --enable-ipv6 was given.
16336 -if test "${enable_ipv6+set}" = set; then
16337 - enableval=$enable_ipv6; case "$enableval" in
16339 - { echo "$as_me:$LINENO: result: no" >&5
16340 -echo "${ECHO_T}no" >&6; }
16343 - *) { echo "$as_me:$LINENO: result: yes" >&5
16344 -echo "${ECHO_T}yes" >&6; }
16345 - cat >>confdefs.h <<\_ACEOF
16346 -#define ENABLE_IPV6 1
16354 - if test "$cross_compiling" = yes; then
16355 - { echo "$as_me:$LINENO: result: no" >&5
16356 -echo "${ECHO_T}no" >&6; }
16360 - cat >conftest.$ac_ext <<_ACEOF
16363 -cat confdefs.h >>conftest.$ac_ext
16364 -cat >>conftest.$ac_ext <<_ACEOF
16365 -/* end confdefs.h. */
16366 - /* AF_INET6 available check */
16367 -#include <sys/types.h>
16368 -#include <sys/socket.h>
16371 - if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16378 -rm -f conftest$ac_exeext
16379 -if { (ac_try="$ac_link"
16380 -case "(($ac_try" in
16381 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 - *) ac_try_echo=$ac_try;;
16384 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 - (eval "$ac_link") 2>&5
16387 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16389 - { (case "(($ac_try" in
16390 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 - *) ac_try_echo=$ac_try;;
16393 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 - (eval "$ac_try") 2>&5
16396 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 - (exit $ac_status); }; }; then
16398 - { echo "$as_me:$LINENO: result: yes" >&5
16399 -echo "${ECHO_T}yes" >&6; }
16402 - echo "$as_me: program exited with status $ac_status" >&5
16403 -echo "$as_me: failed program was:" >&5
16404 -sed 's/^/| /' conftest.$ac_ext >&5
16406 -( exit $ac_status )
16407 -{ echo "$as_me:$LINENO: result: no" >&5
16408 -echo "${ECHO_T}no" >&6; }
16411 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16416 -if test "$ipv6" = "yes"; then
16417 - { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16418 -echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
16419 - cat >conftest.$ac_ext <<_ACEOF
16422 -cat confdefs.h >>conftest.$ac_ext
16423 -cat >>conftest.$ac_ext <<_ACEOF
16424 -/* end confdefs.h. */
16425 -#include <sys/types.h>
16426 -#include <netinet/in.h>
16430 -struct sockaddr_in6 x;
16436 -rm -f conftest.$ac_objext
16437 -if { (ac_try="$ac_compile"
16438 -case "(($ac_try" in
16439 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 - *) ac_try_echo=$ac_try;;
16442 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 - (eval "$ac_compile") 2>conftest.er1
16445 - grep -v '^ *+' conftest.er1 >conftest.err
16446 - rm -f conftest.er1
16447 - cat conftest.err >&5
16448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 - (exit $ac_status); } && {
16450 - test -z "$ac_c_werror_flag" ||
16451 - test ! -s conftest.err
16452 - } && test -s conftest.$ac_objext; then
16453 - { echo "$as_me:$LINENO: result: yes" >&5
16454 -echo "${ECHO_T}yes" >&6; }
16457 - echo "$as_me: failed program was:" >&5
16458 -sed 's/^/| /' conftest.$ac_ext >&5
16460 - { echo "$as_me:$LINENO: result: no" >&5
16461 -echo "${ECHO_T}no" >&6; }
16465 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468 -if test "$ipv6" = "yes"; then
16469 - cat >>confdefs.h <<\_ACEOF
16470 -#define ENABLE_IPV6 1
16482 -if test "$ipv6" = "yes"; then
16483 - { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16484 -echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16485 - for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16489 - cat >conftest.$ac_ext <<_ACEOF
16492 -cat confdefs.h >>conftest.$ac_ext
16493 -cat >>conftest.$ac_ext <<_ACEOF
16494 -/* end confdefs.h. */
16496 -#include <netinet/in.h>
16497 -#ifdef IPV6_INRIA_VERSION
16501 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16502 - $EGREP "yes" >/dev/null 2>&1; then
16509 - cat >conftest.$ac_ext <<_ACEOF
16512 -cat confdefs.h >>conftest.$ac_ext
16513 -cat >>conftest.$ac_ext <<_ACEOF
16514 -/* end confdefs.h. */
16516 -#include <netinet/in.h>
16521 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522 - $EGREP "yes" >/dev/null 2>&1; then
16525 - ipv6libdir=/usr/local/v6/lib
16532 - cat >conftest.$ac_ext <<_ACEOF
16535 -cat confdefs.h >>conftest.$ac_ext
16536 -cat >>conftest.$ac_ext <<_ACEOF
16537 -/* end confdefs.h. */
16539 -#include <features.h>
16540 -#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16544 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16545 - $EGREP "yes" >/dev/null 2>&1; then
16553 - if test -d /usr/inet6; then
16556 - ipv6libdir=/usr/inet6/lib
16557 - BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16561 - if test -f /etc/netconfig; then
16562 - if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16569 - cat >conftest.$ac_ext <<_ACEOF
16572 -cat confdefs.h >>conftest.$ac_ext
16573 -cat >>conftest.$ac_ext <<_ACEOF
16574 -/* end confdefs.h. */
16576 -#include <sys/param.h>
16577 -#ifdef _TOSHIBA_INET6
16581 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16582 - $EGREP "yes" >/dev/null 2>&1; then
16585 - ipv6libdir=/usr/local/v6/lib
16591 - cat >conftest.$ac_ext <<_ACEOF
16594 -cat confdefs.h >>conftest.$ac_ext
16595 -cat >>conftest.$ac_ext <<_ACEOF
16596 -/* end confdefs.h. */
16598 -#include </usr/local/v6/include/sys/v6config.h>
16603 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16604 - $EGREP "yes" >/dev/null 2>&1; then
16607 - ipv6libdir=/usr/local/v6/lib;
16608 - BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16614 - cat >conftest.$ac_ext <<_ACEOF
16617 -cat confdefs.h >>conftest.$ac_ext
16618 -cat >>conftest.$ac_ext <<_ACEOF
16619 -/* end confdefs.h. */
16621 -#include <sys/param.h>
16622 -#ifdef _ZETA_MINAMI_INET6
16626 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16627 - $EGREP "yes" >/dev/null 2>&1; then
16630 - ipv6libdir=/usr/local/v6/lib
16636 - if test "$ipv6type" != "unknown"; then
16640 - { echo "$as_me:$LINENO: result: $ipv6type" >&5
16641 -echo "${ECHO_T}$ipv6type" >&6; }
16644 -if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16645 - if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16646 - LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16647 - echo "using lib$ipv6lib"
16649 - if test $ipv6trylibc = "yes"; then
16650 - echo "using libc"
16652 - echo 'Fatal: no $ipv6lib library found. cannot continue.'
16653 - echo "You need to fetch lib$ipv6lib.a from appropriate"
16654 - echo 'ipv6 kit and compile beforehand.'
16660 -# Check for --with-doc-strings
16661 -{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16662 -echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16664 -# Check whether --with-doc-strings was given.
16665 -if test "${with_doc_strings+set}" = set; then
16666 - withval=$with_doc_strings;
16670 -if test -z "$with_doc_strings"
16671 -then with_doc_strings="yes"
16673 -if test "$with_doc_strings" != "no"
16676 -cat >>confdefs.h <<\_ACEOF
16677 -#define WITH_DOC_STRINGS 1
16681 -{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16682 -echo "${ECHO_T}$with_doc_strings" >&6; }
16684 -# Check for Python-specific malloc support
16685 -{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
16686 -echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16688 -# Check whether --with-tsc was given.
16689 -if test "${with_tsc+set}" = set; then
16690 - withval=$with_tsc;
16691 -if test "$withval" != no
16694 -cat >>confdefs.h <<\_ACEOF
16695 -#define WITH_TSC 1
16698 - { echo "$as_me:$LINENO: result: yes" >&5
16699 -echo "${ECHO_T}yes" >&6; }
16700 -else { echo "$as_me:$LINENO: result: no" >&5
16701 -echo "${ECHO_T}no" >&6; }
16704 - { echo "$as_me:$LINENO: result: no" >&5
16705 -echo "${ECHO_T}no" >&6; }
16709 -# Check for Python-specific malloc support
16710 -{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16711 -echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16713 -# Check whether --with-pymalloc was given.
16714 -if test "${with_pymalloc+set}" = set; then
16715 - withval=$with_pymalloc;
16719 -if test -z "$with_pymalloc"
16720 -then with_pymalloc="yes"
16722 -if test "$with_pymalloc" != "no"
16725 -cat >>confdefs.h <<\_ACEOF
16726 -#define WITH_PYMALLOC 1
16730 -{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16731 -echo "${ECHO_T}$with_pymalloc" >&6; }
16733 -# Check for --with-wctype-functions
16734 -{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16735 -echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16737 -# Check whether --with-wctype-functions was given.
16738 -if test "${with_wctype_functions+set}" = set; then
16739 - withval=$with_wctype_functions;
16740 -if test "$withval" != no
16743 -cat >>confdefs.h <<\_ACEOF
16744 -#define WANT_WCTYPE_FUNCTIONS 1
16747 - { echo "$as_me:$LINENO: result: yes" >&5
16748 -echo "${ECHO_T}yes" >&6; }
16749 -else { echo "$as_me:$LINENO: result: no" >&5
16750 -echo "${ECHO_T}no" >&6; }
16753 - { echo "$as_me:$LINENO: result: no" >&5
16754 -echo "${ECHO_T}no" >&6; }
16758 -# -I${DLINCLDIR} is added to the compile rule for importdl.o
16762 -# the dlopen() function means we might want to use dynload_shlib.o. some
16763 -# platforms, such as AIX, have dlopen(), but don't want to use it.
16765 -for ac_func in dlopen
16767 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771 - echo $ECHO_N "(cached) $ECHO_C" >&6
16773 - cat >conftest.$ac_ext <<_ACEOF
16776 -cat confdefs.h >>conftest.$ac_ext
16777 -cat >>conftest.$ac_ext <<_ACEOF
16778 -/* end confdefs.h. */
16779 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 -#define $ac_func innocuous_$ac_func
16783 -/* System header to define __stub macros and hopefully few prototypes,
16784 - which can conflict with char $ac_func (); below.
16785 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 - <limits.h> exists even on freestanding compilers. */
16789 -# include <limits.h>
16791 -# include <assert.h>
16796 -/* Override any GCC internal prototype to avoid an error.
16797 - Use char because int might match the return type of a GCC
16798 - builtin and then its argument prototype would still apply. */
16799 -#ifdef __cplusplus
16803 -/* The GNU C library defines this for functions which it implements
16804 - to always fail with ENOSYS. Some functions are actually named
16805 - something starting with __ and the normal name is an alias. */
16806 -#if defined __stub_$ac_func || defined __stub___$ac_func
16813 -return $ac_func ();
16818 -rm -f conftest.$ac_objext conftest$ac_exeext
16819 -if { (ac_try="$ac_link"
16820 -case "(($ac_try" in
16821 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 - *) ac_try_echo=$ac_try;;
16824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 - (eval "$ac_link") 2>conftest.er1
16827 - grep -v '^ *+' conftest.er1 >conftest.err
16828 - rm -f conftest.er1
16829 - cat conftest.err >&5
16830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 - (exit $ac_status); } && {
16832 - test -z "$ac_c_werror_flag" ||
16833 - test ! -s conftest.err
16834 - } && test -s conftest$ac_exeext &&
16835 - $as_test_x conftest$ac_exeext; then
16836 - eval "$as_ac_var=yes"
16838 - echo "$as_me: failed program was:" >&5
16839 -sed 's/^/| /' conftest.$ac_ext >&5
16841 - eval "$as_ac_var=no"
16844 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845 - conftest$ac_exeext conftest.$ac_ext
16847 -ac_res=`eval echo '${'$as_ac_var'}'`
16848 - { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 -echo "${ECHO_T}$ac_res" >&6; }
16850 -if test `eval echo '${'$as_ac_var'}'` = yes; then
16851 - cat >>confdefs.h <<_ACEOF
16852 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16859 -# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16860 -# loading of modules.
16862 -{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16863 -echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16864 -if test -z "$DYNLOADFILE"
16866 - case $ac_sys_system/$ac_sys_release in
16867 - AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16868 - if test "$ac_cv_func_dlopen" = yes
16869 - then DYNLOADFILE="dynload_shlib.o"
16870 - else DYNLOADFILE="dynload_aix.o"
16873 - BeOS*) DYNLOADFILE="dynload_beos.o";;
16874 - hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16875 - # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16876 - Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16877 - atheos*) DYNLOADFILE="dynload_atheos.o";;
16879 - # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16880 - # out any dynamic loading
16881 - if test "$ac_cv_func_dlopen" = yes
16882 - then DYNLOADFILE="dynload_shlib.o"
16883 - else DYNLOADFILE="dynload_stub.o"
16888 -{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16889 -echo "${ECHO_T}$DYNLOADFILE" >&6; }
16890 -if test "$DYNLOADFILE" != "dynload_stub.o"
16893 -cat >>confdefs.h <<\_ACEOF
16894 -#define HAVE_DYNAMIC_LOADING 1
16899 -# MACHDEP_OBJS can be set to platform-specific object files needed by Python
16902 -{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16903 -echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16904 -if test -z "$MACHDEP_OBJS"
16906 - MACHDEP_OBJS=$extra_machdep_objs
16908 - MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16910 -{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16911 -echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16913 -# checks for library functions
16990 -for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
16991 - execv fork fpathconf ftime ftruncate \
16992 - gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16993 - getpriority getpwent getspnam getspent getsid getwd \
16994 - kill killpg lchown lstat mkfifo mknod mktime \
16995 - mremap nice pathconf pause plock poll pthread_init \
16996 - putenv readlink realpath \
16997 - select setegid seteuid setgid \
16998 - setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16999 - sigaction siginterrupt sigrelse strftime \
17000 - sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17001 - truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17003 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17004 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17005 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17006 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17007 - echo $ECHO_N "(cached) $ECHO_C" >&6
17009 - cat >conftest.$ac_ext <<_ACEOF
17012 -cat confdefs.h >>conftest.$ac_ext
17013 -cat >>conftest.$ac_ext <<_ACEOF
17014 -/* end confdefs.h. */
17015 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17016 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
17017 -#define $ac_func innocuous_$ac_func
17019 -/* System header to define __stub macros and hopefully few prototypes,
17020 - which can conflict with char $ac_func (); below.
17021 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17022 - <limits.h> exists even on freestanding compilers. */
17025 -# include <limits.h>
17027 -# include <assert.h>
17032 -/* Override any GCC internal prototype to avoid an error.
17033 - Use char because int might match the return type of a GCC
17034 - builtin and then its argument prototype would still apply. */
17035 -#ifdef __cplusplus
17039 -/* The GNU C library defines this for functions which it implements
17040 - to always fail with ENOSYS. Some functions are actually named
17041 - something starting with __ and the normal name is an alias. */
17042 -#if defined __stub_$ac_func || defined __stub___$ac_func
17049 -return $ac_func ();
17054 -rm -f conftest.$ac_objext conftest$ac_exeext
17055 -if { (ac_try="$ac_link"
17056 -case "(($ac_try" in
17057 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 - *) ac_try_echo=$ac_try;;
17060 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 - (eval "$ac_link") 2>conftest.er1
17063 - grep -v '^ *+' conftest.er1 >conftest.err
17064 - rm -f conftest.er1
17065 - cat conftest.err >&5
17066 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 - (exit $ac_status); } && {
17068 - test -z "$ac_c_werror_flag" ||
17069 - test ! -s conftest.err
17070 - } && test -s conftest$ac_exeext &&
17071 - $as_test_x conftest$ac_exeext; then
17072 - eval "$as_ac_var=yes"
17074 - echo "$as_me: failed program was:" >&5
17075 -sed 's/^/| /' conftest.$ac_ext >&5
17077 - eval "$as_ac_var=no"
17080 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 - conftest$ac_exeext conftest.$ac_ext
17083 -ac_res=`eval echo '${'$as_ac_var'}'`
17084 - { echo "$as_me:$LINENO: result: $ac_res" >&5
17085 -echo "${ECHO_T}$ac_res" >&6; }
17086 -if test `eval echo '${'$as_ac_var'}'` = yes; then
17087 - cat >>confdefs.h <<_ACEOF
17088 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095 -# For some functions, having a definition is not sufficient, since
17096 -# we want to take their address.
17097 -{ echo "$as_me:$LINENO: checking for chroot" >&5
17098 -echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17099 -cat >conftest.$ac_ext <<_ACEOF
17102 -cat confdefs.h >>conftest.$ac_ext
17103 -cat >>conftest.$ac_ext <<_ACEOF
17104 -/* end confdefs.h. */
17105 -#include <unistd.h>
17114 -rm -f conftest.$ac_objext
17115 -if { (ac_try="$ac_compile"
17116 -case "(($ac_try" in
17117 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 - *) ac_try_echo=$ac_try;;
17120 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 - (eval "$ac_compile") 2>conftest.er1
17123 - grep -v '^ *+' conftest.er1 >conftest.err
17124 - rm -f conftest.er1
17125 - cat conftest.err >&5
17126 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 - (exit $ac_status); } && {
17128 - test -z "$ac_c_werror_flag" ||
17129 - test ! -s conftest.err
17130 - } && test -s conftest.$ac_objext; then
17132 -cat >>confdefs.h <<\_ACEOF
17133 -#define HAVE_CHROOT 1
17136 - { echo "$as_me:$LINENO: result: yes" >&5
17137 -echo "${ECHO_T}yes" >&6; }
17139 - echo "$as_me: failed program was:" >&5
17140 -sed 's/^/| /' conftest.$ac_ext >&5
17142 - { echo "$as_me:$LINENO: result: no" >&5
17143 -echo "${ECHO_T}no" >&6; }
17147 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 -{ echo "$as_me:$LINENO: checking for link" >&5
17149 -echo $ECHO_N "checking for link... $ECHO_C" >&6; }
17150 -cat >conftest.$ac_ext <<_ACEOF
17153 -cat confdefs.h >>conftest.$ac_ext
17154 -cat >>conftest.$ac_ext <<_ACEOF
17155 -/* end confdefs.h. */
17156 -#include <unistd.h>
17165 -rm -f conftest.$ac_objext
17166 -if { (ac_try="$ac_compile"
17167 -case "(($ac_try" in
17168 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 - *) ac_try_echo=$ac_try;;
17171 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 - (eval "$ac_compile") 2>conftest.er1
17174 - grep -v '^ *+' conftest.er1 >conftest.err
17175 - rm -f conftest.er1
17176 - cat conftest.err >&5
17177 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 - (exit $ac_status); } && {
17179 - test -z "$ac_c_werror_flag" ||
17180 - test ! -s conftest.err
17181 - } && test -s conftest.$ac_objext; then
17183 -cat >>confdefs.h <<\_ACEOF
17184 -#define HAVE_LINK 1
17187 - { echo "$as_me:$LINENO: result: yes" >&5
17188 -echo "${ECHO_T}yes" >&6; }
17190 - echo "$as_me: failed program was:" >&5
17191 -sed 's/^/| /' conftest.$ac_ext >&5
17193 - { echo "$as_me:$LINENO: result: no" >&5
17194 -echo "${ECHO_T}no" >&6; }
17198 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 -{ echo "$as_me:$LINENO: checking for symlink" >&5
17200 -echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
17201 -cat >conftest.$ac_ext <<_ACEOF
17204 -cat confdefs.h >>conftest.$ac_ext
17205 -cat >>conftest.$ac_ext <<_ACEOF
17206 -/* end confdefs.h. */
17207 -#include <unistd.h>
17216 -rm -f conftest.$ac_objext
17217 -if { (ac_try="$ac_compile"
17218 -case "(($ac_try" in
17219 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 - *) ac_try_echo=$ac_try;;
17222 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 - (eval "$ac_compile") 2>conftest.er1
17225 - grep -v '^ *+' conftest.er1 >conftest.err
17226 - rm -f conftest.er1
17227 - cat conftest.err >&5
17228 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 - (exit $ac_status); } && {
17230 - test -z "$ac_c_werror_flag" ||
17231 - test ! -s conftest.err
17232 - } && test -s conftest.$ac_objext; then
17234 -cat >>confdefs.h <<\_ACEOF
17235 -#define HAVE_SYMLINK 1
17238 - { echo "$as_me:$LINENO: result: yes" >&5
17239 -echo "${ECHO_T}yes" >&6; }
17241 - echo "$as_me: failed program was:" >&5
17242 -sed 's/^/| /' conftest.$ac_ext >&5
17244 - { echo "$as_me:$LINENO: result: no" >&5
17245 -echo "${ECHO_T}no" >&6; }
17249 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 -{ echo "$as_me:$LINENO: checking for fchdir" >&5
17251 -echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
17252 -cat >conftest.$ac_ext <<_ACEOF
17255 -cat confdefs.h >>conftest.$ac_ext
17256 -cat >>conftest.$ac_ext <<_ACEOF
17257 -/* end confdefs.h. */
17258 -#include <unistd.h>
17267 -rm -f conftest.$ac_objext
17268 -if { (ac_try="$ac_compile"
17269 -case "(($ac_try" in
17270 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 - *) ac_try_echo=$ac_try;;
17273 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 - (eval "$ac_compile") 2>conftest.er1
17276 - grep -v '^ *+' conftest.er1 >conftest.err
17277 - rm -f conftest.er1
17278 - cat conftest.err >&5
17279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 - (exit $ac_status); } && {
17281 - test -z "$ac_c_werror_flag" ||
17282 - test ! -s conftest.err
17283 - } && test -s conftest.$ac_objext; then
17285 -cat >>confdefs.h <<\_ACEOF
17286 -#define HAVE_FCHDIR 1
17289 - { echo "$as_me:$LINENO: result: yes" >&5
17290 -echo "${ECHO_T}yes" >&6; }
17292 - echo "$as_me: failed program was:" >&5
17293 -sed 's/^/| /' conftest.$ac_ext >&5
17295 - { echo "$as_me:$LINENO: result: no" >&5
17296 -echo "${ECHO_T}no" >&6; }
17300 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 -{ echo "$as_me:$LINENO: checking for fsync" >&5
17302 -echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
17303 -cat >conftest.$ac_ext <<_ACEOF
17306 -cat confdefs.h >>conftest.$ac_ext
17307 -cat >>conftest.$ac_ext <<_ACEOF
17308 -/* end confdefs.h. */
17309 -#include <unistd.h>
17318 -rm -f conftest.$ac_objext
17319 -if { (ac_try="$ac_compile"
17320 -case "(($ac_try" in
17321 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 - *) ac_try_echo=$ac_try;;
17324 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 - (eval "$ac_compile") 2>conftest.er1
17327 - grep -v '^ *+' conftest.er1 >conftest.err
17328 - rm -f conftest.er1
17329 - cat conftest.err >&5
17330 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 - (exit $ac_status); } && {
17332 - test -z "$ac_c_werror_flag" ||
17333 - test ! -s conftest.err
17334 - } && test -s conftest.$ac_objext; then
17336 -cat >>confdefs.h <<\_ACEOF
17337 -#define HAVE_FSYNC 1
17340 - { echo "$as_me:$LINENO: result: yes" >&5
17341 -echo "${ECHO_T}yes" >&6; }
17343 - echo "$as_me: failed program was:" >&5
17344 -sed 's/^/| /' conftest.$ac_ext >&5
17346 - { echo "$as_me:$LINENO: result: no" >&5
17347 -echo "${ECHO_T}no" >&6; }
17351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352 -{ echo "$as_me:$LINENO: checking for fdatasync" >&5
17353 -echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
17354 -cat >conftest.$ac_ext <<_ACEOF
17357 -cat confdefs.h >>conftest.$ac_ext
17358 -cat >>conftest.$ac_ext <<_ACEOF
17359 -/* end confdefs.h. */
17360 -#include <unistd.h>
17369 -rm -f conftest.$ac_objext
17370 -if { (ac_try="$ac_compile"
17371 -case "(($ac_try" in
17372 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 - *) ac_try_echo=$ac_try;;
17375 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 - (eval "$ac_compile") 2>conftest.er1
17378 - grep -v '^ *+' conftest.er1 >conftest.err
17379 - rm -f conftest.er1
17380 - cat conftest.err >&5
17381 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 - (exit $ac_status); } && {
17383 - test -z "$ac_c_werror_flag" ||
17384 - test ! -s conftest.err
17385 - } && test -s conftest.$ac_objext; then
17387 -cat >>confdefs.h <<\_ACEOF
17388 -#define HAVE_FDATASYNC 1
17391 - { echo "$as_me:$LINENO: result: yes" >&5
17392 -echo "${ECHO_T}yes" >&6; }
17394 - echo "$as_me: failed program was:" >&5
17395 -sed 's/^/| /' conftest.$ac_ext >&5
17397 - { echo "$as_me:$LINENO: result: no" >&5
17398 -echo "${ECHO_T}no" >&6; }
17402 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404 -# On some systems (eg. FreeBSD 5), we would find a definition of the
17405 -# functions ctermid_r, setgroups in the library, but no prototype
17406 -# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17407 -# address to avoid compiler warnings and potential miscompilations
17408 -# because of the missing prototypes.
17410 -{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
17411 -echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17412 -cat >conftest.$ac_ext <<_ACEOF
17415 -cat confdefs.h >>conftest.$ac_ext
17416 -cat >>conftest.$ac_ext <<_ACEOF
17417 -/* end confdefs.h. */
17419 -#include "confdefs.h"
17420 -#include <stdio.h>
17425 -void* p = ctermid_r
17430 -rm -f conftest.$ac_objext
17431 -if { (ac_try="$ac_compile"
17432 -case "(($ac_try" in
17433 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 - *) ac_try_echo=$ac_try;;
17436 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 - (eval "$ac_compile") 2>conftest.er1
17439 - grep -v '^ *+' conftest.er1 >conftest.err
17440 - rm -f conftest.er1
17441 - cat conftest.err >&5
17442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 - (exit $ac_status); } && {
17444 - test -z "$ac_c_werror_flag" ||
17445 - test ! -s conftest.err
17446 - } && test -s conftest.$ac_objext; then
17448 -cat >>confdefs.h <<\_ACEOF
17449 -#define HAVE_CTERMID_R 1
17452 - { echo "$as_me:$LINENO: result: yes" >&5
17453 -echo "${ECHO_T}yes" >&6; }
17455 - echo "$as_me: failed program was:" >&5
17456 -sed 's/^/| /' conftest.$ac_ext >&5
17458 - { echo "$as_me:$LINENO: result: no" >&5
17459 -echo "${ECHO_T}no" >&6; }
17463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 -{ echo "$as_me:$LINENO: checking for flock" >&5
17466 -echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17467 -cat >conftest.$ac_ext <<_ACEOF
17470 -cat confdefs.h >>conftest.$ac_ext
17471 -cat >>conftest.$ac_ext <<_ACEOF
17472 -/* end confdefs.h. */
17474 -#include "confdefs.h"
17475 -#include <sys/file.h>
17485 -rm -f conftest.$ac_objext
17486 -if { (ac_try="$ac_compile"
17487 -case "(($ac_try" in
17488 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 - *) ac_try_echo=$ac_try;;
17491 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 - (eval "$ac_compile") 2>conftest.er1
17494 - grep -v '^ *+' conftest.er1 >conftest.err
17495 - rm -f conftest.er1
17496 - cat conftest.err >&5
17497 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 - (exit $ac_status); } && {
17499 - test -z "$ac_c_werror_flag" ||
17500 - test ! -s conftest.err
17501 - } && test -s conftest.$ac_objext; then
17503 -cat >>confdefs.h <<\_ACEOF
17504 -#define HAVE_FLOCK 1
17507 - { echo "$as_me:$LINENO: result: yes" >&5
17508 -echo "${ECHO_T}yes" >&6; }
17510 - echo "$as_me: failed program was:" >&5
17511 -sed 's/^/| /' conftest.$ac_ext >&5
17513 - { echo "$as_me:$LINENO: result: no" >&5
17514 -echo "${ECHO_T}no" >&6; }
17518 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 -{ echo "$as_me:$LINENO: checking for getpagesize" >&5
17521 -echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17522 -cat >conftest.$ac_ext <<_ACEOF
17525 -cat confdefs.h >>conftest.$ac_ext
17526 -cat >>conftest.$ac_ext <<_ACEOF
17527 -/* end confdefs.h. */
17529 -#include "confdefs.h"
17530 -#include <unistd.h>
17535 -void* p = getpagesize
17540 -rm -f conftest.$ac_objext
17541 -if { (ac_try="$ac_compile"
17542 -case "(($ac_try" in
17543 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 - *) ac_try_echo=$ac_try;;
17546 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 - (eval "$ac_compile") 2>conftest.er1
17549 - grep -v '^ *+' conftest.er1 >conftest.err
17550 - rm -f conftest.er1
17551 - cat conftest.err >&5
17552 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 - (exit $ac_status); } && {
17554 - test -z "$ac_c_werror_flag" ||
17555 - test ! -s conftest.err
17556 - } && test -s conftest.$ac_objext; then
17558 -cat >>confdefs.h <<\_ACEOF
17559 -#define HAVE_GETPAGESIZE 1
17562 - { echo "$as_me:$LINENO: result: yes" >&5
17563 -echo "${ECHO_T}yes" >&6; }
17565 - echo "$as_me: failed program was:" >&5
17566 -sed 's/^/| /' conftest.$ac_ext >&5
17568 - { echo "$as_me:$LINENO: result: no" >&5
17569 -echo "${ECHO_T}no" >&6; }
17573 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 -for ac_prog in true
17577 - # Extract the first word of "$ac_prog", so it can be a program name with args.
17578 -set dummy $ac_prog; ac_word=$2
17579 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17580 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17581 -if test "${ac_cv_prog_TRUE+set}" = set; then
17582 - echo $ECHO_N "(cached) $ECHO_C" >&6
17584 - if test -n "$TRUE"; then
17585 - ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17587 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 -for as_dir in $PATH
17591 - test -z "$as_dir" && as_dir=.
17592 - for ac_exec_ext in '' $ac_executable_extensions; do
17593 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17594 - ac_cv_prog_TRUE="$ac_prog"
17595 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17604 -TRUE=$ac_cv_prog_TRUE
17605 -if test -n "$TRUE"; then
17606 - { echo "$as_me:$LINENO: result: $TRUE" >&5
17607 -echo "${ECHO_T}$TRUE" >&6; }
17609 - { echo "$as_me:$LINENO: result: no" >&5
17610 -echo "${ECHO_T}no" >&6; }
17614 - test -n "$TRUE" && break
17616 -test -n "$TRUE" || TRUE="/bin/true"
17619 -{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17620 -echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17621 -if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17622 - echo $ECHO_N "(cached) $ECHO_C" >&6
17624 - ac_check_lib_save_LIBS=$LIBS
17626 -cat >conftest.$ac_ext <<_ACEOF
17629 -cat confdefs.h >>conftest.$ac_ext
17630 -cat >>conftest.$ac_ext <<_ACEOF
17631 -/* end confdefs.h. */
17633 -/* Override any GCC internal prototype to avoid an error.
17634 - Use char because int might match the return type of a GCC
17635 - builtin and then its argument prototype would still apply. */
17636 -#ifdef __cplusplus
17639 -char inet_aton ();
17643 -return inet_aton ();
17648 -rm -f conftest.$ac_objext conftest$ac_exeext
17649 -if { (ac_try="$ac_link"
17650 -case "(($ac_try" in
17651 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 - *) ac_try_echo=$ac_try;;
17654 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 - (eval "$ac_link") 2>conftest.er1
17657 - grep -v '^ *+' conftest.er1 >conftest.err
17658 - rm -f conftest.er1
17659 - cat conftest.err >&5
17660 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 - (exit $ac_status); } && {
17662 - test -z "$ac_c_werror_flag" ||
17663 - test ! -s conftest.err
17664 - } && test -s conftest$ac_exeext &&
17665 - $as_test_x conftest$ac_exeext; then
17666 - ac_cv_lib_c_inet_aton=yes
17668 - echo "$as_me: failed program was:" >&5
17669 -sed 's/^/| /' conftest.$ac_ext >&5
17671 - ac_cv_lib_c_inet_aton=no
17674 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 - conftest$ac_exeext conftest.$ac_ext
17676 -LIBS=$ac_check_lib_save_LIBS
17678 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17679 -echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17680 -if test $ac_cv_lib_c_inet_aton = yes; then
17684 -{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17685 -echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17686 -if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17687 - echo $ECHO_N "(cached) $ECHO_C" >&6
17689 - ac_check_lib_save_LIBS=$LIBS
17690 -LIBS="-lresolv $LIBS"
17691 -cat >conftest.$ac_ext <<_ACEOF
17694 -cat confdefs.h >>conftest.$ac_ext
17695 -cat >>conftest.$ac_ext <<_ACEOF
17696 -/* end confdefs.h. */
17698 -/* Override any GCC internal prototype to avoid an error.
17699 - Use char because int might match the return type of a GCC
17700 - builtin and then its argument prototype would still apply. */
17701 -#ifdef __cplusplus
17704 -char inet_aton ();
17708 -return inet_aton ();
17713 -rm -f conftest.$ac_objext conftest$ac_exeext
17714 -if { (ac_try="$ac_link"
17715 -case "(($ac_try" in
17716 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 - *) ac_try_echo=$ac_try;;
17719 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 - (eval "$ac_link") 2>conftest.er1
17722 - grep -v '^ *+' conftest.er1 >conftest.err
17723 - rm -f conftest.er1
17724 - cat conftest.err >&5
17725 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 - (exit $ac_status); } && {
17727 - test -z "$ac_c_werror_flag" ||
17728 - test ! -s conftest.err
17729 - } && test -s conftest$ac_exeext &&
17730 - $as_test_x conftest$ac_exeext; then
17731 - ac_cv_lib_resolv_inet_aton=yes
17733 - echo "$as_me: failed program was:" >&5
17734 -sed 's/^/| /' conftest.$ac_ext >&5
17736 - ac_cv_lib_resolv_inet_aton=no
17739 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17740 - conftest$ac_exeext conftest.$ac_ext
17741 -LIBS=$ac_check_lib_save_LIBS
17743 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17744 -echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17745 -if test $ac_cv_lib_resolv_inet_aton = yes; then
17746 - cat >>confdefs.h <<_ACEOF
17747 -#define HAVE_LIBRESOLV 1
17750 - LIBS="-lresolv $LIBS"
17752 + LINKFORSHARED="$extra_undefs"
17753 + if test "$enable_framework"
17755 + LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
17757 + LINKFORSHARED="$LINKFORSHARED";;
17758 + OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
17759 + SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
17760 + ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
17761 + FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
17762 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
17764 + LINKFORSHARED="-Wl,--export-dynamic"
17766 + SunOS/5*) case $CC in
17768 + if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
17770 + LINKFORSHARED="-Xlinker --export-dynamic"
17774 + if test $enable_shared = "no"
17776 + LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
17780 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
17781 +$as_echo "$LINKFORSHARED" >&6; }
17784 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
17785 +$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
17786 +if test ! "$LIBRARY" = "$LDLIBRARY"
17788 + case $ac_sys_system in
17790 + # Cygwin needs CCSHARED when building extension DLLs
17791 + # but not when building the interpreter DLL.
17792 + CFLAGSFORSHARED='';;
17794 + CFLAGSFORSHARED='$(CCSHARED)'
17797 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
17798 +$as_echo "$CFLAGSFORSHARED" >&6; }
17800 +# SHLIBS are libraries (except -lc and -lm) to link to the python shared
17801 +# library (with --enable-shared).
17802 +# For platforms on which shared libraries are not allowed to have unresolved
17803 +# symbols, this must be set to $(LIBS) (expanded by make). We do this even
17804 +# if it is not required, since it creates a dependency of the shared library
17805 +# to LIBS. This, in turn, means that applications linking the shared libpython
17806 +# don't need to link LIBS explicitly. The default should be only changed
17807 +# on systems where this approach causes problems.
17809 -case $ac_sys_system/$ac_sys_release in
17811 - _CUR_CFLAGS="${CFLAGS}"
17812 - _CUR_LDFLAGS="${LDFLAGS}"
17813 - CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17814 - LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17816 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
17817 +$as_echo_n "checking SHLIBS... " >&6; }
17818 +case "$ac_sys_system" in
17820 + SHLIBS='$(LIBS)';;
17822 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
17823 +$as_echo "$SHLIBS" >&6; }
17826 -{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17827 -echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17828 -if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17829 - echo $ECHO_N "(cached) $ECHO_C" >&6
17830 +# checks for libraries
17831 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17832 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
17833 +if ${ac_cv_lib_dl_dlopen+:} false; then :
17834 + $as_echo_n "(cached) " >&6
17836 ac_check_lib_save_LIBS=$LIBS
17838 -cat >conftest.$ac_ext <<_ACEOF
17841 -cat confdefs.h >>conftest.$ac_ext
17842 -cat >>conftest.$ac_ext <<_ACEOF
17844 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 /* Override any GCC internal prototype to avoid an error.
17848 @@ -15507,330 +7086,228 @@
17852 -char inflateCopy ();
17857 -return inflateCopy ();
17863 -rm -f conftest.$ac_objext conftest$ac_exeext
17864 -if { (ac_try="$ac_link"
17865 -case "(($ac_try" in
17866 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 - *) ac_try_echo=$ac_try;;
17869 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 - (eval "$ac_link") 2>conftest.er1
17872 - grep -v '^ *+' conftest.er1 >conftest.err
17873 - rm -f conftest.er1
17874 - cat conftest.err >&5
17875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 - (exit $ac_status); } && {
17877 - test -z "$ac_c_werror_flag" ||
17878 - test ! -s conftest.err
17879 - } && test -s conftest$ac_exeext &&
17880 - $as_test_x conftest$ac_exeext; then
17881 - ac_cv_lib_z_inflateCopy=yes
17882 +if ac_fn_c_try_link "$LINENO"; then :
17883 + ac_cv_lib_dl_dlopen=yes
17885 - echo "$as_me: failed program was:" >&5
17886 -sed 's/^/| /' conftest.$ac_ext >&5
17888 - ac_cv_lib_z_inflateCopy=no
17889 + ac_cv_lib_dl_dlopen=no
17892 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17893 - conftest$ac_exeext conftest.$ac_ext
17894 +rm -f core conftest.err conftest.$ac_objext \
17895 + conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17899 -echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17900 -if test $ac_cv_lib_z_inflateCopy = yes; then
17902 -cat >>confdefs.h <<\_ACEOF
17903 -#define HAVE_ZLIB_COPY 1
17904 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17905 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17906 +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17907 + cat >>confdefs.h <<_ACEOF
17908 +#define HAVE_LIBDL 1
17914 -case $ac_sys_system/$ac_sys_release in
17916 - CFLAGS="${_CUR_CFLAGS}"
17917 - LDFLAGS="${_CUR_LDFLAGS}"
17920 + LIBS="-ldl $LIBS"
17922 -{ echo "$as_me:$LINENO: checking for hstrerror" >&5
17923 -echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17924 -cat >conftest.$ac_ext <<_ACEOF
17927 -cat confdefs.h >>conftest.$ac_ext
17928 -cat >>conftest.$ac_ext <<_ACEOF
17930 + # Dynamic linking for SunOS/Solaris and SYSV
17931 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17932 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
17933 +if ${ac_cv_lib_dld_shl_load+:} false; then :
17934 + $as_echo_n "(cached) " >&6
17936 + ac_check_lib_save_LIBS=$LIBS
17937 +LIBS="-ldld $LIBS"
17938 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 -#include "confdefs.h"
17942 -#include <netdb.h>
17944 +/* Override any GCC internal prototype to avoid an error.
17945 + Use char because int might match the return type of a GCC
17946 + builtin and then its argument prototype would still apply. */
17947 +#ifdef __cplusplus
17954 -void* p = hstrerror; hstrerror(0)
17955 +return shl_load ();
17960 -rm -f conftest.$ac_objext conftest$ac_exeext
17961 -if { (ac_try="$ac_link"
17962 -case "(($ac_try" in
17963 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 - *) ac_try_echo=$ac_try;;
17966 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 - (eval "$ac_link") 2>conftest.er1
17969 - grep -v '^ *+' conftest.er1 >conftest.err
17970 - rm -f conftest.er1
17971 - cat conftest.err >&5
17972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 - (exit $ac_status); } && {
17974 - test -z "$ac_c_werror_flag" ||
17975 - test ! -s conftest.err
17976 - } && test -s conftest$ac_exeext &&
17977 - $as_test_x conftest$ac_exeext; then
17979 -cat >>confdefs.h <<\_ACEOF
17980 -#define HAVE_HSTRERROR 1
17983 - { echo "$as_me:$LINENO: result: yes" >&5
17984 -echo "${ECHO_T}yes" >&6; }
17985 +if ac_fn_c_try_link "$LINENO"; then :
17986 + ac_cv_lib_dld_shl_load=yes
17988 - echo "$as_me: failed program was:" >&5
17989 -sed 's/^/| /' conftest.$ac_ext >&5
17990 + ac_cv_lib_dld_shl_load=no
17992 +rm -f core conftest.err conftest.$ac_objext \
17993 + conftest$ac_exeext conftest.$ac_ext
17994 +LIBS=$ac_check_lib_save_LIBS
17996 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17997 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17998 +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17999 + cat >>confdefs.h <<_ACEOF
18000 +#define HAVE_LIBDLD 1
18003 - { echo "$as_me:$LINENO: result: no" >&5
18004 -echo "${ECHO_T}no" >&6; }
18005 + LIBS="-ldld $LIBS"
18008 + # Dynamic linking for HP-UX
18010 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18011 - conftest$ac_exeext conftest.$ac_ext
18013 -{ echo "$as_me:$LINENO: checking for inet_aton" >&5
18014 -echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
18015 -cat >conftest.$ac_ext <<_ACEOF
18018 -cat confdefs.h >>conftest.$ac_ext
18019 -cat >>conftest.$ac_ext <<_ACEOF
18020 +# only check for sem_ini if thread support is requested
18021 +if test "$with_threads" = "yes" -o -z "$with_threads"; then
18022 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18023 +$as_echo_n "checking for library containing sem_init... " >&6; }
18024 +if ${ac_cv_search_sem_init+:} false; then :
18025 + $as_echo_n "(cached) " >&6
18027 + ac_func_search_save_LIBS=$LIBS
18028 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18031 -#include "confdefs.h"
18032 -#include <sys/types.h>
18033 -#include <sys/socket.h>
18034 -#include <netinet/in.h>
18035 -#include <arpa/inet.h>
18037 +/* Override any GCC internal prototype to avoid an error.
18038 + Use char because int might match the return type of a GCC
18039 + builtin and then its argument prototype would still apply. */
18040 +#ifdef __cplusplus
18047 -void* p = inet_aton;inet_aton(0,0)
18048 +return sem_init ();
18053 -rm -f conftest.$ac_objext conftest$ac_exeext
18054 -if { (ac_try="$ac_link"
18055 -case "(($ac_try" in
18056 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 - *) ac_try_echo=$ac_try;;
18059 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 - (eval "$ac_link") 2>conftest.er1
18062 - grep -v '^ *+' conftest.er1 >conftest.err
18063 - rm -f conftest.er1
18064 - cat conftest.err >&5
18065 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 - (exit $ac_status); } && {
18067 - test -z "$ac_c_werror_flag" ||
18068 - test ! -s conftest.err
18069 - } && test -s conftest$ac_exeext &&
18070 - $as_test_x conftest$ac_exeext; then
18072 -cat >>confdefs.h <<\_ACEOF
18073 -#define HAVE_INET_ATON 1
18075 +for ac_lib in '' pthread rt posix4; do
18076 + if test -z "$ac_lib"; then
18077 + ac_res="none required"
18080 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18082 + if ac_fn_c_try_link "$LINENO"; then :
18083 + ac_cv_search_sem_init=$ac_res
18085 +rm -f core conftest.err conftest.$ac_objext \
18086 + conftest$ac_exeext
18087 + if ${ac_cv_search_sem_init+:} false; then :
18091 +if ${ac_cv_search_sem_init+:} false; then :
18093 - { echo "$as_me:$LINENO: result: yes" >&5
18094 -echo "${ECHO_T}yes" >&6; }
18096 - echo "$as_me: failed program was:" >&5
18097 -sed 's/^/| /' conftest.$ac_ext >&5
18099 - { echo "$as_me:$LINENO: result: no" >&5
18100 -echo "${ECHO_T}no" >&6; }
18102 + ac_cv_search_sem_init=no
18104 +rm conftest.$ac_ext
18105 +LIBS=$ac_func_search_save_LIBS
18107 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18108 +$as_echo "$ac_cv_search_sem_init" >&6; }
18109 +ac_res=$ac_cv_search_sem_init
18110 +if test "$ac_res" != no; then :
18111 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18113 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18114 - conftest$ac_exeext conftest.$ac_ext
18116 + # 'Real Time' functions on Solaris
18117 + # posix4 on Solaris 2.6
18118 + # pthread (first!) on Linux
18121 -{ echo "$as_me:$LINENO: checking for inet_pton" >&5
18122 -echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
18123 -cat >conftest.$ac_ext <<_ACEOF
18126 -cat confdefs.h >>conftest.$ac_ext
18127 -cat >>conftest.$ac_ext <<_ACEOF
18128 +# check if we need libintl for locale functions
18129 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
18130 +$as_echo_n "checking for textdomain in -lintl... " >&6; }
18131 +if ${ac_cv_lib_intl_textdomain+:} false; then :
18132 + $as_echo_n "(cached) " >&6
18134 + ac_check_lib_save_LIBS=$LIBS
18135 +LIBS="-lintl $LIBS"
18136 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18139 -#include "confdefs.h"
18140 -#include <sys/types.h>
18141 -#include <sys/socket.h>
18142 -#include <netinet/in.h>
18143 -#include <arpa/inet.h>
18145 +/* Override any GCC internal prototype to avoid an error.
18146 + Use char because int might match the return type of a GCC
18147 + builtin and then its argument prototype would still apply. */
18148 +#ifdef __cplusplus
18151 +char textdomain ();
18155 -void* p = inet_pton
18156 +return textdomain ();
18161 -rm -f conftest.$ac_objext
18162 -if { (ac_try="$ac_compile"
18163 -case "(($ac_try" in
18164 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 - *) ac_try_echo=$ac_try;;
18167 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 - (eval "$ac_compile") 2>conftest.er1
18170 - grep -v '^ *+' conftest.er1 >conftest.err
18171 - rm -f conftest.er1
18172 - cat conftest.err >&5
18173 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 - (exit $ac_status); } && {
18175 - test -z "$ac_c_werror_flag" ||
18176 - test ! -s conftest.err
18177 - } && test -s conftest.$ac_objext; then
18179 -cat >>confdefs.h <<\_ACEOF
18180 -#define HAVE_INET_PTON 1
18183 - { echo "$as_me:$LINENO: result: yes" >&5
18184 -echo "${ECHO_T}yes" >&6; }
18185 +if ac_fn_c_try_link "$LINENO"; then :
18186 + ac_cv_lib_intl_textdomain=yes
18188 - echo "$as_me: failed program was:" >&5
18189 -sed 's/^/| /' conftest.$ac_ext >&5
18190 + ac_cv_lib_intl_textdomain=no
18192 +rm -f core conftest.err conftest.$ac_objext \
18193 + conftest$ac_exeext conftest.$ac_ext
18194 +LIBS=$ac_check_lib_save_LIBS
18196 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
18197 +$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
18198 +if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
18200 - { echo "$as_me:$LINENO: result: no" >&5
18201 -echo "${ECHO_T}no" >&6; }
18202 +$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
18206 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208 -# On some systems, setgroups is in unistd.h, on others, in grp.h
18209 -{ echo "$as_me:$LINENO: checking for setgroups" >&5
18210 -echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
18211 -cat >conftest.$ac_ext <<_ACEOF
18214 -cat confdefs.h >>conftest.$ac_ext
18215 -cat >>conftest.$ac_ext <<_ACEOF
18216 +# checks for system dependent C++ extensions support
18217 +case "$ac_sys_system" in
18218 + AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
18219 +$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
18220 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18223 -#include "confdefs.h"
18224 -#include <unistd.h>
18229 +#include "/usr/lpp/xlC/include/load.h"
18233 -void* p = setgroups
18234 +loadAndInit("", 0, "")
18239 -rm -f conftest.$ac_objext
18240 -if { (ac_try="$ac_compile"
18241 -case "(($ac_try" in
18242 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 - *) ac_try_echo=$ac_try;;
18245 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 - (eval "$ac_compile") 2>conftest.er1
18248 - grep -v '^ *+' conftest.er1 >conftest.err
18249 - rm -f conftest.er1
18250 - cat conftest.err >&5
18251 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 - (exit $ac_status); } && {
18253 - test -z "$ac_c_werror_flag" ||
18254 - test ! -s conftest.err
18255 - } && test -s conftest.$ac_objext; then
18256 +if ac_fn_c_try_link "$LINENO"; then :
18258 -cat >>confdefs.h <<\_ACEOF
18259 -#define HAVE_SETGROUPS 1
18261 +$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
18263 - { echo "$as_me:$LINENO: result: yes" >&5
18264 -echo "${ECHO_T}yes" >&6; }
18265 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 +$as_echo "yes" >&6; }
18268 - echo "$as_me: failed program was:" >&5
18269 -sed 's/^/| /' conftest.$ac_ext >&5
18271 - { echo "$as_me:$LINENO: result: no" >&5
18272 -echo "${ECHO_T}no" >&6; }
18274 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275 +$as_echo "no" >&6; }
18277 +rm -f core conftest.err conftest.$ac_objext \
18278 + conftest$ac_exeext conftest.$ac_ext;;
18282 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 -# check for openpty and forkpty
18287 -for ac_func in openpty
18289 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18290 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18291 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18292 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18293 - echo $ECHO_N "(cached) $ECHO_C" >&6
18294 +# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
18295 +# BeOS' sockets are stashed in libnet.
18296 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
18297 +$as_echo_n "checking for t_open in -lnsl... " >&6; }
18298 +if ${ac_cv_lib_nsl_t_open+:} false; then :
18299 + $as_echo_n "(cached) " >&6
18301 - cat >conftest.$ac_ext <<_ACEOF
18304 -cat confdefs.h >>conftest.$ac_ext
18305 -cat >>conftest.$ac_ext <<_ACEOF
18306 + ac_check_lib_save_LIBS=$LIBS
18307 +LIBS="-lnsl $LIBS"
18308 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18311 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
18312 -#define $ac_func innocuous_$ac_func
18314 -/* System header to define __stub macros and hopefully few prototypes,
18315 - which can conflict with char $ac_func (); below.
18316 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18317 - <limits.h> exists even on freestanding compilers. */
18320 -# include <limits.h>
18322 -# include <assert.h>
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 @@ -15838,72 +7315,38 @@
18334 -/* The GNU C library defines this for functions which it implements
18335 - to always fail with ENOSYS. Some functions are actually named
18336 - something starting with __ and the normal name is an alias. */
18337 -#if defined __stub_$ac_func || defined __stub___$ac_func
18345 -return $ac_func ();
18351 -rm -f conftest.$ac_objext conftest$ac_exeext
18352 -if { (ac_try="$ac_link"
18353 -case "(($ac_try" in
18354 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 - *) ac_try_echo=$ac_try;;
18357 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 - (eval "$ac_link") 2>conftest.er1
18360 - grep -v '^ *+' conftest.er1 >conftest.err
18361 - rm -f conftest.er1
18362 - cat conftest.err >&5
18363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 - (exit $ac_status); } && {
18365 - test -z "$ac_c_werror_flag" ||
18366 - test ! -s conftest.err
18367 - } && test -s conftest$ac_exeext &&
18368 - $as_test_x conftest$ac_exeext; then
18369 - eval "$as_ac_var=yes"
18370 +if ac_fn_c_try_link "$LINENO"; then :
18371 + ac_cv_lib_nsl_t_open=yes
18373 - echo "$as_me: failed program was:" >&5
18374 -sed 's/^/| /' conftest.$ac_ext >&5
18376 - eval "$as_ac_var=no"
18377 + ac_cv_lib_nsl_t_open=no
18380 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18381 - conftest$ac_exeext conftest.$ac_ext
18382 +rm -f core conftest.err conftest.$ac_objext \
18383 + conftest$ac_exeext conftest.$ac_ext
18384 +LIBS=$ac_check_lib_save_LIBS
18386 -ac_res=`eval echo '${'$as_ac_var'}'`
18387 - { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 -echo "${ECHO_T}$ac_res" >&6; }
18389 -if test `eval echo '${'$as_ac_var'}'` = yes; then
18390 - cat >>confdefs.h <<_ACEOF
18391 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18395 - { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18396 -echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18397 -if test "${ac_cv_lib_util_openpty+set}" = set; then
18398 - echo $ECHO_N "(cached) $ECHO_C" >&6
18399 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
18400 +$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18401 +if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
18402 + LIBS="-lnsl $LIBS"
18405 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18406 +$as_echo_n "checking for socket in -lsocket... " >&6; }
18407 +if ${ac_cv_lib_socket_socket+:} false; then :
18408 + $as_echo_n "(cached) " >&6
18410 ac_check_lib_save_LIBS=$LIBS
18411 -LIBS="-lutil $LIBS"
18412 -cat >conftest.$ac_ext <<_ACEOF
18415 -cat confdefs.h >>conftest.$ac_ext
18416 -cat >>conftest.$ac_ext <<_ACEOF
18417 +LIBS="-lsocket $LIBS $LIBS"
18418 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* Override any GCC internal prototype to avoid an error.
18422 @@ -15912,65 +7355,41 @@
18431 -return openpty ();
18437 -rm -f conftest.$ac_objext conftest$ac_exeext
18438 -if { (ac_try="$ac_link"
18439 -case "(($ac_try" in
18440 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 - *) ac_try_echo=$ac_try;;
18443 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 - (eval "$ac_link") 2>conftest.er1
18446 - grep -v '^ *+' conftest.er1 >conftest.err
18447 - rm -f conftest.er1
18448 - cat conftest.err >&5
18449 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 - (exit $ac_status); } && {
18451 - test -z "$ac_c_werror_flag" ||
18452 - test ! -s conftest.err
18453 - } && test -s conftest$ac_exeext &&
18454 - $as_test_x conftest$ac_exeext; then
18455 - ac_cv_lib_util_openpty=yes
18456 +if ac_fn_c_try_link "$LINENO"; then :
18457 + ac_cv_lib_socket_socket=yes
18459 - echo "$as_me: failed program was:" >&5
18460 -sed 's/^/| /' conftest.$ac_ext >&5
18462 - ac_cv_lib_util_openpty=no
18463 + ac_cv_lib_socket_socket=no
18466 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18467 - conftest$ac_exeext conftest.$ac_ext
18468 +rm -f core conftest.err conftest.$ac_objext \
18469 + conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18472 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18473 -echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18474 -if test $ac_cv_lib_util_openpty = yes; then
18475 - cat >>confdefs.h <<\_ACEOF
18476 -#define HAVE_OPENPTY 1
18478 - LIBS="$LIBS -lutil"
18480 - { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18481 -echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18482 -if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18483 - echo $ECHO_N "(cached) $ECHO_C" >&6
18484 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18485 +$as_echo "$ac_cv_lib_socket_socket" >&6; }
18486 +if test "x$ac_cv_lib_socket_socket" = xyes; then :
18487 + LIBS="-lsocket $LIBS"
18491 +case "$ac_sys_system" in
18493 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
18494 +$as_echo_n "checking for socket in -lnet... " >&6; }
18495 +if ${ac_cv_lib_net_socket+:} false; then :
18496 + $as_echo_n "(cached) " >&6
18498 ac_check_lib_save_LIBS=$LIBS
18499 -LIBS="-lbsd $LIBS"
18500 -cat >conftest.$ac_ext <<_ACEOF
18503 -cat confdefs.h >>conftest.$ac_ext
18504 -cat >>conftest.$ac_ext <<_ACEOF
18505 +LIBS="-lnet $LIBS $LIBS"
18506 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 @@ -15979,232 +7398,341 @@
18519 -return openpty ();
18525 -rm -f conftest.$ac_objext conftest$ac_exeext
18526 -if { (ac_try="$ac_link"
18527 -case "(($ac_try" in
18528 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 - *) ac_try_echo=$ac_try;;
18531 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 - (eval "$ac_link") 2>conftest.er1
18534 - grep -v '^ *+' conftest.er1 >conftest.err
18535 - rm -f conftest.er1
18536 - cat conftest.err >&5
18537 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 - (exit $ac_status); } && {
18539 - test -z "$ac_c_werror_flag" ||
18540 - test ! -s conftest.err
18541 - } && test -s conftest$ac_exeext &&
18542 - $as_test_x conftest$ac_exeext; then
18543 - ac_cv_lib_bsd_openpty=yes
18544 +if ac_fn_c_try_link "$LINENO"; then :
18545 + ac_cv_lib_net_socket=yes
18547 - echo "$as_me: failed program was:" >&5
18548 -sed 's/^/| /' conftest.$ac_ext >&5
18549 + ac_cv_lib_net_socket=no
18551 +rm -f core conftest.err conftest.$ac_objext \
18552 + conftest$ac_exeext conftest.$ac_ext
18553 +LIBS=$ac_check_lib_save_LIBS
18555 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
18556 +$as_echo "$ac_cv_lib_net_socket" >&6; }
18557 +if test "x$ac_cv_lib_net_socket" = xyes; then :
18558 + LIBS="-lnet $LIBS"
18564 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
18565 +$as_echo_n "checking for --with-libs... " >&6; }
18567 +# Check whether --with-libs was given.
18568 +if test "${with_libs+set}" = set; then :
18569 + withval=$with_libs;
18570 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18571 +$as_echo "$withval" >&6; }
18572 +LIBS="$withval $LIBS"
18574 - ac_cv_lib_bsd_openpty=no
18576 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18577 +$as_echo "no" >&6; }
18580 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18581 - conftest$ac_exeext conftest.$ac_ext
18582 -LIBS=$ac_check_lib_save_LIBS
18584 +# Check for use of the system libffi library
18585 +ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
18586 +if test "x$ac_cv_header_ffi_h" = xyes; then :
18589 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18590 -echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18591 -if test $ac_cv_lib_bsd_openpty = yes; then
18592 - cat >>confdefs.h <<\_ACEOF
18593 -#define HAVE_OPENPTY 1
18595 - LIBS="$LIBS -lbsd"
18598 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
18599 +$as_echo_n "checking for --with-system-ffi... " >&6; }
18601 +# Check whether --with-system_ffi was given.
18602 +if test "${with_system_ffi+set}" = set; then :
18603 + withval=$with_system_ffi;
18607 +if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
18608 + case "$ac_sys_system/`uname -m`" in
18609 + Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
18610 + *) with_system_ffi="no"
18613 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
18614 +$as_echo "$with_system_ffi" >&6; }
18616 +# Determine if signalmodule should be used.
18619 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
18620 +$as_echo_n "checking for --with-signal-module... " >&6; }
18622 +# Check whether --with-signal-module was given.
18623 +if test "${with_signal_module+set}" = set; then :
18624 + withval=$with_signal_module;
18629 -for ac_func in forkpty
18631 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635 - echo $ECHO_N "(cached) $ECHO_C" >&6
18636 +if test -z "$with_signal_module"
18637 +then with_signal_module="yes"
18639 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
18640 +$as_echo "$with_signal_module" >&6; }
18642 +if test "${with_signal_module}" = "yes"; then
18643 + USE_SIGNAL_MODULE=""
18646 - cat >conftest.$ac_ext <<_ACEOF
18649 -cat confdefs.h >>conftest.$ac_ext
18650 -cat >>conftest.$ac_ext <<_ACEOF
18651 -/* end confdefs.h. */
18652 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18653 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
18654 -#define $ac_func innocuous_$ac_func
18655 + USE_SIGNAL_MODULE="#"
18656 + SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
18659 -/* System header to define __stub macros and hopefully few prototypes,
18660 - which can conflict with char $ac_func (); below.
18661 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18662 - <limits.h> exists even on freestanding compilers. */
18663 +# This is used to generate Setup.config
18666 -# include <limits.h>
18668 -# include <assert.h>
18670 +USE_THREAD_MODULE=""
18673 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
18674 +$as_echo_n "checking for --with-dec-threads... " >&6; }
18676 -/* Override any GCC internal prototype to avoid an error.
18677 - Use char because int might match the return type of a GCC
18678 - builtin and then its argument prototype would still apply. */
18679 -#ifdef __cplusplus
18683 -/* The GNU C library defines this for functions which it implements
18684 - to always fail with ENOSYS. Some functions are actually named
18685 - something starting with __ and the normal name is an alias. */
18686 -#if defined __stub_$ac_func || defined __stub___$ac_func
18693 -return $ac_func ();
18698 -rm -f conftest.$ac_objext conftest$ac_exeext
18699 -if { (ac_try="$ac_link"
18700 -case "(($ac_try" in
18701 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 - *) ac_try_echo=$ac_try;;
18704 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 - (eval "$ac_link") 2>conftest.er1
18707 - grep -v '^ *+' conftest.er1 >conftest.err
18708 - rm -f conftest.er1
18709 - cat conftest.err >&5
18710 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 - (exit $ac_status); } && {
18712 - test -z "$ac_c_werror_flag" ||
18713 - test ! -s conftest.err
18714 - } && test -s conftest$ac_exeext &&
18715 - $as_test_x conftest$ac_exeext; then
18716 - eval "$as_ac_var=yes"
18717 +# Check whether --with-dec-threads was given.
18718 +if test "${with_dec_threads+set}" = set; then :
18719 + withval=$with_dec_threads;
18720 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18721 +$as_echo "$withval" >&6; }
18723 +if test "${with_thread+set}" != set; then
18724 + with_thread="$withval";
18727 - echo "$as_me: failed program was:" >&5
18728 -sed 's/^/| /' conftest.$ac_ext >&5
18729 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 +$as_echo "no" >&6; }
18733 - eval "$as_ac_var=no"
18735 +# Templates for things AC_DEFINEd more than once.
18736 +# For a single AC_DEFINE, no template is needed.
18741 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
18742 +$as_echo_n "checking for --with-threads... " >&6; }
18744 +# Check whether --with-threads was given.
18745 +if test "${with_threads+set}" = set; then :
18746 + withval=$with_threads;
18749 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18750 - conftest$ac_exeext conftest.$ac_ext
18752 +# --with-thread is deprecated, but check for it anyway
18754 +# Check whether --with-thread was given.
18755 +if test "${with_thread+set}" = set; then :
18756 + withval=$with_thread; with_threads=$with_thread
18758 -ac_res=`eval echo '${'$as_ac_var'}'`
18759 - { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 -echo "${ECHO_T}$ac_res" >&6; }
18761 -if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 - cat >>confdefs.h <<_ACEOF
18763 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18766 +if test -z "$with_threads"
18767 +then with_threads="yes"
18769 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
18770 +$as_echo "$with_threads" >&6; }
18773 +if test "$with_threads" = "no"
18775 + USE_THREAD_MODULE="#"
18776 +elif test "$ac_cv_pthread_is_default" = yes
18778 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18780 + # Defining _REENTRANT on system with POSIX threads should not hurt.
18781 + $as_echo "#define _REENTRANT 1" >>confdefs.h
18783 + posix_threads=yes
18784 + THREADOBJ="Python/thread.o"
18785 +elif test "$ac_cv_kpthread" = "yes"
18787 + CC="$CC -Kpthread"
18788 + if test "$ac_cv_cxx_thread" = "yes"; then
18789 + CXX="$CXX -Kpthread"
18791 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18793 + posix_threads=yes
18794 + THREADOBJ="Python/thread.o"
18795 +elif test "$ac_cv_kthread" = "yes"
18797 + CC="$CC -Kthread"
18798 + if test "$ac_cv_cxx_thread" = "yes"; then
18799 + CXX="$CXX -Kthread"
18801 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18803 + posix_threads=yes
18804 + THREADOBJ="Python/thread.o"
18805 +elif test "$ac_cv_pthread" = "yes"
18807 + CC="$CC -pthread"
18808 + if test "$ac_cv_cxx_thread" = "yes"; then
18809 + CXX="$CXX -pthread"
18811 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18813 + posix_threads=yes
18814 + THREADOBJ="Python/thread.o"
18816 + if test ! -z "$with_threads" -a -d "$with_threads"
18817 + then LDFLAGS="$LDFLAGS -L$with_threads"
18819 + if test ! -z "$withval" -a -d "$withval"
18820 + then LDFLAGS="$LDFLAGS -L$withval"
18823 + # According to the POSIX spec, a pthreads implementation must
18824 + # define _POSIX_THREADS in unistd.h. Some apparently don't
18825 + # (e.g. gnu pth with pthread emulation)
18826 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
18827 +$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
18828 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 +/* end confdefs.h. */
18831 +#include <unistd.h>
18832 +#ifdef _POSIX_THREADS
18837 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18838 + $EGREP "yes" >/dev/null 2>&1; then :
18839 + unistd_defines_pthreads=yes
18841 + unistd_defines_pthreads=no
18845 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
18846 +$as_echo "$unistd_defines_pthreads" >&6; }
18848 + $as_echo "#define _REENTRANT 1" >>confdefs.h
18850 + ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
18851 +if test "x$ac_cv_header_cthreads_h" = xyes; then :
18852 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18854 + $as_echo "#define C_THREADS 1" >>confdefs.h
18857 +$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
18859 + LIBS="$LIBS -lthreads"
18860 + THREADOBJ="Python/thread.o"
18863 + ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
18864 +if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
18865 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18867 + $as_echo "#define C_THREADS 1" >>confdefs.h
18870 +$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
18872 + THREADOBJ="Python/thread.o"
18874 - { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18875 -echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18876 -if test "${ac_cv_lib_util_forkpty+set}" = set; then
18877 - echo $ECHO_N "(cached) $ECHO_C" >&6
18879 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
18880 +$as_echo_n "checking for --with-pth... " >&6; }
18882 +# Check whether --with-pth was given.
18883 +if test "${with_pth+set}" = set; then :
18884 + withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18885 +$as_echo "$withval" >&6; }
18886 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18889 +$as_echo "#define HAVE_PTH 1" >>confdefs.h
18891 + LIBS="-lpth $LIBS"
18892 + THREADOBJ="Python/thread.o"
18894 - ac_check_lib_save_LIBS=$LIBS
18895 -LIBS="-lutil $LIBS"
18896 -cat >conftest.$ac_ext <<_ACEOF
18899 -cat confdefs.h >>conftest.$ac_ext
18900 -cat >>conftest.$ac_ext <<_ACEOF
18901 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 +$as_echo "no" >&6; }
18904 + # Just looking for pthread_create in libpthread is not enough:
18905 + # on HP/UX, pthread.h renames pthread_create to a different symbol name.
18906 + # So we really have to include pthread.h, and then link.
18908 + LIBS="$LIBS -lpthread"
18909 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
18910 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
18911 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h. */
18913 +#include <pthread.h>
18915 -/* Override any GCC internal prototype to avoid an error.
18916 - Use char because int might match the return type of a GCC
18917 - builtin and then its argument prototype would still apply. */
18918 -#ifdef __cplusplus
18922 +void * start_routine (void *arg) { exit (0); }
18926 -return forkpty ();
18928 +pthread_create (NULL, NULL, start_routine, NULL)
18933 -rm -f conftest.$ac_objext conftest$ac_exeext
18934 -if { (ac_try="$ac_link"
18935 -case "(($ac_try" in
18936 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 - *) ac_try_echo=$ac_try;;
18939 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 - (eval "$ac_link") 2>conftest.er1
18942 - grep -v '^ *+' conftest.er1 >conftest.err
18943 - rm -f conftest.er1
18944 - cat conftest.err >&5
18945 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 - (exit $ac_status); } && {
18947 - test -z "$ac_c_werror_flag" ||
18948 - test ! -s conftest.err
18949 - } && test -s conftest$ac_exeext &&
18950 - $as_test_x conftest$ac_exeext; then
18951 - ac_cv_lib_util_forkpty=yes
18952 +if ac_fn_c_try_link "$LINENO"; then :
18954 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18955 +$as_echo "yes" >&6; }
18956 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18958 + posix_threads=yes
18959 + THREADOBJ="Python/thread.o"
18961 - echo "$as_me: failed program was:" >&5
18962 -sed 's/^/| /' conftest.$ac_ext >&5
18964 - ac_cv_lib_util_forkpty=no
18967 + ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
18968 +if test "x$ac_cv_func_pthread_detach" = xyes; then :
18969 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18971 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 - conftest$ac_exeext conftest.$ac_ext
18973 -LIBS=$ac_check_lib_save_LIBS
18975 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18976 -echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18977 -if test $ac_cv_lib_util_forkpty = yes; then
18978 - cat >>confdefs.h <<\_ACEOF
18979 -#define HAVE_FORKPTY 1
18981 - LIBS="$LIBS -lutil"
18982 + posix_threads=yes
18983 + THREADOBJ="Python/thread.o"
18986 + ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
18987 +if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
18988 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18991 +$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
18993 + THREADOBJ="Python/thread.o"
18996 + ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
18997 +if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
18998 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19001 +$as_echo "#define BEOS_THREADS 1" >>confdefs.h
19003 + THREADOBJ="Python/thread.o"
19005 - { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19006 -echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19007 -if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19008 - echo $ECHO_N "(cached) $ECHO_C" >&6
19010 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
19011 +$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
19012 +if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
19013 + $as_echo_n "(cached) " >&6
19015 ac_check_lib_save_LIBS=$LIBS
19016 -LIBS="-lbsd $LIBS"
19017 -cat >conftest.$ac_ext <<_ACEOF
19020 -cat confdefs.h >>conftest.$ac_ext
19021 -cat >>conftest.$ac_ext <<_ACEOF
19022 +LIBS="-lpthreads $LIBS"
19023 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 @@ -16213,99 +7741,43 @@
19032 +char pthread_create ();
19036 -return forkpty ();
19037 +return pthread_create ();
19042 -rm -f conftest.$ac_objext conftest$ac_exeext
19043 -if { (ac_try="$ac_link"
19044 -case "(($ac_try" in
19045 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 - *) ac_try_echo=$ac_try;;
19048 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 - (eval "$ac_link") 2>conftest.er1
19051 - grep -v '^ *+' conftest.er1 >conftest.err
19052 - rm -f conftest.er1
19053 - cat conftest.err >&5
19054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 - (exit $ac_status); } && {
19056 - test -z "$ac_c_werror_flag" ||
19057 - test ! -s conftest.err
19058 - } && test -s conftest$ac_exeext &&
19059 - $as_test_x conftest$ac_exeext; then
19060 - ac_cv_lib_bsd_forkpty=yes
19061 +if ac_fn_c_try_link "$LINENO"; then :
19062 + ac_cv_lib_pthreads_pthread_create=yes
19064 - echo "$as_me: failed program was:" >&5
19065 -sed 's/^/| /' conftest.$ac_ext >&5
19067 - ac_cv_lib_bsd_forkpty=no
19068 + ac_cv_lib_pthreads_pthread_create=no
19071 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 - conftest$ac_exeext conftest.$ac_ext
19073 +rm -f core conftest.err conftest.$ac_objext \
19074 + conftest$ac_exeext conftest.$ac_ext
19075 LIBS=$ac_check_lib_save_LIBS
19077 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19078 -echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19079 -if test $ac_cv_lib_bsd_forkpty = yes; then
19080 - cat >>confdefs.h <<\_ACEOF
19081 -#define HAVE_FORKPTY 1
19083 - LIBS="$LIBS -lbsd"
19094 -# check for long file support functions
19099 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
19100 +$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
19101 +if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
19102 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19104 + posix_threads=yes
19105 + LIBS="$LIBS -lpthreads"
19106 + THREADOBJ="Python/thread.o"
19109 -for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19111 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19112 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19113 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19114 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19115 - echo $ECHO_N "(cached) $ECHO_C" >&6
19116 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
19117 +$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
19118 +if ${ac_cv_lib_c_r_pthread_create+:} false; then :
19119 + $as_echo_n "(cached) " >&6
19121 - cat >conftest.$ac_ext <<_ACEOF
19124 -cat confdefs.h >>conftest.$ac_ext
19125 -cat >>conftest.$ac_ext <<_ACEOF
19126 + ac_check_lib_save_LIBS=$LIBS
19127 +LIBS="-lc_r $LIBS"
19128 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19131 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19132 -#define $ac_func innocuous_$ac_func
19134 -/* System header to define __stub macros and hopefully few prototypes,
19135 - which can conflict with char $ac_func (); below.
19136 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19137 - <limits.h> exists even on freestanding compilers. */
19140 -# include <limits.h>
19142 -# include <assert.h>
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 @@ -16313,98 +7785,43 @@
19154 -/* The GNU C library defines this for functions which it implements
19155 - to always fail with ENOSYS. Some functions are actually named
19156 - something starting with __ and the normal name is an alias. */
19157 -#if defined __stub_$ac_func || defined __stub___$ac_func
19161 +char pthread_create ();
19165 -return $ac_func ();
19166 +return pthread_create ();
19171 -rm -f conftest.$ac_objext conftest$ac_exeext
19172 -if { (ac_try="$ac_link"
19173 -case "(($ac_try" in
19174 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 - *) ac_try_echo=$ac_try;;
19177 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 - (eval "$ac_link") 2>conftest.er1
19180 - grep -v '^ *+' conftest.er1 >conftest.err
19181 - rm -f conftest.er1
19182 - cat conftest.err >&5
19183 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 - (exit $ac_status); } && {
19185 - test -z "$ac_c_werror_flag" ||
19186 - test ! -s conftest.err
19187 - } && test -s conftest$ac_exeext &&
19188 - $as_test_x conftest$ac_exeext; then
19189 - eval "$as_ac_var=yes"
19190 +if ac_fn_c_try_link "$LINENO"; then :
19191 + ac_cv_lib_c_r_pthread_create=yes
19193 - echo "$as_me: failed program was:" >&5
19194 -sed 's/^/| /' conftest.$ac_ext >&5
19196 - eval "$as_ac_var=no"
19199 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200 - conftest$ac_exeext conftest.$ac_ext
19201 + ac_cv_lib_c_r_pthread_create=no
19203 -ac_res=`eval echo '${'$as_ac_var'}'`
19204 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19205 -echo "${ECHO_T}$ac_res" >&6; }
19206 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19207 - cat >>confdefs.h <<_ACEOF
19208 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19211 +rm -f core conftest.err conftest.$ac_objext \
19212 + conftest$ac_exeext conftest.$ac_ext
19213 +LIBS=$ac_check_lib_save_LIBS
19221 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
19222 +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
19223 +if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
19224 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19226 + posix_threads=yes
19227 + LIBS="$LIBS -lc_r"
19228 + THREADOBJ="Python/thread.o"
19231 -for ac_func in dup2 getcwd strdup strerror memmove
19233 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19234 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19235 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19236 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19237 - echo $ECHO_N "(cached) $ECHO_C" >&6
19238 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
19239 +$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
19240 +if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
19241 + $as_echo_n "(cached) " >&6
19243 - cat >conftest.$ac_ext <<_ACEOF
19246 -cat confdefs.h >>conftest.$ac_ext
19247 -cat >>conftest.$ac_ext <<_ACEOF
19248 + ac_check_lib_save_LIBS=$LIBS
19249 +LIBS="-lpthread $LIBS"
19250 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19251 /* end confdefs.h. */
19252 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19253 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19254 -#define $ac_func innocuous_$ac_func
19256 -/* System header to define __stub macros and hopefully few prototypes,
19257 - which can conflict with char $ac_func (); below.
19258 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19259 - <limits.h> exists even on freestanding compilers. */
19262 -# include <limits.h>
19264 -# include <assert.h>
19269 /* Override any GCC internal prototype to avoid an error.
19270 Use char because int might match the return type of a GCC
19271 @@ -16412,101 +7829,43 @@
19276 -/* The GNU C library defines this for functions which it implements
19277 - to always fail with ENOSYS. Some functions are actually named
19278 - something starting with __ and the normal name is an alias. */
19279 -#if defined __stub_$ac_func || defined __stub___$ac_func
19283 +char __pthread_create_system ();
19287 -return $ac_func ();
19288 +return __pthread_create_system ();
19293 -rm -f conftest.$ac_objext conftest$ac_exeext
19294 -if { (ac_try="$ac_link"
19295 -case "(($ac_try" in
19296 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 - *) ac_try_echo=$ac_try;;
19299 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 - (eval "$ac_link") 2>conftest.er1
19302 - grep -v '^ *+' conftest.er1 >conftest.err
19303 - rm -f conftest.er1
19304 - cat conftest.err >&5
19305 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 - (exit $ac_status); } && {
19307 - test -z "$ac_c_werror_flag" ||
19308 - test ! -s conftest.err
19309 - } && test -s conftest$ac_exeext &&
19310 - $as_test_x conftest$ac_exeext; then
19311 - eval "$as_ac_var=yes"
19312 +if ac_fn_c_try_link "$LINENO"; then :
19313 + ac_cv_lib_pthread___pthread_create_system=yes
19315 - echo "$as_me: failed program was:" >&5
19316 -sed 's/^/| /' conftest.$ac_ext >&5
19318 - eval "$as_ac_var=no"
19319 + ac_cv_lib_pthread___pthread_create_system=no
19322 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 - conftest$ac_exeext conftest.$ac_ext
19324 +rm -f core conftest.err conftest.$ac_objext \
19325 + conftest$ac_exeext conftest.$ac_ext
19326 +LIBS=$ac_check_lib_save_LIBS
19328 -ac_res=`eval echo '${'$as_ac_var'}'`
19329 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19330 -echo "${ECHO_T}$ac_res" >&6; }
19331 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19332 - cat >>confdefs.h <<_ACEOF
19333 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19335 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
19336 +$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
19337 +if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
19338 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19340 + posix_threads=yes
19341 + LIBS="$LIBS -lpthread"
19342 + THREADOBJ="Python/thread.o"
19344 - case " $LIBOBJS " in
19345 - *" $ac_func.$ac_objext "* ) ;;
19346 - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19355 -for ac_func in getpgrp
19357 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19359 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19360 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19361 - echo $ECHO_N "(cached) $ECHO_C" >&6
19362 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
19363 +$as_echo_n "checking for pthread_create in -lcma... " >&6; }
19364 +if ${ac_cv_lib_cma_pthread_create+:} false; then :
19365 + $as_echo_n "(cached) " >&6
19367 - cat >conftest.$ac_ext <<_ACEOF
19370 -cat confdefs.h >>conftest.$ac_ext
19371 -cat >>conftest.$ac_ext <<_ACEOF
19372 + ac_check_lib_save_LIBS=$LIBS
19373 +LIBS="-lcma $LIBS"
19374 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h. */
19376 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19377 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19378 -#define $ac_func innocuous_$ac_func
19380 -/* System header to define __stub macros and hopefully few prototypes,
19381 - which can conflict with char $ac_func (); below.
19382 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19383 - <limits.h> exists even on freestanding compilers. */
19386 -# include <limits.h>
19388 -# include <assert.h>
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 @@ -16514,139 +7873,73 @@
19400 -/* The GNU C library defines this for functions which it implements
19401 - to always fail with ENOSYS. Some functions are actually named
19402 - something starting with __ and the normal name is an alias. */
19403 -#if defined __stub_$ac_func || defined __stub___$ac_func
19407 +char pthread_create ();
19411 -return $ac_func ();
19412 +return pthread_create ();
19417 -rm -f conftest.$ac_objext conftest$ac_exeext
19418 -if { (ac_try="$ac_link"
19419 -case "(($ac_try" in
19420 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 - *) ac_try_echo=$ac_try;;
19423 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 - (eval "$ac_link") 2>conftest.er1
19426 - grep -v '^ *+' conftest.er1 >conftest.err
19427 - rm -f conftest.er1
19428 - cat conftest.err >&5
19429 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 - (exit $ac_status); } && {
19431 - test -z "$ac_c_werror_flag" ||
19432 - test ! -s conftest.err
19433 - } && test -s conftest$ac_exeext &&
19434 - $as_test_x conftest$ac_exeext; then
19435 - eval "$as_ac_var=yes"
19436 +if ac_fn_c_try_link "$LINENO"; then :
19437 + ac_cv_lib_cma_pthread_create=yes
19439 - echo "$as_me: failed program was:" >&5
19440 -sed 's/^/| /' conftest.$ac_ext >&5
19442 - eval "$as_ac_var=no"
19443 + ac_cv_lib_cma_pthread_create=no
19446 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 - conftest$ac_exeext conftest.$ac_ext
19448 +rm -f core conftest.err conftest.$ac_objext \
19449 + conftest$ac_exeext conftest.$ac_ext
19450 +LIBS=$ac_check_lib_save_LIBS
19452 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
19453 +$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
19454 +if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
19455 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19457 + posix_threads=yes
19458 + LIBS="$LIBS -lcma"
19459 + THREADOBJ="Python/thread.o"
19462 + USE_THREAD_MODULE="#"
19464 -ac_res=`eval echo '${'$as_ac_var'}'`
19465 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19466 -echo "${ECHO_T}$ac_res" >&6; }
19467 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19468 - cat >>confdefs.h <<_ACEOF
19469 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19471 - cat >conftest.$ac_ext <<_ACEOF
19474 -cat confdefs.h >>conftest.$ac_ext
19475 -cat >>conftest.$ac_ext <<_ACEOF
19476 -/* end confdefs.h. */
19477 -#include <unistd.h>
19486 -rm -f conftest.$ac_objext
19487 -if { (ac_try="$ac_compile"
19488 -case "(($ac_try" in
19489 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 - *) ac_try_echo=$ac_try;;
19492 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 - (eval "$ac_compile") 2>conftest.er1
19495 - grep -v '^ *+' conftest.er1 >conftest.err
19496 - rm -f conftest.er1
19497 - cat conftest.err >&5
19498 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 - (exit $ac_status); } && {
19500 - test -z "$ac_c_werror_flag" ||
19501 - test ! -s conftest.err
19502 - } && test -s conftest.$ac_objext; then
19504 -cat >>confdefs.h <<\_ACEOF
19505 -#define GETPGRP_HAVE_ARG 1
19511 - echo "$as_me: failed program was:" >&5
19512 -sed 's/^/| /' conftest.$ac_ext >&5
19519 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 -for ac_func in setpgrp
19527 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19528 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19529 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19530 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19531 - echo $ECHO_N "(cached) $ECHO_C" >&6
19533 - cat >conftest.$ac_ext <<_ACEOF
19536 -cat confdefs.h >>conftest.$ac_ext
19537 -cat >>conftest.$ac_ext <<_ACEOF
19538 -/* end confdefs.h. */
19539 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19540 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19541 -#define $ac_func innocuous_$ac_func
19545 +rm -f core conftest.err conftest.$ac_objext \
19546 + conftest$ac_exeext conftest.$ac_ext
19554 -/* System header to define __stub macros and hopefully few prototypes,
19555 - which can conflict with char $ac_func (); below.
19556 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19557 - <limits.h> exists even on freestanding compilers. */
19560 -# include <limits.h>
19562 -# include <assert.h>
19566 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
19567 +$as_echo_n "checking for usconfig in -lmpc... " >&6; }
19568 +if ${ac_cv_lib_mpc_usconfig+:} false; then :
19569 + $as_echo_n "(cached) " >&6
19571 + ac_check_lib_save_LIBS=$LIBS
19572 +LIBS="-lmpc $LIBS"
19573 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 +/* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 @@ -16654,3722 +7947,2762 @@
19583 -/* The GNU C library defines this for functions which it implements
19584 - to always fail with ENOSYS. Some functions are actually named
19585 - something starting with __ and the normal name is an alias. */
19586 -#if defined __stub_$ac_func || defined __stub___$ac_func
19594 -return $ac_func ();
19595 +return usconfig ();
19600 -rm -f conftest.$ac_objext conftest$ac_exeext
19601 -if { (ac_try="$ac_link"
19602 -case "(($ac_try" in
19603 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 - *) ac_try_echo=$ac_try;;
19606 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 - (eval "$ac_link") 2>conftest.er1
19609 - grep -v '^ *+' conftest.er1 >conftest.err
19610 - rm -f conftest.er1
19611 - cat conftest.err >&5
19612 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 - (exit $ac_status); } && {
19614 - test -z "$ac_c_werror_flag" ||
19615 - test ! -s conftest.err
19616 - } && test -s conftest$ac_exeext &&
19617 - $as_test_x conftest$ac_exeext; then
19618 - eval "$as_ac_var=yes"
19619 +if ac_fn_c_try_link "$LINENO"; then :
19620 + ac_cv_lib_mpc_usconfig=yes
19622 - echo "$as_me: failed program was:" >&5
19623 -sed 's/^/| /' conftest.$ac_ext >&5
19625 - eval "$as_ac_var=no"
19626 + ac_cv_lib_mpc_usconfig=no
19628 +rm -f core conftest.err conftest.$ac_objext \
19629 + conftest$ac_exeext conftest.$ac_ext
19630 +LIBS=$ac_check_lib_save_LIBS
19632 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
19633 +$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
19634 +if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
19635 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19637 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638 - conftest$ac_exeext conftest.$ac_ext
19639 + LIBS="$LIBS -lmpc"
19640 + THREADOBJ="Python/thread.o"
19641 + USE_THREAD_MODULE=""
19643 -ac_res=`eval echo '${'$as_ac_var'}'`
19644 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 -echo "${ECHO_T}$ac_res" >&6; }
19646 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19647 - cat >>confdefs.h <<_ACEOF
19648 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19650 - cat >conftest.$ac_ext <<_ACEOF
19653 -cat confdefs.h >>conftest.$ac_ext
19654 -cat >>conftest.$ac_ext <<_ACEOF
19657 + if test "$posix_threads" != "yes"; then
19658 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19659 +$as_echo_n "checking for thr_create in -lthread... " >&6; }
19660 +if ${ac_cv_lib_thread_thr_create+:} false; then :
19661 + $as_echo_n "(cached) " >&6
19663 + ac_check_lib_save_LIBS=$LIBS
19664 +LIBS="-lthread $LIBS"
19665 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19667 -#include <unistd.h>
19669 +/* Override any GCC internal prototype to avoid an error.
19670 + Use char because int might match the return type of a GCC
19671 + builtin and then its argument prototype would still apply. */
19672 +#ifdef __cplusplus
19675 +char thr_create ();
19680 +return thr_create ();
19685 -rm -f conftest.$ac_objext
19686 -if { (ac_try="$ac_compile"
19687 -case "(($ac_try" in
19688 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 - *) ac_try_echo=$ac_try;;
19691 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 - (eval "$ac_compile") 2>conftest.er1
19694 - grep -v '^ *+' conftest.er1 >conftest.err
19695 - rm -f conftest.er1
19696 - cat conftest.err >&5
19697 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 - (exit $ac_status); } && {
19699 - test -z "$ac_c_werror_flag" ||
19700 - test ! -s conftest.err
19701 - } && test -s conftest.$ac_objext; then
19702 +if ac_fn_c_try_link "$LINENO"; then :
19703 + ac_cv_lib_thread_thr_create=yes
19705 + ac_cv_lib_thread_thr_create=no
19707 +rm -f core conftest.err conftest.$ac_objext \
19708 + conftest$ac_exeext conftest.$ac_ext
19709 +LIBS=$ac_check_lib_save_LIBS
19711 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19712 +$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19713 +if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
19714 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19716 -cat >>confdefs.h <<\_ACEOF
19717 -#define SETPGRP_HAVE_ARG 1
19719 + LIBS="$LIBS -lthread"
19720 + THREADOBJ="Python/thread.o"
19721 + USE_THREAD_MODULE=""
19726 + if test "$USE_THREAD_MODULE" != "#"
19728 + # If the above checks didn't disable threads, (at least) OSF1
19729 + # needs this '-threads' argument during linking.
19730 + case $ac_sys_system in
19731 + OSF1) LDLAST=-threads;;
19736 +if test "$posix_threads" = "yes"; then
19737 + if test "$unistd_defines_pthreads" = "no"; then
19739 +$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
19743 + # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
19744 + case $ac_sys_system/$ac_sys_release in
19746 +$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
19750 +$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
19754 +$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
19759 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
19760 +$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
19761 + if ${ac_cv_pthread_system_supported+:} false; then :
19762 + $as_echo_n "(cached) " >&6
19764 - echo "$as_me: failed program was:" >&5
19765 -sed 's/^/| /' conftest.$ac_ext >&5
19766 + if test "$cross_compiling" = yes; then :
19767 + ac_cv_pthread_system_supported=no
19769 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 +/* end confdefs.h. */
19771 +#include <pthread.h>
19772 + void *foo(void *parm) {
19776 + pthread_attr_t attr;
19778 + if (pthread_attr_init(&attr)) exit(-1);
19779 + if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
19780 + if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
19784 +if ac_fn_c_try_run "$LINENO"; then :
19785 + ac_cv_pthread_system_supported=yes
19787 + ac_cv_pthread_system_supported=no
19789 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19790 + conftest.$ac_objext conftest.beam conftest.$ac_ext
19796 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
19798 +$as_echo "$ac_cv_pthread_system_supported" >&6; }
19799 + if test "$ac_cv_pthread_system_supported" = "yes"; then
19801 +$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
19804 + for ac_func in pthread_sigmask
19806 + ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
19807 +if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
19808 + cat >>confdefs.h <<_ACEOF
19809 +#define HAVE_PTHREAD_SIGMASK 1
19811 + case $ac_sys_system in
19814 +$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
19823 -for ac_func in gettimeofday
19825 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19826 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19827 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19828 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19829 - echo $ECHO_N "(cached) $ECHO_C" >&6
19831 - cat >conftest.$ac_ext <<_ACEOF
19834 -cat confdefs.h >>conftest.$ac_ext
19835 -cat >>conftest.$ac_ext <<_ACEOF
19836 -/* end confdefs.h. */
19837 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19838 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19839 -#define $ac_func innocuous_$ac_func
19841 -/* System header to define __stub macros and hopefully few prototypes,
19842 - which can conflict with char $ac_func (); below.
19843 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19844 - <limits.h> exists even on freestanding compilers. */
19845 +# Check for enable-ipv6
19848 -# include <limits.h>
19850 -# include <assert.h>
19852 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
19853 +$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
19854 +# Check whether --enable-ipv6 was given.
19855 +if test "${enable_ipv6+set}" = set; then :
19856 + enableval=$enable_ipv6; case "$enableval" in
19858 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19859 +$as_echo "no" >&6; }
19862 + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 +$as_echo "yes" >&6; }
19864 + $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
19872 -/* Override any GCC internal prototype to avoid an error.
19873 - Use char because int might match the return type of a GCC
19874 - builtin and then its argument prototype would still apply. */
19875 -#ifdef __cplusplus
19879 -/* The GNU C library defines this for functions which it implements
19880 - to always fail with ENOSYS. Some functions are actually named
19881 - something starting with __ and the normal name is an alias. */
19882 -#if defined __stub_$ac_func || defined __stub___$ac_func
19885 + if test "$cross_compiling" = yes; then :
19886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 +$as_echo "no" >&6; }
19893 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 +/* end confdefs.h. */
19895 + /* AF_INET6 available check */
19896 +#include <sys/types.h>
19897 +#include <sys/socket.h>
19900 -return $ac_func ();
19903 + if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
19910 -rm -f conftest.$ac_objext conftest$ac_exeext
19911 -if { (ac_try="$ac_link"
19912 -case "(($ac_try" in
19913 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 - *) ac_try_echo=$ac_try;;
19916 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 - (eval "$ac_link") 2>conftest.er1
19919 - grep -v '^ *+' conftest.er1 >conftest.err
19920 - rm -f conftest.er1
19921 - cat conftest.err >&5
19922 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 - (exit $ac_status); } && {
19924 - test -z "$ac_c_werror_flag" ||
19925 - test ! -s conftest.err
19926 - } && test -s conftest$ac_exeext &&
19927 - $as_test_x conftest$ac_exeext; then
19928 - eval "$as_ac_var=yes"
19929 +if ac_fn_c_try_run "$LINENO"; then :
19930 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19931 +$as_echo "yes" >&6; }
19934 - echo "$as_me: failed program was:" >&5
19935 -sed 's/^/| /' conftest.$ac_ext >&5
19937 - eval "$as_ac_var=no"
19938 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939 +$as_echo "no" >&6; }
19943 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19944 - conftest$ac_exeext conftest.$ac_ext
19945 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19946 + conftest.$ac_objext conftest.beam conftest.$ac_ext
19948 -ac_res=`eval echo '${'$as_ac_var'}'`
19949 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19950 -echo "${ECHO_T}$ac_res" >&6; }
19951 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19952 - cat >>confdefs.h <<_ACEOF
19953 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19955 - cat >conftest.$ac_ext <<_ACEOF
19958 -cat confdefs.h >>conftest.$ac_ext
19959 -cat >>conftest.$ac_ext <<_ACEOF
19962 +if test "$ipv6" = "yes"; then
19963 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
19964 +$as_echo_n "checking if RFC2553 API is available... " >&6; }
19965 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19967 -#include <sys/time.h>
19968 +#include <sys/types.h>
19969 +#include <netinet/in.h>
19973 -gettimeofday((struct timeval*)0,(struct timezone*)0);
19974 +struct sockaddr_in6 x;
19980 -rm -f conftest.$ac_objext
19981 -if { (ac_try="$ac_compile"
19982 -case "(($ac_try" in
19983 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 - *) ac_try_echo=$ac_try;;
19986 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 - (eval "$ac_compile") 2>conftest.er1
19989 - grep -v '^ *+' conftest.er1 >conftest.err
19990 - rm -f conftest.er1
19991 - cat conftest.err >&5
19992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 - (exit $ac_status); } && {
19994 - test -z "$ac_c_werror_flag" ||
19995 - test ! -s conftest.err
19996 - } && test -s conftest.$ac_objext; then
19998 +if ac_fn_c_try_compile "$LINENO"; then :
19999 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000 +$as_echo "yes" >&6; }
20003 - echo "$as_me: failed program was:" >&5
20004 -sed 's/^/| /' conftest.$ac_ext >&5
20007 -cat >>confdefs.h <<\_ACEOF
20008 -#define GETTIMEOFDAY_NO_TZ 1
20010 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011 +$as_echo "no" >&6; }
20014 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 +if test "$ipv6" = "yes"; then
20018 + $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
20022 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 -{ echo "$as_me:$LINENO: checking for major" >&5
20029 -echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20030 -cat >conftest.$ac_ext <<_ACEOF
20033 -cat confdefs.h >>conftest.$ac_ext
20034 -cat >>conftest.$ac_ext <<_ACEOF
20039 +if test "$ipv6" = "yes"; then
20040 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
20041 +$as_echo_n "checking ipv6 stack type... " >&6; }
20042 + for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
20046 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20049 -#if defined(MAJOR_IN_MKDEV)
20050 -#include <sys/mkdev.h>
20051 -#elif defined(MAJOR_IN_SYSMACROS)
20052 -#include <sys/sysmacros.h>
20054 -#include <sys/types.h>
20055 +#include <netinet/in.h>
20056 +#ifdef IPV6_INRIA_VERSION
20064 - makedev(major(0),minor(0));
20070 -rm -f conftest.$ac_objext conftest$ac_exeext
20071 -if { (ac_try="$ac_link"
20072 -case "(($ac_try" in
20073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 - *) ac_try_echo=$ac_try;;
20076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 - (eval "$ac_link") 2>conftest.er1
20079 - grep -v '^ *+' conftest.er1 >conftest.err
20080 - rm -f conftest.er1
20081 - cat conftest.err >&5
20082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 - (exit $ac_status); } && {
20084 - test -z "$ac_c_werror_flag" ||
20085 - test ! -s conftest.err
20086 - } && test -s conftest$ac_exeext &&
20087 - $as_test_x conftest$ac_exeext; then
20088 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089 + $EGREP "yes" >/dev/null 2>&1; then :
20096 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 +/* end confdefs.h. */
20099 -cat >>confdefs.h <<\_ACEOF
20100 -#define HAVE_DEVICE_MACROS 1
20101 +#include <netinet/in.h>
20106 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107 + $EGREP "yes" >/dev/null 2>&1; then :
20110 + ipv6libdir=/usr/local/v6/lib
20115 - { echo "$as_me:$LINENO: result: yes" >&5
20116 -echo "${ECHO_T}yes" >&6; }
20119 - echo "$as_me: failed program was:" >&5
20120 -sed 's/^/| /' conftest.$ac_ext >&5
20123 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 +/* end confdefs.h. */
20126 +#include <features.h>
20127 +#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
20131 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132 + $EGREP "yes" >/dev/null 2>&1; then :
20138 - { echo "$as_me:$LINENO: result: no" >&5
20139 -echo "${ECHO_T}no" >&6; }
20142 + if test -d /usr/inet6; then
20145 + ipv6libdir=/usr/inet6/lib
20146 + BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
20150 + if test -f /etc/netconfig; then
20151 + if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
20158 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 +/* end confdefs.h. */
20161 +#include <sys/param.h>
20162 +#ifdef _TOSHIBA_INET6
20166 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167 + $EGREP "yes" >/dev/null 2>&1; then :
20170 + ipv6libdir=/usr/local/v6/lib
20174 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20175 - conftest$ac_exeext conftest.$ac_ext
20178 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 +/* end confdefs.h. */
20181 -# On OSF/1 V5.1, getaddrinfo is available, but a define
20182 -# for [no]getaddrinfo in netdb.h.
20183 -{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20184 -echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20185 -cat >conftest.$ac_ext <<_ACEOF
20187 +#include </usr/local/v6/include/sys/v6config.h>
20192 -cat confdefs.h >>conftest.$ac_ext
20193 -cat >>conftest.$ac_ext <<_ACEOF
20194 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20195 + $EGREP "yes" >/dev/null 2>&1; then :
20198 + ipv6libdir=/usr/local/v6/lib;
20199 + BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
20205 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20208 -#include <sys/types.h>
20209 -#include <sys/socket.h>
20210 -#include <netdb.h>
20211 -#include <stdio.h>
20212 +#include <sys/param.h>
20213 +#ifdef _ZETA_MINAMI_INET6
20217 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20218 + $EGREP "yes" >/dev/null 2>&1; then :
20221 + ipv6libdir=/usr/local/v6/lib
20230 + if test "$ipv6type" != "unknown"; then
20234 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
20235 +$as_echo "$ipv6type" >&6; }
20238 -getaddrinfo(NULL, NULL, NULL, NULL);
20239 +if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
20240 + if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
20241 + LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
20242 + echo "using lib$ipv6lib"
20244 + if test $ipv6trylibc = "yes"; then
20245 + echo "using libc"
20247 + echo 'Fatal: no $ipv6lib library found. cannot continue.'
20248 + echo "You need to fetch lib$ipv6lib.a from appropriate"
20249 + echo 'ipv6 kit and compile beforehand.'
20259 -rm -f conftest.$ac_objext conftest$ac_exeext
20260 -if { (ac_try="$ac_link"
20261 -case "(($ac_try" in
20262 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 - *) ac_try_echo=$ac_try;;
20265 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 - (eval "$ac_link") 2>conftest.er1
20268 - grep -v '^ *+' conftest.er1 >conftest.err
20269 - rm -f conftest.er1
20270 - cat conftest.err >&5
20271 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 - (exit $ac_status); } && {
20273 - test -z "$ac_c_werror_flag" ||
20274 - test ! -s conftest.err
20275 - } && test -s conftest$ac_exeext &&
20276 - $as_test_x conftest$ac_exeext; then
20277 +# Check for --with-doc-strings
20278 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
20279 +$as_echo_n "checking for --with-doc-strings... " >&6; }
20281 -{ echo "$as_me:$LINENO: result: yes" >&5
20282 -echo "${ECHO_T}yes" >&6; }
20283 -{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20284 -echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20285 -if test "$cross_compiling" = yes; then
20286 - { echo "$as_me:$LINENO: result: buggy" >&5
20287 -echo "${ECHO_T}buggy" >&6; }
20288 -buggygetaddrinfo=yes
20290 - cat >conftest.$ac_ext <<_ACEOF
20293 -cat confdefs.h >>conftest.$ac_ext
20294 -cat >>conftest.$ac_ext <<_ACEOF
20295 -/* end confdefs.h. */
20296 +# Check whether --with-doc-strings was given.
20297 +if test "${with_doc_strings+set}" = set; then :
20298 + withval=$with_doc_strings;
20301 -#include <sys/types.h>
20302 -#include <netdb.h>
20303 -#include <string.h>
20304 -#include <sys/socket.h>
20305 -#include <netinet/in.h>
20309 - int passive, gaierr, inet4 = 0, inet6 = 0;
20310 - struct addrinfo hints, *ai, *aitop;
20311 - char straddr[INET6_ADDRSTRLEN], strport[16];
20312 +if test -z "$with_doc_strings"
20313 +then with_doc_strings="yes"
20315 +if test "$with_doc_strings" != "no"
20318 - for (passive = 0; passive <= 1; passive++) {
20319 - memset(&hints, 0, sizeof(hints));
20320 - hints.ai_family = AF_UNSPEC;
20321 - hints.ai_flags = passive ? AI_PASSIVE : 0;
20322 - hints.ai_socktype = SOCK_STREAM;
20323 - hints.ai_protocol = IPPROTO_TCP;
20324 - if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20325 - (void)gai_strerror(gaierr);
20328 - for (ai = aitop; ai; ai = ai->ai_next) {
20329 - if (ai->ai_addr == NULL ||
20330 - ai->ai_addrlen == 0 ||
20331 - getnameinfo(ai->ai_addr, ai->ai_addrlen,
20332 - straddr, sizeof(straddr), strport, sizeof(strport),
20333 - NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20336 - switch (ai->ai_family) {
20338 - if (strcmp(strport, "54321") != 0) {
20342 - if (strcmp(straddr, "0.0.0.0") != 0) {
20346 - if (strcmp(straddr, "127.0.0.1") != 0) {
20353 - if (strcmp(strport, "54321") != 0) {
20357 - if (strcmp(straddr, "::") != 0) {
20361 - if (strcmp(straddr, "::1") != 0) {
20371 - /* another family support? */
20376 +$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
20378 - if (!(inet4 == 0 || inet4 == 2))
20380 - if (!(inet6 == 0 || inet6 == 2))
20383 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
20384 +$as_echo "$with_doc_strings" >&6; }
20387 - freeaddrinfo(aitop);
20389 +# Check for Python-specific malloc support
20390 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
20391 +$as_echo_n "checking for --with-tsc... " >&6; }
20395 - freeaddrinfo(aitop);
20398 +# Check whether --with-tsc was given.
20399 +if test "${with_tsc+set}" = set; then :
20400 + withval=$with_tsc;
20401 +if test "$withval" != no
20405 -rm -f conftest$ac_exeext
20406 -if { (ac_try="$ac_link"
20407 -case "(($ac_try" in
20408 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 - *) ac_try_echo=$ac_try;;
20411 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 - (eval "$ac_link") 2>&5
20414 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416 - { (case "(($ac_try" in
20417 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 - *) ac_try_echo=$ac_try;;
20420 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 - (eval "$ac_try") 2>&5
20423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 - (exit $ac_status); }; }; then
20425 - { echo "$as_me:$LINENO: result: good" >&5
20426 -echo "${ECHO_T}good" >&6; }
20427 -buggygetaddrinfo=no
20428 +$as_echo "#define WITH_TSC 1" >>confdefs.h
20430 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20431 +$as_echo "yes" >&6; }
20432 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 +$as_echo "no" >&6; }
20436 - echo "$as_me: program exited with status $ac_status" >&5
20437 -echo "$as_me: failed program was:" >&5
20438 -sed 's/^/| /' conftest.$ac_ext >&5
20439 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 +$as_echo "no" >&6; }
20443 -( exit $ac_status )
20444 -{ echo "$as_me:$LINENO: result: buggy" >&5
20445 -echo "${ECHO_T}buggy" >&6; }
20446 -buggygetaddrinfo=yes
20448 +# Check for Python-specific malloc support
20449 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
20450 +$as_echo_n "checking for --with-pymalloc... " >&6; }
20452 +# Check whether --with-pymalloc was given.
20453 +if test "${with_pymalloc+set}" = set; then :
20454 + withval=$with_pymalloc;
20458 +if test -z "$with_pymalloc"
20459 +then with_pymalloc="yes"
20461 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20462 +if test "$with_pymalloc" != "no"
20465 +$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
20468 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
20469 +$as_echo "$with_pymalloc" >&6; }
20471 +# Check for --with-wctype-functions
20472 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
20473 +$as_echo_n "checking for --with-wctype-functions... " >&6; }
20475 +# Check whether --with-wctype-functions was given.
20476 +if test "${with_wctype_functions+set}" = set; then :
20477 + withval=$with_wctype_functions;
20478 +if test "$withval" != no
20481 +$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
20483 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20484 +$as_echo "yes" >&6; }
20485 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20486 +$as_echo "no" >&6; }
20489 - echo "$as_me: failed program was:" >&5
20490 -sed 's/^/| /' conftest.$ac_ext >&5
20491 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 +$as_echo "no" >&6; }
20496 -{ echo "$as_me:$LINENO: result: no" >&5
20497 -echo "${ECHO_T}no" >&6; }
20498 -buggygetaddrinfo=yes
20499 +# -I${DLINCLDIR} is added to the compile rule for importdl.o
20503 +# the dlopen() function means we might want to use dynload_shlib.o. some
20504 +# platforms, such as AIX, have dlopen(), but don't want to use it.
20505 +for ac_func in dlopen
20507 + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20508 +if test "x$ac_cv_func_dlopen" = xyes; then :
20509 + cat >>confdefs.h <<_ACEOF
20510 +#define HAVE_DLOPEN 1
20516 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 - conftest$ac_exeext conftest.$ac_ext
20519 -if test "$buggygetaddrinfo" = "yes"; then
20520 - if test "$ipv6" = "yes"; then
20521 - echo 'Fatal: You must get working getaddrinfo() function.'
20522 - echo ' or you can specify "--disable-ipv6"'.
20524 +# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
20525 +# loading of modules.
20527 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
20528 +$as_echo_n "checking DYNLOADFILE... " >&6; }
20529 +if test -z "$DYNLOADFILE"
20531 + case $ac_sys_system/$ac_sys_release in
20532 + AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
20533 + if test "$ac_cv_func_dlopen" = yes
20534 + then DYNLOADFILE="dynload_shlib.o"
20535 + else DYNLOADFILE="dynload_aix.o"
20539 + BeOS*) DYNLOADFILE="dynload_beos.o";;
20540 + hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
20541 + # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
20542 + Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
20543 + atheos*) DYNLOADFILE="dynload_atheos.o";;
20545 + # use dynload_shlib.c and dlopen() if we have it; otherwise stub
20546 + # out any dynamic loading
20547 + if test "$ac_cv_func_dlopen" = yes
20548 + then DYNLOADFILE="dynload_shlib.o"
20549 + else DYNLOADFILE="dynload_stub.o"
20554 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
20555 +$as_echo "$DYNLOADFILE" >&6; }
20556 +if test "$DYNLOADFILE" != "dynload_stub.o"
20559 -cat >>confdefs.h <<\_ACEOF
20560 -#define HAVE_GETADDRINFO 1
20562 +$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
20566 -for ac_func in getnameinfo
20568 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 - echo $ECHO_N "(cached) $ECHO_C" >&6
20574 - cat >conftest.$ac_ext <<_ACEOF
20577 -cat confdefs.h >>conftest.$ac_ext
20578 -cat >>conftest.$ac_ext <<_ACEOF
20579 -/* end confdefs.h. */
20580 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582 -#define $ac_func innocuous_$ac_func
20583 +# MACHDEP_OBJS can be set to platform-specific object files needed by Python
20585 -/* System header to define __stub macros and hopefully few prototypes,
20586 - which can conflict with char $ac_func (); below.
20587 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20588 - <limits.h> exists even on freestanding compilers. */
20591 -# include <limits.h>
20593 -# include <assert.h>
20595 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
20596 +$as_echo_n "checking MACHDEP_OBJS... " >&6; }
20597 +if test -z "$MACHDEP_OBJS"
20599 + MACHDEP_OBJS=$extra_machdep_objs
20601 + MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
20603 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
20604 +$as_echo "MACHDEP_OBJS" >&6; }
20606 +# checks for library functions
20607 +for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
20608 + execv fork fpathconf ftime ftruncate \
20609 + gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
20610 + getpriority getpwent getspnam getspent getsid getwd \
20611 + kill killpg lchown lstat mkfifo mknod mktime \
20612 + mremap nice pathconf pause plock poll pthread_init \
20613 + putenv readlink realpath \
20614 + select setegid seteuid setgid \
20615 + setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
20616 + sigaction siginterrupt sigrelse strftime \
20617 + sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
20618 + truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
20620 + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20621 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20622 +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20623 + cat >>confdefs.h <<_ACEOF
20624 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20631 -/* Override any GCC internal prototype to avoid an error.
20632 - Use char because int might match the return type of a GCC
20633 - builtin and then its argument prototype would still apply. */
20634 -#ifdef __cplusplus
20638 -/* The GNU C library defines this for functions which it implements
20639 - to always fail with ENOSYS. Some functions are actually named
20640 - something starting with __ and the normal name is an alias. */
20641 -#if defined __stub_$ac_func || defined __stub___$ac_func
20645 +# For some functions, having a definition is not sufficient, since
20646 +# we want to take their address.
20647 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
20648 +$as_echo_n "checking for chroot... " >&6; }
20649 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 +/* end confdefs.h. */
20651 +#include <unistd.h>
20655 -return $ac_func ();
20661 -rm -f conftest.$ac_objext conftest$ac_exeext
20662 -if { (ac_try="$ac_link"
20663 -case "(($ac_try" in
20664 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 - *) ac_try_echo=$ac_try;;
20667 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 - (eval "$ac_link") 2>conftest.er1
20670 - grep -v '^ *+' conftest.er1 >conftest.err
20671 - rm -f conftest.er1
20672 - cat conftest.err >&5
20673 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 - (exit $ac_status); } && {
20675 - test -z "$ac_c_werror_flag" ||
20676 - test ! -s conftest.err
20677 - } && test -s conftest$ac_exeext &&
20678 - $as_test_x conftest$ac_exeext; then
20679 - eval "$as_ac_var=yes"
20680 +if ac_fn_c_try_compile "$LINENO"; then :
20682 +$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
20684 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20685 +$as_echo "yes" >&6; }
20687 - echo "$as_me: failed program was:" >&5
20688 -sed 's/^/| /' conftest.$ac_ext >&5
20689 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20690 +$as_echo "no" >&6; }
20692 - eval "$as_ac_var=no"
20694 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
20696 +$as_echo_n "checking for link... " >&6; }
20697 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20698 +/* end confdefs.h. */
20699 +#include <unistd.h>
20708 +if ac_fn_c_try_compile "$LINENO"; then :
20710 +$as_echo "#define HAVE_LINK 1" >>confdefs.h
20712 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20713 +$as_echo "yes" >&6; }
20715 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20716 +$as_echo "no" >&6; }
20718 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 - conftest$ac_exeext conftest.$ac_ext
20721 -ac_res=`eval echo '${'$as_ac_var'}'`
20722 - { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 -echo "${ECHO_T}$ac_res" >&6; }
20724 -if test `eval echo '${'$as_ac_var'}'` = yes; then
20725 - cat >>confdefs.h <<_ACEOF
20726 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20727 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
20729 +$as_echo_n "checking for symlink... " >&6; }
20730 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 +/* end confdefs.h. */
20732 +#include <unistd.h>
20741 +if ac_fn_c_try_compile "$LINENO"; then :
20743 +$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
20745 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20746 +$as_echo "yes" >&6; }
20748 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20749 +$as_echo "no" >&6; }
20753 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
20755 +$as_echo_n "checking for fchdir... " >&6; }
20756 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 +/* end confdefs.h. */
20758 +#include <unistd.h>
20767 +if ac_fn_c_try_compile "$LINENO"; then :
20769 +$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
20771 -# checks for structures
20772 -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20773 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20774 -if test "${ac_cv_header_time+set}" = set; then
20775 - echo $ECHO_N "(cached) $ECHO_C" >&6
20776 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20777 +$as_echo "yes" >&6; }
20779 - cat >conftest.$ac_ext <<_ACEOF
20782 -cat confdefs.h >>conftest.$ac_ext
20783 -cat >>conftest.$ac_ext <<_ACEOF
20784 -/* end confdefs.h. */
20785 -#include <sys/types.h>
20786 -#include <sys/time.h>
20788 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20789 +$as_echo "no" >&6; }
20792 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
20794 +$as_echo_n "checking for fsync... " >&6; }
20795 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796 +/* end confdefs.h. */
20797 +#include <unistd.h>
20801 -if ((struct tm *) 0)
20808 -rm -f conftest.$ac_objext
20809 -if { (ac_try="$ac_compile"
20810 -case "(($ac_try" in
20811 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 - *) ac_try_echo=$ac_try;;
20814 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 - (eval "$ac_compile") 2>conftest.er1
20817 - grep -v '^ *+' conftest.er1 >conftest.err
20818 - rm -f conftest.er1
20819 - cat conftest.err >&5
20820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 - (exit $ac_status); } && {
20822 - test -z "$ac_c_werror_flag" ||
20823 - test ! -s conftest.err
20824 - } && test -s conftest.$ac_objext; then
20825 - ac_cv_header_time=yes
20826 +if ac_fn_c_try_compile "$LINENO"; then :
20828 +$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
20830 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20831 +$as_echo "yes" >&6; }
20833 - echo "$as_me: failed program was:" >&5
20834 -sed 's/^/| /' conftest.$ac_ext >&5
20835 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20836 +$as_echo "no" >&6; }
20838 - ac_cv_header_time=no
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20844 -echo "${ECHO_T}$ac_cv_header_time" >&6; }
20845 -if test $ac_cv_header_time = yes; then
20847 -cat >>confdefs.h <<\_ACEOF
20848 -#define TIME_WITH_SYS_TIME 1
20849 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
20850 +$as_echo_n "checking for fdatasync... " >&6; }
20851 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 +/* end confdefs.h. */
20853 +#include <unistd.h>
20862 +if ac_fn_c_try_compile "$LINENO"; then :
20865 +$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
20867 -{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20868 -echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20869 -if test "${ac_cv_struct_tm+set}" = set; then
20870 - echo $ECHO_N "(cached) $ECHO_C" >&6
20871 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20872 +$as_echo "yes" >&6; }
20874 - cat >conftest.$ac_ext <<_ACEOF
20877 -cat confdefs.h >>conftest.$ac_ext
20878 -cat >>conftest.$ac_ext <<_ACEOF
20879 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 +$as_echo "no" >&6; }
20883 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 +# On some systems (eg. FreeBSD 5), we would find a definition of the
20886 +# functions ctermid_r, setgroups in the library, but no prototype
20887 +# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
20888 +# address to avoid compiler warnings and potential miscompilations
20889 +# because of the missing prototypes.
20891 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
20892 +$as_echo_n "checking for ctermid_r... " >&6; }
20893 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20895 -#include <sys/types.h>
20898 +#include "confdefs.h"
20899 +#include <stdio.h>
20905 - int *p = &tm.tm_sec;
20907 +void* p = ctermid_r
20912 -rm -f conftest.$ac_objext
20913 -if { (ac_try="$ac_compile"
20914 -case "(($ac_try" in
20915 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 - *) ac_try_echo=$ac_try;;
20918 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 - (eval "$ac_compile") 2>conftest.er1
20921 - grep -v '^ *+' conftest.er1 >conftest.err
20922 - rm -f conftest.er1
20923 - cat conftest.err >&5
20924 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 - (exit $ac_status); } && {
20926 - test -z "$ac_c_werror_flag" ||
20927 - test ! -s conftest.err
20928 - } && test -s conftest.$ac_objext; then
20929 - ac_cv_struct_tm=time.h
20931 - echo "$as_me: failed program was:" >&5
20932 -sed 's/^/| /' conftest.$ac_ext >&5
20934 - ac_cv_struct_tm=sys/time.h
20936 +if ac_fn_c_try_compile "$LINENO"; then :
20938 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20941 -echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20942 -if test $ac_cv_struct_tm = sys/time.h; then
20943 +$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
20945 -cat >>confdefs.h <<\_ACEOF
20946 -#define TM_IN_SYS_TIME 1
20948 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20949 +$as_echo "yes" >&6; }
20951 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20952 +$as_echo "no" >&6; }
20955 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 -{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20958 -echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20959 -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20960 - echo $ECHO_N "(cached) $ECHO_C" >&6
20962 - cat >conftest.$ac_ext <<_ACEOF
20965 -cat confdefs.h >>conftest.$ac_ext
20966 -cat >>conftest.$ac_ext <<_ACEOF
20967 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
20968 +$as_echo_n "checking for flock... " >&6; }
20969 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971 -#include <sys/types.h>
20972 -#include <$ac_cv_struct_tm>
20974 +#include "confdefs.h"
20975 +#include <sys/file.h>
20980 -static struct tm ac_aggr;
20981 -if (ac_aggr.tm_zone)
20988 -rm -f conftest.$ac_objext
20989 -if { (ac_try="$ac_compile"
20990 -case "(($ac_try" in
20991 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 - *) ac_try_echo=$ac_try;;
20994 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 - (eval "$ac_compile") 2>conftest.er1
20997 - grep -v '^ *+' conftest.er1 >conftest.err
20998 - rm -f conftest.er1
20999 - cat conftest.err >&5
21000 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 - (exit $ac_status); } && {
21002 - test -z "$ac_c_werror_flag" ||
21003 - test ! -s conftest.err
21004 - } && test -s conftest.$ac_objext; then
21005 - ac_cv_member_struct_tm_tm_zone=yes
21006 +if ac_fn_c_try_compile "$LINENO"; then :
21008 +$as_echo "#define HAVE_FLOCK 1" >>confdefs.h
21010 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21011 +$as_echo "yes" >&6; }
21013 - echo "$as_me: failed program was:" >&5
21014 -sed 's/^/| /' conftest.$ac_ext >&5
21015 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 +$as_echo "no" >&6; }
21018 - cat >conftest.$ac_ext <<_ACEOF
21021 -cat confdefs.h >>conftest.$ac_ext
21022 -cat >>conftest.$ac_ext <<_ACEOF
21024 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
21027 +$as_echo_n "checking for getpagesize... " >&6; }
21028 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030 -#include <sys/types.h>
21031 -#include <$ac_cv_struct_tm>
21033 +#include "confdefs.h"
21034 +#include <unistd.h>
21039 -static struct tm ac_aggr;
21040 -if (sizeof ac_aggr.tm_zone)
21042 +void* p = getpagesize
21047 -rm -f conftest.$ac_objext
21048 -if { (ac_try="$ac_compile"
21049 -case "(($ac_try" in
21050 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 - *) ac_try_echo=$ac_try;;
21053 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 - (eval "$ac_compile") 2>conftest.er1
21056 - grep -v '^ *+' conftest.er1 >conftest.err
21057 - rm -f conftest.er1
21058 - cat conftest.err >&5
21059 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 - (exit $ac_status); } && {
21061 - test -z "$ac_c_werror_flag" ||
21062 - test ! -s conftest.err
21063 - } && test -s conftest.$ac_objext; then
21064 - ac_cv_member_struct_tm_tm_zone=yes
21066 - echo "$as_me: failed program was:" >&5
21067 -sed 's/^/| /' conftest.$ac_ext >&5
21068 +if ac_fn_c_try_compile "$LINENO"; then :
21070 - ac_cv_member_struct_tm_tm_zone=no
21072 +$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
21074 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21076 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 +$as_echo "yes" >&6; }
21079 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21080 +$as_echo "no" >&6; }
21082 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21085 -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21086 -if test $ac_cv_member_struct_tm_tm_zone = yes; then
21088 -cat >>confdefs.h <<_ACEOF
21089 -#define HAVE_STRUCT_TM_TM_ZONE 1
21091 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 +for ac_prog in true
21095 + # Extract the first word of "$ac_prog", so it can be a program name with args.
21096 +set dummy $ac_prog; ac_word=$2
21097 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21098 +$as_echo_n "checking for $ac_word... " >&6; }
21099 +if ${ac_cv_prog_TRUE+:} false; then :
21100 + $as_echo_n "(cached) " >&6
21102 + if test -n "$TRUE"; then
21103 + ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
21105 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21106 +for as_dir in $PATH
21109 + test -z "$as_dir" && as_dir=.
21110 + for ac_exec_ext in '' $ac_executable_extensions; do
21111 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21112 + ac_cv_prog_TRUE="$ac_prog"
21113 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21122 +TRUE=$ac_cv_prog_TRUE
21123 +if test -n "$TRUE"; then
21124 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
21125 +$as_echo "$TRUE" >&6; }
21127 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 +$as_echo "no" >&6; }
21131 -if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21133 -cat >>confdefs.h <<\_ACEOF
21134 -#define HAVE_TM_ZONE 1
21136 + test -n "$TRUE" && break
21138 +test -n "$TRUE" || TRUE="/bin/true"
21141 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
21142 +$as_echo_n "checking for inet_aton in -lc... " >&6; }
21143 +if ${ac_cv_lib_c_inet_aton+:} false; then :
21144 + $as_echo_n "(cached) " >&6
21146 - { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21147 -echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21148 -if test "${ac_cv_have_decl_tzname+set}" = set; then
21149 - echo $ECHO_N "(cached) $ECHO_C" >&6
21151 - cat >conftest.$ac_ext <<_ACEOF
21154 -cat confdefs.h >>conftest.$ac_ext
21155 -cat >>conftest.$ac_ext <<_ACEOF
21156 + ac_check_lib_save_LIBS=$LIBS
21158 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21162 +/* Override any GCC internal prototype to avoid an error.
21163 + Use char because int might match the return type of a GCC
21164 + builtin and then its argument prototype would still apply. */
21165 +#ifdef __cplusplus
21168 +char inet_aton ();
21176 +return inet_aton ();
21181 -rm -f conftest.$ac_objext
21182 -if { (ac_try="$ac_compile"
21183 -case "(($ac_try" in
21184 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 - *) ac_try_echo=$ac_try;;
21187 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 - (eval "$ac_compile") 2>conftest.er1
21190 - grep -v '^ *+' conftest.er1 >conftest.err
21191 - rm -f conftest.er1
21192 - cat conftest.err >&5
21193 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 - (exit $ac_status); } && {
21195 - test -z "$ac_c_werror_flag" ||
21196 - test ! -s conftest.err
21197 - } && test -s conftest.$ac_objext; then
21198 - ac_cv_have_decl_tzname=yes
21199 +if ac_fn_c_try_link "$LINENO"; then :
21200 + ac_cv_lib_c_inet_aton=yes
21202 - echo "$as_me: failed program was:" >&5
21203 -sed 's/^/| /' conftest.$ac_ext >&5
21205 - ac_cv_have_decl_tzname=no
21206 + ac_cv_lib_c_inet_aton=no
21209 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210 +rm -f core conftest.err conftest.$ac_objext \
21211 + conftest$ac_exeext conftest.$ac_ext
21212 +LIBS=$ac_check_lib_save_LIBS
21214 -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21215 -echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21216 -if test $ac_cv_have_decl_tzname = yes; then
21218 -cat >>confdefs.h <<_ACEOF
21219 -#define HAVE_DECL_TZNAME 1
21223 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
21224 +$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
21225 +if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
21228 - cat >>confdefs.h <<_ACEOF
21229 -#define HAVE_DECL_TZNAME 0
21236 - { echo "$as_me:$LINENO: checking for tzname" >&5
21237 -echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21238 -if test "${ac_cv_var_tzname+set}" = set; then
21239 - echo $ECHO_N "(cached) $ECHO_C" >&6
21240 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
21241 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
21242 +if ${ac_cv_lib_resolv_inet_aton+:} false; then :
21243 + $as_echo_n "(cached) " >&6
21245 - cat >conftest.$ac_ext <<_ACEOF
21248 -cat confdefs.h >>conftest.$ac_ext
21249 -cat >>conftest.$ac_ext <<_ACEOF
21250 + ac_check_lib_save_LIBS=$LIBS
21251 +LIBS="-lresolv $LIBS"
21252 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21255 -#if !HAVE_DECL_TZNAME
21256 -extern char *tzname[];
21259 +/* Override any GCC internal prototype to avoid an error.
21260 + Use char because int might match the return type of a GCC
21261 + builtin and then its argument prototype would still apply. */
21262 +#ifdef __cplusplus
21265 +char inet_aton ();
21269 -return tzname[0][0];
21270 +return inet_aton ();
21275 -rm -f conftest.$ac_objext conftest$ac_exeext
21276 -if { (ac_try="$ac_link"
21277 -case "(($ac_try" in
21278 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 - *) ac_try_echo=$ac_try;;
21281 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 - (eval "$ac_link") 2>conftest.er1
21284 - grep -v '^ *+' conftest.er1 >conftest.err
21285 - rm -f conftest.er1
21286 - cat conftest.err >&5
21287 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 - (exit $ac_status); } && {
21289 - test -z "$ac_c_werror_flag" ||
21290 - test ! -s conftest.err
21291 - } && test -s conftest$ac_exeext &&
21292 - $as_test_x conftest$ac_exeext; then
21293 - ac_cv_var_tzname=yes
21294 +if ac_fn_c_try_link "$LINENO"; then :
21295 + ac_cv_lib_resolv_inet_aton=yes
21297 - echo "$as_me: failed program was:" >&5
21298 -sed 's/^/| /' conftest.$ac_ext >&5
21300 - ac_cv_var_tzname=no
21301 + ac_cv_lib_resolv_inet_aton=no
21303 +rm -f core conftest.err conftest.$ac_objext \
21304 + conftest$ac_exeext conftest.$ac_ext
21305 +LIBS=$ac_check_lib_save_LIBS
21307 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
21308 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
21309 +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
21310 + cat >>confdefs.h <<_ACEOF
21311 +#define HAVE_LIBRESOLV 1
21314 + LIBS="-lresolv $LIBS"
21316 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21317 - conftest$ac_exeext conftest.$ac_ext
21319 -{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21320 -echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21321 - if test $ac_cv_var_tzname = yes; then
21323 -cat >>confdefs.h <<\_ACEOF
21324 -#define HAVE_TZNAME 1
21330 -{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21331 -echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21332 -if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21333 - echo $ECHO_N "(cached) $ECHO_C" >&6
21335 - cat >conftest.$ac_ext <<_ACEOF
21338 -cat confdefs.h >>conftest.$ac_ext
21339 -cat >>conftest.$ac_ext <<_ACEOF
21340 -/* end confdefs.h. */
21341 -$ac_includes_default
21345 -static struct stat ac_aggr;
21346 -if (ac_aggr.st_rdev)
21352 -rm -f conftest.$ac_objext
21353 -if { (ac_try="$ac_compile"
21354 -case "(($ac_try" in
21355 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 - *) ac_try_echo=$ac_try;;
21358 +case $ac_sys_system/$ac_sys_release in
21360 + _CUR_CFLAGS="${CFLAGS}"
21361 + _CUR_LDFLAGS="${LDFLAGS}"
21362 + CFLAGS="${CFLAGS} -Wl,-search_paths_first"
21363 + LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
21366 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 - (eval "$ac_compile") 2>conftest.er1
21369 - grep -v '^ *+' conftest.er1 >conftest.err
21370 - rm -f conftest.er1
21371 - cat conftest.err >&5
21372 - 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_member_struct_stat_st_rdev=yes
21379 - echo "$as_me: failed program was:" >&5
21380 -sed 's/^/| /' conftest.$ac_ext >&5
21382 - cat >conftest.$ac_ext <<_ACEOF
21385 -cat confdefs.h >>conftest.$ac_ext
21386 -cat >>conftest.$ac_ext <<_ACEOF
21387 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
21388 +$as_echo_n "checking for inflateCopy in -lz... " >&6; }
21389 +if ${ac_cv_lib_z_inflateCopy+:} false; then :
21390 + $as_echo_n "(cached) " >&6
21392 + ac_check_lib_save_LIBS=$LIBS
21394 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396 -$ac_includes_default
21398 +/* Override any GCC internal prototype to avoid an error.
21399 + Use char because int might match the return type of a GCC
21400 + builtin and then its argument prototype would still apply. */
21401 +#ifdef __cplusplus
21404 +char inflateCopy ();
21408 -static struct stat ac_aggr;
21409 -if (sizeof ac_aggr.st_rdev)
21411 +return inflateCopy ();
21416 -rm -f conftest.$ac_objext
21417 -if { (ac_try="$ac_compile"
21418 -case "(($ac_try" in
21419 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 - *) ac_try_echo=$ac_try;;
21422 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 - (eval "$ac_compile") 2>conftest.er1
21425 - grep -v '^ *+' conftest.er1 >conftest.err
21426 - rm -f conftest.er1
21427 - cat conftest.err >&5
21428 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 - (exit $ac_status); } && {
21430 - test -z "$ac_c_werror_flag" ||
21431 - test ! -s conftest.err
21432 - } && test -s conftest.$ac_objext; then
21433 - ac_cv_member_struct_stat_st_rdev=yes
21434 +if ac_fn_c_try_link "$LINENO"; then :
21435 + ac_cv_lib_z_inflateCopy=yes
21437 - echo "$as_me: failed program was:" >&5
21438 -sed 's/^/| /' conftest.$ac_ext >&5
21440 - ac_cv_member_struct_stat_st_rdev=no
21441 + ac_cv_lib_z_inflateCopy=no
21444 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 +rm -f core conftest.err conftest.$ac_objext \
21446 + conftest$ac_exeext conftest.$ac_ext
21447 +LIBS=$ac_check_lib_save_LIBS
21449 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
21450 +$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
21451 +if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
21453 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21456 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21457 -if test $ac_cv_member_struct_stat_st_rdev = yes; then
21458 +$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
21460 -cat >>confdefs.h <<_ACEOF
21461 -#define HAVE_STRUCT_STAT_ST_RDEV 1
21467 +case $ac_sys_system/$ac_sys_release in
21469 + CFLAGS="${_CUR_CFLAGS}"
21470 + LDFLAGS="${_CUR_LDFLAGS}"
21474 -{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21475 -echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21476 -if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21477 - echo $ECHO_N "(cached) $ECHO_C" >&6
21479 - cat >conftest.$ac_ext <<_ACEOF
21482 -cat confdefs.h >>conftest.$ac_ext
21483 -cat >>conftest.$ac_ext <<_ACEOF
21484 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
21485 +$as_echo_n "checking for hstrerror... " >&6; }
21486 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21488 -$ac_includes_default
21490 +#include "confdefs.h"
21491 +#include <netdb.h>
21496 -static struct stat ac_aggr;
21497 -if (ac_aggr.st_blksize)
21499 +void* p = hstrerror; hstrerror(0)
21504 -rm -f conftest.$ac_objext
21505 -if { (ac_try="$ac_compile"
21506 -case "(($ac_try" in
21507 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 - *) ac_try_echo=$ac_try;;
21510 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 - (eval "$ac_compile") 2>conftest.er1
21513 - grep -v '^ *+' conftest.er1 >conftest.err
21514 - rm -f conftest.er1
21515 - cat conftest.err >&5
21516 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 - (exit $ac_status); } && {
21518 - test -z "$ac_c_werror_flag" ||
21519 - test ! -s conftest.err
21520 - } && test -s conftest.$ac_objext; then
21521 - ac_cv_member_struct_stat_st_blksize=yes
21522 +if ac_fn_c_try_link "$LINENO"; then :
21524 +$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
21526 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21527 +$as_echo "yes" >&6; }
21529 - echo "$as_me: failed program was:" >&5
21530 -sed 's/^/| /' conftest.$ac_ext >&5
21531 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21532 +$as_echo "no" >&6; }
21534 - cat >conftest.$ac_ext <<_ACEOF
21537 -cat confdefs.h >>conftest.$ac_ext
21538 -cat >>conftest.$ac_ext <<_ACEOF
21540 +rm -f core conftest.err conftest.$ac_objext \
21541 + conftest$ac_exeext conftest.$ac_ext
21543 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21544 +$as_echo_n "checking for inet_aton... " >&6; }
21545 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21547 -$ac_includes_default
21549 +#include "confdefs.h"
21550 +#include <sys/types.h>
21551 +#include <sys/socket.h>
21552 +#include <netinet/in.h>
21553 +#include <arpa/inet.h>
21558 -static struct stat ac_aggr;
21559 -if (sizeof ac_aggr.st_blksize)
21561 +void* p = inet_aton;inet_aton(0,0)
21566 -rm -f conftest.$ac_objext
21567 -if { (ac_try="$ac_compile"
21568 -case "(($ac_try" in
21569 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 - *) ac_try_echo=$ac_try;;
21572 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 - (eval "$ac_compile") 2>conftest.er1
21575 - grep -v '^ *+' conftest.er1 >conftest.err
21576 - rm -f conftest.er1
21577 - cat conftest.err >&5
21578 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 - (exit $ac_status); } && {
21580 - test -z "$ac_c_werror_flag" ||
21581 - test ! -s conftest.err
21582 - } && test -s conftest.$ac_objext; then
21583 - ac_cv_member_struct_stat_st_blksize=yes
21585 - echo "$as_me: failed program was:" >&5
21586 -sed 's/^/| /' conftest.$ac_ext >&5
21587 +if ac_fn_c_try_link "$LINENO"; then :
21589 - ac_cv_member_struct_stat_st_blksize=no
21591 +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
21593 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21596 +$as_echo "yes" >&6; }
21598 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 +$as_echo "no" >&6; }
21601 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21604 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21605 -if test $ac_cv_member_struct_stat_st_blksize = yes; then
21607 -cat >>confdefs.h <<_ACEOF
21608 -#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21610 +rm -f core conftest.err conftest.$ac_objext \
21611 + conftest$ac_exeext conftest.$ac_ext
21613 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21614 +$as_echo_n "checking for inet_pton... " >&6; }
21615 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 +/* end confdefs.h. */
21619 +#include "confdefs.h"
21620 +#include <sys/types.h>
21621 +#include <sys/socket.h>
21622 +#include <netinet/in.h>
21623 +#include <arpa/inet.h>
21625 -{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21626 -echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21627 -if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21628 - echo $ECHO_N "(cached) $ECHO_C" >&6
21630 - cat >conftest.$ac_ext <<_ACEOF
21633 -cat confdefs.h >>conftest.$ac_ext
21634 -cat >>conftest.$ac_ext <<_ACEOF
21635 -/* end confdefs.h. */
21636 -$ac_includes_default
21640 -static struct stat ac_aggr;
21641 -if (ac_aggr.st_flags)
21643 +void* p = inet_pton
21648 -rm -f conftest.$ac_objext
21649 -if { (ac_try="$ac_compile"
21650 -case "(($ac_try" in
21651 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 - *) ac_try_echo=$ac_try;;
21654 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 - (eval "$ac_compile") 2>conftest.er1
21657 - grep -v '^ *+' conftest.er1 >conftest.err
21658 - rm -f conftest.er1
21659 - cat conftest.err >&5
21660 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 - (exit $ac_status); } && {
21662 - test -z "$ac_c_werror_flag" ||
21663 - test ! -s conftest.err
21664 - } && test -s conftest.$ac_objext; then
21665 - ac_cv_member_struct_stat_st_flags=yes
21666 +if ac_fn_c_try_compile "$LINENO"; then :
21668 +$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
21670 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21671 +$as_echo "yes" >&6; }
21673 - echo "$as_me: failed program was:" >&5
21674 -sed 's/^/| /' conftest.$ac_ext >&5
21675 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 +$as_echo "no" >&6; }
21678 - cat >conftest.$ac_ext <<_ACEOF
21681 -cat confdefs.h >>conftest.$ac_ext
21682 -cat >>conftest.$ac_ext <<_ACEOF
21684 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 +# On some systems, setgroups is in unistd.h, on others, in grp.h
21687 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
21688 +$as_echo_n "checking for setgroups... " >&6; }
21689 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690 /* end confdefs.h. */
21691 -$ac_includes_default
21693 +#include "confdefs.h"
21694 +#include <unistd.h>
21702 -static struct stat ac_aggr;
21703 -if (sizeof ac_aggr.st_flags)
21705 +void* p = setgroups
21710 -rm -f conftest.$ac_objext
21711 -if { (ac_try="$ac_compile"
21712 -case "(($ac_try" in
21713 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 - *) ac_try_echo=$ac_try;;
21716 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 - (eval "$ac_compile") 2>conftest.er1
21719 - grep -v '^ *+' conftest.er1 >conftest.err
21720 - rm -f conftest.er1
21721 - cat conftest.err >&5
21722 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 - (exit $ac_status); } && {
21724 - test -z "$ac_c_werror_flag" ||
21725 - test ! -s conftest.err
21726 - } && test -s conftest.$ac_objext; then
21727 - ac_cv_member_struct_stat_st_flags=yes
21728 +if ac_fn_c_try_compile "$LINENO"; then :
21730 +$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
21732 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21733 +$as_echo "yes" >&6; }
21735 - echo "$as_me: failed program was:" >&5
21736 -sed 's/^/| /' conftest.$ac_ext >&5
21737 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 +$as_echo "no" >&6; }
21740 - ac_cv_member_struct_stat_st_flags=no
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21749 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21750 -if test $ac_cv_member_struct_stat_st_flags = yes; then
21751 +# check for openpty and forkpty
21753 -cat >>confdefs.h <<_ACEOF
21754 -#define HAVE_STRUCT_STAT_ST_FLAGS 1
21755 +for ac_func in openpty
21757 + ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
21758 +if test "x$ac_cv_func_openpty" = xyes; then :
21759 + cat >>confdefs.h <<_ACEOF
21760 +#define HAVE_OPENPTY 1
21766 -{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21767 -echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21768 -if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21769 - echo $ECHO_N "(cached) $ECHO_C" >&6
21771 - cat >conftest.$ac_ext <<_ACEOF
21774 -cat confdefs.h >>conftest.$ac_ext
21775 -cat >>conftest.$ac_ext <<_ACEOF
21776 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21777 +$as_echo_n "checking for openpty in -lutil... " >&6; }
21778 +if ${ac_cv_lib_util_openpty+:} false; then :
21779 + $as_echo_n "(cached) " >&6
21781 + ac_check_lib_save_LIBS=$LIBS
21782 +LIBS="-lutil $LIBS"
21783 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21785 -$ac_includes_default
21787 +/* Override any GCC internal prototype to avoid an error.
21788 + Use char because int might match the return type of a GCC
21789 + builtin and then its argument prototype would still apply. */
21790 +#ifdef __cplusplus
21797 -static struct stat ac_aggr;
21798 -if (ac_aggr.st_gen)
21800 +return openpty ();
21805 -rm -f conftest.$ac_objext
21806 -if { (ac_try="$ac_compile"
21807 -case "(($ac_try" in
21808 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 - *) ac_try_echo=$ac_try;;
21811 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 - (eval "$ac_compile") 2>conftest.er1
21814 - grep -v '^ *+' conftest.er1 >conftest.err
21815 - rm -f conftest.er1
21816 - cat conftest.err >&5
21817 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 - (exit $ac_status); } && {
21819 - test -z "$ac_c_werror_flag" ||
21820 - test ! -s conftest.err
21821 - } && test -s conftest.$ac_objext; then
21822 - ac_cv_member_struct_stat_st_gen=yes
21823 +if ac_fn_c_try_link "$LINENO"; then :
21824 + ac_cv_lib_util_openpty=yes
21826 - echo "$as_me: failed program was:" >&5
21827 -sed 's/^/| /' conftest.$ac_ext >&5
21829 - cat >conftest.$ac_ext <<_ACEOF
21832 -cat confdefs.h >>conftest.$ac_ext
21833 -cat >>conftest.$ac_ext <<_ACEOF
21834 + ac_cv_lib_util_openpty=no
21836 +rm -f core conftest.err conftest.$ac_objext \
21837 + conftest$ac_exeext conftest.$ac_ext
21838 +LIBS=$ac_check_lib_save_LIBS
21840 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21841 +$as_echo "$ac_cv_lib_util_openpty" >&6; }
21842 +if test "x$ac_cv_lib_util_openpty" = xyes; then :
21843 + $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
21844 + LIBS="$LIBS -lutil"
21846 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
21847 +$as_echo_n "checking for openpty in -lbsd... " >&6; }
21848 +if ${ac_cv_lib_bsd_openpty+:} false; then :
21849 + $as_echo_n "(cached) " >&6
21851 + ac_check_lib_save_LIBS=$LIBS
21852 +LIBS="-lbsd $LIBS"
21853 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21855 -$ac_includes_default
21857 +/* Override any GCC internal prototype to avoid an error.
21858 + Use char because int might match the return type of a GCC
21859 + builtin and then its argument prototype would still apply. */
21860 +#ifdef __cplusplus
21867 -static struct stat ac_aggr;
21868 -if (sizeof ac_aggr.st_gen)
21870 +return openpty ();
21875 -rm -f conftest.$ac_objext
21876 -if { (ac_try="$ac_compile"
21877 -case "(($ac_try" in
21878 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 - *) ac_try_echo=$ac_try;;
21881 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 - (eval "$ac_compile") 2>conftest.er1
21884 - grep -v '^ *+' conftest.er1 >conftest.err
21885 - rm -f conftest.er1
21886 - cat conftest.err >&5
21887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 - (exit $ac_status); } && {
21889 - test -z "$ac_c_werror_flag" ||
21890 - test ! -s conftest.err
21891 - } && test -s conftest.$ac_objext; then
21892 - ac_cv_member_struct_stat_st_gen=yes
21893 +if ac_fn_c_try_link "$LINENO"; then :
21894 + ac_cv_lib_bsd_openpty=yes
21896 - echo "$as_me: failed program was:" >&5
21897 -sed 's/^/| /' conftest.$ac_ext >&5
21899 - ac_cv_member_struct_stat_st_gen=no
21900 + ac_cv_lib_bsd_openpty=no
21903 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 +rm -f core conftest.err conftest.$ac_objext \
21905 + conftest$ac_exeext conftest.$ac_ext
21906 +LIBS=$ac_check_lib_save_LIBS
21909 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
21911 +$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
21912 +if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
21913 + $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
21914 + LIBS="$LIBS -lbsd"
21916 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21917 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21918 -if test $ac_cv_member_struct_stat_st_gen = yes; then
21920 -cat >>confdefs.h <<_ACEOF
21921 -#define HAVE_STRUCT_STAT_ST_GEN 1
21930 -{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21931 -echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21932 -if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21933 - echo $ECHO_N "(cached) $ECHO_C" >&6
21935 - cat >conftest.$ac_ext <<_ACEOF
21937 +for ac_func in forkpty
21939 + ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
21940 +if test "x$ac_cv_func_forkpty" = xyes; then :
21941 + cat >>confdefs.h <<_ACEOF
21942 +#define HAVE_FORKPTY 1
21944 -cat confdefs.h >>conftest.$ac_ext
21945 -cat >>conftest.$ac_ext <<_ACEOF
21948 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
21949 +$as_echo_n "checking for forkpty in -lutil... " >&6; }
21950 +if ${ac_cv_lib_util_forkpty+:} false; then :
21951 + $as_echo_n "(cached) " >&6
21953 + ac_check_lib_save_LIBS=$LIBS
21954 +LIBS="-lutil $LIBS"
21955 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21957 -$ac_includes_default
21959 +/* Override any GCC internal prototype to avoid an error.
21960 + Use char because int might match the return type of a GCC
21961 + builtin and then its argument prototype would still apply. */
21962 +#ifdef __cplusplus
21969 -static struct stat ac_aggr;
21970 -if (ac_aggr.st_birthtime)
21972 +return forkpty ();
21977 -rm -f conftest.$ac_objext
21978 -if { (ac_try="$ac_compile"
21979 -case "(($ac_try" in
21980 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 - *) ac_try_echo=$ac_try;;
21983 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 - (eval "$ac_compile") 2>conftest.er1
21986 - grep -v '^ *+' conftest.er1 >conftest.err
21987 - rm -f conftest.er1
21988 - cat conftest.err >&5
21989 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 - (exit $ac_status); } && {
21991 - test -z "$ac_c_werror_flag" ||
21992 - test ! -s conftest.err
21993 - } && test -s conftest.$ac_objext; then
21994 - ac_cv_member_struct_stat_st_birthtime=yes
21995 +if ac_fn_c_try_link "$LINENO"; then :
21996 + ac_cv_lib_util_forkpty=yes
21998 - echo "$as_me: failed program was:" >&5
21999 -sed 's/^/| /' conftest.$ac_ext >&5
22001 - cat >conftest.$ac_ext <<_ACEOF
22004 -cat confdefs.h >>conftest.$ac_ext
22005 -cat >>conftest.$ac_ext <<_ACEOF
22006 + ac_cv_lib_util_forkpty=no
22008 +rm -f core conftest.err conftest.$ac_objext \
22009 + conftest$ac_exeext conftest.$ac_ext
22010 +LIBS=$ac_check_lib_save_LIBS
22012 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
22013 +$as_echo "$ac_cv_lib_util_forkpty" >&6; }
22014 +if test "x$ac_cv_lib_util_forkpty" = xyes; then :
22015 + $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
22016 + LIBS="$LIBS -lutil"
22018 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
22019 +$as_echo_n "checking for forkpty in -lbsd... " >&6; }
22020 +if ${ac_cv_lib_bsd_forkpty+:} false; then :
22021 + $as_echo_n "(cached) " >&6
22023 + ac_check_lib_save_LIBS=$LIBS
22024 +LIBS="-lbsd $LIBS"
22025 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 -$ac_includes_default
22029 +/* Override any GCC internal prototype to avoid an error.
22030 + Use char because int might match the return type of a GCC
22031 + builtin and then its argument prototype would still apply. */
22032 +#ifdef __cplusplus
22039 -static struct stat ac_aggr;
22040 -if (sizeof ac_aggr.st_birthtime)
22042 +return forkpty ();
22047 -rm -f conftest.$ac_objext
22048 -if { (ac_try="$ac_compile"
22049 -case "(($ac_try" in
22050 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 - *) ac_try_echo=$ac_try;;
22053 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 - (eval "$ac_compile") 2>conftest.er1
22056 - grep -v '^ *+' conftest.er1 >conftest.err
22057 - rm -f conftest.er1
22058 - cat conftest.err >&5
22059 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 - (exit $ac_status); } && {
22061 - test -z "$ac_c_werror_flag" ||
22062 - test ! -s conftest.err
22063 - } && test -s conftest.$ac_objext; then
22064 - ac_cv_member_struct_stat_st_birthtime=yes
22065 +if ac_fn_c_try_link "$LINENO"; then :
22066 + ac_cv_lib_bsd_forkpty=yes
22068 - echo "$as_me: failed program was:" >&5
22069 -sed 's/^/| /' conftest.$ac_ext >&5
22070 + ac_cv_lib_bsd_forkpty=no
22072 +rm -f core conftest.err conftest.$ac_objext \
22073 + conftest$ac_exeext conftest.$ac_ext
22074 +LIBS=$ac_check_lib_save_LIBS
22076 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
22077 +$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
22078 +if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
22079 + $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
22080 + LIBS="$LIBS -lbsd"
22091 +# check for long file support functions
22092 +for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
22094 + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22095 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22096 +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22097 + cat >>confdefs.h <<_ACEOF
22098 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22105 +ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
22106 +if test "x$ac_cv_func_dup2" = xyes; then :
22107 + $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22110 + case " $LIBOBJS " in
22111 + *" dup2.$ac_objext "* ) ;;
22112 + *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
22116 - ac_cv_member_struct_stat_st_birthtime=no
22119 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 +ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
22121 +if test "x$ac_cv_func_getcwd" = xyes; then :
22122 + $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
22125 + case " $LIBOBJS " in
22126 + *" getcwd.$ac_objext "* ) ;;
22127 + *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
22133 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 +ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
22135 +if test "x$ac_cv_func_strdup" = xyes; then :
22136 + $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
22139 + case " $LIBOBJS " in
22140 + *" strdup.$ac_objext "* ) ;;
22141 + *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
22146 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22147 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22148 -if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22150 -cat >>confdefs.h <<_ACEOF
22151 -#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22153 +ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
22154 +if test "x$ac_cv_func_strerror" = xyes; then :
22155 + $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
22158 + case " $LIBOBJS " in
22159 + *" strerror.$ac_objext "* ) ;;
22160 + *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
22166 -{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22167 -echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22168 -if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22169 - echo $ECHO_N "(cached) $ECHO_C" >&6
22170 +ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22171 +if test "x$ac_cv_func_memmove" = xyes; then :
22172 + $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
22175 - cat >conftest.$ac_ext <<_ACEOF
22177 + case " $LIBOBJS " in
22178 + *" memmove.$ac_objext "* ) ;;
22179 + *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
22186 +for ac_func in getpgrp
22188 + ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22189 +if test "x$ac_cv_func_getpgrp" = xyes; then :
22190 + cat >>confdefs.h <<_ACEOF
22191 +#define HAVE_GETPGRP 1
22193 -cat confdefs.h >>conftest.$ac_ext
22194 -cat >>conftest.$ac_ext <<_ACEOF
22195 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22197 -$ac_includes_default
22198 +#include <unistd.h>
22202 -static struct stat ac_aggr;
22203 -if (ac_aggr.st_blocks)
22210 -rm -f conftest.$ac_objext
22211 -if { (ac_try="$ac_compile"
22212 -case "(($ac_try" in
22213 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 - *) ac_try_echo=$ac_try;;
22216 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 - (eval "$ac_compile") 2>conftest.er1
22219 - grep -v '^ *+' conftest.er1 >conftest.err
22220 - rm -f conftest.er1
22221 - cat conftest.err >&5
22222 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 - (exit $ac_status); } && {
22224 - test -z "$ac_c_werror_flag" ||
22225 - test ! -s conftest.err
22226 - } && test -s conftest.$ac_objext; then
22227 - ac_cv_member_struct_stat_st_blocks=yes
22229 - echo "$as_me: failed program was:" >&5
22230 -sed 's/^/| /' conftest.$ac_ext >&5
22231 +if ac_fn_c_try_compile "$LINENO"; then :
22233 +$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22235 - cat >conftest.$ac_ext <<_ACEOF
22239 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 +for ac_func in setpgrp
22246 + ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22247 +if test "x$ac_cv_func_setpgrp" = xyes; then :
22248 + cat >>confdefs.h <<_ACEOF
22249 +#define HAVE_SETPGRP 1
22251 -cat confdefs.h >>conftest.$ac_ext
22252 -cat >>conftest.$ac_ext <<_ACEOF
22253 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22255 -$ac_includes_default
22256 +#include <unistd.h>
22260 -static struct stat ac_aggr;
22261 -if (sizeof ac_aggr.st_blocks)
22268 -rm -f conftest.$ac_objext
22269 -if { (ac_try="$ac_compile"
22270 -case "(($ac_try" in
22271 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 - *) ac_try_echo=$ac_try;;
22274 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 - (eval "$ac_compile") 2>conftest.er1
22277 - grep -v '^ *+' conftest.er1 >conftest.err
22278 - rm -f conftest.er1
22279 - cat conftest.err >&5
22280 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 - (exit $ac_status); } && {
22282 - test -z "$ac_c_werror_flag" ||
22283 - test ! -s conftest.err
22284 - } && test -s conftest.$ac_objext; then
22285 - ac_cv_member_struct_stat_st_blocks=yes
22287 - echo "$as_me: failed program was:" >&5
22288 -sed 's/^/| /' conftest.$ac_ext >&5
22289 +if ac_fn_c_try_compile "$LINENO"; then :
22291 - ac_cv_member_struct_stat_st_blocks=no
22293 +$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22295 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22301 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22302 -if test $ac_cv_member_struct_stat_st_blocks = yes; then
22304 -cat >>confdefs.h <<_ACEOF
22305 -#define HAVE_STRUCT_STAT_ST_BLOCKS 1
22309 -cat >>confdefs.h <<\_ACEOF
22310 -#define HAVE_ST_BLOCKS 1
22314 - case " $LIBOBJS " in
22315 - *" fileblocks.$ac_objext "* ) ;;
22316 - *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22319 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 -{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22327 -echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22328 -if test "${ac_cv_header_time_altzone+set}" = set; then
22329 - echo $ECHO_N "(cached) $ECHO_C" >&6
22331 - cat >conftest.$ac_ext <<_ACEOF
22333 +for ac_func in gettimeofday
22335 + ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22336 +if test "x$ac_cv_func_gettimeofday" = xyes; then :
22337 + cat >>confdefs.h <<_ACEOF
22338 +#define HAVE_GETTIMEOFDAY 1
22340 -cat confdefs.h >>conftest.$ac_ext
22341 -cat >>conftest.$ac_ext <<_ACEOF
22342 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22345 +#include <sys/time.h>
22350 +gettimeofday((struct timeval*)0,(struct timezone*)0);
22355 -rm -f conftest.$ac_objext
22356 -if { (ac_try="$ac_compile"
22357 -case "(($ac_try" in
22358 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 - *) ac_try_echo=$ac_try;;
22361 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 - (eval "$ac_compile") 2>conftest.er1
22364 - grep -v '^ *+' conftest.er1 >conftest.err
22365 - rm -f conftest.er1
22366 - cat conftest.err >&5
22367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 - (exit $ac_status); } && {
22369 - test -z "$ac_c_werror_flag" ||
22370 - test ! -s conftest.err
22371 - } && test -s conftest.$ac_objext; then
22372 - ac_cv_header_time_altzone=yes
22374 - echo "$as_me: failed program was:" >&5
22375 -sed 's/^/| /' conftest.$ac_ext >&5
22376 +if ac_fn_c_try_compile "$LINENO"; then :
22378 - ac_cv_header_time_altzone=no
22382 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 +$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
22386 -{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22387 -echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22388 -if test $ac_cv_header_time_altzone = yes; then
22390 -cat >>confdefs.h <<\_ACEOF
22391 -#define HAVE_ALTZONE 1
22394 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 -{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22401 -echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22402 -cat >conftest.$ac_ext <<_ACEOF
22405 -cat confdefs.h >>conftest.$ac_ext
22406 -cat >>conftest.$ac_ext <<_ACEOF
22408 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
22409 +$as_echo_n "checking for major... " >&6; }
22410 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22411 /* end confdefs.h. */
22413 +#if defined(MAJOR_IN_MKDEV)
22414 +#include <sys/mkdev.h>
22415 +#elif defined(MAJOR_IN_SYSMACROS)
22416 +#include <sys/sysmacros.h>
22418 #include <sys/types.h>
22419 -#include <sys/select.h>
22420 -#include <sys/time.h>
22428 + makedev(major(0),minor(0));
22434 -rm -f conftest.$ac_objext
22435 -if { (ac_try="$ac_compile"
22436 -case "(($ac_try" in
22437 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 - *) ac_try_echo=$ac_try;;
22440 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 - (eval "$ac_compile") 2>conftest.er1
22443 - grep -v '^ *+' conftest.er1 >conftest.err
22444 - rm -f conftest.er1
22445 - cat conftest.err >&5
22446 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 - (exit $ac_status); } && {
22448 - test -z "$ac_c_werror_flag" ||
22449 - test ! -s conftest.err
22450 - } && test -s conftest.$ac_objext; then
22451 +if ac_fn_c_try_link "$LINENO"; then :
22454 -cat >>confdefs.h <<\_ACEOF
22455 -#define SYS_SELECT_WITH_SYS_TIME 1
22457 +$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22459 - was_it_defined=yes
22460 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22461 +$as_echo "yes" >&6; }
22464 - echo "$as_me: failed program was:" >&5
22465 -sed 's/^/| /' conftest.$ac_ext >&5
22467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22468 +$as_echo "no" >&6; }
22471 +rm -f core conftest.err conftest.$ac_objext \
22472 + conftest$ac_exeext conftest.$ac_ext
22474 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 -{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
22476 -echo "${ECHO_T}$was_it_defined" >&6; }
22478 -{ echo "$as_me:$LINENO: checking for addrinfo" >&5
22479 -echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22480 -if test "${ac_cv_struct_addrinfo+set}" = set; then
22481 - echo $ECHO_N "(cached) $ECHO_C" >&6
22483 - cat >conftest.$ac_ext <<_ACEOF
22486 -cat confdefs.h >>conftest.$ac_ext
22487 -cat >>conftest.$ac_ext <<_ACEOF
22488 +# On OSF/1 V5.1, getaddrinfo is available, but a define
22489 +# for [no]getaddrinfo in netdb.h.
22490 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22491 +$as_echo_n "checking for getaddrinfo... " >&6; }
22492 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493 /* end confdefs.h. */
22495 -# include <netdb.h>
22496 +#include <sys/types.h>
22497 +#include <sys/socket.h>
22498 +#include <netdb.h>
22499 +#include <stdio.h>
22506 +getaddrinfo(NULL, NULL, NULL, NULL);
22512 -rm -f conftest.$ac_objext
22513 -if { (ac_try="$ac_compile"
22514 -case "(($ac_try" in
22515 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 - *) ac_try_echo=$ac_try;;
22518 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 - (eval "$ac_compile") 2>conftest.er1
22521 - grep -v '^ *+' conftest.er1 >conftest.err
22522 - rm -f conftest.er1
22523 - cat conftest.err >&5
22524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 - (exit $ac_status); } && {
22526 - test -z "$ac_c_werror_flag" ||
22527 - test ! -s conftest.err
22528 - } && test -s conftest.$ac_objext; then
22529 - ac_cv_struct_addrinfo=yes
22530 +if ac_fn_c_try_link "$LINENO"; then :
22532 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22533 +$as_echo "yes" >&6; }
22534 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
22535 +$as_echo_n "checking getaddrinfo bug... " >&6; }
22536 +if test "$cross_compiling" = yes; then :
22537 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
22538 +$as_echo "buggy" >&6; }
22539 +buggygetaddrinfo=yes
22541 - echo "$as_me: failed program was:" >&5
22542 -sed 's/^/| /' conftest.$ac_ext >&5
22543 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 +/* end confdefs.h. */
22546 - ac_cv_struct_addrinfo=no
22548 +#include <sys/types.h>
22549 +#include <netdb.h>
22550 +#include <string.h>
22551 +#include <sys/socket.h>
22552 +#include <netinet/in.h>
22554 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558 + int passive, gaierr, inet4 = 0, inet6 = 0;
22559 + struct addrinfo hints, *ai, *aitop;
22560 + char straddr[INET6_ADDRSTRLEN], strport[16];
22562 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22563 -echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22564 -if test $ac_cv_struct_addrinfo = yes; then
22565 + for (passive = 0; passive <= 1; passive++) {
22566 + memset(&hints, 0, sizeof(hints));
22567 + hints.ai_family = AF_UNSPEC;
22568 + hints.ai_flags = passive ? AI_PASSIVE : 0;
22569 + hints.ai_socktype = SOCK_STREAM;
22570 + hints.ai_protocol = IPPROTO_TCP;
22571 + if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22572 + (void)gai_strerror(gaierr);
22575 + for (ai = aitop; ai; ai = ai->ai_next) {
22576 + if (ai->ai_addr == NULL ||
22577 + ai->ai_addrlen == 0 ||
22578 + getnameinfo(ai->ai_addr, ai->ai_addrlen,
22579 + straddr, sizeof(straddr), strport, sizeof(strport),
22580 + NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22583 + switch (ai->ai_family) {
22585 + if (strcmp(strport, "54321") != 0) {
22589 + if (strcmp(straddr, "0.0.0.0") != 0) {
22593 + if (strcmp(straddr, "127.0.0.1") != 0) {
22600 + if (strcmp(strport, "54321") != 0) {
22604 + if (strcmp(straddr, "::") != 0) {
22608 + if (strcmp(straddr, "::1") != 0) {
22618 + /* another family support? */
22624 + if (!(inet4 == 0 || inet4 == 2))
22626 + if (!(inet6 == 0 || inet6 == 2))
22630 + freeaddrinfo(aitop);
22635 + freeaddrinfo(aitop);
22639 -cat >>confdefs.h <<\_ACEOF
22640 -#define HAVE_ADDRINFO 1
22643 +if ac_fn_c_try_run "$LINENO"; then :
22644 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
22645 +$as_echo "good" >&6; }
22646 +buggygetaddrinfo=no
22648 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
22649 +$as_echo "buggy" >&6; }
22650 +buggygetaddrinfo=yes
22652 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22653 + conftest.$ac_objext conftest.beam conftest.$ac_ext
22656 -{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22657 -echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22658 -if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22659 - echo $ECHO_N "(cached) $ECHO_C" >&6
22661 - cat >conftest.$ac_ext <<_ACEOF
22664 -cat confdefs.h >>conftest.$ac_ext
22665 -cat >>conftest.$ac_ext <<_ACEOF
22666 -/* end confdefs.h. */
22668 -# include <sys/types.h>
22669 -# include <sys/socket.h>
22673 -struct sockaddr_storage s
22678 -rm -f conftest.$ac_objext
22679 -if { (ac_try="$ac_compile"
22680 -case "(($ac_try" in
22681 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 - *) ac_try_echo=$ac_try;;
22684 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 - (eval "$ac_compile") 2>conftest.er1
22687 - grep -v '^ *+' conftest.er1 >conftest.err
22688 - rm -f conftest.er1
22689 - cat conftest.err >&5
22690 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 - (exit $ac_status); } && {
22692 - test -z "$ac_c_werror_flag" ||
22693 - test ! -s conftest.err
22694 - } && test -s conftest.$ac_objext; then
22695 - ac_cv_struct_sockaddr_storage=yes
22697 - echo "$as_me: failed program was:" >&5
22698 -sed 's/^/| /' conftest.$ac_ext >&5
22699 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22700 +$as_echo "no" >&6; }
22701 +buggygetaddrinfo=yes
22703 - ac_cv_struct_sockaddr_storage=no
22705 +rm -f core conftest.err conftest.$ac_objext \
22706 + conftest$ac_exeext conftest.$ac_ext
22708 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 +if test "$buggygetaddrinfo" = "yes"; then
22711 + if test "$ipv6" = "yes"; then
22712 + echo 'Fatal: You must get working getaddrinfo() function.'
22713 + echo ' or you can specify "--disable-ipv6"'.
22718 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22719 -echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22720 -if test $ac_cv_struct_sockaddr_storage = yes; then
22721 +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
22723 -cat >>confdefs.h <<\_ACEOF
22724 -#define HAVE_SOCKADDR_STORAGE 1
22726 +for ac_func in getnameinfo
22728 + ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
22729 +if test "x$ac_cv_func_getnameinfo" = xyes; then :
22730 + cat >>confdefs.h <<_ACEOF
22731 +#define HAVE_GETNAMEINFO 1
22736 -# checks for compiler characteristics
22740 -{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22741 -echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22742 -if test "${ac_cv_c_char_unsigned+set}" = set; then
22743 - echo $ECHO_N "(cached) $ECHO_C" >&6
22744 +# checks for structures
22745 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22746 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22747 +if ${ac_cv_header_time+:} false; then :
22748 + $as_echo_n "(cached) " >&6
22750 - cat >conftest.$ac_ext <<_ACEOF
22753 -cat confdefs.h >>conftest.$ac_ext
22754 -cat >>conftest.$ac_ext <<_ACEOF
22755 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756 /* end confdefs.h. */
22757 -$ac_includes_default
22758 +#include <sys/types.h>
22759 +#include <sys/time.h>
22765 -static int test_array [1 - 2 * !(((char) -1) < 0)];
22766 -test_array [0] = 0
22768 +if ((struct tm *) 0)
22774 -rm -f conftest.$ac_objext
22775 -if { (ac_try="$ac_compile"
22776 -case "(($ac_try" in
22777 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 - *) ac_try_echo=$ac_try;;
22780 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 - (eval "$ac_compile") 2>conftest.er1
22783 - grep -v '^ *+' conftest.er1 >conftest.err
22784 - rm -f conftest.er1
22785 - cat conftest.err >&5
22786 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 - (exit $ac_status); } && {
22788 - test -z "$ac_c_werror_flag" ||
22789 - test ! -s conftest.err
22790 - } && test -s conftest.$ac_objext; then
22791 - ac_cv_c_char_unsigned=no
22792 +if ac_fn_c_try_compile "$LINENO"; then :
22793 + ac_cv_header_time=yes
22795 - echo "$as_me: failed program was:" >&5
22796 -sed 's/^/| /' conftest.$ac_ext >&5
22798 - ac_cv_c_char_unsigned=yes
22799 + ac_cv_header_time=no
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804 -{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22805 -echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22806 -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22807 - cat >>confdefs.h <<\_ACEOF
22808 -#define __CHAR_UNSIGNED__ 1
22810 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22811 +$as_echo "$ac_cv_header_time" >&6; }
22812 +if test $ac_cv_header_time = yes; then
22814 +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22818 -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22819 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22820 -if test "${ac_cv_c_const+set}" = set; then
22821 - echo $ECHO_N "(cached) $ECHO_C" >&6
22822 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22823 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22824 +if ${ac_cv_struct_tm+:} false; then :
22825 + $as_echo_n "(cached) " >&6
22827 - cat >conftest.$ac_ext <<_ACEOF
22830 -cat confdefs.h >>conftest.$ac_ext
22831 -cat >>conftest.$ac_ext <<_ACEOF
22832 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22834 +#include <sys/types.h>
22840 -/* FIXME: Include the comments suggested by Paul. */
22841 -#ifndef __cplusplus
22842 - /* Ultrix mips cc rejects this. */
22843 - typedef int charset[2];
22844 - const charset cs;
22845 - /* SunOS 4.1.1 cc rejects this. */
22846 - char const *const *pcpcc;
22848 - /* NEC SVR4.0.2 mips cc rejects this. */
22849 - struct point {int x, y;};
22850 - static struct point const zero = {0,0};
22851 - /* AIX XL C 1.02.0.0 rejects this.
22852 - It does not let you subtract one const X* pointer from another in
22853 - an arm of an if-expression whose if-part is not a constant
22855 - const char *g = "string";
22856 - pcpcc = &g + (g ? g-g : 0);
22857 - /* HPUX 7.0 cc rejects these. */
22859 - ppc = (char**) pcpcc;
22860 - pcpcc = (char const *const *) ppc;
22861 - { /* SCO 3.2v4 cc rejects this. */
22863 - char const *s = 0 ? (char *) 0 : (char const *) 0;
22868 - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22869 - int x[] = {25, 17};
22870 - const int *foo = &x[0];
22873 - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22874 - typedef const int *iptr;
22878 - { /* AIX XL C 1.02.0.0 rejects this saying
22879 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22880 - struct s { int j; const int *ap[3]; };
22881 - struct s *b; b->j = 5;
22883 - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22884 - const int foo = 10;
22885 - if (!foo) return 0;
22887 - return !cs[0] && !zero.x;
22891 + int *p = &tm.tm_sec;
22897 -rm -f conftest.$ac_objext
22898 -if { (ac_try="$ac_compile"
22899 -case "(($ac_try" in
22900 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901 - *) ac_try_echo=$ac_try;;
22903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 - (eval "$ac_compile") 2>conftest.er1
22906 - grep -v '^ *+' conftest.er1 >conftest.err
22907 - rm -f conftest.er1
22908 - cat conftest.err >&5
22909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 - (exit $ac_status); } && {
22911 - test -z "$ac_c_werror_flag" ||
22912 - test ! -s conftest.err
22913 - } && test -s conftest.$ac_objext; then
22914 - ac_cv_c_const=yes
22915 +if ac_fn_c_try_compile "$LINENO"; then :
22916 + ac_cv_struct_tm=time.h
22918 - echo "$as_me: failed program was:" >&5
22919 -sed 's/^/| /' conftest.$ac_ext >&5
22922 + ac_cv_struct_tm=sys/time.h
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22928 -echo "${ECHO_T}$ac_cv_c_const" >&6; }
22929 -if test $ac_cv_c_const = no; then
22930 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22931 +$as_echo "$ac_cv_struct_tm" >&6; }
22932 +if test $ac_cv_struct_tm = sys/time.h; then
22934 -cat >>confdefs.h <<\_ACEOF
22937 +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22941 +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22942 +#include <$ac_cv_struct_tm>
22945 -{ echo "$as_me:$LINENO: checking for working volatile" >&5
22946 -echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22947 -cat >conftest.$ac_ext <<_ACEOF
22950 -cat confdefs.h >>conftest.$ac_ext
22951 -cat >>conftest.$ac_ext <<_ACEOF
22952 -/* end confdefs.h. */
22954 +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22959 -volatile int x; x = 0;
22963 +cat >>confdefs.h <<_ACEOF
22964 +#define HAVE_STRUCT_TM_TM_ZONE 1
22966 -rm -f conftest.$ac_objext
22967 -if { (ac_try="$ac_compile"
22968 -case "(($ac_try" in
22969 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 - *) ac_try_echo=$ac_try;;
22972 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 - (eval "$ac_compile") 2>conftest.er1
22975 - grep -v '^ *+' conftest.er1 >conftest.err
22976 - rm -f conftest.er1
22977 - cat conftest.err >&5
22978 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 - (exit $ac_status); } && {
22980 - test -z "$ac_c_werror_flag" ||
22981 - test ! -s conftest.err
22982 - } && test -s conftest.$ac_objext; then
22985 - echo "$as_me: failed program was:" >&5
22986 -sed 's/^/| /' conftest.$ac_ext >&5
22989 -cat >>confdefs.h <<\_ACEOF
22994 +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22997 +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22999 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 -{ echo "$as_me:$LINENO: result: $works" >&5
23001 -echo "${ECHO_T}$works" >&6; }
23003 + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23005 +if test "x$ac_cv_have_decl_tzname" = xyes; then :
23012 -{ echo "$as_me:$LINENO: checking for working signed char" >&5
23013 -echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
23014 -cat >conftest.$ac_ext <<_ACEOF
23016 +cat >>confdefs.h <<_ACEOF
23017 +#define HAVE_DECL_TZNAME $ac_have_decl
23019 -cat confdefs.h >>conftest.$ac_ext
23020 -cat >>conftest.$ac_ext <<_ACEOF
23022 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23023 +$as_echo_n "checking for tzname... " >&6; }
23024 +if ${ac_cv_var_tzname+:} false; then :
23025 + $as_echo_n "(cached) " >&6
23027 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 +#if !HAVE_DECL_TZNAME
23031 +extern char *tzname[];
23038 +return tzname[0][0];
23043 -rm -f conftest.$ac_objext
23044 -if { (ac_try="$ac_compile"
23045 -case "(($ac_try" in
23046 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 - *) ac_try_echo=$ac_try;;
23049 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 - (eval "$ac_compile") 2>conftest.er1
23052 - grep -v '^ *+' conftest.er1 >conftest.err
23053 - rm -f conftest.er1
23054 - cat conftest.err >&5
23055 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 - (exit $ac_status); } && {
23057 - test -z "$ac_c_werror_flag" ||
23058 - test ! -s conftest.err
23059 - } && test -s conftest.$ac_objext; then
23061 +if ac_fn_c_try_link "$LINENO"; then :
23062 + ac_cv_var_tzname=yes
23064 - echo "$as_me: failed program was:" >&5
23065 -sed 's/^/| /' conftest.$ac_ext >&5
23066 + ac_cv_var_tzname=no
23068 +rm -f core conftest.err conftest.$ac_objext \
23069 + conftest$ac_exeext conftest.$ac_ext
23071 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23072 +$as_echo "$ac_cv_var_tzname" >&6; }
23073 + if test $ac_cv_var_tzname = yes; then
23075 +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23080 -cat >>confdefs.h <<\_ACEOF
23082 +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
23083 +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
23085 +cat >>confdefs.h <<_ACEOF
23086 +#define HAVE_STRUCT_STAT_ST_RDEV 1
23092 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 -{ echo "$as_me:$LINENO: result: $works" >&5
23094 -echo "${ECHO_T}$works" >&6; }
23095 +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23096 +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
23098 -have_prototypes=no
23099 -{ echo "$as_me:$LINENO: checking for prototypes" >&5
23100 -echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
23101 -cat >conftest.$ac_ext <<_ACEOF
23104 -cat confdefs.h >>conftest.$ac_ext
23105 -cat >>conftest.$ac_ext <<_ACEOF
23106 -/* end confdefs.h. */
23107 -int foo(int x) { return 0; }
23115 +cat >>confdefs.h <<_ACEOF
23116 +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23118 -rm -f conftest.$ac_objext
23119 -if { (ac_try="$ac_compile"
23120 -case "(($ac_try" in
23121 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 - *) ac_try_echo=$ac_try;;
23124 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 - (eval "$ac_compile") 2>conftest.er1
23127 - grep -v '^ *+' conftest.er1 >conftest.err
23128 - rm -f conftest.er1
23129 - cat conftest.err >&5
23130 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 - (exit $ac_status); } && {
23132 - test -z "$ac_c_werror_flag" ||
23133 - test ! -s conftest.err
23134 - } && test -s conftest.$ac_objext; then
23137 -cat >>confdefs.h <<\_ACEOF
23138 -#define HAVE_PROTOTYPES 1
23142 - have_prototypes=yes
23143 +ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
23144 +if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
23147 - echo "$as_me: failed program was:" >&5
23148 -sed 's/^/| /' conftest.$ac_ext >&5
23149 +cat >>confdefs.h <<_ACEOF
23150 +#define HAVE_STRUCT_STAT_ST_FLAGS 1
23156 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 -{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
23158 -echo "${ECHO_T}$have_prototypes" >&6; }
23159 +ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
23160 +if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
23163 -{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
23164 -echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
23165 -cat >conftest.$ac_ext <<_ACEOF
23167 +cat >>confdefs.h <<_ACEOF
23168 +#define HAVE_STRUCT_STAT_ST_GEN 1
23170 -cat confdefs.h >>conftest.$ac_ext
23171 -cat >>conftest.$ac_ext <<_ACEOF
23172 -/* end confdefs.h. */
23174 -#include <stdarg.h>
23175 -int foo(int x, ...) {
23179 - va_arg(va, char *);
23180 - va_arg(va, double);
23187 -return foo(10, "", 3.14);
23192 -rm -f conftest.$ac_objext
23193 -if { (ac_try="$ac_compile"
23194 -case "(($ac_try" in
23195 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 - *) ac_try_echo=$ac_try;;
23198 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 - (eval "$ac_compile") 2>conftest.er1
23201 - grep -v '^ *+' conftest.er1 >conftest.err
23202 - rm -f conftest.er1
23203 - cat conftest.err >&5
23204 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 - (exit $ac_status); } && {
23206 - test -z "$ac_c_werror_flag" ||
23207 - test ! -s conftest.err
23208 - } && test -s conftest.$ac_objext; then
23211 +ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
23212 +if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
23214 -cat >>confdefs.h <<\_ACEOF
23215 -#define HAVE_STDARG_PROTOTYPES 1
23216 +cat >>confdefs.h <<_ACEOF
23217 +#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
23223 - echo "$as_me: failed program was:" >&5
23224 -sed 's/^/| /' conftest.$ac_ext >&5
23229 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 -{ echo "$as_me:$LINENO: result: $works" >&5
23231 -echo "${ECHO_T}$works" >&6; }
23232 +ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
23233 +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23235 -# check for socketpair
23236 -{ echo "$as_me:$LINENO: checking for socketpair" >&5
23237 -echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
23238 -cat >conftest.$ac_ext <<_ACEOF
23240 +cat >>confdefs.h <<_ACEOF
23241 +#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23243 -cat confdefs.h >>conftest.$ac_ext
23244 -cat >>conftest.$ac_ext <<_ACEOF
23245 -/* end confdefs.h. */
23247 -#include <sys/types.h>
23248 -#include <sys/socket.h>
23250 +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
23253 + case " $LIBOBJS " in
23254 + *" fileblocks.$ac_objext "* ) ;;
23255 + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23263 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
23264 +$as_echo_n "checking for time.h that defines altzone... " >&6; }
23265 +if ${ac_cv_header_time_altzone+:} false; then :
23266 + $as_echo_n "(cached) " >&6
23268 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 +/* end confdefs.h. */
23274 -void *x=socketpair
23280 -rm -f conftest.$ac_objext
23281 -if { (ac_try="$ac_compile"
23282 -case "(($ac_try" in
23283 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 - *) ac_try_echo=$ac_try;;
23286 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 - (eval "$ac_compile") 2>conftest.er1
23289 - grep -v '^ *+' conftest.er1 >conftest.err
23290 - rm -f conftest.er1
23291 - cat conftest.err >&5
23292 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 - (exit $ac_status); } && {
23294 - test -z "$ac_c_werror_flag" ||
23295 - test ! -s conftest.err
23296 - } && test -s conftest.$ac_objext; then
23298 -cat >>confdefs.h <<\_ACEOF
23299 -#define HAVE_SOCKETPAIR 1
23302 - { echo "$as_me:$LINENO: result: yes" >&5
23303 -echo "${ECHO_T}yes" >&6; }
23304 +if ac_fn_c_try_compile "$LINENO"; then :
23305 + ac_cv_header_time_altzone=yes
23307 - echo "$as_me: failed program was:" >&5
23308 -sed 's/^/| /' conftest.$ac_ext >&5
23309 + ac_cv_header_time_altzone=no
23311 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 - { echo "$as_me:$LINENO: result: no" >&5
23315 -echo "${ECHO_T}no" >&6; }
23316 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
23317 +$as_echo "$ac_cv_header_time_altzone" >&6; }
23318 +if test $ac_cv_header_time_altzone = yes; then
23321 +$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
23323 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 -# check if sockaddr has sa_len member
23327 -{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
23328 -echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
23329 -cat >conftest.$ac_ext <<_ACEOF
23332 -cat confdefs.h >>conftest.$ac_ext
23333 -cat >>conftest.$ac_ext <<_ACEOF
23335 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
23336 +$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
23337 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23340 #include <sys/types.h>
23341 -#include <sys/socket.h>
23342 +#include <sys/select.h>
23343 +#include <sys/time.h>
23348 -struct sockaddr x;
23355 -rm -f conftest.$ac_objext
23356 -if { (ac_try="$ac_compile"
23357 -case "(($ac_try" in
23358 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 - *) ac_try_echo=$ac_try;;
23361 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23362 - (eval "$ac_compile") 2>conftest.er1
23364 - grep -v '^ *+' conftest.er1 >conftest.err
23365 - rm -f conftest.er1
23366 - cat conftest.err >&5
23367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 - (exit $ac_status); } && {
23369 - test -z "$ac_c_werror_flag" ||
23370 - test ! -s conftest.err
23371 - } && test -s conftest.$ac_objext; then
23372 - { echo "$as_me:$LINENO: result: yes" >&5
23373 -echo "${ECHO_T}yes" >&6; }
23374 +if ac_fn_c_try_compile "$LINENO"; then :
23376 -cat >>confdefs.h <<\_ACEOF
23377 -#define HAVE_SOCKADDR_SA_LEN 1
23381 - echo "$as_me: failed program was:" >&5
23382 -sed 's/^/| /' conftest.$ac_ext >&5
23383 +$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
23385 - { echo "$as_me:$LINENO: result: no" >&5
23386 -echo "${ECHO_T}no" >&6; }
23388 + was_it_defined=yes
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
23393 +$as_echo "$was_it_defined" >&6; }
23395 -va_list_is_array=no
23396 -{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
23397 -echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
23398 -cat >conftest.$ac_ext <<_ACEOF
23401 -cat confdefs.h >>conftest.$ac_ext
23402 -cat >>conftest.$ac_ext <<_ACEOF
23403 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
23404 +$as_echo_n "checking for addrinfo... " >&6; }
23405 +if ${ac_cv_struct_addrinfo+:} false; then :
23406 + $as_echo_n "(cached) " >&6
23408 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23411 -#ifdef HAVE_STDARG_PROTOTYPES
23412 -#include <stdarg.h>
23414 -#include <varargs.h>
23417 +# include <netdb.h>
23421 -va_list list1, list2; list1 = list2;
23427 -rm -f conftest.$ac_objext
23428 -if { (ac_try="$ac_compile"
23429 -case "(($ac_try" in
23430 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 - *) ac_try_echo=$ac_try;;
23433 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 - (eval "$ac_compile") 2>conftest.er1
23436 - grep -v '^ *+' conftest.er1 >conftest.err
23437 - rm -f conftest.er1
23438 - cat conftest.err >&5
23439 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 - (exit $ac_status); } && {
23441 - test -z "$ac_c_werror_flag" ||
23442 - test ! -s conftest.err
23443 - } && test -s conftest.$ac_objext; then
23445 +if ac_fn_c_try_compile "$LINENO"; then :
23446 + ac_cv_struct_addrinfo=yes
23448 - echo "$as_me: failed program was:" >&5
23449 -sed 's/^/| /' conftest.$ac_ext >&5
23453 -cat >>confdefs.h <<\_ACEOF
23454 -#define VA_LIST_IS_ARRAY 1
23457 - va_list_is_array=yes
23459 + ac_cv_struct_addrinfo=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 -{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
23464 -echo "${ECHO_T}$va_list_is_array" >&6; }
23467 -# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23468 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
23469 +$as_echo "$ac_cv_struct_addrinfo" >&6; }
23470 +if test $ac_cv_struct_addrinfo = yes; then
23472 +$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
23476 -{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
23477 -echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
23478 -if test "${ac_cv_func_gethostbyname_r+set}" = set; then
23479 - echo $ECHO_N "(cached) $ECHO_C" >&6
23480 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
23481 +$as_echo_n "checking for sockaddr_storage... " >&6; }
23482 +if ${ac_cv_struct_sockaddr_storage+:} false; then :
23483 + $as_echo_n "(cached) " >&6
23485 - cat >conftest.$ac_ext <<_ACEOF
23488 -cat confdefs.h >>conftest.$ac_ext
23489 -cat >>conftest.$ac_ext <<_ACEOF
23490 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491 /* end confdefs.h. */
23492 -/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
23493 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
23494 -#define gethostbyname_r innocuous_gethostbyname_r
23496 -/* System header to define __stub macros and hopefully few prototypes,
23497 - which can conflict with char gethostbyname_r (); below.
23498 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23499 - <limits.h> exists even on freestanding compilers. */
23502 -# include <limits.h>
23504 -# include <assert.h>
23507 -#undef gethostbyname_r
23509 -/* Override any GCC internal prototype to avoid an error.
23510 - Use char because int might match the return type of a GCC
23511 - builtin and then its argument prototype would still apply. */
23512 -#ifdef __cplusplus
23515 -char gethostbyname_r ();
23516 -/* The GNU C library defines this for functions which it implements
23517 - to always fail with ENOSYS. Some functions are actually named
23518 - something starting with __ and the normal name is an alias. */
23519 -#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
23523 +# include <sys/types.h>
23524 +# include <sys/socket.h>
23528 -return gethostbyname_r ();
23529 +struct sockaddr_storage s
23534 -rm -f conftest.$ac_objext conftest$ac_exeext
23535 -if { (ac_try="$ac_link"
23536 -case "(($ac_try" in
23537 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 - *) ac_try_echo=$ac_try;;
23540 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 - (eval "$ac_link") 2>conftest.er1
23543 - grep -v '^ *+' conftest.er1 >conftest.err
23544 - rm -f conftest.er1
23545 - cat conftest.err >&5
23546 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 - (exit $ac_status); } && {
23548 - test -z "$ac_c_werror_flag" ||
23549 - test ! -s conftest.err
23550 - } && test -s conftest$ac_exeext &&
23551 - $as_test_x conftest$ac_exeext; then
23552 - ac_cv_func_gethostbyname_r=yes
23553 +if ac_fn_c_try_compile "$LINENO"; then :
23554 + ac_cv_struct_sockaddr_storage=yes
23556 - echo "$as_me: failed program was:" >&5
23557 -sed 's/^/| /' conftest.$ac_ext >&5
23559 - ac_cv_func_gethostbyname_r=no
23560 + ac_cv_struct_sockaddr_storage=no
23563 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23564 - conftest$ac_exeext conftest.$ac_ext
23565 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 -{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23568 -echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23569 -if test $ac_cv_func_gethostbyname_r = yes; then
23571 - cat >>confdefs.h <<\_ACEOF
23572 -#define HAVE_GETHOSTBYNAME_R 1
23574 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
23575 +$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
23576 +if test $ac_cv_struct_sockaddr_storage = yes; then
23578 - { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23579 -echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23580 - OLD_CFLAGS=$CFLAGS
23581 - CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23582 - cat >conftest.$ac_ext <<_ACEOF
23585 -cat confdefs.h >>conftest.$ac_ext
23586 -cat >>conftest.$ac_ext <<_ACEOF
23587 -/* end confdefs.h. */
23588 +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
23590 -# include <netdb.h>
23593 +# checks for compiler characteristics
23595 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23596 +$as_echo_n "checking whether char is unsigned... " >&6; }
23597 +if ${ac_cv_c_char_unsigned+:} false; then :
23598 + $as_echo_n "(cached) " >&6
23600 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 +/* end confdefs.h. */
23602 +$ac_includes_default
23608 - struct hostent *he, *res;
23609 - char buffer[2048];
23610 - int buflen = 2048;
23613 - (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23614 +static int test_array [1 - 2 * !(((char) -1) < 0)];
23615 +test_array [0] = 0;
23616 +return test_array [0];
23622 -rm -f conftest.$ac_objext
23623 -if { (ac_try="$ac_compile"
23624 -case "(($ac_try" in
23625 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 - *) ac_try_echo=$ac_try;;
23628 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 - (eval "$ac_compile") 2>conftest.er1
23631 - grep -v '^ *+' conftest.er1 >conftest.err
23632 - rm -f conftest.er1
23633 - cat conftest.err >&5
23634 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 - (exit $ac_status); } && {
23636 - test -z "$ac_c_werror_flag" ||
23637 - test ! -s conftest.err
23638 - } && test -s conftest.$ac_objext; then
23640 - cat >>confdefs.h <<\_ACEOF
23641 -#define HAVE_GETHOSTBYNAME_R 1
23645 -cat >>confdefs.h <<\_ACEOF
23646 -#define HAVE_GETHOSTBYNAME_R_6_ARG 1
23649 - { echo "$as_me:$LINENO: result: yes" >&5
23650 -echo "${ECHO_T}yes" >&6; }
23652 +if ac_fn_c_try_compile "$LINENO"; then :
23653 + ac_cv_c_char_unsigned=no
23655 - echo "$as_me: failed program was:" >&5
23656 -sed 's/^/| /' conftest.$ac_ext >&5
23657 + ac_cv_c_char_unsigned=yes
23659 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23662 +$as_echo "$ac_cv_c_char_unsigned" >&6; }
23663 +if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23664 + $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23668 - { echo "$as_me:$LINENO: result: no" >&5
23669 -echo "${ECHO_T}no" >&6; }
23670 - { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23671 -echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23672 - cat >conftest.$ac_ext <<_ACEOF
23675 -cat confdefs.h >>conftest.$ac_ext
23676 -cat >>conftest.$ac_ext <<_ACEOF
23677 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23678 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23679 +if ${ac_cv_c_const+:} false; then :
23680 + $as_echo_n "(cached) " >&6
23682 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23685 -# include <netdb.h>
23692 - struct hostent *he;
23693 - char buffer[2048];
23694 - int buflen = 2048;
23697 - (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23703 -rm -f conftest.$ac_objext
23704 -if { (ac_try="$ac_compile"
23705 -case "(($ac_try" in
23706 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 - *) ac_try_echo=$ac_try;;
23709 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 - (eval "$ac_compile") 2>conftest.er1
23712 - grep -v '^ *+' conftest.er1 >conftest.err
23713 - rm -f conftest.er1
23714 - cat conftest.err >&5
23715 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 - (exit $ac_status); } && {
23717 - test -z "$ac_c_werror_flag" ||
23718 - test ! -s conftest.err
23719 - } && test -s conftest.$ac_objext; then
23721 - cat >>confdefs.h <<\_ACEOF
23722 -#define HAVE_GETHOSTBYNAME_R 1
23724 +#ifndef __cplusplus
23725 + /* Ultrix mips cc rejects this sort of thing. */
23726 + typedef int charset[2];
23727 + const charset cs = { 0, 0 };
23728 + /* SunOS 4.1.1 cc rejects this. */
23729 + char const *const *pcpcc;
23731 + /* NEC SVR4.0.2 mips cc rejects this. */
23732 + struct point {int x, y;};
23733 + static struct point const zero = {0,0};
23734 + /* AIX XL C 1.02.0.0 rejects this.
23735 + It does not let you subtract one const X* pointer from another in
23736 + an arm of an if-expression whose if-part is not a constant
23738 + const char *g = "string";
23739 + pcpcc = &g + (g ? g-g : 0);
23740 + /* HPUX 7.0 cc rejects these. */
23742 + ppc = (char**) pcpcc;
23743 + pcpcc = (char const *const *) ppc;
23744 + { /* SCO 3.2v4 cc rejects this sort of thing. */
23747 + char const *s = 0 ? (char *) 0 : (char const *) 0;
23752 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23753 + int x[] = {25, 17};
23754 + const int *foo = &x[0];
23757 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23758 + typedef const int *iptr;
23762 + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23763 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23764 + struct s { int j; const int *ap[3]; } bx;
23765 + struct s *b = &bx; b->j = 5;
23767 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23768 + const int foo = 10;
23769 + if (!foo) return 0;
23771 + return !cs[0] && !zero.x;
23774 -cat >>confdefs.h <<\_ACEOF
23775 -#define HAVE_GETHOSTBYNAME_R_5_ARG 1
23780 +if ac_fn_c_try_compile "$LINENO"; then :
23781 + ac_cv_c_const=yes
23785 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23788 +$as_echo "$ac_cv_c_const" >&6; }
23789 +if test $ac_cv_c_const = no; then
23791 - { echo "$as_me:$LINENO: result: yes" >&5
23792 -echo "${ECHO_T}yes" >&6; }
23793 +$as_echo "#define const /**/" >>confdefs.h
23796 - echo "$as_me: failed program was:" >&5
23797 -sed 's/^/| /' conftest.$ac_ext >&5
23801 - { echo "$as_me:$LINENO: result: no" >&5
23802 -echo "${ECHO_T}no" >&6; }
23803 - { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23804 -echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23805 - cat >conftest.$ac_ext <<_ACEOF
23808 -cat confdefs.h >>conftest.$ac_ext
23809 -cat >>conftest.$ac_ext <<_ACEOF
23811 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23812 +$as_echo_n "checking for working volatile... " >&6; }
23813 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23814 /* end confdefs.h. */
23816 -# include <netdb.h>
23823 - struct hostent *he;
23824 - struct hostent_data data;
23826 - (void) gethostbyname_r(name, he, &data);
23828 +volatile int x; x = 0;
23833 -rm -f conftest.$ac_objext
23834 -if { (ac_try="$ac_compile"
23835 -case "(($ac_try" in
23836 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 - *) ac_try_echo=$ac_try;;
23839 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 - (eval "$ac_compile") 2>conftest.er1
23842 - grep -v '^ *+' conftest.er1 >conftest.err
23843 - rm -f conftest.er1
23844 - cat conftest.err >&5
23845 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 - (exit $ac_status); } && {
23847 - test -z "$ac_c_werror_flag" ||
23848 - test ! -s conftest.err
23849 - } && test -s conftest.$ac_objext; then
23850 +if ac_fn_c_try_compile "$LINENO"; then :
23854 - cat >>confdefs.h <<\_ACEOF
23855 -#define HAVE_GETHOSTBYNAME_R 1
23857 +$as_echo "#define volatile /**/" >>confdefs.h
23860 -cat >>confdefs.h <<\_ACEOF
23861 -#define HAVE_GETHOSTBYNAME_R_3_ARG 1
23864 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
23866 +$as_echo "$works" >&6; }
23868 - { echo "$as_me:$LINENO: result: yes" >&5
23869 -echo "${ECHO_T}yes" >&6; }
23871 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23872 +$as_echo_n "checking for working signed char... " >&6; }
23873 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23874 +/* end confdefs.h. */
23884 +if ac_fn_c_try_compile "$LINENO"; then :
23887 - echo "$as_me: failed program was:" >&5
23888 -sed 's/^/| /' conftest.$ac_ext >&5
23890 +$as_echo "#define signed /**/" >>confdefs.h
23892 - { echo "$as_me:$LINENO: result: no" >&5
23893 -echo "${ECHO_T}no" >&6; }
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
23899 +$as_echo "$works" >&6; }
23903 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 +have_prototypes=no
23905 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23906 +$as_echo_n "checking for prototypes... " >&6; }
23907 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 +/* end confdefs.h. */
23909 +int foo(int x) { return 0; }
23918 +if ac_fn_c_try_compile "$LINENO"; then :
23922 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 - CFLAGS=$OLD_CFLAGS
23924 +$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
23927 + have_prototypes=yes
23930 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
23932 +$as_echo "$have_prototypes" >&6; }
23934 -for ac_func in gethostbyname
23936 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23937 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23938 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23939 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23940 - echo $ECHO_N "(cached) $ECHO_C" >&6
23942 - cat >conftest.$ac_ext <<_ACEOF
23945 -cat confdefs.h >>conftest.$ac_ext
23946 -cat >>conftest.$ac_ext <<_ACEOF
23948 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
23949 +$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
23950 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23952 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23953 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
23954 -#define $ac_func innocuous_$ac_func
23956 -/* System header to define __stub macros and hopefully few prototypes,
23957 - which can conflict with char $ac_func (); below.
23958 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23959 - <limits.h> exists even on freestanding compilers. */
23962 -# include <limits.h>
23964 -# include <assert.h>
23969 -/* Override any GCC internal prototype to avoid an error.
23970 - Use char because int might match the return type of a GCC
23971 - builtin and then its argument prototype would still apply. */
23972 -#ifdef __cplusplus
23976 -/* The GNU C library defines this for functions which it implements
23977 - to always fail with ENOSYS. Some functions are actually named
23978 - something starting with __ and the normal name is an alias. */
23979 -#if defined __stub_$ac_func || defined __stub___$ac_func
23982 +#include <stdarg.h>
23983 +int foo(int x, ...) {
23987 + va_arg(va, char *);
23988 + va_arg(va, double);
23995 -return $ac_func ();
23996 +return foo(10, "", 3.14);
24001 -rm -f conftest.$ac_objext conftest$ac_exeext
24002 -if { (ac_try="$ac_link"
24003 -case "(($ac_try" in
24004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 - *) ac_try_echo=$ac_try;;
24007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 - (eval "$ac_link") 2>conftest.er1
24010 - grep -v '^ *+' conftest.er1 >conftest.err
24011 - rm -f conftest.er1
24012 - cat conftest.err >&5
24013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 - (exit $ac_status); } && {
24015 - test -z "$ac_c_werror_flag" ||
24016 - test ! -s conftest.err
24017 - } && test -s conftest$ac_exeext &&
24018 - $as_test_x conftest$ac_exeext; then
24019 - eval "$as_ac_var=yes"
24021 - echo "$as_me: failed program was:" >&5
24022 -sed 's/^/| /' conftest.$ac_ext >&5
24024 - eval "$as_ac_var=no"
24026 +if ac_fn_c_try_compile "$LINENO"; then :
24028 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 - conftest$ac_exeext conftest.$ac_ext
24031 -ac_res=`eval echo '${'$as_ac_var'}'`
24032 - { echo "$as_me:$LINENO: result: $ac_res" >&5
24033 -echo "${ECHO_T}$ac_res" >&6; }
24034 -if test `eval echo '${'$as_ac_var'}'` = yes; then
24035 - cat >>confdefs.h <<_ACEOF
24036 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24041 +$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
24046 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
24048 +$as_echo "$works" >&6; }
24050 +# check for socketpair
24051 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
24052 +$as_echo_n "checking for socketpair... " >&6; }
24053 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 +/* end confdefs.h. */
24056 +#include <sys/types.h>
24057 +#include <sys/socket.h>
24063 -# checks for system services
24066 -# Linux requires this for correct f.p. operations
24067 -{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
24068 -echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
24069 -if test "${ac_cv_func___fpu_control+set}" = set; then
24070 - echo $ECHO_N "(cached) $ECHO_C" >&6
24072 - cat >conftest.$ac_ext <<_ACEOF
24077 +void *x=socketpair
24082 -cat confdefs.h >>conftest.$ac_ext
24083 -cat >>conftest.$ac_ext <<_ACEOF
24084 -/* end confdefs.h. */
24085 -/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
24086 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
24087 -#define __fpu_control innocuous___fpu_control
24089 -/* System header to define __stub macros and hopefully few prototypes,
24090 - which can conflict with char __fpu_control (); below.
24091 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24092 - <limits.h> exists even on freestanding compilers. */
24093 +if ac_fn_c_try_compile "$LINENO"; then :
24096 -# include <limits.h>
24098 -# include <assert.h>
24100 +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
24102 -#undef __fpu_control
24103 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24104 +$as_echo "yes" >&6; }
24106 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 +$as_echo "no" >&6; }
24109 -/* Override any GCC internal prototype to avoid an error.
24110 - Use char because int might match the return type of a GCC
24111 - builtin and then its argument prototype would still apply. */
24112 -#ifdef __cplusplus
24115 -char __fpu_control ();
24116 -/* The GNU C library defines this for functions which it implements
24117 - to always fail with ENOSYS. Some functions are actually named
24118 - something starting with __ and the normal name is an alias. */
24119 -#if defined __stub___fpu_control || defined __stub_____fpu_control
24123 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 +# check if sockaddr has sa_len member
24126 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
24127 +$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
24128 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24129 +/* end confdefs.h. */
24130 +#include <sys/types.h>
24131 +#include <sys/socket.h>
24135 -return __fpu_control ();
24136 +struct sockaddr x;
24142 -rm -f conftest.$ac_objext conftest$ac_exeext
24143 -if { (ac_try="$ac_link"
24144 -case "(($ac_try" in
24145 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 - *) ac_try_echo=$ac_try;;
24148 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 - (eval "$ac_link") 2>conftest.er1
24151 - grep -v '^ *+' conftest.er1 >conftest.err
24152 - rm -f conftest.er1
24153 - cat conftest.err >&5
24154 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 - (exit $ac_status); } && {
24156 - test -z "$ac_c_werror_flag" ||
24157 - test ! -s conftest.err
24158 - } && test -s conftest$ac_exeext &&
24159 - $as_test_x conftest$ac_exeext; then
24160 - ac_cv_func___fpu_control=yes
24162 - echo "$as_me: failed program was:" >&5
24163 -sed 's/^/| /' conftest.$ac_ext >&5
24164 +if ac_fn_c_try_compile "$LINENO"; then :
24165 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24166 +$as_echo "yes" >&6; }
24168 - ac_cv_func___fpu_control=no
24170 +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
24172 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24173 - conftest$ac_exeext conftest.$ac_ext
24175 -{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
24176 -echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
24177 -if test $ac_cv_func___fpu_control = yes; then
24180 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24181 +$as_echo "no" >&6; }
24183 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24185 -{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
24186 -echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
24187 -if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
24188 - echo $ECHO_N "(cached) $ECHO_C" >&6
24190 - ac_check_lib_save_LIBS=$LIBS
24191 -LIBS="-lieee $LIBS"
24192 -cat >conftest.$ac_ext <<_ACEOF
24195 -cat confdefs.h >>conftest.$ac_ext
24196 -cat >>conftest.$ac_ext <<_ACEOF
24197 +va_list_is_array=no
24198 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
24199 +$as_echo_n "checking whether va_list is an array... " >&6; }
24200 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24203 -/* Override any GCC internal prototype to avoid an error.
24204 - Use char because int might match the return type of a GCC
24205 - builtin and then its argument prototype would still apply. */
24206 -#ifdef __cplusplus
24208 +#ifdef HAVE_STDARG_PROTOTYPES
24209 +#include <stdarg.h>
24211 +#include <varargs.h>
24213 -char __fpu_control ();
24218 -return __fpu_control ();
24219 +va_list list1, list2; list1 = list2;
24224 -rm -f conftest.$ac_objext conftest$ac_exeext
24225 -if { (ac_try="$ac_link"
24226 -case "(($ac_try" in
24227 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 - *) ac_try_echo=$ac_try;;
24230 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 - (eval "$ac_link") 2>conftest.er1
24233 - grep -v '^ *+' conftest.er1 >conftest.err
24234 - rm -f conftest.er1
24235 - cat conftest.err >&5
24236 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 - (exit $ac_status); } && {
24238 - test -z "$ac_c_werror_flag" ||
24239 - test ! -s conftest.err
24240 - } && test -s conftest$ac_exeext &&
24241 - $as_test_x conftest$ac_exeext; then
24242 - ac_cv_lib_ieee___fpu_control=yes
24243 +if ac_fn_c_try_compile "$LINENO"; then :
24246 - echo "$as_me: failed program was:" >&5
24247 -sed 's/^/| /' conftest.$ac_ext >&5
24249 - ac_cv_lib_ieee___fpu_control=no
24252 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24253 - conftest$ac_exeext conftest.$ac_ext
24254 -LIBS=$ac_check_lib_save_LIBS
24256 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
24257 -echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
24258 -if test $ac_cv_lib_ieee___fpu_control = yes; then
24259 - cat >>confdefs.h <<_ACEOF
24260 -#define HAVE_LIBIEEE 1
24262 +$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
24264 - LIBS="-lieee $LIBS"
24265 + va_list_is_array=yes
24268 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
24270 +$as_echo "$va_list_is_array" >&6; }
24272 +# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
24276 +ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
24277 +if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
24279 -# Check for --with-fpectl
24280 -{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
24281 -echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
24282 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24284 -# Check whether --with-fpectl was given.
24285 -if test "${with_fpectl+set}" = set; then
24286 - withval=$with_fpectl;
24287 -if test "$withval" != no
24289 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
24290 +$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
24291 + OLD_CFLAGS=$CFLAGS
24292 + CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
24293 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 +/* end confdefs.h. */
24296 -cat >>confdefs.h <<\_ACEOF
24297 -#define WANT_SIGFPE_HANDLER 1
24298 +# include <netdb.h>
24305 + struct hostent *he, *res;
24306 + char buffer[2048];
24307 + int buflen = 2048;
24310 + (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
24316 +if ac_fn_c_try_compile "$LINENO"; then :
24318 - { echo "$as_me:$LINENO: result: yes" >&5
24319 -echo "${ECHO_T}yes" >&6; }
24320 -else { echo "$as_me:$LINENO: result: no" >&5
24321 -echo "${ECHO_T}no" >&6; }
24324 - { echo "$as_me:$LINENO: result: no" >&5
24325 -echo "${ECHO_T}no" >&6; }
24327 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24330 -# check for --with-libm=...
24331 +$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
24333 -case $ac_sys_system in
24338 -{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
24339 -echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
24340 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 +$as_echo "yes" >&6; }
24343 -# Check whether --with-libm was given.
24344 -if test "${with_libm+set}" = set; then
24345 - withval=$with_libm;
24346 -if test "$withval" = no
24348 - { echo "$as_me:$LINENO: result: force LIBM empty" >&5
24349 -echo "${ECHO_T}force LIBM empty" >&6; }
24350 -elif test "$withval" != yes
24351 -then LIBM=$withval
24352 - { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
24353 -echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
24354 -else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
24355 -echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
24356 - { (exit 1); exit 1; }; }
24359 - { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
24360 -echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
24363 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 +$as_echo "no" >&6; }
24365 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
24366 +$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
24367 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368 +/* end confdefs.h. */
24370 -# check for --with-libc=...
24372 -{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
24373 -echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
24374 +# include <netdb.h>
24376 -# Check whether --with-libc was given.
24377 -if test "${with_libc+set}" = set; then
24378 - withval=$with_libc;
24379 -if test "$withval" = no
24381 - { echo "$as_me:$LINENO: result: force LIBC empty" >&5
24382 -echo "${ECHO_T}force LIBC empty" >&6; }
24383 -elif test "$withval" != yes
24384 -then LIBC=$withval
24385 - { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
24386 -echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
24387 -else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
24388 -echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
24389 - { (exit 1); exit 1; }; }
24392 - { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
24393 -echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
24400 + struct hostent *he;
24401 + char buffer[2048];
24402 + int buflen = 2048;
24405 -# check for hypot() in math library
24407 -LIBS="$LIBS $LIBM"
24408 + (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
24410 -for ac_func in hypot
24412 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24413 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24414 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24415 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24416 - echo $ECHO_N "(cached) $ECHO_C" >&6
24418 - cat >conftest.$ac_ext <<_ACEOF
24424 -cat confdefs.h >>conftest.$ac_ext
24425 -cat >>conftest.$ac_ext <<_ACEOF
24426 -/* end confdefs.h. */
24427 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24428 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
24429 -#define $ac_func innocuous_$ac_func
24430 +if ac_fn_c_try_compile "$LINENO"; then :
24432 -/* System header to define __stub macros and hopefully few prototypes,
24433 - which can conflict with char $ac_func (); below.
24434 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24435 - <limits.h> exists even on freestanding compilers. */
24436 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24439 -# include <limits.h>
24441 -# include <assert.h>
24445 +$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
24447 -/* Override any GCC internal prototype to avoid an error.
24448 - Use char because int might match the return type of a GCC
24449 - builtin and then its argument prototype would still apply. */
24450 -#ifdef __cplusplus
24454 -/* The GNU C library defines this for functions which it implements
24455 - to always fail with ENOSYS. Some functions are actually named
24456 - something starting with __ and the normal name is an alias. */
24457 -#if defined __stub_$ac_func || defined __stub___$ac_func
24460 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24461 +$as_echo "yes" >&6; }
24465 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24466 +$as_echo "no" >&6; }
24467 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
24468 +$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
24469 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470 +/* end confdefs.h. */
24472 +# include <netdb.h>
24477 -return $ac_func ();
24480 + struct hostent *he;
24481 + struct hostent_data data;
24483 + (void) gethostbyname_r(name, he, &data);
24489 -rm -f conftest.$ac_objext conftest$ac_exeext
24490 -if { (ac_try="$ac_link"
24491 -case "(($ac_try" in
24492 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 - *) ac_try_echo=$ac_try;;
24495 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 - (eval "$ac_link") 2>conftest.er1
24498 - grep -v '^ *+' conftest.er1 >conftest.err
24499 - rm -f conftest.er1
24500 - cat conftest.err >&5
24501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 - (exit $ac_status); } && {
24503 - test -z "$ac_c_werror_flag" ||
24504 - test ! -s conftest.err
24505 - } && test -s conftest$ac_exeext &&
24506 - $as_test_x conftest$ac_exeext; then
24507 - eval "$as_ac_var=yes"
24509 - echo "$as_me: failed program was:" >&5
24510 -sed 's/^/| /' conftest.$ac_ext >&5
24511 +if ac_fn_c_try_compile "$LINENO"; then :
24513 - eval "$as_ac_var=no"
24515 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24517 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24518 - conftest$ac_exeext conftest.$ac_ext
24520 -ac_res=`eval echo '${'$as_ac_var'}'`
24521 - { echo "$as_me:$LINENO: result: $ac_res" >&5
24522 -echo "${ECHO_T}$ac_res" >&6; }
24523 -if test `eval echo '${'$as_ac_var'}'` = yes; then
24524 - cat >>confdefs.h <<_ACEOF
24525 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24529 - case " $LIBOBJS " in
24530 - *" $ac_func.$ac_objext "* ) ;;
24531 - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24534 +$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
24538 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24539 +$as_echo "yes" >&6; }
24544 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24545 +$as_echo "no" >&6; }
24547 -# check for wchar.h
24548 -if test "${ac_cv_header_wchar_h+set}" = set; then
24549 - { echo "$as_me:$LINENO: checking for wchar.h" >&5
24550 -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24551 -if test "${ac_cv_header_wchar_h+set}" = set; then
24552 - echo $ECHO_N "(cached) $ECHO_C" >&6
24554 -{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24555 -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24557 - # Is the header compilable?
24558 -{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
24559 -echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24560 -cat >conftest.$ac_ext <<_ACEOF
24563 -cat confdefs.h >>conftest.$ac_ext
24564 -cat >>conftest.$ac_ext <<_ACEOF
24565 -/* end confdefs.h. */
24566 -$ac_includes_default
24567 -#include <wchar.h>
24569 -rm -f conftest.$ac_objext
24570 -if { (ac_try="$ac_compile"
24571 -case "(($ac_try" in
24572 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 - *) ac_try_echo=$ac_try;;
24575 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 - (eval "$ac_compile") 2>conftest.er1
24578 - grep -v '^ *+' conftest.er1 >conftest.err
24579 - rm -f conftest.er1
24580 - cat conftest.err >&5
24581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 - (exit $ac_status); } && {
24583 - test -z "$ac_c_werror_flag" ||
24584 - test ! -s conftest.err
24585 - } && test -s conftest.$ac_objext; then
24586 - ac_header_compiler=yes
24588 - echo "$as_me: failed program was:" >&5
24589 -sed 's/^/| /' conftest.$ac_ext >&5
24590 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 - ac_header_compiler=no
24594 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24599 -echo "${ECHO_T}$ac_header_compiler" >&6; }
24600 + CFLAGS=$OLD_CFLAGS
24602 -# Is the header present?
24603 -{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
24604 -echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24605 -cat >conftest.$ac_ext <<_ACEOF
24608 -cat confdefs.h >>conftest.$ac_ext
24609 -cat >>conftest.$ac_ext <<_ACEOF
24610 -/* end confdefs.h. */
24611 -#include <wchar.h>
24613 -if { (ac_try="$ac_cpp conftest.$ac_ext"
24614 -case "(($ac_try" in
24615 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616 - *) ac_try_echo=$ac_try;;
24618 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24621 - grep -v '^ *+' conftest.er1 >conftest.err
24622 - rm -f conftest.er1
24623 - cat conftest.err >&5
24624 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 - (exit $ac_status); } >/dev/null && {
24626 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24627 - test ! -s conftest.err
24629 - ac_header_preproc=yes
24631 - echo "$as_me: failed program was:" >&5
24632 -sed 's/^/| /' conftest.$ac_ext >&5
24634 - ac_header_preproc=no
24635 + for ac_func in gethostbyname
24637 + ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24638 +if test "x$ac_cv_func_gethostbyname" = xyes; then :
24639 + cat >>confdefs.h <<_ACEOF
24640 +#define HAVE_GETHOSTBYNAME 1
24646 -rm -f conftest.err conftest.$ac_ext
24647 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24648 -echo "${ECHO_T}$ac_header_preproc" >&6; }
24650 -# So? What about this header?
24651 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24653 - { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24654 -echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24655 - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24656 -echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24657 - ac_header_preproc=yes
24660 - { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24661 -echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24662 - { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24663 -echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24664 - { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24665 -echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24666 - { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24667 -echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24668 - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24669 -echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24670 - { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24671 -echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24673 -## ------------------------------------------------ ##
24674 -## Report this to http://www.python.org/python-bugs ##
24675 -## ------------------------------------------------ ##
24677 - ) | sed "s/^/$as_me: WARNING: /" >&2
24680 -{ echo "$as_me:$LINENO: checking for wchar.h" >&5
24681 -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24682 -if test "${ac_cv_header_wchar_h+set}" = set; then
24683 - echo $ECHO_N "(cached) $ECHO_C" >&6
24685 - ac_cv_header_wchar_h=$ac_header_preproc
24687 -{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24688 -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24691 -if test $ac_cv_header_wchar_h = yes; then
24694 -cat >>confdefs.h <<\_ACEOF
24695 -#define HAVE_WCHAR_H 1
24705 +# checks for system services
24708 +# Linux requires this for correct f.p. operations
24709 +ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
24710 +if test "x$ac_cv_func___fpu_control" = xyes; then :
24712 -# determine wchar_t size
24713 -if test "$wchar_h" = yes
24715 - { echo "$as_me:$LINENO: checking for wchar_t" >&5
24716 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24717 -if test "${ac_cv_type_wchar_t+set}" = set; then
24718 - echo $ECHO_N "(cached) $ECHO_C" >&6
24720 - cat >conftest.$ac_ext <<_ACEOF
24723 -cat confdefs.h >>conftest.$ac_ext
24724 -cat >>conftest.$ac_ext <<_ACEOF
24725 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
24726 +$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
24727 +if ${ac_cv_lib_ieee___fpu_control+:} false; then :
24728 + $as_echo_n "(cached) " >&6
24730 + ac_check_lib_save_LIBS=$LIBS
24731 +LIBS="-lieee $LIBS"
24732 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24733 /* end confdefs.h. */
24734 -#include <wchar.h>
24736 -typedef wchar_t ac__type_new_;
24737 +/* Override any GCC internal prototype to avoid an error.
24738 + Use char because int might match the return type of a GCC
24739 + builtin and then its argument prototype would still apply. */
24740 +#ifdef __cplusplus
24743 +char __fpu_control ();
24747 -if ((ac__type_new_ *) 0)
24749 -if (sizeof (ac__type_new_))
24751 +return __fpu_control ();
24756 -rm -f conftest.$ac_objext
24757 -if { (ac_try="$ac_compile"
24758 -case "(($ac_try" in
24759 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 - *) ac_try_echo=$ac_try;;
24762 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 - (eval "$ac_compile") 2>conftest.er1
24765 - grep -v '^ *+' conftest.er1 >conftest.err
24766 - rm -f conftest.er1
24767 - cat conftest.err >&5
24768 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 - (exit $ac_status); } && {
24770 - test -z "$ac_c_werror_flag" ||
24771 - test ! -s conftest.err
24772 - } && test -s conftest.$ac_objext; then
24773 - ac_cv_type_wchar_t=yes
24774 +if ac_fn_c_try_link "$LINENO"; then :
24775 + ac_cv_lib_ieee___fpu_control=yes
24777 - echo "$as_me: failed program was:" >&5
24778 -sed 's/^/| /' conftest.$ac_ext >&5
24779 + ac_cv_lib_ieee___fpu_control=no
24781 +rm -f core conftest.err conftest.$ac_objext \
24782 + conftest$ac_exeext conftest.$ac_ext
24783 +LIBS=$ac_check_lib_save_LIBS
24785 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
24786 +$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
24787 +if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
24788 + cat >>confdefs.h <<_ACEOF
24789 +#define HAVE_LIBIEEE 1
24792 + LIBS="-lieee $LIBS"
24794 - ac_cv_type_wchar_t=no
24797 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 -{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24801 -echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24803 -# The cast to long int works around a bug in the HP C Compiler
24804 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24805 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24806 -# This bug is HP SR number 8606223364.
24807 -{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
24808 -echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24809 -if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24810 - echo $ECHO_N "(cached) $ECHO_C" >&6
24812 - if test "$cross_compiling" = yes; then
24813 - # Depending upon the size, compute the lo and hi bounds.
24814 -cat >conftest.$ac_ext <<_ACEOF
24817 -cat confdefs.h >>conftest.$ac_ext
24818 -cat >>conftest.$ac_ext <<_ACEOF
24819 -/* end confdefs.h. */
24820 -#include <wchar.h>
24822 - typedef wchar_t ac__type_sizeof_;
24826 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24827 -test_array [0] = 0
24828 +# Check for --with-fpectl
24829 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
24830 +$as_echo_n "checking for --with-fpectl... " >&6; }
24836 -rm -f conftest.$ac_objext
24837 -if { (ac_try="$ac_compile"
24838 -case "(($ac_try" in
24839 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 - *) ac_try_echo=$ac_try;;
24842 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 - (eval "$ac_compile") 2>conftest.er1
24845 - grep -v '^ *+' conftest.er1 >conftest.err
24846 - rm -f conftest.er1
24847 - cat conftest.err >&5
24848 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 - (exit $ac_status); } && {
24850 - test -z "$ac_c_werror_flag" ||
24851 - test ! -s conftest.err
24852 - } && test -s conftest.$ac_objext; then
24855 - cat >conftest.$ac_ext <<_ACEOF
24858 -cat confdefs.h >>conftest.$ac_ext
24859 -cat >>conftest.$ac_ext <<_ACEOF
24860 -/* end confdefs.h. */
24861 -#include <wchar.h>
24862 +# Check whether --with-fpectl was given.
24863 +if test "${with_fpectl+set}" = set; then :
24864 + withval=$with_fpectl;
24865 +if test "$withval" != no
24868 - typedef wchar_t ac__type_sizeof_;
24872 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24873 -test_array [0] = 0
24874 +$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
24880 -rm -f conftest.$ac_objext
24881 -if { (ac_try="$ac_compile"
24882 -case "(($ac_try" in
24883 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 - *) ac_try_echo=$ac_try;;
24885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24886 +$as_echo "yes" >&6; }
24887 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 +$as_echo "no" >&6; }
24891 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892 +$as_echo "no" >&6; }
24896 +# check for --with-libm=...
24898 +case $ac_sys_system in
24903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 - (eval "$ac_compile") 2>conftest.er1
24906 - grep -v '^ *+' conftest.er1 >conftest.err
24907 - rm -f conftest.er1
24908 - cat conftest.err >&5
24909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 - (exit $ac_status); } && {
24911 - test -z "$ac_c_werror_flag" ||
24912 - test ! -s conftest.err
24913 - } && test -s conftest.$ac_objext; then
24914 - ac_hi=$ac_mid; break
24915 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
24916 +$as_echo_n "checking for --with-libm=STRING... " >&6; }
24918 +# Check whether --with-libm was given.
24919 +if test "${with_libm+set}" = set; then :
24920 + withval=$with_libm;
24921 +if test "$withval" = no
24923 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
24924 +$as_echo "force LIBM empty" >&6; }
24925 +elif test "$withval" != yes
24926 +then LIBM=$withval
24927 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
24928 +$as_echo "set LIBM=\"$withval\"" >&6; }
24929 +else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
24932 - echo "$as_me: failed program was:" >&5
24933 -sed 's/^/| /' conftest.$ac_ext >&5
24935 - ac_lo=`expr $ac_mid + 1`
24936 - if test $ac_lo -le $ac_mid; then
24940 - ac_mid=`expr 2 '*' $ac_mid + 1`
24941 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
24942 +$as_echo "default LIBM=\"$LIBM\"" >&6; }
24945 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 - echo "$as_me: failed program was:" >&5
24949 -sed 's/^/| /' conftest.$ac_ext >&5
24951 - cat >conftest.$ac_ext <<_ACEOF
24954 -cat confdefs.h >>conftest.$ac_ext
24955 -cat >>conftest.$ac_ext <<_ACEOF
24956 -/* end confdefs.h. */
24957 -#include <wchar.h>
24958 +# check for --with-libc=...
24960 - typedef wchar_t ac__type_sizeof_;
24964 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24965 -test_array [0] = 0
24966 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
24967 +$as_echo_n "checking for --with-libc=STRING... " >&6; }
24973 -rm -f conftest.$ac_objext
24974 -if { (ac_try="$ac_compile"
24975 -case "(($ac_try" in
24976 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977 - *) ac_try_echo=$ac_try;;
24979 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980 - (eval "$ac_compile") 2>conftest.er1
24982 - grep -v '^ *+' conftest.er1 >conftest.err
24983 - rm -f conftest.er1
24984 - cat conftest.err >&5
24985 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 - (exit $ac_status); } && {
24987 - test -z "$ac_c_werror_flag" ||
24988 - test ! -s conftest.err
24989 - } && test -s conftest.$ac_objext; then
24990 - ac_hi=-1 ac_mid=-1
24992 - cat >conftest.$ac_ext <<_ACEOF
24995 -cat confdefs.h >>conftest.$ac_ext
24996 -cat >>conftest.$ac_ext <<_ACEOF
24997 -/* end confdefs.h. */
24998 -#include <wchar.h>
24999 +# Check whether --with-libc was given.
25000 +if test "${with_libc+set}" = set; then :
25001 + withval=$with_libc;
25002 +if test "$withval" = no
25004 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
25005 +$as_echo "force LIBC empty" >&6; }
25006 +elif test "$withval" != yes
25007 +then LIBC=$withval
25008 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
25009 +$as_echo "set LIBC=\"$withval\"" >&6; }
25010 +else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
25013 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
25014 +$as_echo "default LIBC=\"$LIBC\"" >&6; }
25017 - typedef wchar_t ac__type_sizeof_;
25021 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25022 -test_array [0] = 0
25028 -rm -f conftest.$ac_objext
25029 -if { (ac_try="$ac_compile"
25030 -case "(($ac_try" in
25031 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 - *) ac_try_echo=$ac_try;;
25034 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 - (eval "$ac_compile") 2>conftest.er1
25037 - grep -v '^ *+' conftest.er1 >conftest.err
25038 - rm -f conftest.er1
25039 - cat conftest.err >&5
25040 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 - (exit $ac_status); } && {
25042 - test -z "$ac_c_werror_flag" ||
25043 - test ! -s conftest.err
25044 - } && test -s conftest.$ac_objext; then
25045 - ac_lo=$ac_mid; break
25046 +# check for hypot() in math library
25048 +LIBS="$LIBS $LIBM"
25049 +ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
25050 +if test "x$ac_cv_func_hypot" = xyes; then :
25051 + $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
25054 - echo "$as_me: failed program was:" >&5
25055 -sed 's/^/| /' conftest.$ac_ext >&5
25056 + case " $LIBOBJS " in
25057 + *" hypot.$ac_objext "* ) ;;
25058 + *) LIBOBJS="$LIBOBJS hypot.$ac_objext"
25062 - ac_hi=`expr '(' $ac_mid ')' - 1`
25063 - if test $ac_mid -le $ac_hi; then
25067 - ac_mid=`expr 2 '*' $ac_mid`
25070 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25073 - echo "$as_me: failed program was:" >&5
25074 -sed 's/^/| /' conftest.$ac_ext >&5
25080 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082 +# check for wchar.h
25083 +ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
25084 +if test "x$ac_cv_header_wchar_h" = xyes; then :
25086 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087 -# Binary search between lo and hi bounds.
25088 -while test "x$ac_lo" != "x$ac_hi"; do
25089 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25090 - cat >conftest.$ac_ext <<_ACEOF
25093 -cat confdefs.h >>conftest.$ac_ext
25094 -cat >>conftest.$ac_ext <<_ACEOF
25095 -/* end confdefs.h. */
25096 -#include <wchar.h>
25098 - typedef wchar_t ac__type_sizeof_;
25102 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25103 -test_array [0] = 0
25104 +$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
25112 -rm -f conftest.$ac_objext
25113 -if { (ac_try="$ac_compile"
25114 -case "(($ac_try" in
25115 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 - *) ac_try_echo=$ac_try;;
25118 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 - (eval "$ac_compile") 2>conftest.er1
25121 - grep -v '^ *+' conftest.er1 >conftest.err
25122 - rm -f conftest.er1
25123 - cat conftest.err >&5
25124 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 - (exit $ac_status); } && {
25126 - test -z "$ac_c_werror_flag" ||
25127 - test ! -s conftest.err
25128 - } && test -s conftest.$ac_objext; then
25131 - echo "$as_me: failed program was:" >&5
25132 -sed 's/^/| /' conftest.$ac_ext >&5
25135 - ac_lo=`expr '(' $ac_mid ')' + 1`
25138 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25141 -?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25142 -'') if test "$ac_cv_type_wchar_t" = yes; then
25143 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25144 -See \`config.log' for more details." >&5
25145 -echo "$as_me: error: cannot compute sizeof (wchar_t)
25146 -See \`config.log' for more details." >&2;}
25147 - { (exit 77); exit 77; }; }
25149 - ac_cv_sizeof_wchar_t=0
25153 - cat >conftest.$ac_ext <<_ACEOF
25156 -cat confdefs.h >>conftest.$ac_ext
25157 -cat >>conftest.$ac_ext <<_ACEOF
25158 -/* end confdefs.h. */
25159 -#include <wchar.h>
25161 - typedef wchar_t ac__type_sizeof_;
25162 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25163 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25164 -#include <stdio.h>
25165 -#include <stdlib.h>
25170 - FILE *f = fopen ("conftest.val", "w");
25173 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25175 - long int i = longval ();
25176 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
25178 - fprintf (f, "%ld\n", i);
25182 - unsigned long int i = ulongval ();
25183 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
25185 - fprintf (f, "%lu\n", i);
25187 - return ferror (f) || fclose (f) != 0;
25188 +# determine wchar_t size
25189 +if test "$wchar_h" = yes
25191 + # The cast to long int works around a bug in the HP C Compiler
25192 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25193 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25194 +# This bug is HP SR number 8606223364.
25195 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
25196 +$as_echo_n "checking size of wchar_t... " >&6; }
25197 +if ${ac_cv_sizeof_wchar_t+:} false; then :
25198 + $as_echo_n "(cached) " >&6
25200 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
25207 -rm -f conftest$ac_exeext
25208 -if { (ac_try="$ac_link"
25209 -case "(($ac_try" in
25210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 - *) ac_try_echo=$ac_try;;
25213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 - (eval "$ac_link") 2>&5
25216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25218 - { (case "(($ac_try" in
25219 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 - *) ac_try_echo=$ac_try;;
25222 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 - (eval "$ac_try") 2>&5
25225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 - (exit $ac_status); }; }; then
25227 - ac_cv_sizeof_wchar_t=`cat conftest.val`
25229 - echo "$as_me: program exited with status $ac_status" >&5
25230 -echo "$as_me: failed program was:" >&5
25231 -sed 's/^/| /' conftest.$ac_ext >&5
25233 -( exit $ac_status )
25234 -if test "$ac_cv_type_wchar_t" = yes; then
25235 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25236 -See \`config.log' for more details." >&5
25237 -echo "$as_me: error: cannot compute sizeof (wchar_t)
25238 -See \`config.log' for more details." >&2;}
25239 - { (exit 77); exit 77; }; }
25240 + if test "$ac_cv_type_wchar_t" = yes; then
25241 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25242 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25243 +as_fn_error 77 "cannot compute sizeof (wchar_t)
25244 +See \`config.log' for more details" "$LINENO" 5; }
25246 ac_cv_sizeof_wchar_t=0
25249 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25251 -rm -f conftest.val
25254 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25255 -echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
25257 +$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
25261 @@ -20380,14 +10713,10 @@
25265 -{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25266 -echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25267 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
25268 +$as_echo_n "checking for UCS-4 tcl... " >&6; }
25270 -cat >conftest.$ac_ext <<_ACEOF
25273 -cat confdefs.h >>conftest.$ac_ext
25274 -cat >>conftest.$ac_ext <<_ACEOF
25275 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25279 @@ -20402,60 +10731,32 @@
25283 -rm -f conftest.$ac_objext
25284 -if { (ac_try="$ac_compile"
25285 -case "(($ac_try" in
25286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 - *) ac_try_echo=$ac_try;;
25289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 - (eval "$ac_compile") 2>conftest.er1
25292 - grep -v '^ *+' conftest.er1 >conftest.err
25293 - rm -f conftest.er1
25294 - cat conftest.err >&5
25295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 - (exit $ac_status); } && {
25297 - test -z "$ac_c_werror_flag" ||
25298 - test ! -s conftest.err
25299 - } && test -s conftest.$ac_objext; then
25300 +if ac_fn_c_try_compile "$LINENO"; then :
25303 -cat >>confdefs.h <<\_ACEOF
25304 -#define HAVE_UCS4_TCL 1
25306 +$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
25311 - echo "$as_me: failed program was:" >&5
25312 -sed 's/^/| /' conftest.$ac_ext >&5
25317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25318 -{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25319 -echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25320 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
25321 +$as_echo "$have_ucs4_tcl" >&6; }
25323 # check whether wchar_t is signed or not
25324 if test "$wchar_h" = yes
25326 # check whether wchar_t is signed or not
25327 - { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25328 -echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25329 - if test "${ac_cv_wchar_t_signed+set}" = set; then
25330 - echo $ECHO_N "(cached) $ECHO_C" >&6
25331 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
25332 +$as_echo_n "checking whether wchar_t is signed... " >&6; }
25333 + if ${ac_cv_wchar_t_signed+:} false; then :
25334 + $as_echo_n "(cached) " >&6
25337 - if test "$cross_compiling" = yes; then
25338 + if test "$cross_compiling" = yes; then :
25339 ac_cv_wchar_t_signed=yes
25341 - cat >conftest.$ac_ext <<_ACEOF
25344 -cat confdefs.h >>conftest.$ac_ext
25345 -cat >>conftest.$ac_ext <<_ACEOF
25346 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25347 /* end confdefs.h. */
25350 @@ -20466,49 +10767,25 @@
25354 -rm -f conftest$ac_exeext
25355 -if { (ac_try="$ac_link"
25356 -case "(($ac_try" in
25357 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 - *) ac_try_echo=$ac_try;;
25360 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361 - (eval "$ac_link") 2>&5
25363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25365 - { (case "(($ac_try" in
25366 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 - *) ac_try_echo=$ac_try;;
25369 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 - (eval "$ac_try") 2>&5
25372 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 - (exit $ac_status); }; }; then
25374 +if ac_fn_c_try_run "$LINENO"; then :
25375 ac_cv_wchar_t_signed=yes
25377 - echo "$as_me: program exited with status $ac_status" >&5
25378 -echo "$as_me: failed program was:" >&5
25379 -sed 's/^/| /' conftest.$ac_ext >&5
25381 -( exit $ac_status )
25382 -ac_cv_wchar_t_signed=no
25383 + ac_cv_wchar_t_signed=no
25385 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25386 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25387 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25393 - { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25394 -echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25395 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
25396 +$as_echo "$ac_cv_wchar_t_signed" >&6; }
25399 -{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25400 -echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25401 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
25402 +$as_echo_n "checking what type to use for unicode... " >&6; }
25403 # Check whether --enable-unicode was given.
25404 -if test "${enable_unicode+set}" = set; then
25405 +if test "${enable_unicode+set}" = set; then :
25406 enableval=$enable_unicode;
25409 @@ -20527,18 +10804,13 @@
25414 case "$enable_unicode" in
25415 ucs2) unicode_size="2"
25416 - cat >>confdefs.h <<\_ACEOF
25417 -#define Py_UNICODE_SIZE 2
25419 + $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
25422 ucs4) unicode_size="4"
25423 - cat >>confdefs.h <<\_ACEOF
25424 -#define Py_UNICODE_SIZE 4
25426 + $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
25430 @@ -20546,18 +10818,15 @@
25435 if test "$enable_unicode" = "no"
25438 - { echo "$as_me:$LINENO: result: not used" >&5
25439 -echo "${ECHO_T}not used" >&6; }
25440 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
25441 +$as_echo "not used" >&6; }
25443 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25445 -cat >>confdefs.h <<\_ACEOF
25446 -#define Py_USING_UNICODE 1
25448 +$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
25451 # wchar_t is only usable if it maps to an unsigned type
25452 @@ -20566,291 +10835,266 @@
25454 PY_UNICODE_TYPE="wchar_t"
25456 -cat >>confdefs.h <<\_ACEOF
25457 -#define HAVE_USABLE_WCHAR_T 1
25459 +$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
25461 - cat >>confdefs.h <<\_ACEOF
25462 -#define PY_UNICODE_TYPE wchar_t
25464 + $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
25466 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25468 PY_UNICODE_TYPE="unsigned short"
25469 - cat >>confdefs.h <<\_ACEOF
25470 -#define PY_UNICODE_TYPE unsigned short
25472 + $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
25474 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25476 PY_UNICODE_TYPE="unsigned long"
25477 - cat >>confdefs.h <<\_ACEOF
25478 -#define PY_UNICODE_TYPE unsigned long
25480 + $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
25483 PY_UNICODE_TYPE="no type found"
25485 - { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25486 -echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25487 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
25488 +$as_echo "$PY_UNICODE_TYPE" >&6; }
25491 # check for endianness
25492 -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25493 -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25494 -if test "${ac_cv_c_bigendian+set}" = set; then
25495 - echo $ECHO_N "(cached) $ECHO_C" >&6
25497 - # See if sys/param.h defines the BYTE_ORDER macro.
25498 -cat >conftest.$ac_ext <<_ACEOF
25501 -cat confdefs.h >>conftest.$ac_ext
25502 -cat >>conftest.$ac_ext <<_ACEOF
25503 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25504 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25505 +if ${ac_cv_c_bigendian+:} false; then :
25506 + $as_echo_n "(cached) " >&6
25508 + ac_cv_c_bigendian=unknown
25509 + # See if we're dealing with a universal compiler.
25510 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 +/* end confdefs.h. */
25512 +#ifndef __APPLE_CC__
25513 + not a universal capable compiler
25515 + typedef int dummy;
25518 +if ac_fn_c_try_compile "$LINENO"; then :
25520 + # Check for potential -arch flags. It is not universal unless
25521 + # there are at least two -arch flags with different values.
25524 + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25525 + if test -n "$ac_prev"; then
25527 + i?86 | x86_64 | ppc | ppc64)
25528 + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25531 + ac_cv_c_bigendian=universal
25537 + elif test "x$ac_word" = "x-arch"; then
25542 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25543 + if test $ac_cv_c_bigendian = unknown; then
25544 + # See if sys/param.h defines the BYTE_ORDER macro.
25545 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25546 /* end confdefs.h. */
25547 #include <sys/types.h>
25548 -#include <sys/param.h>
25549 + #include <sys/param.h>
25554 -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25555 - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25556 - bogus endian macros
25558 +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25559 + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25560 + && LITTLE_ENDIAN)
25561 + bogus endian macros
25568 -rm -f conftest.$ac_objext
25569 -if { (ac_try="$ac_compile"
25570 -case "(($ac_try" in
25571 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 - *) ac_try_echo=$ac_try;;
25574 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 - (eval "$ac_compile") 2>conftest.er1
25577 - grep -v '^ *+' conftest.er1 >conftest.err
25578 - rm -f conftest.er1
25579 - cat conftest.err >&5
25580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 - (exit $ac_status); } && {
25582 - test -z "$ac_c_werror_flag" ||
25583 - test ! -s conftest.err
25584 - } && test -s conftest.$ac_objext; then
25585 +if ac_fn_c_try_compile "$LINENO"; then :
25586 # It does; now see whether it defined to BIG_ENDIAN or not.
25587 -cat >conftest.$ac_ext <<_ACEOF
25590 -cat confdefs.h >>conftest.$ac_ext
25591 -cat >>conftest.$ac_ext <<_ACEOF
25592 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25593 /* end confdefs.h. */
25594 #include <sys/types.h>
25595 -#include <sys/param.h>
25596 + #include <sys/param.h>
25601 #if BYTE_ORDER != BIG_ENDIAN
25611 -rm -f conftest.$ac_objext
25612 -if { (ac_try="$ac_compile"
25613 -case "(($ac_try" in
25614 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 - *) ac_try_echo=$ac_try;;
25617 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 - (eval "$ac_compile") 2>conftest.er1
25620 - grep -v '^ *+' conftest.er1 >conftest.err
25621 - rm -f conftest.er1
25622 - cat conftest.err >&5
25623 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 - (exit $ac_status); } && {
25625 - test -z "$ac_c_werror_flag" ||
25626 - test ! -s conftest.err
25627 - } && test -s conftest.$ac_objext; then
25628 +if ac_fn_c_try_compile "$LINENO"; then :
25629 ac_cv_c_bigendian=yes
25631 - echo "$as_me: failed program was:" >&5
25632 -sed 's/^/| /' conftest.$ac_ext >&5
25634 - ac_cv_c_bigendian=no
25635 + ac_cv_c_bigendian=no
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 - echo "$as_me: failed program was:" >&5
25641 -sed 's/^/| /' conftest.$ac_ext >&5
25643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25645 + if test $ac_cv_c_bigendian = unknown; then
25646 + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25647 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 +/* end confdefs.h. */
25649 +#include <limits.h>
25651 - # It does not; compile a test program.
25652 -if test "$cross_compiling" = yes; then
25653 - # try to guess the endianness by grepping values into an object file
25654 - ac_cv_c_bigendian=unknown
25655 - cat >conftest.$ac_ext <<_ACEOF
25660 +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25661 + bogus endian macros
25668 +if ac_fn_c_try_compile "$LINENO"; then :
25669 + # It does; now see whether it defined to _BIG_ENDIAN or not.
25670 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25671 +/* end confdefs.h. */
25672 +#include <limits.h>
25677 +#ifndef _BIG_ENDIAN
25685 -cat confdefs.h >>conftest.$ac_ext
25686 -cat >>conftest.$ac_ext <<_ACEOF
25687 +if ac_fn_c_try_compile "$LINENO"; then :
25688 + ac_cv_c_bigendian=yes
25690 + ac_cv_c_bigendian=no
25692 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696 + if test $ac_cv_c_bigendian = unknown; then
25697 + # Compile a test program.
25698 + if test "$cross_compiling" = yes; then :
25699 + # Try to guess by grepping values from an object file.
25700 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h. */
25702 -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25703 -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25704 -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25705 -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25706 -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25707 -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25708 +short int ascii_mm[] =
25709 + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25710 + short int ascii_ii[] =
25711 + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25712 + int use_ascii (int i) {
25713 + return ascii_mm[i] + ascii_ii[i];
25715 + short int ebcdic_ii[] =
25716 + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25717 + short int ebcdic_mm[] =
25718 + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25719 + int use_ebcdic (int i) {
25720 + return ebcdic_mm[i] + ebcdic_ii[i];
25727 - _ascii (); _ebcdic ();
25728 +return use_ascii (foo) == use_ebcdic (foo);
25733 -rm -f conftest.$ac_objext
25734 -if { (ac_try="$ac_compile"
25735 -case "(($ac_try" in
25736 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 - *) ac_try_echo=$ac_try;;
25739 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 - (eval "$ac_compile") 2>conftest.er1
25742 - grep -v '^ *+' conftest.er1 >conftest.err
25743 - rm -f conftest.er1
25744 - cat conftest.err >&5
25745 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 - (exit $ac_status); } && {
25747 - test -z "$ac_c_werror_flag" ||
25748 - test ! -s conftest.err
25749 - } && test -s conftest.$ac_objext; then
25750 - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25751 - ac_cv_c_bigendian=yes
25753 -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25754 - if test "$ac_cv_c_bigendian" = unknown; then
25755 - ac_cv_c_bigendian=no
25757 - # finding both strings is unlikely to happen, but who knows?
25758 - ac_cv_c_bigendian=unknown
25762 - echo "$as_me: failed program was:" >&5
25763 -sed 's/^/| /' conftest.$ac_ext >&5
25766 +if ac_fn_c_try_compile "$LINENO"; then :
25767 + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25768 + ac_cv_c_bigendian=yes
25770 + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25771 + if test "$ac_cv_c_bigendian" = unknown; then
25772 + ac_cv_c_bigendian=no
25774 + # finding both strings is unlikely to happen, but who knows?
25775 + ac_cv_c_bigendian=unknown
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782 - cat >conftest.$ac_ext <<_ACEOF
25785 -cat confdefs.h >>conftest.$ac_ext
25786 -cat >>conftest.$ac_ext <<_ACEOF
25787 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h. */
25789 $ac_includes_default
25794 - /* Are we little or big endian? From Harbison&Steele. */
25798 - char c[sizeof (long int)];
25801 - return u.c[sizeof (long int) - 1] == 1;
25802 + /* Are we little or big endian? From Harbison&Steele. */
25806 + char c[sizeof (long int)];
25809 + return u.c[sizeof (long int) - 1] == 1;
25815 -rm -f conftest$ac_exeext
25816 -if { (ac_try="$ac_link"
25817 -case "(($ac_try" in
25818 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 - *) ac_try_echo=$ac_try;;
25821 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 - (eval "$ac_link") 2>&5
25824 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25826 - { (case "(($ac_try" in
25827 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 - *) ac_try_echo=$ac_try;;
25830 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831 - (eval "$ac_try") 2>&5
25833 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 - (exit $ac_status); }; }; then
25835 +if ac_fn_c_try_run "$LINENO"; then :
25836 ac_cv_c_bigendian=no
25838 - echo "$as_me: program exited with status $ac_status" >&5
25839 -echo "$as_me: failed program was:" >&5
25840 -sed 's/^/| /' conftest.$ac_ext >&5
25842 -( exit $ac_status )
25843 -ac_cv_c_bigendian=yes
25845 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25846 + ac_cv_c_bigendian=yes
25850 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25851 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25854 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25858 -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25859 -case $ac_cv_c_bigendian in
25861 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25862 +$as_echo "$ac_cv_c_bigendian" >&6; }
25863 + case $ac_cv_c_bigendian in #(
25865 + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25871 -cat >>confdefs.h <<\_ACEOF
25872 -#define WORDS_BIGENDIAN 1
25878 - { { echo "$as_me:$LINENO: error: unknown endianness
25879 -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25880 -echo "$as_me: error: unknown endianness
25881 -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25882 - { (exit 1); exit 1; }; } ;;
25884 +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25888 + as_fn_error $? "unknown endianness
25889 + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25894 # Check whether right shifting a negative integer extends the sign bit
25895 # or fills with zeros (like the Cray J90, according to Tim Peters).
25896 -{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25897 -echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25898 -if test "${ac_cv_rshift_extends_sign+set}" = set; then
25899 - echo $ECHO_N "(cached) $ECHO_C" >&6
25900 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
25901 +$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
25902 +if ${ac_cv_rshift_extends_sign+:} false; then :
25903 + $as_echo_n "(cached) " >&6
25906 -if test "$cross_compiling" = yes; then
25907 +if test "$cross_compiling" = yes; then :
25908 ac_cv_rshift_extends_sign=yes
25910 - cat >conftest.$ac_ext <<_ACEOF
25913 -cat confdefs.h >>conftest.$ac_ext
25914 -cat >>conftest.$ac_ext <<_ACEOF
25915 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25919 @@ -20859,64 +11103,34 @@
25923 -rm -f conftest$ac_exeext
25924 -if { (ac_try="$ac_link"
25925 -case "(($ac_try" in
25926 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 - *) ac_try_echo=$ac_try;;
25929 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930 - (eval "$ac_link") 2>&5
25932 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25934 - { (case "(($ac_try" in
25935 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 - *) ac_try_echo=$ac_try;;
25938 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939 - (eval "$ac_try") 2>&5
25941 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 - (exit $ac_status); }; }; then
25943 +if ac_fn_c_try_run "$LINENO"; then :
25944 ac_cv_rshift_extends_sign=yes
25946 - echo "$as_me: program exited with status $ac_status" >&5
25947 -echo "$as_me: failed program was:" >&5
25948 -sed 's/^/| /' conftest.$ac_ext >&5
25950 -( exit $ac_status )
25951 -ac_cv_rshift_extends_sign=no
25952 + ac_cv_rshift_extends_sign=no
25954 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25955 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25956 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25962 -{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25963 -echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25964 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
25965 +$as_echo "$ac_cv_rshift_extends_sign" >&6; }
25966 if test "$ac_cv_rshift_extends_sign" = no
25969 -cat >>confdefs.h <<\_ACEOF
25970 -#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25972 +$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
25976 # check for getc_unlocked and related locking functions
25977 -{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25978 -echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25979 -if test "${ac_cv_have_getc_unlocked+set}" = set; then
25980 - echo $ECHO_N "(cached) $ECHO_C" >&6
25981 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
25982 +$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
25983 +if ${ac_cv_have_getc_unlocked+:} false; then :
25984 + $as_echo_n "(cached) " >&6
25987 -cat >conftest.$ac_ext <<_ACEOF
25990 -cat confdefs.h >>conftest.$ac_ext
25991 -cat >>conftest.$ac_ext <<_ACEOF
25992 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993 /* end confdefs.h. */
25996 @@ -20932,63 +11146,35 @@
26000 -rm -f conftest.$ac_objext conftest$ac_exeext
26001 -if { (ac_try="$ac_link"
26002 -case "(($ac_try" in
26003 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 - *) ac_try_echo=$ac_try;;
26006 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 - (eval "$ac_link") 2>conftest.er1
26009 - grep -v '^ *+' conftest.er1 >conftest.err
26010 - rm -f conftest.er1
26011 - cat conftest.err >&5
26012 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 - (exit $ac_status); } && {
26014 - test -z "$ac_c_werror_flag" ||
26015 - test ! -s conftest.err
26016 - } && test -s conftest$ac_exeext &&
26017 - $as_test_x conftest$ac_exeext; then
26018 +if ac_fn_c_try_link "$LINENO"; then :
26019 ac_cv_have_getc_unlocked=yes
26021 - echo "$as_me: failed program was:" >&5
26022 -sed 's/^/| /' conftest.$ac_ext >&5
26024 - ac_cv_have_getc_unlocked=no
26025 + ac_cv_have_getc_unlocked=no
26028 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029 - conftest$ac_exeext conftest.$ac_ext
26030 +rm -f core conftest.err conftest.$ac_objext \
26031 + conftest$ac_exeext conftest.$ac_ext
26034 -{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
26035 -echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
26036 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
26037 +$as_echo "$ac_cv_have_getc_unlocked" >&6; }
26038 if test "$ac_cv_have_getc_unlocked" = yes
26041 -cat >>confdefs.h <<\_ACEOF
26042 -#define HAVE_GETC_UNLOCKED 1
26044 +$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
26048 # check where readline lives
26049 # save the value of LIBS so we don't actually link Python with readline
26050 LIBS_no_readline=$LIBS
26052 -{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
26053 -echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
26054 -if test "${ac_cv_lib_readline_readline+set}" = set; then
26055 - echo $ECHO_N "(cached) $ECHO_C" >&6
26056 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
26057 +$as_echo_n "checking for readline in -lreadline... " >&6; }
26058 +if ${ac_cv_lib_readline_readline+:} false; then :
26059 + $as_echo_n "(cached) " >&6
26061 ac_check_lib_save_LIBS=$LIBS
26062 LIBS="-lreadline $LIBS"
26063 -cat >conftest.$ac_ext <<_ACEOF
26066 -cat confdefs.h >>conftest.$ac_ext
26067 -cat >>conftest.$ac_ext <<_ACEOF
26068 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26069 /* end confdefs.h. */
26071 /* Override any GCC internal prototype to avoid an error.
26072 @@ -21006,39 +11192,18 @@
26076 -rm -f conftest.$ac_objext conftest$ac_exeext
26077 -if { (ac_try="$ac_link"
26078 -case "(($ac_try" in
26079 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080 - *) ac_try_echo=$ac_try;;
26082 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083 - (eval "$ac_link") 2>conftest.er1
26085 - grep -v '^ *+' conftest.er1 >conftest.err
26086 - rm -f conftest.er1
26087 - cat conftest.err >&5
26088 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 - (exit $ac_status); } && {
26090 - test -z "$ac_c_werror_flag" ||
26091 - test ! -s conftest.err
26092 - } && test -s conftest$ac_exeext &&
26093 - $as_test_x conftest$ac_exeext; then
26094 +if ac_fn_c_try_link "$LINENO"; then :
26095 ac_cv_lib_readline_readline=yes
26097 - echo "$as_me: failed program was:" >&5
26098 -sed 's/^/| /' conftest.$ac_ext >&5
26100 - ac_cv_lib_readline_readline=no
26101 + ac_cv_lib_readline_readline=no
26104 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26105 - conftest$ac_exeext conftest.$ac_ext
26106 +rm -f core conftest.err conftest.$ac_objext \
26107 + conftest$ac_exeext conftest.$ac_ext
26108 LIBS=$ac_check_lib_save_LIBS
26110 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
26111 -echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
26112 -if test $ac_cv_lib_readline_readline = yes; then
26113 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
26114 +$as_echo "$ac_cv_lib_readline_readline" >&6; }
26115 +if test "x$ac_cv_lib_readline_readline" = xyes; then :
26116 cat >>confdefs.h <<_ACEOF
26117 #define HAVE_LIBREADLINE 1
26119 @@ -21049,19 +11214,14 @@
26121 if test "$ac_cv_have_readline_readline" = no
26124 -{ echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
26125 -echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
26126 -if test "${ac_cv_lib_termcap_readline+set}" = set; then
26127 - echo $ECHO_N "(cached) $ECHO_C" >&6
26128 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ltermcap" >&5
26129 +$as_echo_n "checking for readline in -ltermcap... " >&6; }
26130 +if ${ac_cv_lib_termcap_readline+:} false; then :
26131 + $as_echo_n "(cached) " >&6
26133 ac_check_lib_save_LIBS=$LIBS
26134 LIBS="-ltermcap $LIBS"
26135 -cat >conftest.$ac_ext <<_ACEOF
26138 -cat confdefs.h >>conftest.$ac_ext
26139 -cat >>conftest.$ac_ext <<_ACEOF
26140 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141 /* end confdefs.h. */
26143 /* Override any GCC internal prototype to avoid an error.
26144 @@ -21079,39 +11239,18 @@
26148 -rm -f conftest.$ac_objext conftest$ac_exeext
26149 -if { (ac_try="$ac_link"
26150 -case "(($ac_try" in
26151 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 - *) ac_try_echo=$ac_try;;
26154 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155 - (eval "$ac_link") 2>conftest.er1
26157 - grep -v '^ *+' conftest.er1 >conftest.err
26158 - rm -f conftest.er1
26159 - cat conftest.err >&5
26160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 - (exit $ac_status); } && {
26162 - test -z "$ac_c_werror_flag" ||
26163 - test ! -s conftest.err
26164 - } && test -s conftest$ac_exeext &&
26165 - $as_test_x conftest$ac_exeext; then
26166 +if ac_fn_c_try_link "$LINENO"; then :
26167 ac_cv_lib_termcap_readline=yes
26169 - echo "$as_me: failed program was:" >&5
26170 -sed 's/^/| /' conftest.$ac_ext >&5
26172 - ac_cv_lib_termcap_readline=no
26173 + ac_cv_lib_termcap_readline=no
26176 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26177 - conftest$ac_exeext conftest.$ac_ext
26178 +rm -f core conftest.err conftest.$ac_objext \
26179 + conftest$ac_exeext conftest.$ac_ext
26180 LIBS=$ac_check_lib_save_LIBS
26182 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
26183 -echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
26184 -if test $ac_cv_lib_termcap_readline = yes; then
26185 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_readline" >&5
26186 +$as_echo "$ac_cv_lib_termcap_readline" >&6; }
26187 +if test "x$ac_cv_lib_termcap_readline" = xyes; then :
26188 cat >>confdefs.h <<_ACEOF
26189 #define HAVE_LIBTERMCAP 1
26191 @@ -21123,18 +11262,14 @@
26194 # check for readline 2.1
26195 -{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
26196 -echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
26197 -if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
26198 - echo $ECHO_N "(cached) $ECHO_C" >&6
26199 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
26200 +$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
26201 +if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
26202 + $as_echo_n "(cached) " >&6
26204 ac_check_lib_save_LIBS=$LIBS
26205 LIBS="-lreadline $LIBS"
26206 -cat >conftest.$ac_ext <<_ACEOF
26209 -cat confdefs.h >>conftest.$ac_ext
26210 -cat >>conftest.$ac_ext <<_ACEOF
26211 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26212 /* end confdefs.h. */
26214 /* Override any GCC internal prototype to avoid an error.
26215 @@ -21152,98 +11287,46 @@
26219 -rm -f conftest.$ac_objext conftest$ac_exeext
26220 -if { (ac_try="$ac_link"
26221 -case "(($ac_try" in
26222 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 - *) ac_try_echo=$ac_try;;
26225 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226 - (eval "$ac_link") 2>conftest.er1
26228 - grep -v '^ *+' conftest.er1 >conftest.err
26229 - rm -f conftest.er1
26230 - cat conftest.err >&5
26231 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 - (exit $ac_status); } && {
26233 - test -z "$ac_c_werror_flag" ||
26234 - test ! -s conftest.err
26235 - } && test -s conftest$ac_exeext &&
26236 - $as_test_x conftest$ac_exeext; then
26237 +if ac_fn_c_try_link "$LINENO"; then :
26238 ac_cv_lib_readline_rl_callback_handler_install=yes
26240 - echo "$as_me: failed program was:" >&5
26241 -sed 's/^/| /' conftest.$ac_ext >&5
26243 - ac_cv_lib_readline_rl_callback_handler_install=no
26244 + ac_cv_lib_readline_rl_callback_handler_install=no
26247 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26248 - conftest$ac_exeext conftest.$ac_ext
26249 +rm -f core conftest.err conftest.$ac_objext \
26250 + conftest$ac_exeext conftest.$ac_ext
26251 LIBS=$ac_check_lib_save_LIBS
26253 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26254 -echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26255 -if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
26256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26257 +$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26258 +if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
26260 -cat >>confdefs.h <<\_ACEOF
26261 -#define HAVE_RL_CALLBACK 1
26263 +$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
26268 # check for readline 2.2
26269 -cat >conftest.$ac_ext <<_ACEOF
26272 -cat confdefs.h >>conftest.$ac_ext
26273 -cat >>conftest.$ac_ext <<_ACEOF
26274 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275 /* end confdefs.h. */
26276 #include <readline/readline.h>
26278 -if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 -case "(($ac_try" in
26280 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 - *) ac_try_echo=$ac_try;;
26283 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26286 - grep -v '^ *+' conftest.er1 >conftest.err
26287 - rm -f conftest.er1
26288 - cat conftest.err >&5
26289 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 - (exit $ac_status); } >/dev/null && {
26291 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292 - test ! -s conftest.err
26294 +if ac_fn_c_try_cpp "$LINENO"; then :
26297 - echo "$as_me: failed program was:" >&5
26298 -sed 's/^/| /' conftest.$ac_ext >&5
26303 -rm -f conftest.err conftest.$ac_ext
26304 +rm -f conftest.err conftest.i conftest.$ac_ext
26305 if test $have_readline = yes
26307 - cat >conftest.$ac_ext <<_ACEOF
26310 -cat confdefs.h >>conftest.$ac_ext
26311 -cat >>conftest.$ac_ext <<_ACEOF
26312 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h. */
26314 #include <readline/readline.h>
26317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26318 - $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26319 + $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
26321 -cat >>confdefs.h <<\_ACEOF
26322 -#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26324 +$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
26328 @@ -21251,18 +11334,14 @@
26331 # check for readline 4.0
26332 -{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26333 -echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26334 -if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26335 - echo $ECHO_N "(cached) $ECHO_C" >&6
26336 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
26337 +$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
26338 +if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
26339 + $as_echo_n "(cached) " >&6
26341 ac_check_lib_save_LIBS=$LIBS
26342 LIBS="-lreadline $LIBS"
26343 -cat >conftest.$ac_ext <<_ACEOF
26346 -cat confdefs.h >>conftest.$ac_ext
26347 -cat >>conftest.$ac_ext <<_ACEOF
26348 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h. */
26351 /* Override any GCC internal prototype to avoid an error.
26352 @@ -21280,60 +11359,33 @@
26356 -rm -f conftest.$ac_objext conftest$ac_exeext
26357 -if { (ac_try="$ac_link"
26358 -case "(($ac_try" in
26359 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 - *) ac_try_echo=$ac_try;;
26362 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 - (eval "$ac_link") 2>conftest.er1
26365 - grep -v '^ *+' conftest.er1 >conftest.err
26366 - rm -f conftest.er1
26367 - cat conftest.err >&5
26368 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 - (exit $ac_status); } && {
26370 - test -z "$ac_c_werror_flag" ||
26371 - test ! -s conftest.err
26372 - } && test -s conftest$ac_exeext &&
26373 - $as_test_x conftest$ac_exeext; then
26374 +if ac_fn_c_try_link "$LINENO"; then :
26375 ac_cv_lib_readline_rl_pre_input_hook=yes
26377 - echo "$as_me: failed program was:" >&5
26378 -sed 's/^/| /' conftest.$ac_ext >&5
26380 - ac_cv_lib_readline_rl_pre_input_hook=no
26381 + ac_cv_lib_readline_rl_pre_input_hook=no
26384 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26385 - conftest$ac_exeext conftest.$ac_ext
26386 +rm -f core conftest.err conftest.$ac_objext \
26387 + conftest$ac_exeext conftest.$ac_ext
26388 LIBS=$ac_check_lib_save_LIBS
26390 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26391 -echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26392 -if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26393 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26394 +$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26395 +if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
26397 -cat >>confdefs.h <<\_ACEOF
26398 -#define HAVE_RL_PRE_INPUT_HOOK 1
26400 +$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
26405 # check for readline 4.2
26406 -{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26407 -echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26408 -if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26409 - echo $ECHO_N "(cached) $ECHO_C" >&6
26410 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
26411 +$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
26412 +if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
26413 + $as_echo_n "(cached) " >&6
26415 ac_check_lib_save_LIBS=$LIBS
26416 LIBS="-lreadline $LIBS"
26417 -cat >conftest.$ac_ext <<_ACEOF
26420 -cat confdefs.h >>conftest.$ac_ext
26421 -cat >>conftest.$ac_ext <<_ACEOF
26422 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h. */
26425 /* Override any GCC internal prototype to avoid an error.
26426 @@ -21351,98 +11403,46 @@
26430 -rm -f conftest.$ac_objext conftest$ac_exeext
26431 -if { (ac_try="$ac_link"
26432 -case "(($ac_try" in
26433 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 - *) ac_try_echo=$ac_try;;
26436 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437 - (eval "$ac_link") 2>conftest.er1
26439 - grep -v '^ *+' conftest.er1 >conftest.err
26440 - rm -f conftest.er1
26441 - cat conftest.err >&5
26442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 - (exit $ac_status); } && {
26444 - test -z "$ac_c_werror_flag" ||
26445 - test ! -s conftest.err
26446 - } && test -s conftest$ac_exeext &&
26447 - $as_test_x conftest$ac_exeext; then
26448 +if ac_fn_c_try_link "$LINENO"; then :
26449 ac_cv_lib_readline_rl_completion_matches=yes
26451 - echo "$as_me: failed program was:" >&5
26452 -sed 's/^/| /' conftest.$ac_ext >&5
26454 - ac_cv_lib_readline_rl_completion_matches=no
26455 + ac_cv_lib_readline_rl_completion_matches=no
26458 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459 - conftest$ac_exeext conftest.$ac_ext
26460 +rm -f core conftest.err conftest.$ac_objext \
26461 + conftest$ac_exeext conftest.$ac_ext
26462 LIBS=$ac_check_lib_save_LIBS
26464 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26465 -echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26466 -if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26467 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26468 +$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
26469 +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
26471 -cat >>confdefs.h <<\_ACEOF
26472 -#define HAVE_RL_COMPLETION_MATCHES 1
26474 +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
26479 # also in readline 4.2
26480 -cat >conftest.$ac_ext <<_ACEOF
26483 -cat confdefs.h >>conftest.$ac_ext
26484 -cat >>conftest.$ac_ext <<_ACEOF
26485 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h. */
26487 #include <readline/readline.h>
26489 -if { (ac_try="$ac_cpp conftest.$ac_ext"
26490 -case "(($ac_try" in
26491 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 - *) ac_try_echo=$ac_try;;
26494 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26497 - grep -v '^ *+' conftest.er1 >conftest.err
26498 - rm -f conftest.er1
26499 - cat conftest.err >&5
26500 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 - (exit $ac_status); } >/dev/null && {
26502 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26503 - test ! -s conftest.err
26505 +if ac_fn_c_try_cpp "$LINENO"; then :
26508 - echo "$as_me: failed program was:" >&5
26509 -sed 's/^/| /' conftest.$ac_ext >&5
26514 -rm -f conftest.err conftest.$ac_ext
26515 +rm -f conftest.err conftest.i conftest.$ac_ext
26516 if test $have_readline = yes
26518 - cat >conftest.$ac_ext <<_ACEOF
26521 -cat confdefs.h >>conftest.$ac_ext
26522 -cat >>conftest.$ac_ext <<_ACEOF
26523 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26524 /* end confdefs.h. */
26525 #include <readline/readline.h>
26528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26529 - $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26530 + $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
26532 -cat >>confdefs.h <<\_ACEOF
26533 -#define HAVE_RL_CATCH_SIGNAL 1
26535 +$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
26539 @@ -21452,20 +11452,16 @@
26540 # End of readline checks: restore LIBS
26541 LIBS=$LIBS_no_readline
26543 -{ echo "$as_me:$LINENO: checking for broken nice()" >&5
26544 -echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26545 -if test "${ac_cv_broken_nice+set}" = set; then
26546 - echo $ECHO_N "(cached) $ECHO_C" >&6
26547 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
26548 +$as_echo_n "checking for broken nice()... " >&6; }
26549 +if ${ac_cv_broken_nice+:} false; then :
26550 + $as_echo_n "(cached) " >&6
26553 -if test "$cross_compiling" = yes; then
26554 +if test "$cross_compiling" = yes; then :
26555 ac_cv_broken_nice=no
26557 - cat >conftest.$ac_ext <<_ACEOF
26560 -cat confdefs.h >>conftest.$ac_ext
26561 -cat >>conftest.$ac_ext <<_ACEOF
26562 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26563 /* end confdefs.h. */
26566 @@ -21477,62 +11473,32 @@
26570 -rm -f conftest$ac_exeext
26571 -if { (ac_try="$ac_link"
26572 -case "(($ac_try" in
26573 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574 - *) ac_try_echo=$ac_try;;
26576 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577 - (eval "$ac_link") 2>&5
26579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26581 - { (case "(($ac_try" in
26582 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 - *) ac_try_echo=$ac_try;;
26585 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 - (eval "$ac_try") 2>&5
26588 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 - (exit $ac_status); }; }; then
26590 +if ac_fn_c_try_run "$LINENO"; then :
26591 ac_cv_broken_nice=yes
26593 - echo "$as_me: program exited with status $ac_status" >&5
26594 -echo "$as_me: failed program was:" >&5
26595 -sed 's/^/| /' conftest.$ac_ext >&5
26597 -( exit $ac_status )
26598 -ac_cv_broken_nice=no
26599 + ac_cv_broken_nice=no
26601 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26602 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26603 + conftest.$ac_objext conftest.beam conftest.$ac_ext
26609 -{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26610 -echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26611 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
26612 +$as_echo "$ac_cv_broken_nice" >&6; }
26613 if test "$ac_cv_broken_nice" = yes
26616 -cat >>confdefs.h <<\_ACEOF
26617 -#define HAVE_BROKEN_NICE 1
26619 +$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
26623 -{ echo "$as_me:$LINENO: checking for broken poll()" >&5
26624 -echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26625 -if test "$cross_compiling" = yes; then
26626 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
26627 +$as_echo_n "checking for broken poll()... " >&6; }
26628 +if test "$cross_compiling" = yes; then :
26629 ac_cv_broken_poll=no
26631 - cat >conftest.$ac_ext <<_ACEOF
26634 -cat confdefs.h >>conftest.$ac_ext
26635 -cat >>conftest.$ac_ext <<_ACEOF
26636 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26637 /* end confdefs.h. */
26640 @@ -21560,153 +11526,32 @@
26644 -rm -f conftest$ac_exeext
26645 -if { (ac_try="$ac_link"
26646 -case "(($ac_try" in
26647 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648 - *) ac_try_echo=$ac_try;;
26650 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651 - (eval "$ac_link") 2>&5
26653 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26655 - { (case "(($ac_try" in
26656 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657 - *) ac_try_echo=$ac_try;;
26659 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660 - (eval "$ac_try") 2>&5
26662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 - (exit $ac_status); }; }; then
26664 +if ac_fn_c_try_run "$LINENO"; then :
26665 ac_cv_broken_poll=yes
26667 - echo "$as_me: program exited with status $ac_status" >&5
26668 -echo "$as_me: failed program was:" >&5
26669 -sed 's/^/| /' conftest.$ac_ext >&5
26671 -( exit $ac_status )
26672 -ac_cv_broken_poll=no
26674 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26678 -{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26679 -echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26680 -if test "$ac_cv_broken_poll" = yes
26683 -cat >>confdefs.h <<\_ACEOF
26684 -#define HAVE_BROKEN_POLL 1
26689 -# Before we can test tzset, we need to check if struct tm has a tm_zone
26690 -# (which is not required by ISO C or UNIX spec) and/or if we support
26692 -{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26693 -echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26694 -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26695 - echo $ECHO_N "(cached) $ECHO_C" >&6
26697 - cat >conftest.$ac_ext <<_ACEOF
26700 -cat confdefs.h >>conftest.$ac_ext
26701 -cat >>conftest.$ac_ext <<_ACEOF
26702 -/* end confdefs.h. */
26703 -#include <sys/types.h>
26704 -#include <$ac_cv_struct_tm>
26710 -static struct tm ac_aggr;
26711 -if (ac_aggr.tm_zone)
26717 -rm -f conftest.$ac_objext
26718 -if { (ac_try="$ac_compile"
26719 -case "(($ac_try" in
26720 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721 - *) ac_try_echo=$ac_try;;
26723 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724 - (eval "$ac_compile") 2>conftest.er1
26726 - grep -v '^ *+' conftest.er1 >conftest.err
26727 - rm -f conftest.er1
26728 - cat conftest.err >&5
26729 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 - (exit $ac_status); } && {
26731 - test -z "$ac_c_werror_flag" ||
26732 - test ! -s conftest.err
26733 - } && test -s conftest.$ac_objext; then
26734 - ac_cv_member_struct_tm_tm_zone=yes
26736 - echo "$as_me: failed program was:" >&5
26737 -sed 's/^/| /' conftest.$ac_ext >&5
26739 - cat >conftest.$ac_ext <<_ACEOF
26742 -cat confdefs.h >>conftest.$ac_ext
26743 -cat >>conftest.$ac_ext <<_ACEOF
26744 -/* end confdefs.h. */
26745 -#include <sys/types.h>
26746 -#include <$ac_cv_struct_tm>
26752 -static struct tm ac_aggr;
26753 -if (sizeof ac_aggr.tm_zone)
26759 -rm -f conftest.$ac_objext
26760 -if { (ac_try="$ac_compile"
26761 -case "(($ac_try" in
26762 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 - *) ac_try_echo=$ac_try;;
26765 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 - (eval "$ac_compile") 2>conftest.er1
26768 - grep -v '^ *+' conftest.er1 >conftest.err
26769 - rm -f conftest.er1
26770 - cat conftest.err >&5
26771 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 - (exit $ac_status); } && {
26773 - test -z "$ac_c_werror_flag" ||
26774 - test ! -s conftest.err
26775 - } && test -s conftest.$ac_objext; then
26776 - ac_cv_member_struct_tm_tm_zone=yes
26778 - echo "$as_me: failed program was:" >&5
26779 -sed 's/^/| /' conftest.$ac_ext >&5
26781 - ac_cv_member_struct_tm_tm_zone=no
26782 + ac_cv_broken_poll=no
26785 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26787 + conftest.$ac_objext conftest.beam conftest.$ac_ext
26790 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
26792 +$as_echo "$ac_cv_broken_poll" >&6; }
26793 +if test "$ac_cv_broken_poll" = yes
26796 +$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
26799 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26800 -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26801 -if test $ac_cv_member_struct_tm_tm_zone = yes; then
26803 +# Before we can test tzset, we need to check if struct tm has a tm_zone
26804 +# (which is not required by ISO C or UNIX spec) and/or if we support
26806 +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26807 +#include <$ac_cv_struct_tm>
26810 +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26812 cat >>confdefs.h <<_ACEOF
26813 #define HAVE_STRUCT_TM_TM_ZONE 1
26814 @@ -21717,90 +11562,27 @@
26816 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26818 -cat >>confdefs.h <<\_ACEOF
26819 -#define HAVE_TM_ZONE 1
26821 +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26824 - { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26825 -echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26826 -if test "${ac_cv_have_decl_tzname+set}" = set; then
26827 - echo $ECHO_N "(cached) $ECHO_C" >&6
26829 - cat >conftest.$ac_ext <<_ACEOF
26832 -cat confdefs.h >>conftest.$ac_ext
26833 -cat >>conftest.$ac_ext <<_ACEOF
26834 -/* end confdefs.h. */
26848 -rm -f conftest.$ac_objext
26849 -if { (ac_try="$ac_compile"
26850 -case "(($ac_try" in
26851 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26852 - *) ac_try_echo=$ac_try;;
26854 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26855 - (eval "$ac_compile") 2>conftest.er1
26857 - grep -v '^ *+' conftest.er1 >conftest.err
26858 - rm -f conftest.er1
26859 - cat conftest.err >&5
26860 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 - (exit $ac_status); } && {
26862 - test -z "$ac_c_werror_flag" ||
26863 - test ! -s conftest.err
26864 - } && test -s conftest.$ac_objext; then
26865 - ac_cv_have_decl_tzname=yes
26866 + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26868 +if test "x$ac_cv_have_decl_tzname" = xyes; then :
26871 - echo "$as_me: failed program was:" >&5
26872 -sed 's/^/| /' conftest.$ac_ext >&5
26874 - ac_cv_have_decl_tzname=no
26877 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26881 -echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26882 -if test $ac_cv_have_decl_tzname = yes; then
26884 cat >>confdefs.h <<_ACEOF
26885 -#define HAVE_DECL_TZNAME 1
26890 - cat >>confdefs.h <<_ACEOF
26891 -#define HAVE_DECL_TZNAME 0
26892 +#define HAVE_DECL_TZNAME $ac_have_decl
26899 - { echo "$as_me:$LINENO: checking for tzname" >&5
26900 -echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26901 -if test "${ac_cv_var_tzname+set}" = set; then
26902 - echo $ECHO_N "(cached) $ECHO_C" >&6
26903 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26904 +$as_echo_n "checking for tzname... " >&6; }
26905 +if ${ac_cv_var_tzname+:} false; then :
26906 + $as_echo_n "(cached) " >&6
26908 - cat >conftest.$ac_ext <<_ACEOF
26911 -cat confdefs.h >>conftest.$ac_ext
26912 -cat >>conftest.$ac_ext <<_ACEOF
26913 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914 /* end confdefs.h. */
26916 #if !HAVE_DECL_TZNAME
26917 @@ -21815,62 +11597,35 @@
26921 -rm -f conftest.$ac_objext conftest$ac_exeext
26922 -if { (ac_try="$ac_link"
26923 -case "(($ac_try" in
26924 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 - *) ac_try_echo=$ac_try;;
26927 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 - (eval "$ac_link") 2>conftest.er1
26930 - grep -v '^ *+' conftest.er1 >conftest.err
26931 - rm -f conftest.er1
26932 - cat conftest.err >&5
26933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 - (exit $ac_status); } && {
26935 - test -z "$ac_c_werror_flag" ||
26936 - test ! -s conftest.err
26937 - } && test -s conftest$ac_exeext &&
26938 - $as_test_x conftest$ac_exeext; then
26939 +if ac_fn_c_try_link "$LINENO"; then :
26940 ac_cv_var_tzname=yes
26942 - echo "$as_me: failed program was:" >&5
26943 -sed 's/^/| /' conftest.$ac_ext >&5
26945 - ac_cv_var_tzname=no
26946 + ac_cv_var_tzname=no
26949 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26950 - conftest$ac_exeext conftest.$ac_ext
26951 +rm -f core conftest.err conftest.$ac_objext \
26952 + conftest$ac_exeext conftest.$ac_ext
26954 -{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26955 -echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26956 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26957 +$as_echo "$ac_cv_var_tzname" >&6; }
26958 if test $ac_cv_var_tzname = yes; then
26960 -cat >>confdefs.h <<\_ACEOF
26961 -#define HAVE_TZNAME 1
26963 +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26969 # check tzset(3) exists and works like we expect it to
26970 -{ echo "$as_me:$LINENO: checking for working tzset()" >&5
26971 -echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26972 -if test "${ac_cv_working_tzset+set}" = set; then
26973 - echo $ECHO_N "(cached) $ECHO_C" >&6
26974 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
26975 +$as_echo_n "checking for working tzset()... " >&6; }
26976 +if ${ac_cv_working_tzset+:} false; then :
26977 + $as_echo_n "(cached) " >&6
26980 -if test "$cross_compiling" = yes; then
26981 +if test "$cross_compiling" = yes; then :
26982 ac_cv_working_tzset=no
26984 - cat >conftest.$ac_ext <<_ACEOF
26987 -cat confdefs.h >>conftest.$ac_ext
26988 -cat >>conftest.$ac_ext <<_ACEOF
26989 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <stdlib.h>
26993 @@ -21937,63 +11692,33 @@
26997 -rm -f conftest$ac_exeext
26998 -if { (ac_try="$ac_link"
26999 -case "(($ac_try" in
27000 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 - *) ac_try_echo=$ac_try;;
27003 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 - (eval "$ac_link") 2>&5
27006 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27008 - { (case "(($ac_try" in
27009 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 - *) ac_try_echo=$ac_try;;
27012 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 - (eval "$ac_try") 2>&5
27015 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 - (exit $ac_status); }; }; then
27017 +if ac_fn_c_try_run "$LINENO"; then :
27018 ac_cv_working_tzset=yes
27020 - echo "$as_me: program exited with status $ac_status" >&5
27021 -echo "$as_me: failed program was:" >&5
27022 -sed 's/^/| /' conftest.$ac_ext >&5
27024 -( exit $ac_status )
27025 -ac_cv_working_tzset=no
27026 + ac_cv_working_tzset=no
27028 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27029 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27030 + conftest.$ac_objext conftest.beam conftest.$ac_ext
27036 -{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
27037 -echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
27038 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
27039 +$as_echo "$ac_cv_working_tzset" >&6; }
27040 if test "$ac_cv_working_tzset" = yes
27043 -cat >>confdefs.h <<\_ACEOF
27044 -#define HAVE_WORKING_TZSET 1
27046 +$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
27050 # Look for subsecond timestamps in struct stat
27051 -{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
27052 -echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
27053 -if test "${ac_cv_stat_tv_nsec+set}" = set; then
27054 - echo $ECHO_N "(cached) $ECHO_C" >&6
27055 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
27056 +$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
27057 +if ${ac_cv_stat_tv_nsec+:} false; then :
27058 + $as_echo_n "(cached) " >&6
27060 - cat >conftest.$ac_ext <<_ACEOF
27063 -cat confdefs.h >>conftest.$ac_ext
27064 -cat >>conftest.$ac_ext <<_ACEOF
27065 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h. */
27067 #include <sys/stat.h>
27069 @@ -22007,56 +11732,30 @@
27073 -rm -f conftest.$ac_objext
27074 -if { (ac_try="$ac_compile"
27075 -case "(($ac_try" in
27076 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 - *) ac_try_echo=$ac_try;;
27079 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 - (eval "$ac_compile") 2>conftest.er1
27082 - grep -v '^ *+' conftest.er1 >conftest.err
27083 - rm -f conftest.er1
27084 - cat conftest.err >&5
27085 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 - (exit $ac_status); } && {
27087 - test -z "$ac_c_werror_flag" ||
27088 - test ! -s conftest.err
27089 - } && test -s conftest.$ac_objext; then
27090 +if ac_fn_c_try_compile "$LINENO"; then :
27091 ac_cv_stat_tv_nsec=yes
27093 - echo "$as_me: failed program was:" >&5
27094 -sed 's/^/| /' conftest.$ac_ext >&5
27096 - ac_cv_stat_tv_nsec=no
27097 + ac_cv_stat_tv_nsec=no
27100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 -{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
27104 -echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
27105 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
27106 +$as_echo "$ac_cv_stat_tv_nsec" >&6; }
27107 if test "$ac_cv_stat_tv_nsec" = yes
27110 -cat >>confdefs.h <<\_ACEOF
27111 -#define HAVE_STAT_TV_NSEC 1
27113 +$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
27117 # Look for BSD style subsecond timestamps in struct stat
27118 -{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
27119 -echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
27120 -if test "${ac_cv_stat_tv_nsec2+set}" = set; then
27121 - echo $ECHO_N "(cached) $ECHO_C" >&6
27122 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
27123 +$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
27124 +if ${ac_cv_stat_tv_nsec2+:} false; then :
27125 + $as_echo_n "(cached) " >&6
27127 - cat >conftest.$ac_ext <<_ACEOF
27130 -cat confdefs.h >>conftest.$ac_ext
27131 -cat >>conftest.$ac_ext <<_ACEOF
27132 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27133 /* end confdefs.h. */
27134 #include <sys/stat.h>
27136 @@ -22070,56 +11769,30 @@
27140 -rm -f conftest.$ac_objext
27141 -if { (ac_try="$ac_compile"
27142 -case "(($ac_try" in
27143 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 - *) ac_try_echo=$ac_try;;
27146 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 - (eval "$ac_compile") 2>conftest.er1
27149 - grep -v '^ *+' conftest.er1 >conftest.err
27150 - rm -f conftest.er1
27151 - cat conftest.err >&5
27152 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 - (exit $ac_status); } && {
27154 - test -z "$ac_c_werror_flag" ||
27155 - test ! -s conftest.err
27156 - } && test -s conftest.$ac_objext; then
27157 +if ac_fn_c_try_compile "$LINENO"; then :
27158 ac_cv_stat_tv_nsec2=yes
27160 - echo "$as_me: failed program was:" >&5
27161 -sed 's/^/| /' conftest.$ac_ext >&5
27163 - ac_cv_stat_tv_nsec2=no
27164 + ac_cv_stat_tv_nsec2=no
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 -{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
27171 -echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
27172 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
27173 +$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
27174 if test "$ac_cv_stat_tv_nsec2" = yes
27177 -cat >>confdefs.h <<\_ACEOF
27178 -#define HAVE_STAT_TV_NSEC2 1
27180 +$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
27184 # On HP/UX 11.0, mvwdelch is a block with a return statement
27185 -{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
27186 -echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
27187 -if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
27188 - echo $ECHO_N "(cached) $ECHO_C" >&6
27189 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
27190 +$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
27191 +if ${ac_cv_mvwdelch_is_expression+:} false; then :
27192 + $as_echo_n "(cached) " >&6
27194 - cat >conftest.$ac_ext <<_ACEOF
27197 -cat confdefs.h >>conftest.$ac_ext
27198 -cat >>conftest.$ac_ext <<_ACEOF
27199 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27201 #include <curses.h>
27203 @@ -22133,56 +11806,30 @@
27207 -rm -f conftest.$ac_objext
27208 -if { (ac_try="$ac_compile"
27209 -case "(($ac_try" in
27210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 - *) ac_try_echo=$ac_try;;
27213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214 - (eval "$ac_compile") 2>conftest.er1
27216 - grep -v '^ *+' conftest.er1 >conftest.err
27217 - rm -f conftest.er1
27218 - cat conftest.err >&5
27219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 - (exit $ac_status); } && {
27221 - test -z "$ac_c_werror_flag" ||
27222 - test ! -s conftest.err
27223 - } && test -s conftest.$ac_objext; then
27224 +if ac_fn_c_try_compile "$LINENO"; then :
27225 ac_cv_mvwdelch_is_expression=yes
27227 - echo "$as_me: failed program was:" >&5
27228 -sed 's/^/| /' conftest.$ac_ext >&5
27230 - ac_cv_mvwdelch_is_expression=no
27231 + ac_cv_mvwdelch_is_expression=no
27234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 -{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27238 -echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27239 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
27240 +$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
27242 if test "$ac_cv_mvwdelch_is_expression" = yes
27245 -cat >>confdefs.h <<\_ACEOF
27246 -#define MVWDELCH_IS_EXPRESSION 1
27248 +$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
27252 -{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27253 -echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27254 -if test "${ac_cv_window_has_flags+set}" = set; then
27255 - echo $ECHO_N "(cached) $ECHO_C" >&6
27256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
27257 +$as_echo_n "checking whether WINDOW has _flags... " >&6; }
27258 +if ${ac_cv_window_has_flags+:} false; then :
27259 + $as_echo_n "(cached) " >&6
27261 - cat >conftest.$ac_ext <<_ACEOF
27264 -cat confdefs.h >>conftest.$ac_ext
27265 -cat >>conftest.$ac_ext <<_ACEOF
27266 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27268 #include <curses.h>
27270 @@ -22196,54 +11843,28 @@
27274 -rm -f conftest.$ac_objext
27275 -if { (ac_try="$ac_compile"
27276 -case "(($ac_try" in
27277 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278 - *) ac_try_echo=$ac_try;;
27280 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 - (eval "$ac_compile") 2>conftest.er1
27283 - grep -v '^ *+' conftest.er1 >conftest.err
27284 - rm -f conftest.er1
27285 - cat conftest.err >&5
27286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 - (exit $ac_status); } && {
27288 - test -z "$ac_c_werror_flag" ||
27289 - test ! -s conftest.err
27290 - } && test -s conftest.$ac_objext; then
27291 +if ac_fn_c_try_compile "$LINENO"; then :
27292 ac_cv_window_has_flags=yes
27294 - echo "$as_me: failed program was:" >&5
27295 -sed 's/^/| /' conftest.$ac_ext >&5
27297 - ac_cv_window_has_flags=no
27298 + ac_cv_window_has_flags=no
27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27304 -{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27305 -echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27306 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
27307 +$as_echo "$ac_cv_window_has_flags" >&6; }
27310 if test "$ac_cv_window_has_flags" = yes
27313 -cat >>confdefs.h <<\_ACEOF
27314 -#define WINDOW_HAS_FLAGS 1
27316 +$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
27320 -{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
27321 -echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27322 -cat >conftest.$ac_ext <<_ACEOF
27325 -cat confdefs.h >>conftest.$ac_ext
27326 -cat >>conftest.$ac_ext <<_ACEOF
27327 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
27328 +$as_echo_n "checking for is_term_resized... " >&6; }
27329 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27330 /* end confdefs.h. */
27331 #include <curses.h>
27333 @@ -22254,48 +11875,22 @@
27337 -rm -f conftest.$ac_objext
27338 -if { (ac_try="$ac_compile"
27339 -case "(($ac_try" in
27340 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27341 - *) ac_try_echo=$ac_try;;
27343 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27344 - (eval "$ac_compile") 2>conftest.er1
27346 - grep -v '^ *+' conftest.er1 >conftest.err
27347 - rm -f conftest.er1
27348 - cat conftest.err >&5
27349 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 - (exit $ac_status); } && {
27351 - test -z "$ac_c_werror_flag" ||
27352 - test ! -s conftest.err
27353 - } && test -s conftest.$ac_objext; then
27354 +if ac_fn_c_try_compile "$LINENO"; then :
27356 -cat >>confdefs.h <<\_ACEOF
27357 -#define HAVE_CURSES_IS_TERM_RESIZED 1
27359 +$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
27361 - { echo "$as_me:$LINENO: result: yes" >&5
27362 -echo "${ECHO_T}yes" >&6; }
27363 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27364 +$as_echo "yes" >&6; }
27366 - echo "$as_me: failed program was:" >&5
27367 -sed 's/^/| /' conftest.$ac_ext >&5
27369 - { echo "$as_me:$LINENO: result: no" >&5
27370 -echo "${ECHO_T}no" >&6; }
27371 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27372 +$as_echo "no" >&6; }
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378 -{ echo "$as_me:$LINENO: checking for resize_term" >&5
27379 -echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27380 -cat >conftest.$ac_ext <<_ACEOF
27383 -cat confdefs.h >>conftest.$ac_ext
27384 -cat >>conftest.$ac_ext <<_ACEOF
27385 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
27386 +$as_echo_n "checking for resize_term... " >&6; }
27387 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27389 #include <curses.h>
27391 @@ -22306,48 +11901,22 @@
27395 -rm -f conftest.$ac_objext
27396 -if { (ac_try="$ac_compile"
27397 -case "(($ac_try" in
27398 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 - *) ac_try_echo=$ac_try;;
27401 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 - (eval "$ac_compile") 2>conftest.er1
27404 - grep -v '^ *+' conftest.er1 >conftest.err
27405 - rm -f conftest.er1
27406 - cat conftest.err >&5
27407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 - (exit $ac_status); } && {
27409 - test -z "$ac_c_werror_flag" ||
27410 - test ! -s conftest.err
27411 - } && test -s conftest.$ac_objext; then
27412 +if ac_fn_c_try_compile "$LINENO"; then :
27414 -cat >>confdefs.h <<\_ACEOF
27415 -#define HAVE_CURSES_RESIZE_TERM 1
27417 +$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
27419 - { echo "$as_me:$LINENO: result: yes" >&5
27420 -echo "${ECHO_T}yes" >&6; }
27421 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27422 +$as_echo "yes" >&6; }
27424 - echo "$as_me: failed program was:" >&5
27425 -sed 's/^/| /' conftest.$ac_ext >&5
27427 - { echo "$as_me:$LINENO: result: no" >&5
27428 -echo "${ECHO_T}no" >&6; }
27429 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27430 +$as_echo "no" >&6; }
27434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436 -{ echo "$as_me:$LINENO: checking for resizeterm" >&5
27437 -echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27438 -cat >conftest.$ac_ext <<_ACEOF
27441 -cat confdefs.h >>conftest.$ac_ext
27442 -cat >>conftest.$ac_ext <<_ACEOF
27443 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
27444 +$as_echo_n "checking for resizeterm... " >&6; }
27445 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h. */
27447 #include <curses.h>
27449 @@ -22358,86 +11927,56 @@
27453 -rm -f conftest.$ac_objext
27454 -if { (ac_try="$ac_compile"
27455 -case "(($ac_try" in
27456 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 - *) ac_try_echo=$ac_try;;
27459 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 - (eval "$ac_compile") 2>conftest.er1
27462 - grep -v '^ *+' conftest.er1 >conftest.err
27463 - rm -f conftest.er1
27464 - cat conftest.err >&5
27465 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 - (exit $ac_status); } && {
27467 - test -z "$ac_c_werror_flag" ||
27468 - test ! -s conftest.err
27469 - } && test -s conftest.$ac_objext; then
27470 +if ac_fn_c_try_compile "$LINENO"; then :
27472 -cat >>confdefs.h <<\_ACEOF
27473 -#define HAVE_CURSES_RESIZETERM 1
27475 +$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
27477 - { echo "$as_me:$LINENO: result: yes" >&5
27478 -echo "${ECHO_T}yes" >&6; }
27479 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 +$as_echo "yes" >&6; }
27482 - echo "$as_me: failed program was:" >&5
27483 -sed 's/^/| /' conftest.$ac_ext >&5
27485 - { echo "$as_me:$LINENO: result: no" >&5
27486 -echo "${ECHO_T}no" >&6; }
27487 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27488 +$as_echo "no" >&6; }
27492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27494 -{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27495 -echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27496 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27497 +$as_echo_n "checking for /dev/ptmx... " >&6; }
27499 if test -r /dev/ptmx
27501 - { echo "$as_me:$LINENO: result: yes" >&5
27502 -echo "${ECHO_T}yes" >&6; }
27503 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27504 +$as_echo "yes" >&6; }
27506 -cat >>confdefs.h <<\_ACEOF
27507 -#define HAVE_DEV_PTMX 1
27509 +$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
27512 - { echo "$as_me:$LINENO: result: no" >&5
27513 -echo "${ECHO_T}no" >&6; }
27514 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 +$as_echo "no" >&6; }
27518 -{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27519 -echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27520 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27521 +$as_echo_n "checking for /dev/ptc... " >&6; }
27523 if test -r /dev/ptc
27525 - { echo "$as_me:$LINENO: result: yes" >&5
27526 -echo "${ECHO_T}yes" >&6; }
27527 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27528 +$as_echo "yes" >&6; }
27530 -cat >>confdefs.h <<\_ACEOF
27531 -#define HAVE_DEV_PTC 1
27533 +$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
27536 - { echo "$as_me:$LINENO: result: no" >&5
27537 -echo "${ECHO_T}no" >&6; }
27538 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27539 +$as_echo "no" >&6; }
27544 - { echo "$as_me:$LINENO: checking for kOSADebuggerCreateSession" >&5
27545 -echo $ECHO_N "checking for kOSADebuggerCreateSession... $ECHO_C" >&6; }
27546 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kOSADebuggerCreateSession" >&5
27547 +$as_echo_n "checking for kOSADebuggerCreateSession... " >&6; }
27548 OLD_CFLAGS="${CFLAGS}"
27549 CFLAGS="${CFLAGS} -Wall -framework Carbon"
27550 - cat >conftest.$ac_ext <<_ACEOF
27553 -cat confdefs.h >>conftest.$ac_ext
27554 -cat >>conftest.$ac_ext <<_ACEOF
27555 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27557 #include <Carbon/Carbon.h>
27559 @@ -22448,44 +11987,22 @@
27563 -rm -f conftest.$ac_objext
27564 -if { (ac_try="$ac_compile"
27565 -case "(($ac_try" in
27566 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 - *) ac_try_echo=$ac_try;;
27569 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 - (eval "$ac_compile") 2>conftest.er1
27572 - grep -v '^ *+' conftest.er1 >conftest.err
27573 - rm -f conftest.er1
27574 - cat conftest.err >&5
27575 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 - (exit $ac_status); } && {
27577 - test -z "$ac_c_werror_flag" ||
27578 - test ! -s conftest.err
27579 - } && test -s conftest.$ac_objext; then
27580 +if ac_fn_c_try_compile "$LINENO"; then :
27583 - echo "$as_me: failed program was:" >&5
27584 -sed 's/^/| /' conftest.$ac_ext >&5
27586 - have_osa_debug=no
27587 + have_osa_debug=no
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591 if test $have_osa_debug = yes
27593 - { echo "$as_me:$LINENO: result: yes" >&5
27594 -echo "${ECHO_T}yes" >&6; }
27595 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27596 +$as_echo "yes" >&6; }
27598 -cat >>confdefs.h <<\_ACEOF
27599 -#define HAVE_OSA_DEBUG 1
27601 +$as_echo "#define HAVE_OSA_DEBUG 1" >>confdefs.h
27604 - { echo "$as_me:$LINENO: result: no" >&5
27605 -echo "${ECHO_T}no" >&6; }
27606 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607 +$as_echo "no" >&6; }
27609 CFLAGS="${OLD_CFLAGS}"
27611 @@ -22493,20 +12010,16 @@
27615 -{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27616 -echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27617 -if test "$cross_compiling" = yes; then
27618 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27619 -See \`config.log' for more details." >&5
27620 -echo "$as_me: error: cannot run test program while cross compiling
27621 -See \`config.log' for more details." >&2;}
27622 - { (exit 1); exit 1; }; }
27623 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
27624 +$as_echo_n "checking for %zd printf() format support... " >&6; }
27625 +if ${ac_cv_printf_zd_format+:} false; then :
27626 + $as_echo_n "(cached) " >&6
27628 - cat >conftest.$ac_ext <<_ACEOF
27631 -cat confdefs.h >>conftest.$ac_ext
27632 -cat >>conftest.$ac_ext <<_ACEOF
27634 +if test "$cross_compiling" = yes; then :
27635 + ac_cv_printf_zd_format=no
27637 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27638 /* end confdefs.h. */
27640 #include <stddef.h>
27641 @@ -22543,59 +12056,27 @@
27645 -rm -f conftest$ac_exeext
27646 -if { (ac_try="$ac_link"
27647 -case "(($ac_try" in
27648 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 - *) ac_try_echo=$ac_try;;
27651 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 - (eval "$ac_link") 2>&5
27654 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27656 - { (case "(($ac_try" in
27657 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 - *) ac_try_echo=$ac_try;;
27660 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 - (eval "$ac_try") 2>&5
27663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 - (exit $ac_status); }; }; then
27665 - { echo "$as_me:$LINENO: result: yes" >&5
27666 -echo "${ECHO_T}yes" >&6; }
27668 -cat >>confdefs.h <<\_ACEOF
27669 -#define PY_FORMAT_SIZE_T "z"
27672 +if ac_fn_c_try_run "$LINENO"; then :
27673 + ac_cv_printf_zd_format=yes
27675 - echo "$as_me: program exited with status $ac_status" >&5
27676 -echo "$as_me: failed program was:" >&5
27677 -sed 's/^/| /' conftest.$ac_ext >&5
27679 -( exit $ac_status )
27680 -{ echo "$as_me:$LINENO: result: no" >&5
27681 -echo "${ECHO_T}no" >&6; }
27682 + ac_cv_printf_zd_format=no
27684 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27685 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27686 + conftest.$ac_objext conftest.beam conftest.$ac_ext
27691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_zd_format" >&5
27692 +$as_echo "$ac_cv_printf_zd_format" >&6; }
27694 -{ echo "$as_me:$LINENO: checking for socklen_t" >&5
27695 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27696 -if test "${ac_cv_type_socklen_t+set}" = set; then
27697 - echo $ECHO_N "(cached) $ECHO_C" >&6
27699 - cat >conftest.$ac_ext <<_ACEOF
27702 -cat confdefs.h >>conftest.$ac_ext
27703 -cat >>conftest.$ac_ext <<_ACEOF
27704 -/* end confdefs.h. */
27705 +if test $ac_cv_printf_zd_format = yes; then
27707 +$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
27711 +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27712 #ifdef HAVE_SYS_TYPES_H
27713 #include <sys/types.h>
27715 @@ -22603,55 +12084,12 @@
27716 #include <sys/socket.h>
27720 +if test "x$ac_cv_type_socklen_t" = xyes; then :
27722 -typedef socklen_t ac__type_new_;
27726 -if ((ac__type_new_ *) 0)
27728 -if (sizeof (ac__type_new_))
27734 -rm -f conftest.$ac_objext
27735 -if { (ac_try="$ac_compile"
27736 -case "(($ac_try" in
27737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738 - *) ac_try_echo=$ac_try;;
27740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741 - (eval "$ac_compile") 2>conftest.er1
27743 - grep -v '^ *+' conftest.er1 >conftest.err
27744 - rm -f conftest.er1
27745 - cat conftest.err >&5
27746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 - (exit $ac_status); } && {
27748 - test -z "$ac_c_werror_flag" ||
27749 - test ! -s conftest.err
27750 - } && test -s conftest.$ac_objext; then
27751 - ac_cv_type_socklen_t=yes
27753 - echo "$as_me: failed program was:" >&5
27754 -sed 's/^/| /' conftest.$ac_ext >&5
27756 - ac_cv_type_socklen_t=no
27759 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27761 -{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27762 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27763 -if test $ac_cv_type_socklen_t = yes; then
27767 -cat >>confdefs.h <<\_ACEOF
27768 -#define socklen_t int
27770 +$as_echo "#define socklen_t int" >>confdefs.h
27774 @@ -22665,15 +12103,15 @@
27777 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27778 -{ echo "$as_me:$LINENO: checking for build directories" >&5
27779 -echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27780 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
27781 +$as_echo_n "checking for build directories... " >&6; }
27782 for dir in $SRCDIRS; do
27783 if test ! -d $dir; then
27787 -{ echo "$as_me:$LINENO: result: done" >&5
27788 -echo "${ECHO_T}done" >&6; }
27789 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27790 +$as_echo "done" >&6; }
27792 # generate output files
27793 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
27794 @@ -22705,12 +12143,13 @@
27798 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27799 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27800 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27801 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27804 _ | IFS | as_nl) ;; #(
27805 - *) $as_unset $ac_var ;;
27806 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27807 + *) { eval $ac_var=; unset $ac_var;} ;;
27811 @@ -22718,8 +12157,8 @@
27813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27814 *${as_nl}ac_space=\ *)
27815 - # `set' does not quote correctly, so add quotes (double-quote
27816 - # substitution turns \\\\ into \\, and sed turns \\ into \).
27817 + # `set' does not quote correctly, so add quotes: double-quote
27818 + # substitution turns \\\\ into \\, and sed turns \\ into \.
27821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27822 @@ -22741,13 +12180,24 @@
27824 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27825 if test -w "$cache_file"; then
27826 - test "x$cache_file" != "x/dev/null" &&
27827 - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27828 -echo "$as_me: updating cache $cache_file" >&6;}
27829 - cat confcache >$cache_file
27830 + if test "x$cache_file" != "x/dev/null"; then
27831 + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27832 +$as_echo "$as_me: updating cache $cache_file" >&6;}
27833 + if test ! -f "$cache_file" || test -h "$cache_file"; then
27834 + cat confcache >"$cache_file"
27836 + case $cache_file in #(
27838 + mv -f confcache "$cache_file"$$ &&
27839 + mv -f "$cache_file"$$ "$cache_file" ;; #(
27841 + mv -f confcache "$cache_file" ;;
27846 - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27847 -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27848 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27849 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27853 @@ -22760,14 +12210,15 @@
27858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27859 # 1. Remove the extension, and $U if already installed.
27860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27861 - ac_i=`echo "$ac_i" | sed "$ac_script"`
27862 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27864 # will be set to the directory where LIBOBJS objects are built.
27865 - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27866 - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27867 + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27868 + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27870 LIBOBJS=$ac_libobjs
27872 @@ -22775,12 +12226,15 @@
27876 -: ${CONFIG_STATUS=./config.status}
27878 +: "${CONFIG_STATUS=./config.status}"
27880 ac_clean_files_save=$ac_clean_files
27881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27882 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27883 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
27884 -cat >$CONFIG_STATUS <<_ACEOF
27885 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27886 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27888 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27890 # Generated by $as_me.
27891 # Run this file to recreate the current configuration.
27892 @@ -22790,59 +12244,79 @@
27894 ac_cs_recheck=false
27896 -SHELL=\${CONFIG_SHELL-$SHELL}
27899 -cat >>$CONFIG_STATUS <<\_ACEOF
27900 -## --------------------- ##
27901 -## M4sh Initialization. ##
27902 -## --------------------- ##
27903 +SHELL=\${CONFIG_SHELL-$SHELL}
27906 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27907 +## -------------------- ##
27908 +## M4sh Initialization. ##
27909 +## -------------------- ##
27911 # Be more Bourne compatible
27912 DUALCASE=1; export DUALCASE # for MKS sh
27913 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27914 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27917 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27918 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27919 # is contrary to our usage. Disable this feature.
27920 alias -g '${1+"$@"}'='"$@"'
27921 setopt NO_GLOB_SUBST
27923 - case `(set -o) 2>/dev/null` in
27924 - *posix*) set -o posix ;;
27933 -# Avoid depending upon Character Ranges.
27934 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27935 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27936 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27937 -as_cr_digits='0123456789'
27938 -as_cr_alnum=$as_cr_Letters$as_cr_digits
27940 + case `(set -o) 2>/dev/null` in #(
27942 + set -o posix ;; #(
27948 -# The user is always right.
27949 -if test "${PATH_SEPARATOR+set}" != set; then
27950 - echo "#! /bin/sh" >conf$$.sh
27951 - echo "exit 0" >>conf$$.sh
27952 - chmod +x conf$$.sh
27953 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27954 - PATH_SEPARATOR=';'
27959 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
27960 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27961 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27962 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27963 +# Prefer a ksh shell builtin over an external printf program on Solaris,
27964 +# but without wasting forks for bash or zsh.
27965 +if test -z "$BASH_VERSION$ZSH_VERSION" \
27966 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27967 + as_echo='print -r --'
27968 + as_echo_n='print -rn --'
27969 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27970 + as_echo='printf %s\n'
27971 + as_echo_n='printf %s'
27973 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27974 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27975 + as_echo_n='/usr/ucb/echo -n'
27978 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27979 + as_echo_n_body='eval
27983 + expr "X$arg" : "X\\(.*\\)$as_nl";
27984 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27986 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27988 + export as_echo_n_body
27989 + as_echo_n='sh -c $as_echo_n_body as_echo'
27992 + export as_echo_body
27993 + as_echo='sh -c $as_echo_body as_echo'
27996 -# Support unset when possible.
27997 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28001 +# The user is always right.
28002 +if test "${PATH_SEPARATOR+set}" != set; then
28004 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28005 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28006 + PATH_SEPARATOR=';'
28011 @@ -22851,20 +12325,19 @@
28012 # there to prevent editors from complaining about space-tab.
28013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28014 # splitting by setting IFS to empty value.)
28019 # Find who we are. Look in the path if we contain no directory separator.
28023 *[\\/]* ) as_myself=$0 ;;
28024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28025 for as_dir in $PATH
28028 test -z "$as_dir" && as_dir=.
28029 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28031 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28036 @@ -22875,32 +12348,111 @@
28039 if test ! -f "$as_myself"; then
28040 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28041 - { (exit 1); exit 1; }
28042 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28046 -# Work around bugs in pre-3.0 UWIN ksh.
28047 -for as_var in ENV MAIL MAILPATH
28048 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28049 +# Unset variables that we do not need and which cause bugs (e.g. in
28050 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28051 +# suppresses any "Segmentation fault" message there. '((' could
28052 +# trigger a bug in pdksh 5.2.14.
28053 +for as_var in BASH_ENV ENV MAIL MAILPATH
28054 +do eval test x\${$as_var+set} = xset \
28055 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28063 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28064 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28065 - LC_TELEPHONE LC_TIME
28067 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28068 - eval $as_var=C; export $as_var
28070 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28079 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28082 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
28083 +# ----------------------------------------
28084 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28085 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28086 +# script with STATUS, using 1 if that was 0.
28089 + as_status=$1; test $as_status -eq 0 && as_status=1
28090 + if test "$4"; then
28091 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28092 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28094 + $as_echo "$as_me: error: $2" >&2
28095 + as_fn_exit $as_status
28099 +# as_fn_set_status STATUS
28100 +# -----------------------
28101 +# Set $? to STATUS, without forking.
28102 +as_fn_set_status ()
28105 +} # as_fn_set_status
28107 +# as_fn_exit STATUS
28108 +# -----------------
28109 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28113 + as_fn_set_status $1
28119 +# Portably unset VAR.
28122 + { eval $1=; unset $1;}
28124 +as_unset=as_fn_unset
28125 +# as_fn_append VAR VALUE
28126 +# ----------------------
28127 +# Append the text in VALUE to the end of the definition contained in VAR. Take
28128 +# advantage of any shell optimizations that allow amortized linear growth over
28129 +# repeated appends, instead of the typical quadratic growth present in naive
28130 +# implementations.
28131 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28132 + eval 'as_fn_append ()
28143 +# as_fn_arith ARG...
28144 +# ------------------
28145 +# Perform arithmetic evaluation on the ARGs, and store the result in the
28146 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
28147 +# must be portable across $(()) and expr.
28148 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28149 + eval 'as_fn_arith ()
28156 + as_val=`expr "$@" || test $? -eq 1`
28161 -# Required to use basename.
28162 if expr a : '\(a\)' >/dev/null 2>&1 &&
28163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28165 @@ -22914,13 +12466,17 @@
28169 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28170 + as_dirname=dirname
28175 -# Name of the executable.
28176 as_me=`$as_basename -- "$0" ||
28177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28178 X"$0" : 'X\(//\)$' \| \
28179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28182 sed '/^.*\/\([^/][^/]*\)\/*$/{
28185 @@ -22935,131 +12491,118 @@
28194 - as_lineno_1=$LINENO
28195 - as_lineno_2=$LINENO
28196 - test "x$as_lineno_1" != "x$as_lineno_2" &&
28197 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28199 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28200 - # uniformly replaced by the line number. The first 'sed' inserts a
28201 - # line-number line after each line using $LINENO; the second 'sed'
28202 - # does the real work. The second script uses 'N' to pair each
28203 - # line-number line with the line containing $LINENO, and appends
28204 - # trailing '-' during substitution so that $LINENO is not a special
28205 - # case at line end.
28206 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28207 - # scripts with optimization help from Paolo Bonzini. Blame Lee
28208 - # E. McMahon (1931-1989) for sed's syntax. :-)
28214 - s/[$]LINENO.*/&-/
28220 - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28223 - ' >$as_me.lineno &&
28224 - chmod +x "$as_me.lineno" ||
28225 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28226 - { (exit 1); exit 1; }; }
28228 - # Don't try to exec as it changes $[0], causing all sort of problems
28229 - # (the dirname of $[0] is not the place where we might find the
28230 - # original and so on. Autoconf is especially sensitive to this).
28231 - . "./$as_me.lineno"
28232 - # Exit status is that of the last command.
28237 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28238 - as_dirname=dirname
28242 +# Avoid depending upon Character Ranges.
28243 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28244 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28245 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28246 +as_cr_digits='0123456789'
28247 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28249 ECHO_C= ECHO_N= ECHO_T=
28250 -case `echo -n x` in
28251 +case `echo -n x` in #(((((
28253 - case `echo 'x\c'` in
28254 + case `echo 'xy\c'` in
28255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28257 + xy) ECHO_C='\c';;
28258 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28265 -if expr a : '\(a\)' >/dev/null 2>&1 &&
28266 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
28272 rm -f conf$$ conf$$.exe conf$$.file
28273 if test -d conf$$.dir; then
28274 rm -f conf$$.dir/conf$$.file
28278 + mkdir conf$$.dir 2>/dev/null
28281 -if ln -s conf$$.file conf$$ 2>/dev/null; then
28283 - # ... but there are two gotchas:
28284 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28285 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28286 - # In both cases, we have to default to `cp -p'.
28287 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28289 -elif ln conf$$.file conf$$ 2>/dev/null; then
28291 +if (echo >conf$$.file) 2>/dev/null; then
28292 + if ln -s conf$$.file conf$$ 2>/dev/null; then
28294 + # ... but there are two gotchas:
28295 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28296 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28297 + # In both cases, we have to default to `cp -pR'.
28298 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28300 + elif ln conf$$.file conf$$ 2>/dev/null; then
28309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28310 rmdir conf$$.dir 2>/dev/null
28315 +# Create "$as_dir" as a directory, including parents if necessary.
28319 + case $as_dir in #(
28320 + -*) as_dir=./$as_dir;;
28322 + test -d "$as_dir" || eval $as_mkdir_p || {
28325 + case $as_dir in #(
28326 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28327 + *) as_qdir=$as_dir;;
28329 + as_dirs="'$as_qdir' $as_dirs"
28330 + as_dir=`$as_dirname -- "$as_dir" ||
28331 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28332 + X"$as_dir" : 'X\(//\)[^/]' \| \
28333 + X"$as_dir" : 'X\(//\)$' \| \
28334 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28335 +$as_echo X"$as_dir" |
28336 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28340 + /^X\(\/\/\)[^/].*/{
28353 + test -d "$as_dir" && break
28355 + test -z "$as_dirs" || eval "mkdir $as_dirs"
28356 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28360 if mkdir -p . 2>/dev/null; then
28362 + as_mkdir_p='mkdir -p "$as_dir"'
28364 test -d ./-p && rmdir ./-p
28368 -if test -x / >/dev/null 2>&1; then
28369 - as_test_x='test -x'
28371 - if ls -dL / >/dev/null 2>&1; then
28378 - if test -d "$1"; then
28384 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28385 - ???[sx]*):;;*)false;;esac;fi
28389 -as_executable_p=$as_test_x
28391 +# as_fn_executable_p FILE
28392 +# -----------------------
28393 +# Test if FILE is an executable regular file.
28394 +as_fn_executable_p ()
28396 + test -f "$1" && test -x "$1"
28397 +} # as_fn_executable_p
28398 +as_test_x='test -x'
28399 +as_executable_p=as_fn_executable_p
28401 # Sed expression to map a string onto a valid CPP name.
28402 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28403 @@ -23069,13 +12612,19 @@
28407 +## ----------------------------------- ##
28408 +## Main body of $CONFIG_STATUS script. ##
28409 +## ----------------------------------- ##
28411 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28413 -# Save the log message, to keep $[0] and so on meaningful, and to
28414 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28415 +# Save the log message, to keep $0 and so on meaningful, and to
28416 # report actual input values of CONFIG_FILES etc. instead of their
28417 # values after options handling.
28419 This file was extended by python $as_me 2.5, which was
28420 -generated by GNU Autoconf 2.61. Invocation command line was
28421 +generated by GNU Autoconf 2.69. Invocation command line was
28423 CONFIG_FILES = $CONFIG_FILES
28424 CONFIG_HEADERS = $CONFIG_HEADERS
28425 @@ -23088,29 +12637,41 @@
28429 -cat >>$CONFIG_STATUS <<_ACEOF
28430 +case $ac_config_files in *"
28431 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
28434 +case $ac_config_headers in *"
28435 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28439 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28440 # Files that config.status was made for.
28441 config_files="$ac_config_files"
28442 config_headers="$ac_config_headers"
28446 -cat >>$CONFIG_STATUS <<\_ACEOF
28447 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28449 -\`$as_me' instantiates files from templates according to the
28450 -current configuration.
28451 +\`$as_me' instantiates files and other configuration actions
28452 +from templates according to the current configuration. Unless the files
28453 +and actions are specified as TAGs, all are instantiated by default.
28455 -Usage: $0 [OPTIONS] [FILE]...
28456 +Usage: $0 [OPTION]... [TAG]...
28458 -h, --help print this help, then exit
28459 -V, --version print version number and configuration settings, then exit
28460 - -q, --quiet do not print progress messages
28461 + --config print configuration, then exit
28462 + -q, --quiet, --silent
28463 + do not print progress messages
28464 -d, --debug don't remove temporary files
28465 --recheck update $as_me by reconfiguring in the same conditions
28466 - --file=FILE[:TEMPLATE]
28467 - instantiate the configuration file FILE
28468 - --header=FILE[:TEMPLATE]
28469 - instantiate the configuration header FILE
28470 + --file=FILE[:TEMPLATE]
28471 + instantiate the configuration file FILE
28472 + --header=FILE[:TEMPLATE]
28473 + instantiate the configuration header FILE
28475 Configuration files:
28477 @@ -23118,36 +12679,42 @@
28478 Configuration headers:
28481 -Report bugs to <bug-autoconf@gnu.org>."
28482 +Report bugs to <http://www.python.org/python-bugs>."
28485 -cat >>$CONFIG_STATUS <<_ACEOF
28486 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28487 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28489 python config.status 2.5
28490 -configured by $0, generated by GNU Autoconf 2.61,
28491 - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28492 +configured by $0, generated by GNU Autoconf 2.69,
28493 + with options \\"\$ac_cs_config\\"
28495 -Copyright (C) 2006 Free Software Foundation, Inc.
28496 +Copyright (C) 2012 Free Software Foundation, Inc.
28497 This config.status script is free software; the Free Software Foundation
28498 gives unlimited permission to copy, distribute and modify it."
28503 +test -n "\$AWK" || AWK=awk
28506 -cat >>$CONFIG_STATUS <<\_ACEOF
28507 -# If no file are specified by the user, then we need to provide default
28508 -# value. By we need to know if files were specified by the user.
28509 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28510 +# The default lists apply if the user does not specify any file.
28517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28522 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
28529 @@ -23160,34 +12727,41 @@
28530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28533 - echo "$ac_cs_version"; exit ;;
28534 + $as_echo "$ac_cs_version"; exit ;;
28535 + --config | --confi | --conf | --con | --co | --c )
28536 + $as_echo "$ac_cs_config"; exit ;;
28537 --debug | --debu | --deb | --de | --d | -d )
28539 --file | --fil | --fi | --f )
28541 - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28542 + case $ac_optarg in
28543 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28544 + '') as_fn_error $? "missing file argument" ;;
28546 + as_fn_append CONFIG_FILES " '$ac_optarg'"
28547 ac_need_defaults=false;;
28548 --header | --heade | --head | --hea )
28550 - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28551 + case $ac_optarg in
28552 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28554 + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28555 ac_need_defaults=false;;
28557 # Conflict between --help and --header
28558 - { echo "$as_me: error: ambiguous option: $1
28559 -Try \`$0 --help' for more information." >&2
28560 - { (exit 1); exit 1; }; };;
28561 + as_fn_error $? "ambiguous option: \`$1'
28562 +Try \`$0 --help' for more information.";;
28563 --help | --hel | -h )
28564 - echo "$ac_cs_usage"; exit ;;
28565 + $as_echo "$ac_cs_usage"; exit ;;
28566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28570 # This is an error.
28571 - -*) { echo "$as_me: error: unrecognized option: $1
28572 -Try \`$0 --help' for more information." >&2
28573 - { (exit 1); exit 1; }; } ;;
28574 + -*) as_fn_error $? "unrecognized option: \`$1'
28575 +Try \`$0 --help' for more information." ;;
28577 - *) ac_config_targets="$ac_config_targets $1"
28578 + *) as_fn_append ac_config_targets " $1"
28579 ac_need_defaults=false ;;
28582 @@ -23202,30 +12776,32 @@
28586 -cat >>$CONFIG_STATUS <<_ACEOF
28587 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28588 if \$ac_cs_recheck; then
28589 - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28590 - CONFIG_SHELL=$SHELL
28591 + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28593 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28594 + CONFIG_SHELL='$SHELL'
28595 export CONFIG_SHELL
28596 - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28601 -cat >>$CONFIG_STATUS <<\_ACEOF
28602 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28607 ## Running $as_me. ##
28610 + $as_echo "$ac_log"
28614 -cat >>$CONFIG_STATUS <<_ACEOF
28615 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28618 -cat >>$CONFIG_STATUS <<\_ACEOF
28619 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28621 # Handling of arguments.
28622 for ac_config_target in $ac_config_targets
28623 @@ -23238,9 +12814,7 @@
28624 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28625 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28627 - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28628 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28629 - { (exit 1); exit 1; }; };;
28630 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28634 @@ -23262,268 +12836,302 @@
28635 # after its creation but before its name has been assigned to `$tmp'.
28640 trap 'exit_status=$?
28641 - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28642 + : "${ac_tmp:=$tmp}"
28643 + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28645 - trap '{ (exit 1); exit 1; }' 1 2 13 15
28646 + trap 'as_fn_exit 1' 1 2 13 15
28648 # Create a (secure) tmp directory for tmp files.
28651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28652 - test -n "$tmp" && test -d "$tmp"
28656 tmp=./conf$$-$RANDOM
28657 (umask 077 && mkdir "$tmp")
28660 - echo "$me: cannot create a temporary directory in ." >&2
28661 - { (exit 1); exit 1; }
28665 -# Set up the sed scripts for CONFIG_FILES section.
28667 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28670 -# No need to generate the scripts if there are no CONFIG_FILES.
28671 -# This happens for instance when ./config.status config.h
28672 +# Set up the scripts for CONFIG_FILES section.
28673 +# No need to generate them if there are no CONFIG_FILES.
28674 +# This happens for instance with `./config.status config.h'.
28675 if test -n "$CONFIG_FILES"; then
28682 -for ac_last_try in false false false false false :; do
28683 - cat >conf$$subs.sed <<_ACEOF
28684 -SHELL!$SHELL$ac_delim
28685 -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28686 -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28687 -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28688 -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28689 -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28690 -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28691 -exec_prefix!$exec_prefix$ac_delim
28692 -prefix!$prefix$ac_delim
28693 -program_transform_name!$program_transform_name$ac_delim
28694 -bindir!$bindir$ac_delim
28695 -sbindir!$sbindir$ac_delim
28696 -libexecdir!$libexecdir$ac_delim
28697 -datarootdir!$datarootdir$ac_delim
28698 -datadir!$datadir$ac_delim
28699 -sysconfdir!$sysconfdir$ac_delim
28700 -sharedstatedir!$sharedstatedir$ac_delim
28701 -localstatedir!$localstatedir$ac_delim
28702 -includedir!$includedir$ac_delim
28703 -oldincludedir!$oldincludedir$ac_delim
28704 -docdir!$docdir$ac_delim
28705 -infodir!$infodir$ac_delim
28706 -htmldir!$htmldir$ac_delim
28707 -dvidir!$dvidir$ac_delim
28708 -pdfdir!$pdfdir$ac_delim
28709 -psdir!$psdir$ac_delim
28710 -libdir!$libdir$ac_delim
28711 -localedir!$localedir$ac_delim
28712 -mandir!$mandir$ac_delim
28713 -DEFS!$DEFS$ac_delim
28714 -ECHO_C!$ECHO_C$ac_delim
28715 -ECHO_N!$ECHO_N$ac_delim
28716 -ECHO_T!$ECHO_T$ac_delim
28717 -LIBS!$LIBS$ac_delim
28718 -build_alias!$build_alias$ac_delim
28719 -host_alias!$host_alias$ac_delim
28720 -target_alias!$target_alias$ac_delim
28721 -VERSION!$VERSION$ac_delim
28722 -SOVERSION!$SOVERSION$ac_delim
28723 -CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28724 -UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28725 -PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28726 -PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28727 -PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28728 -PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28729 -FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28730 -FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28731 -FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28732 -FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28733 -FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28734 -MACHDEP!$MACHDEP$ac_delim
28735 -SGI_ABI!$SGI_ABI$ac_delim
28736 -EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28737 -EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28738 -CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28739 -EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28741 -CFLAGS!$CFLAGS$ac_delim
28742 -LDFLAGS!$LDFLAGS$ac_delim
28743 -CPPFLAGS!$CPPFLAGS$ac_delim
28744 -ac_ct_CC!$ac_ct_CC$ac_delim
28745 -EXEEXT!$EXEEXT$ac_delim
28746 -OBJEXT!$OBJEXT$ac_delim
28748 -MAINCC!$MAINCC$ac_delim
28750 -GREP!$GREP$ac_delim
28751 -EGREP!$EGREP$ac_delim
28752 -BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28753 -LIBRARY!$LIBRARY$ac_delim
28754 -LDLIBRARY!$LDLIBRARY$ac_delim
28755 -DLLLIBRARY!$DLLLIBRARY$ac_delim
28756 -BLDLIBRARY!$BLDLIBRARY$ac_delim
28757 -LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28758 -INSTSONAME!$INSTSONAME$ac_delim
28759 -RUNSHARED!$RUNSHARED$ac_delim
28760 -LINKCC!$LINKCC$ac_delim
28761 -RANLIB!$RANLIB$ac_delim
28763 -SVNVERSION!$SVNVERSION$ac_delim
28764 -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28765 -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28766 -INSTALL_DATA!$INSTALL_DATA$ac_delim
28769 -BASECFLAGS!$BASECFLAGS$ac_delim
28770 -OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28771 -LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28773 -LDSHARED!$LDSHARED$ac_delim
28774 -BLDSHARED!$BLDSHARED$ac_delim
28775 -CCSHARED!$CCSHARED$ac_delim
28776 -LINKFORSHARED!$LINKFORSHARED$ac_delim
28777 -CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28778 -SHLIBS!$SHLIBS$ac_delim
28779 -USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28780 -SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28783 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28785 - elif $ac_last_try; then
28786 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28787 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28788 - { (exit 1); exit 1; }; }
28790 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28794 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28795 -if test -n "$ac_eof"; then
28796 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28797 - ac_eof=`expr $ac_eof + 1`
28798 +ac_cr=`echo X | tr X '\015'`
28799 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
28800 +# But we know of no other shell where ac_cr would be empty at this
28801 +# point, so we can use a bashism as a fallback.
28802 +if test "x$ac_cr" = x; then
28803 + eval ac_cr=\$\'\\r\'
28805 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28806 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28807 + ac_cs_awk_cr='\\r'
28809 + ac_cs_awk_cr=$ac_cr
28812 -cat >>$CONFIG_STATUS <<_ACEOF
28813 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28814 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28817 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28818 -s/^/s,@/; s/!/@,|#_!!_#|/
28821 -s/'"$ac_delim"'$/,g/; t
28823 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28824 -' >>$CONFIG_STATUS <conf$$subs.sed
28825 -rm -f conf$$subs.sed
28826 -cat >>$CONFIG_STATUS <<_ACEOF
28828 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28833 + echo "cat >conf$$subs.awk <<_ACEOF" &&
28834 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28836 +} >conf$$subs.sh ||
28837 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28838 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28840 for ac_last_try in false false false false false :; do
28841 - cat >conf$$subs.sed <<_ACEOF
28842 -USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28843 -LDLAST!$LDLAST$ac_delim
28844 -THREADOBJ!$THREADOBJ$ac_delim
28845 -DLINCLDIR!$DLINCLDIR$ac_delim
28846 -DYNLOADFILE!$DYNLOADFILE$ac_delim
28847 -MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28848 -TRUE!$TRUE$ac_delim
28849 -LIBOBJS!$LIBOBJS$ac_delim
28850 -HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28851 -HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28852 -HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28853 -HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28854 -HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28855 -LIBM!$LIBM$ac_delim
28856 -LIBC!$LIBC$ac_delim
28857 -UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28858 -THREADHEADERS!$THREADHEADERS$ac_delim
28859 -SRCDIRS!$SRCDIRS$ac_delim
28860 -LTLIBOBJS!$LTLIBOBJS$ac_delim
28862 + . ./conf$$subs.sh ||
28863 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28865 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
28866 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28867 + if test $ac_delim_n = $ac_delim_num; then
28869 elif $ac_last_try; then
28870 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28871 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28872 - { (exit 1); exit 1; }; }
28873 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28878 +rm -f conf$$subs.sh
28880 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28881 -if test -n "$ac_eof"; then
28882 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28883 - ac_eof=`expr $ac_eof + 1`
28886 -cat >>$CONFIG_STATUS <<_ACEOF
28887 -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28888 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28891 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28892 -s/^/s,@/; s/!/@,|#_!!_#|/
28895 -s/'"$ac_delim"'$/,g/; t
28897 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28898 -' >>$CONFIG_STATUS <conf$$subs.sed
28899 -rm -f conf$$subs.sed
28900 -cat >>$CONFIG_STATUS <<_ACEOF
28904 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28905 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28909 +s/^/S["/; s/!.*/"]=/
28915 +s/'"$ac_delim"'$//
28919 +s/\(.\{148\}\)..*/\1/
28921 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28926 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28933 +s/\(.\{148\}\)..*/\1/
28935 +s/["\\]/\\&/g; s/^/"/; s/$/"/
28939 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28944 +' <conf$$subs.awk | sed '
28949 +' >>$CONFIG_STATUS || ac_write_fail=1
28950 +rm -f conf$$subs.awk
28951 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28953 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28954 + for (key in S) S_is_set[key] = 1
28960 + nfields = split(line, field, "@")
28962 + len = length(field[1])
28963 + for (i = 2; i < nfields; i++) {
28965 + keylen = length(key)
28966 + if (S_is_set[key]) {
28968 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28969 + len += length(value) + length(field[++i])
28972 + len += 1 + keylen
28980 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28981 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28982 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28985 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28986 + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28989 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
28990 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28991 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28992 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28993 # trailing colons and then remove the whole line if VPATH becomes empty
28994 # (actually we leave an empty line to preserve line numbers).
28995 if test "x$srcdir" = x.; then
28996 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
28997 -s/:*\$(srcdir):*/:/
28998 -s/:*\${srcdir}:*/:/
29000 -s/^\([^=]*=[ ]*\):*/\1/
29001 + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29006 +s/:\$(srcdir):/:/g
29007 +s/:\${srcdir}:/:/g
29019 -cat >>$CONFIG_STATUS <<\_ACEOF
29020 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29021 fi # test -n "$CONFIG_FILES"
29023 +# Set up the scripts for CONFIG_HEADERS section.
29024 +# No need to generate them if there are no CONFIG_HEADERS.
29025 +# This happens for instance with `./config.status Makefile'.
29026 +if test -n "$CONFIG_HEADERS"; then
29027 +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29031 +# Transform confdefs.h into an awk script `defines.awk', embedded as
29032 +# here-document in config.status, that substitutes the proper values into
29033 +# config.h.in to produce config.h.
29035 +# Create a delimiter string that does not exist in confdefs.h, to ease
29036 +# handling of long lines.
29038 +for ac_last_try in false false :; do
29039 + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29040 + if test -z "$ac_tt"; then
29042 + elif $ac_last_try; then
29043 + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29045 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29049 +# For the awk script, D is an array of macro values keyed by name,
29050 +# likewise P contains macro parameters if any. Preserve backslash
29051 +# newline sequences.
29053 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29055 +s/.\{148\}/&'"$ac_delim"'/g
29058 +s/^[ ]*#[ ]*define[ ][ ]*/ /
29065 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29067 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29071 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29072 +D["\1"]=" \3\\\\\\n"\\/p
29074 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29079 +s/.\{148\}/&'"$ac_delim"'/g
29084 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
29087 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29089 +' <confdefs.h | sed '
29090 +s/'"$ac_delim"'/"\\\
29091 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
29093 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29094 + for (key in D) D_is_set[key] = 1
29097 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29099 + split(line, arg, " ")
29100 + if (arg[1] == "#") {
29101 + defundef = arg[2]
29104 + defundef = substr(arg[1], 2)
29107 + split(mac1, mac2, "(") #)
29109 + prefix = substr(line, 1, index(line, defundef) - 1)
29110 + if (D_is_set[macro]) {
29111 + # Preserve the white space surrounding the "#".
29112 + print prefix "define", macro P[macro] D[macro]
29115 + # Replace #undef with comments. This is necessary, for example,
29116 + # in the case of _POSIX_SOURCE, which is predefined and required
29117 + # on some systems where configure will not decide to define it.
29118 + if (defundef == "undef") {
29119 + print "/*", prefix defundef, macro, "*/"
29127 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29128 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29129 +fi # test -n "$CONFIG_HEADERS"
29132 -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29133 +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
29138 :[FHLC]) ac_mode=$ac_tag; continue;;
29140 case $ac_mode$ac_tag in
29142 - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29143 -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29144 - { (exit 1); exit 1; }; };;
29145 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29146 :[FH]-) ac_tag=-:-;;
29147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29149 @@ -23542,7 +13150,7 @@
29153 - -) ac_f="$tmp/stdin";;
29154 + -) ac_f="$ac_tmp/stdin";;
29155 *) # Look for the file first in the build tree, then in the source tree
29156 # (if the path is not absolute). The absolute path cannot be DOS-style,
29157 # because $ac_f cannot contain `:'.
29158 @@ -23551,26 +13159,34 @@
29160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29162 - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29163 -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29164 - { (exit 1); exit 1; }; };;
29165 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29167 - ac_file_inputs="$ac_file_inputs $ac_f"
29168 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29169 + as_fn_append ac_file_inputs " '$ac_f'"
29172 # Let's still pretend it is `configure' which instantiates (i.e., don't
29173 # use $as_me), people would be surprised to read:
29174 # /* config.h. Generated by config.status. */
29175 - configure_input="Generated from "`IFS=:
29176 - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29177 + configure_input='Generated from '`
29178 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29179 + `' by configure.'
29180 if test x"$ac_file" != x-; then
29181 configure_input="$ac_file. $configure_input"
29182 - { echo "$as_me:$LINENO: creating $ac_file" >&5
29183 -echo "$as_me: creating $ac_file" >&6;}
29184 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29185 +$as_echo "$as_me: creating $ac_file" >&6;}
29187 + # Neutralize special characters interpreted by sed in replacement strings.
29188 + case $configure_input in #(
29189 + *\&* | *\|* | *\\* )
29190 + ac_sed_conf_input=`$as_echo "$configure_input" |
29191 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
29192 + *) ac_sed_conf_input=$configure_input;;
29196 - *:-:* | *:-) cat >"$tmp/stdin";;
29197 + *:-:* | *:-) cat >"$ac_tmp/stdin" \
29198 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29202 @@ -23580,42 +13196,7 @@
29203 X"$ac_file" : 'X\(//\)[^/]' \| \
29204 X"$ac_file" : 'X\(//\)$' \| \
29205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29206 -echo X"$ac_file" |
29207 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29211 - /^X\(\/\/\)[^/].*/{
29224 - { as_dir="$ac_dir"
29225 - case $as_dir in #(
29226 - -*) as_dir=./$as_dir;;
29228 - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29231 - case $as_dir in #(
29232 - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29233 - *) as_qdir=$as_dir;;
29235 - as_dirs="'$as_qdir' $as_dirs"
29236 - as_dir=`$as_dirname -- "$as_dir" ||
29237 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29238 - X"$as_dir" : 'X\(//\)[^/]' \| \
29239 - X"$as_dir" : 'X\(//\)$' \| \
29240 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29242 +$as_echo X"$ac_file" |
29243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29246 @@ -23633,20 +13214,15 @@
29250 - test -d "$as_dir" && break
29252 - test -z "$as_dirs" || eval "mkdir $as_dirs"
29253 - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29254 -echo "$as_me: error: cannot create directory $as_dir" >&2;}
29255 - { (exit 1); exit 1; }; }; }
29256 + as_dir="$ac_dir"; as_fn_mkdir_p
29260 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29262 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29263 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29264 # A ".." for each directory in $ac_dir_suffix.
29265 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29266 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29267 case $ac_top_builddir_sub in
29268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29270 @@ -23686,12 +13262,12 @@
29274 -cat >>$CONFIG_STATUS <<\_ACEOF
29275 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29276 # If the template does not know about datarootdir, expand it.
29277 # FIXME: This hack should be removed a few years after 2.60.
29278 ac_datarootdir_hack=; ac_datarootdir_seen=
29280 -case `sed -n '/datarootdir/ {
29286 @@ -23699,36 +13275,37 @@
29291 -' $ac_file_inputs` in
29293 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29294 *datarootdir*) ac_datarootdir_seen=yes;;
29295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29296 - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29297 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29298 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29299 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29301 -cat >>$CONFIG_STATUS <<_ACEOF
29302 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29303 ac_datarootdir_hack='
29304 s&@datadir@&$datadir&g
29305 s&@docdir@&$docdir&g
29306 s&@infodir@&$infodir&g
29307 s&@localedir@&$localedir&g
29308 s&@mandir@&$mandir&g
29309 - s&\\\${datarootdir}&$datarootdir&g' ;;
29310 + s&\\\${datarootdir}&$datarootdir&g' ;;
29314 # Neutralize VPATH when `$srcdir' = `.'.
29315 # Shell code in configure.ac might set extrasub.
29316 # FIXME: do we really want to maintain this feature?
29317 -cat >>$CONFIG_STATUS <<_ACEOF
29319 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29320 +ac_sed_extra="$ac_vpsub
29323 -cat >>$CONFIG_STATUS <<\_ACEOF
29324 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29327 -s&@configure_input@&$configure_input&;t t
29328 +s|@configure_input@|$ac_sed_conf_input|;t t
29329 s&@top_builddir@&$ac_top_builddir_sub&;t t
29330 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
29331 s&@srcdir@&$ac_srcdir&;t t
29332 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29333 s&@top_srcdir@&$ac_top_srcdir&;t t
29334 @@ -23738,119 +13315,49 @@
29335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29336 s&@INSTALL@&$ac_INSTALL&;t t
29337 $ac_datarootdir_hack
29338 -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29340 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29341 + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29344 - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29345 - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29346 - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29347 -which seems to be undefined. Please make sure it is defined." >&5
29348 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29349 -which seems to be undefined. Please make sure it is defined." >&2;}
29350 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29351 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29352 + "$ac_tmp/out"`; test -z "$ac_out"; } &&
29353 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29354 +which seems to be undefined. Please make sure it is defined" >&5
29355 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29356 +which seems to be undefined. Please make sure it is defined" >&2;}
29358 - rm -f "$tmp/stdin"
29359 + rm -f "$ac_tmp/stdin"
29361 - -) cat "$tmp/out"; rm -f "$tmp/out";;
29362 - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29364 + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29365 + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29367 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29375 -# Transform confdefs.h into a sed script `conftest.defines', that
29376 -# substitutes the proper values into config.h.in to produce config.h.
29377 -rm -f conftest.defines conftest.tail
29378 -# First, append a space to every undef/define line, to ease matching.
29379 -echo 's/$/ /' >conftest.defines
29380 -# Then, protect against being on the right side of a sed subst, or in
29381 -# an unquoted here document, in config.status. If some macros were
29382 -# called several times there might be several #defines for the same
29383 -# symbol, which is useless. But do not sort them, since the last
29384 -# AC_DEFINE must be honored.
29385 -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29386 -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29387 -# NAME is the cpp macro being defined, VALUE is the value it is being given.
29388 -# PARAMS is the parameter list in the macro definition--in most cases, it's
29389 -# just an empty string.
29390 -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29391 -ac_dB='\\)[ (].*,\\1define\\2'
29399 - s/^[ ]*#[ ]*define[ ][ ]*//
29404 - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29405 - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29406 - ' >>conftest.defines
29408 -# Remove the space that was appended to ease matching.
29409 -# Then replace #undef with comments. This is necessary, for
29410 -# example, in the case of _POSIX_SOURCE, which is predefined and required
29411 -# on some systems where configure will not decide to define it.
29412 -# (The regexp can be short, since the line contains either #define or #undef.)
29414 -s,^[ #]*u.*,/* & */,' >>conftest.defines
29416 -# Break up conftest.defines:
29417 -ac_max_sed_lines=50
29419 -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29420 -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29421 -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29423 -ac_in='$ac_file_inputs'
29424 -ac_out='"$tmp/out1"'
29425 -ac_nxt='"$tmp/out2"'
29429 - # Write a here document:
29430 - cat >>$CONFIG_STATUS <<_ACEOF
29431 - # First, check the format of the line:
29432 - cat >"\$tmp/defines.sed" <<\\CEOF
29433 -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29434 -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29438 - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29440 - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29441 - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29442 - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29443 - grep . conftest.tail >/dev/null || break
29444 - rm -f conftest.defines
29445 - mv conftest.tail conftest.defines
29447 -rm -f conftest.defines conftest.tail
29449 -echo "ac_result=$ac_in" >>$CONFIG_STATUS
29450 -cat >>$CONFIG_STATUS <<\_ACEOF
29451 if test x"$ac_file" != x-; then
29452 - echo "/* $configure_input */" >"$tmp/config.h"
29453 - cat "$ac_result" >>"$tmp/config.h"
29454 - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29455 - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29456 -echo "$as_me: $ac_file is unchanged" >&6;}
29458 + $as_echo "/* $configure_input */" \
29459 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29460 + } >"$ac_tmp/config.h" \
29461 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29462 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29463 + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29464 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
29467 - mv "$tmp/config.h" $ac_file
29469 + mv "$ac_tmp/config.h" "$ac_file" \
29470 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29473 - echo "/* $configure_input */"
29475 + $as_echo "/* $configure_input */" \
29476 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29477 + || as_fn_error $? "could not create -" "$LINENO" 5
29479 - rm -f "$tmp/out12"
29483 @@ -23859,11 +13366,13 @@
29487 -{ (exit 0); exit 0; }
29490 -chmod +x $CONFIG_STATUS
29491 ac_clean_files=$ac_clean_files_save
29493 +test $ac_write_fail = 0 ||
29494 + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29497 # configure is writing to config.log, and then calls config.status.
29498 # config.status does its own redirection, appending to config.log.
29499 @@ -23883,7 +13392,11 @@
29501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29502 # would make configure fail if this is the last instruction.
29503 - $ac_cs_success || { (exit 1); exit 1; }
29504 + $ac_cs_success || as_fn_exit 1
29506 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29507 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29508 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29512 diff -ruN Python-2.5.2/configure.in Python-2.5.2.aros/configure.in
29513 --- Python-2.5.2/configure.in 2008-02-13 19:17:17.000000000 +0000
29514 +++ Python-2.5.2.aros/configure.in 2016-03-30 14:00:53.051851074 +0100
29515 @@ -3411,6 +3411,7 @@
29518 AC_MSG_CHECKING(for %zd printf() format support)
29519 +AC_CACHE_VAL(ac_cv_printf_zd_format, [
29520 AC_TRY_RUN([#include <stdio.h>
29521 #include <stddef.h>
29522 #include <string.h>
29523 @@ -3445,9 +3446,14 @@
29527 -[AC_MSG_RESULT(yes)
29528 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
29529 - AC_MSG_RESULT(no))
29530 + ac_cv_printf_zd_format=yes,
29531 + ac_cv_printf_zd_format=no,
29532 + ac_cv_printf_zd_format=no)])
29533 +AC_MSG_RESULT($ac_cv_printf_zd_format)
29535 +if test $ac_cv_printf_zd_format = yes; then
29536 + AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])
29539 AC_CHECK_TYPE(socklen_t,,
29540 AC_DEFINE(socklen_t,int,
29541 diff -ruN Python-2.5.2/Lib/plat-aros12/regen Python-2.5.2.aros/Lib/plat-aros12/regen
29542 --- Python-2.5.2/Lib/plat-aros12/regen 1970-01-01 01:00:00.000000000 +0100
29543 +++ Python-2.5.2.aros/Lib/plat-aros12/regen 2016-03-30 13:30:31.899978658 +0100
29547 +python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/netinet/in.h
29548 diff -ruN Python-2.5.2/Makefile.pre.in Python-2.5.2.aros/Makefile.pre.in
29549 --- Python-2.5.2/Makefile.pre.in 2007-12-05 20:43:57.000000000 +0000
29550 +++ Python-2.5.2.aros/Makefile.pre.in 2016-03-30 13:30:31.899978658 +0100
29551 @@ -658,7 +658,7 @@
29552 then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
29555 - (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
29556 + (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) $(PYTHON))
29557 -rm -f $(DESTDIR)$(BINDIR)/python-config
29558 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
29560 diff -ruN Python-2.5.2/Modules/posixmodule.c Python-2.5.2.aros/Modules/posixmodule.c
29561 --- Python-2.5.2/Modules/posixmodule.c 2008-02-03 07:20:39.000000000 +0000
29562 +++ Python-2.5.2.aros/Modules/posixmodule.c 2016-03-30 13:30:31.899978658 +0100
29563 @@ -3467,7 +3467,7 @@
29565 posix_fork(PyObject *self, PyObject *noargs)
29567 - int pid = fork();
29568 + int pid = vfork();
29570 return posix_error();
29572 diff -ruN Python-2.5.2/Modules/Setup.dist Python-2.5.2.aros/Modules/Setup.dist
29573 --- Python-2.5.2/Modules/Setup.dist 2006-08-06 08:26:21.000000000 +0100
29574 +++ Python-2.5.2.aros/Modules/Setup.dist 2016-03-30 13:30:31.899978658 +0100
29575 @@ -149,7 +149,7 @@
29576 # modules are to be built as shared libraries (see above for more
29577 # detail; also note that *static* reverses this effect):
29582 # GNU readline. Unlike previous Python incarnations, GNU readline is
29583 # now incorporated in an optional module, configured in the Setup file
29584 @@ -164,23 +164,23 @@
29586 # Modules that should always be present (non UNIX dependent):
29588 -#array arraymodule.c # array objects
29589 -#cmath cmathmodule.c # -lm # complex math library functions
29590 -#math mathmodule.c # -lm # math library functions, e.g. sin()
29591 -#_struct _struct.c # binary structure packing/unpacking
29592 -#time timemodule.c # -lm # time operations and variables
29593 -#operator operator.c # operator.add() and similar goodies
29594 -#_weakref _weakref.c # basic weak reference support
29595 -#_testcapi _testcapimodule.c # Python C API test module
29596 -#_random _randommodule.c # Random number generator
29597 -#collections collectionsmodule.c # Container types
29598 -#itertools itertoolsmodule.c # Functions creating iterators for efficient looping
29599 -#strop stropmodule.c # String manipulations
29600 +array arraymodule.c # array objects
29601 +cmath cmathmodule.c # -lm # complex math library functions
29602 +math mathmodule.c # -lm # math library functions, e.g. sin()
29603 +_struct _struct.c # binary structure packing/unpacking
29604 +time timemodule.c # -lm # time operations and variables
29605 +operator operator.c # operator.add() and similar goodies
29606 +_weakref _weakref.c # basic weak reference support
29607 +_testcapi _testcapimodule.c # Python C API test module
29608 +_random _randommodule.c # Random number generator
29609 +collections collectionsmodule.c # Container types
29610 +itertools itertoolsmodule.c # Functions creating iterators for efficient looping
29611 +strop stropmodule.c # String manipulations
29613 -#unicodedata unicodedata.c # static Unicode character database
29614 +unicodedata unicodedata.c # static Unicode character database
29616 # access to ISO C locale support
29617 -#_locale _localemodule.c # -lintl
29618 +_locale _localemodule.c # -lintl
29621 # Modules with some UNIX dependencies -- on by default:
29622 diff -ruN Python-2.5.2/setup.py Python-2.5.2.aros/setup.py
29623 --- Python-2.5.2/setup.py 2008-02-04 23:41:02.000000000 +0000
29624 +++ Python-2.5.2.aros/setup.py 2016-03-30 13:30:31.899978658 +0100
29626 from distutils.command.install_lib import install_lib
29628 # This global variable is used to hold the list of modules to be disabled.
29629 -disabled_module_list = []
29630 +disabled_module_list = ['crypt', 'grp', 'select', 'binascii', 'parser', 'cStringIO', 'cPickle', 'mmap', 'audioop', '_csv', 'getnameinfo', '_ctypes', '_ctypes_test', 'datetime', 'time', '_bisect', '_heapq', '_functools', '_hotshot', '_lsprof', 'fcntl', '_sha', '_md5', '_sha256', '_sha512', 'termios', 'resource', 'nis', 'zlib', 'bz2', 'compress', 'pyexpat', '_socket', '_elementtree', '_multibytecodec', '_codecs', 'syslog', '_codecs_kr', '_codecs_jp', '_codecs_cn', '_codecs_tw', '_codecs_hk', '_codecs_iso2022', 'audioop', 'imageop', 'rgbimg']
29632 def add_dir_to_list(dirlist, dir):
29633 """Add the directory 'dir' to the list 'dirlist' (at the front) if