· 6 years ago · Apr 23, 2019, 06:22 AM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for python 3.5.
4#
5# Report bugs to <https://bugs.python.org/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.python.org/ about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
583PACKAGE_VERSION='3.5'
584PACKAGE_STRING='python 3.5'
585PACKAGE_BUGREPORT='https://bugs.python.org/'
586PACKAGE_URL=''
587
588ac_unique_file="Include/object.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626ENSUREPIP
627SRCDIRS
628THREADHEADERS
629LIBPL
630PY_ENABLE_SHARED
631EXT_SUFFIX
632SOABI
633LIBC
634LIBM
635HAVE_GETHOSTBYNAME
636HAVE_GETHOSTBYNAME_R
637HAVE_GETHOSTBYNAME_R_3_ARG
638HAVE_GETHOSTBYNAME_R_5_ARG
639HAVE_GETHOSTBYNAME_R_6_ARG
640LIBOBJS
641TRUE
642MACHDEP_OBJS
643DYNLOADFILE
644DLINCLDIR
645THREADOBJ
646LDLAST
647USE_THREAD_MODULE
648SIGNAL_OBJS
649USE_SIGNAL_MODULE
650TCLTK_LIBS
651TCLTK_INCLUDES
652LIBFFI_INCLUDEDIR
653PKG_CONFIG_LIBDIR
654PKG_CONFIG_PATH
655PKG_CONFIG
656SHLIBS
657CFLAGSFORSHARED
658LINKFORSHARED
659CCSHARED
660BLDSHARED
661LDCXXSHARED
662LDSHARED
663SHLIB_SUFFIX
664LIBTOOL_CRUFT
665OTHER_LIBTOOL_OPT
666UNIVERSAL_ARCH_FLAGS
667CFLAGS_NODIST
668BASECFLAGS
669CFLAGS_ALIASING
670OPT
671LLVM_PROF_FOUND
672target_os
673target_vendor
674target_cpu
675target
676LLVM_PROFDATA
677LLVM_PROF_ERR
678LLVM_PROF_FILE
679LLVM_PROF_MERGER
680PGO_PROF_USE_FLAG
681PGO_PROF_GEN_FLAG
682LTOFLAGS
683DEF_MAKE_RULE
684DEF_MAKE_ALL_RULE
685ABIFLAGS
686LN
687MKDIR_P
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691ac_ct_READELF
692READELF
693ARFLAGS
694ac_ct_AR
695AR
696RANLIB
697USE_INLINE
698GNULD
699LINKCC
700LDVERSION
701RUNSHARED
702INSTSONAME
703LDLIBRARYDIR
704PY3LIBRARY
705BLDLIBRARY
706DLLLIBRARY
707LDLIBRARY
708LIBRARY
709BUILDEXEEXT
710EGREP
711NO_AS_NEEDED
712PLATFORM_TRIPLET
713PLATDIR
714MULTIARCH
715ac_ct_CXX
716MAINCC
717CXX
718GREP
719CPP
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727EXPORT_MACOSX_DEPLOYMENT_TARGET
728CONFIGURE_MACOSX_DEPLOYMENT_TARGET
729SGI_ABI
730_PYTHON_HOST_PLATFORM
731MACHDEP
732FRAMEWORKINSTALLAPPSPREFIX
733FRAMEWORKUNIXTOOLSPREFIX
734FRAMEWORKPYTHONW
735FRAMEWORKALTINSTALLLAST
736FRAMEWORKALTINSTALLFIRST
737FRAMEWORKINSTALLLAST
738FRAMEWORKINSTALLFIRST
739PYTHONFRAMEWORKINSTALLDIR
740PYTHONFRAMEWORKPREFIX
741PYTHONFRAMEWORKDIR
742PYTHONFRAMEWORKIDENTIFIER
743PYTHONFRAMEWORK
744LIPO_32BIT_FLAGS
745ARCH_RUN_32BIT
746UNIVERSALSDK
747CONFIG_ARGS
748SOVERSION
749VERSION
750PYTHON_FOR_BUILD
751PYTHON_FOR_REGEN
752host_os
753host_vendor
754host_cpu
755host
756build_os
757build_vendor
758build_cpu
759build
760HAS_GIT
761GITBRANCH
762GITTAG
763GITVERSION
764BASECPPFLAGS
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_universalsdk
807with_universal_archs
808with_framework_name
809enable_framework
810with_gcc
811with_icc
812with_cxx_main
813with_suffix
814enable_shared
815enable_profiling
816with_pydebug
817enable_optimizations
818with_lto
819with_hash_algorithm
820with_address_sanitizer
821with_libs
822with_system_expat
823with_system_ffi
824with_system_libmpdec
825enable_loadable_sqlite_extensions
826with_tcltk_includes
827with_tcltk_libs
828with_dbmliborder
829with_signal_module
830with_threads
831with_thread
832enable_ipv6
833with_doc_strings
834with_tsc
835with_pymalloc
836with_valgrind
837with_fpectl
838with_libm
839with_libc
840enable_big_digits
841with_computed_gotos
842with_ensurepip
843'
844 ac_precious_vars='build_alias
845host_alias
846target_alias
847MACHDEP
848CC
849CFLAGS
850LDFLAGS
851LIBS
852CPPFLAGS
853CPP
854PKG_CONFIG
855PKG_CONFIG_PATH
856PKG_CONFIG_LIBDIR'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures python 3.5 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of python 3.5:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-universalsdk[=SDKDIR]
1472 Build fat binary against Mac OS X SDK
1473 --enable-framework[=INSTALLDIR]
1474 Build (MacOSX|Darwin) framework
1475 --enable-shared disable/enable building shared python library
1476 --enable-profiling enable C-level code profiling
1477 --enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1478 Disabled by default.
1479 --enable-loadable-sqlite-extensions
1480 support loadable extensions in _sqlite module
1481 --enable-ipv6 Enable ipv6 (with ipv4) support
1482 --disable-ipv6 Disable ipv6 support
1483 --enable-big-digits[=BITS]
1484 use big digits for Python longs [[BITS=30]]
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-universal-archs=ARCH
1490 select architectures for universal build ("32-bit",
1491 "64-bit", "3-way", "intel", "intel-32", or "all")
1492 --with-framework-name=FRAMEWORK
1493 specify an alternate name of the framework built
1494 with --enable-framework
1495 --without-gcc never use gcc
1496 --with-icc build with icc
1497 --with-cxx-main=<compiler>
1498 compile main() and link python executable with C++
1499 compiler
1500 --with-suffix=.exe set executable suffix
1501 --with-pydebug build with Py_DEBUG defined
1502 --with-lto Enable Link Time Optimization in PGO builds.
1503 Disabled by default.
1504 --with-hash-algorithm=[fnv|siphash24]
1505 select hash algorithm
1506 --with-address-sanitizer
1507 enable AddressSanitizer
1508 --with-libs='lib1 ...' link against additional libs
1509 --with-system-expat build pyexpat module using an installed expat
1510 library
1511 --with-system-ffi build _ctypes module using an installed ffi library
1512 --with-system-libmpdec build _decimal module using an installed libmpdec
1513 library
1514 --with-tcltk-includes='-I...'
1515 override search for Tcl and Tk include files
1516 --with-tcltk-libs='-L...'
1517 override search for Tcl and Tk libs
1518 --with-dbmliborder=db1:db2:...
1519 order to check db backends for dbm. Valid value is a
1520 colon separated string with the backend names
1521 `ndbm', `gdbm' and `bdb'.
1522 --with-signal-module disable/enable signal module
1523 --with(out)-threads[=DIRECTORY]
1524 disable/enable thread support
1525 --with(out)-thread[=DIRECTORY]
1526 deprecated; use --with(out)-threads
1527 --with(out)-doc-strings disable/enable documentation strings
1528 --with(out)-tsc enable/disable timestamp counter profile
1529 --with(out)-pymalloc disable/enable specialized mallocs
1530 --with-valgrind Enable Valgrind support
1531 --with-fpectl enable SIGFPE catching
1532 --with-libm=STRING math library
1533 --with-libc=STRING C library
1534 --with(out)-computed-gotos
1535 Use computed gotos in evaluation loop (enabled by
1536 default on supported compilers)
1537 --with(out)-ensurepip=[=upgrade]
1538 "install" or "upgrade" using bundled pip
1539
1540Some influential environment variables:
1541 MACHDEP name for machine-dependent library files
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 CPP C preprocessor
1550 PKG_CONFIG path to pkg-config utility
1551 PKG_CONFIG_PATH
1552 directories to add to pkg-config's search path
1553 PKG_CONFIG_LIBDIR
1554 path overriding pkg-config's built-in search path
1555
1556Use these variables to override the choices made by `configure' or to help
1557it to find libraries and programs with nonstandard names/locations.
1558
1559Report bugs to <https://bugs.python.org/>.
1560_ACEOF
1561ac_status=$?
1562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1617fi
1618
1619test -n "$ac_init_help" && exit $ac_status
1620if $ac_init_version; then
1621 cat <<\_ACEOF
1622python configure 3.5
1623generated by GNU Autoconf 2.69
1624
1625Copyright (C) 2012 Free Software Foundation, Inc.
1626This configure script is free software; the Free Software Foundation
1627gives unlimited permission to copy, distribute and modify it.
1628_ACEOF
1629 exit
1630fi
1631
1632## ------------------------ ##
1633## Autoconf initialization. ##
1634## ------------------------ ##
1635
1636# ac_fn_c_try_compile LINENO
1637# --------------------------
1638# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_compile ()
1640{
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663else
1664 $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_compile
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_c_try_link LINENO
1712# -----------------------
1713# Try to link conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_link ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 test -x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_link
1756
1757# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760# the include files in INCLUDES and setting the cache variable VAR
1761# accordingly.
1762ac_fn_c_check_header_mongrel ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if eval \${$3+:} false; then :
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770fi
1771eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774else
1775 # Is the header compilable?
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777$as_echo_n "checking $2 usability... " >&6; }
1778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h. */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_header_compiler=yes
1785else
1786 ac_header_compiler=no
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790$as_echo "$ac_header_compiler" >&6; }
1791
1792# Is the header present?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794$as_echo_n "checking $2 presence... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_cpp "$LINENO"; then :
1800 ac_header_preproc=yes
1801else
1802 ac_header_preproc=no
1803fi
1804rm -f conftest.err conftest.i conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806$as_echo "$ac_header_preproc" >&6; }
1807
1808# So? What about this header?
1809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810 yes:no: )
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ;;
1816 no:yes:* )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1820$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1824$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827( $as_echo "## --------------------------------------- ##
1828## Report this to https://bugs.python.org/ ##
1829## --------------------------------------- ##"
1830 ) | sed "s/^/$as_me: WARNING: /" >&2
1831 ;;
1832esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837else
1838 eval "$3=\$ac_header_compiler"
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843fi
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_header_mongrel
1847
1848# ac_fn_c_try_run LINENO
1849# ----------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851# that executables *can* be run.
1852ac_fn_c_try_run ()
1853{
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866 { { case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_try") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; }; }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=$ac_status
1883fi
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_run
1889
1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891# -------------------------------------------------------
1892# Tests whether HEADER exists and can be compiled using the include files in
1893# INCLUDES, setting the cache variable VAR accordingly.
1894ac_fn_c_check_header_compile ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905#include <$2>
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_header_compile
1920
1921# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922# -------------------------------------------
1923# Tests whether TYPE exists after having included INCLUDES, setting cache
1924# variable VAR accordingly.
1925ac_fn_c_check_type ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932else
1933 eval "$3=no"
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940if (sizeof ($2))
1941 return 0;
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
1953if (sizeof (($2)))
1954 return 0;
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960
1961else
1962 eval "$3=yes"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_type
1974
1975# ac_fn_c_find_uintX_t LINENO BITS VAR
1976# ------------------------------------
1977# Finds an unsigned integer type with width BITS, setting cache variable VAR
1978# accordingly.
1979ac_fn_c_find_uintX_t ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1983$as_echo_n "checking for uint$2_t... " >&6; }
1984if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986else
1987 eval "$3=no"
1988 # Order is important - never check a type that is potentially smaller
1989 # than half of the expected target width.
1990 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1991 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$ac_includes_default
1995int
1996main ()
1997{
1998static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1999test_array [0] = 0;
2000return test_array [0];
2001
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007 case $ac_type in #(
2008 uint$2_t) :
2009 eval "$3=yes" ;; #(
2010 *) :
2011 eval "$3=\$ac_type" ;;
2012esac
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 if eval test \"x\$"$3"\" = x"no"; then :
2016
2017else
2018 break
2019fi
2020 done
2021fi
2022eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_find_uintX_t
2028
2029# ac_fn_c_find_intX_t LINENO BITS VAR
2030# -----------------------------------
2031# Finds a signed integer type with width BITS, setting cache variable VAR
2032# accordingly.
2033ac_fn_c_find_intX_t ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2037$as_echo_n "checking for int$2_t... " >&6; }
2038if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2040else
2041 eval "$3=no"
2042 # Order is important - never check a type that is potentially smaller
2043 # than half of the expected target width.
2044 for ac_type in int$2_t 'int' 'long int' \
2045 'long long int' 'short int' 'signed char'; do
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h. */
2048$ac_includes_default
2049 enum { N = $2 / 2 - 1 };
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2054test_array [0] = 0;
2055return test_array [0];
2056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h. */
2064$ac_includes_default
2065 enum { N = $2 / 2 - 1 };
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2070 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2071test_array [0] = 0;
2072return test_array [0];
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079
2080else
2081 case $ac_type in #(
2082 int$2_t) :
2083 eval "$3=yes" ;; #(
2084 *) :
2085 eval "$3=\$ac_type" ;;
2086esac
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 if eval test \"x\$"$3"\" = x"no"; then :
2092
2093else
2094 break
2095fi
2096 done
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102
2103} # ac_fn_c_find_intX_t
2104
2105# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106# --------------------------------------------
2107# Tries to find the compile-time value of EXPR in a program that includes
2108# INCLUDES, setting VAR accordingly. Returns whether the value could be
2109# computed
2110ac_fn_c_compute_int ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118int
2119main ()
2120{
2121static int test_array [1 - 2 * !(($2) >= 0)];
2122test_array [0] = 0;
2123return test_array [0];
2124
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139test_array [0] = 0;
2140return test_array [0];
2141
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2153 fi
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160/* end confdefs.h. */
2161$4
2162int
2163main ()
2164{
2165static int test_array [1 - 2 * !(($2) < 0)];
2166test_array [0] = 0;
2167return test_array [0];
2168
2169 ;
2170 return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183test_array [0] = 0;
2184return test_array [0];
2185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202else
2203 ac_lo= ac_hi=
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208# Binary search between lo and hi bounds.
2209while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
2215main ()
2216{
2217static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218test_array [0] = 0;
2219return test_array [0];
2220
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231done
2232case $ac_lo in #((
2233?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234'') ac_retval=1 ;;
2235esac
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240static long int longval () { return $2; }
2241static unsigned long int ulongval () { return $2; }
2242#include <stdio.h>
2243#include <stdlib.h>
2244int
2245main ()
2246{
2247
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2252 {
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2257 }
2258 else
2259 {
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2264 }
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275else
2276 ac_retval=1
2277fi
2278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280rm -f conftest.val
2281
2282 fi
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2285
2286} # ac_fn_c_compute_int
2287
2288# ac_fn_c_check_func LINENO FUNC VAR
2289# ----------------------------------
2290# Tests whether FUNC exists, setting the cache variable VAR accordingly
2291ac_fn_c_check_func ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
2296if eval \${$3+:} false; then :
2297 $as_echo_n "(cached) " >&6
2298else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300/* end confdefs.h. */
2301/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2303#define $2 innocuous_$2
2304
2305/* System header to define __stub macros and hopefully few prototypes,
2306 which can conflict with char $2 (); below.
2307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2308 <limits.h> exists even on freestanding compilers. */
2309
2310#ifdef __STDC__
2311# include <limits.h>
2312#else
2313# include <assert.h>
2314#endif
2315
2316#undef $2
2317
2318/* Override any GCC internal prototype to avoid an error.
2319 Use char because int might match the return type of a GCC
2320 builtin and then its argument prototype would still apply. */
2321#ifdef __cplusplus
2322extern "C"
2323#endif
2324char $2 ();
2325/* The GNU C library defines this for functions which it implements
2326 to always fail with ENOSYS. Some functions are actually named
2327 something starting with __ and the normal name is an alias. */
2328#if defined __stub_$2 || defined __stub___$2
2329choke me
2330#endif
2331
2332int
2333main ()
2334{
2335return $2 ();
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_link "$LINENO"; then :
2341 eval "$3=yes"
2342else
2343 eval "$3=no"
2344fi
2345rm -f core conftest.err conftest.$ac_objext \
2346 conftest$ac_exeext conftest.$ac_ext
2347fi
2348eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353} # ac_fn_c_check_func
2354
2355# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2356# ---------------------------------------------
2357# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2358# accordingly.
2359ac_fn_c_check_decl ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 as_decl_name=`echo $2|sed 's/ *(.*//'`
2363 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2365$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2366if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371$4
2372int
2373main ()
2374{
2375#ifndef $as_decl_name
2376#ifdef __cplusplus
2377 (void) $as_decl_use;
2378#else
2379 (void) $as_decl_name;
2380#endif
2381#endif
2382
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388 eval "$3=yes"
2389else
2390 eval "$3=no"
2391fi
2392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398
2399} # ac_fn_c_check_decl
2400
2401# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2402# ----------------------------------------------------
2403# Tries to find if the field MEMBER exists in type AGGR, after including
2404# INCLUDES, setting cache variable VAR accordingly.
2405ac_fn_c_check_member ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2409$as_echo_n "checking for $2.$3... " >&6; }
2410if eval \${$4+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415$5
2416int
2417main ()
2418{
2419static $2 ac_aggr;
2420if (ac_aggr.$3)
2421return 0;
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$4=yes"
2428else
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h. */
2431$5
2432int
2433main ()
2434{
2435static $2 ac_aggr;
2436if (sizeof ac_aggr.$3)
2437return 0;
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443 eval "$4=yes"
2444else
2445 eval "$4=no"
2446fi
2447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448fi
2449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450fi
2451eval ac_res=\$$4
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453$as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455
2456} # ac_fn_c_check_member
2457cat >config.log <<_ACEOF
2458This file contains any messages produced by compilers while
2459running configure, to aid debugging if configure makes a mistake.
2460
2461It was created by python $as_me 3.5, which was
2462generated by GNU Autoconf 2.69. Invocation command line was
2463
2464 $ $0 $@
2465
2466_ACEOF
2467exec 5>>config.log
2468{
2469cat <<_ASUNAME
2470## --------- ##
2471## Platform. ##
2472## --------- ##
2473
2474hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2475uname -m = `(uname -m) 2>/dev/null || echo unknown`
2476uname -r = `(uname -r) 2>/dev/null || echo unknown`
2477uname -s = `(uname -s) 2>/dev/null || echo unknown`
2478uname -v = `(uname -v) 2>/dev/null || echo unknown`
2479
2480/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2481/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2482
2483/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2484/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2485/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2486/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2487/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2488/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2489/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2490
2491_ASUNAME
2492
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 $as_echo "PATH: $as_dir"
2499 done
2500IFS=$as_save_IFS
2501
2502} >&5
2503
2504cat >&5 <<_ACEOF
2505
2506
2507## ----------- ##
2508## Core tests. ##
2509## ----------- ##
2510
2511_ACEOF
2512
2513
2514# Keep a trace of the command line.
2515# Strip out --no-create and --no-recursion so they do not pile up.
2516# Strip out --silent because we don't want to record it for future runs.
2517# Also quote any args containing shell meta-characters.
2518# Make two passes to allow for proper duplicate-argument suppression.
2519ac_configure_args=
2520ac_configure_args0=
2521ac_configure_args1=
2522ac_must_keep_next=false
2523for ac_pass in 1 2
2524do
2525 for ac_arg
2526 do
2527 case $ac_arg in
2528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2530 | -silent | --silent | --silen | --sile | --sil)
2531 continue ;;
2532 *\'*)
2533 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 esac
2535 case $ac_pass in
2536 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2537 2)
2538 as_fn_append ac_configure_args1 " '$ac_arg'"
2539 if test $ac_must_keep_next = true; then
2540 ac_must_keep_next=false # Got value, back to normal.
2541 else
2542 case $ac_arg in
2543 *=* | --config-cache | -C | -disable-* | --disable-* \
2544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2546 | -with-* | --with-* | -without-* | --without-* | --x)
2547 case "$ac_configure_args0 " in
2548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2549 esac
2550 ;;
2551 -* ) ac_must_keep_next=true ;;
2552 esac
2553 fi
2554 as_fn_append ac_configure_args " '$ac_arg'"
2555 ;;
2556 esac
2557 done
2558done
2559{ ac_configure_args0=; unset ac_configure_args0;}
2560{ ac_configure_args1=; unset ac_configure_args1;}
2561
2562# When interrupted or exit'd, cleanup temporary files, and complete
2563# config.log. We remove comments because anyway the quotes in there
2564# would cause problems or look ugly.
2565# WARNING: Use '\'' to represent an apostrophe within the trap.
2566# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2567trap 'exit_status=$?
2568 # Save into config.log some information that might help in debugging.
2569 {
2570 echo
2571
2572 $as_echo "## ---------------- ##
2573## Cache variables. ##
2574## ---------------- ##"
2575 echo
2576 # The following way of writing the cache mishandles newlines in values,
2577(
2578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2579 eval ac_val=\$$ac_var
2580 case $ac_val in #(
2581 *${as_nl}*)
2582 case $ac_var in #(
2583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2585 esac
2586 case $ac_var in #(
2587 _ | IFS | as_nl) ;; #(
2588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2589 *) { eval $ac_var=; unset $ac_var;} ;;
2590 esac ;;
2591 esac
2592 done
2593 (set) 2>&1 |
2594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2595 *${as_nl}ac_space=\ *)
2596 sed -n \
2597 "s/'\''/'\''\\\\'\'''\''/g;
2598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2599 ;; #(
2600 *)
2601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602 ;;
2603 esac |
2604 sort
2605)
2606 echo
2607
2608 $as_echo "## ----------------- ##
2609## Output variables. ##
2610## ----------------- ##"
2611 echo
2612 for ac_var in $ac_subst_vars
2613 do
2614 eval ac_val=\$$ac_var
2615 case $ac_val in
2616 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 esac
2618 $as_echo "$ac_var='\''$ac_val'\''"
2619 done | sort
2620 echo
2621
2622 if test -n "$ac_subst_files"; then
2623 $as_echo "## ------------------- ##
2624## File substitutions. ##
2625## ------------------- ##"
2626 echo
2627 for ac_var in $ac_subst_files
2628 do
2629 eval ac_val=\$$ac_var
2630 case $ac_val in
2631 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 esac
2633 $as_echo "$ac_var='\''$ac_val'\''"
2634 done | sort
2635 echo
2636 fi
2637
2638 if test -s confdefs.h; then
2639 $as_echo "## ----------- ##
2640## confdefs.h. ##
2641## ----------- ##"
2642 echo
2643 cat confdefs.h
2644 echo
2645 fi
2646 test "$ac_signal" != 0 &&
2647 $as_echo "$as_me: caught signal $ac_signal"
2648 $as_echo "$as_me: exit $exit_status"
2649 } >&5
2650 rm -f core *.core core.conftest.* &&
2651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2652 exit $exit_status
2653' 0
2654for ac_signal in 1 2 13 15; do
2655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656done
2657ac_signal=0
2658
2659# confdefs.h avoids OS command line length limits that DEFS can exceed.
2660rm -f -r conftest* confdefs.h
2661
2662$as_echo "/* confdefs.h */" > confdefs.h
2663
2664# Predefined preprocessor variables.
2665
2666cat >>confdefs.h <<_ACEOF
2667#define PACKAGE_NAME "$PACKAGE_NAME"
2668_ACEOF
2669
2670cat >>confdefs.h <<_ACEOF
2671#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2672_ACEOF
2673
2674cat >>confdefs.h <<_ACEOF
2675#define PACKAGE_VERSION "$PACKAGE_VERSION"
2676_ACEOF
2677
2678cat >>confdefs.h <<_ACEOF
2679#define PACKAGE_STRING "$PACKAGE_STRING"
2680_ACEOF
2681
2682cat >>confdefs.h <<_ACEOF
2683#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2684_ACEOF
2685
2686cat >>confdefs.h <<_ACEOF
2687#define PACKAGE_URL "$PACKAGE_URL"
2688_ACEOF
2689
2690
2691# Let the site file select an alternate cache file if it wants to.
2692# Prefer an explicitly selected file to automatically selected ones.
2693ac_site_file1=NONE
2694ac_site_file2=NONE
2695if test -n "$CONFIG_SITE"; then
2696 # We do not want a PATH search for config.site.
2697 case $CONFIG_SITE in #((
2698 -*) ac_site_file1=./$CONFIG_SITE;;
2699 */*) ac_site_file1=$CONFIG_SITE;;
2700 *) ac_site_file1=./$CONFIG_SITE;;
2701 esac
2702elif test "x$prefix" != xNONE; then
2703 ac_site_file1=$prefix/share/config.site
2704 ac_site_file2=$prefix/etc/config.site
2705else
2706 ac_site_file1=$ac_default_prefix/share/config.site
2707 ac_site_file2=$ac_default_prefix/etc/config.site
2708fi
2709for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2710do
2711 test "x$ac_site_file" = xNONE && continue
2712 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2714$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2715 sed 's/^/| /' "$ac_site_file" >&5
2716 . "$ac_site_file" \
2717 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719as_fn_error $? "failed to load site script $ac_site_file
2720See \`config.log' for more details" "$LINENO" 5; }
2721 fi
2722done
2723
2724if test -r "$cache_file"; then
2725 # Some versions of bash will fail to source /dev/null (special files
2726 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2727 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729$as_echo "$as_me: loading cache $cache_file" >&6;}
2730 case $cache_file in
2731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2732 *) . "./$cache_file";;
2733 esac
2734 fi
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737$as_echo "$as_me: creating cache $cache_file" >&6;}
2738 >$cache_file
2739fi
2740
2741# Check that the precious variables saved in the cache have kept the same
2742# value.
2743ac_cache_corrupted=false
2744for ac_var in $ac_precious_vars; do
2745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2746 eval ac_new_set=\$ac_env_${ac_var}_set
2747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2748 eval ac_new_val=\$ac_env_${ac_var}_value
2749 case $ac_old_set,$ac_new_set in
2750 set,)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2752$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2753 ac_cache_corrupted=: ;;
2754 ,set)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2756$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2758 ,);;
2759 *)
2760 if test "x$ac_old_val" != "x$ac_new_val"; then
2761 # differences in whitespace do not lead to failure.
2762 ac_old_val_w=`echo x $ac_old_val`
2763 ac_new_val_w=`echo x $ac_new_val`
2764 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2766$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2767 ac_cache_corrupted=:
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2770$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2771 eval $ac_var=\$ac_old_val
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2774$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2776$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2777 fi;;
2778 esac
2779 # Pass precious variables to config.status.
2780 if test "$ac_new_set" = set; then
2781 case $ac_new_val in
2782 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2783 *) ac_arg=$ac_var=$ac_new_val ;;
2784 esac
2785 case " $ac_configure_args " in
2786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2787 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2788 esac
2789 fi
2790done
2791if $ac_cache_corrupted; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2795$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2796 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2797fi
2798## -------------------- ##
2799## Main body of script. ##
2800## -------------------- ##
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808
2809
2810
2811if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
2812 # If we're building out-of-tree, we need to make sure the following
2813 # resources get picked up before their $srcdir counterparts.
2814 # Objects/ -> typeslots.inc
2815 # Include/ -> Python-ast.h, graminit.h
2816 # Python/ -> importlib.h
2817 # (A side effect of this is that these resources will automatically be
2818 # regenerated when building out-of-tree, regardless of whether or not
2819 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2820 # off.)
2821 BASECPPFLAGS="-IObjects -IInclude -IPython"
2822else
2823 BASECPPFLAGS=""
2824fi
2825
2826
2827
2828
2829
2830if test -e $srcdir/.git
2831then
2832# Extract the first word of "git", so it can be a program name with args.
2833set dummy git; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if ${ac_cv_prog_HAS_GIT+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838else
2839 if test -n "$HAS_GIT"; then
2840 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_HAS_GIT="found"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853done
2854 done
2855IFS=$as_save_IFS
2856
2857 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
2858fi
2859fi
2860HAS_GIT=$ac_cv_prog_HAS_GIT
2861if test -n "$HAS_GIT"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2863$as_echo "$HAS_GIT" >&6; }
2864else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870else
2871HAS_GIT=no-repository
2872fi
2873if test $HAS_GIT = found
2874then
2875 GITVERSION="git -C \$(srcdir) rev-parse --short HEAD"
2876 GITTAG="git -C \$(srcdir) describe --all --always --dirty"
2877 GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD"
2878else
2879 GITVERSION=""
2880 GITTAG=""
2881 GITBRANCH=""
2882fi
2883
2884
2885ac_config_headers="$ac_config_headers pyconfig.h"
2886
2887
2888ac_aux_dir=
2889for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2890 if test -f "$ac_dir/install-sh"; then
2891 ac_aux_dir=$ac_dir
2892 ac_install_sh="$ac_aux_dir/install-sh -c"
2893 break
2894 elif test -f "$ac_dir/install.sh"; then
2895 ac_aux_dir=$ac_dir
2896 ac_install_sh="$ac_aux_dir/install.sh -c"
2897 break
2898 elif test -f "$ac_dir/shtool"; then
2899 ac_aux_dir=$ac_dir
2900 ac_install_sh="$ac_aux_dir/shtool install -c"
2901 break
2902 fi
2903done
2904if test -z "$ac_aux_dir"; then
2905 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2906fi
2907
2908# These three variables are undocumented and unsupported,
2909# and are intended to be withdrawn in a future Autoconf release.
2910# They can cause serious problems if a builder's source tree is in a directory
2911# whose full name contains unusual characters.
2912ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2913ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2914ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2915
2916
2917# Make sure we can run config.sub.
2918$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2919 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2920
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2922$as_echo_n "checking build system type... " >&6; }
2923if ${ac_cv_build+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925else
2926 ac_build_alias=$build_alias
2927test "x$ac_build_alias" = x &&
2928 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2929test "x$ac_build_alias" = x &&
2930 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2931ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2933
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2936$as_echo "$ac_cv_build" >&6; }
2937case $ac_cv_build in
2938*-*-*) ;;
2939*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2940esac
2941build=$ac_cv_build
2942ac_save_IFS=$IFS; IFS='-'
2943set x $ac_cv_build
2944shift
2945build_cpu=$1
2946build_vendor=$2
2947shift; shift
2948# Remember, the first character of IFS is used to create $*,
2949# except with old shells:
2950build_os=$*
2951IFS=$ac_save_IFS
2952case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2956$as_echo_n "checking host system type... " >&6; }
2957if ${ac_cv_host+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test "x$host_alias" = x; then
2961 ac_cv_host=$ac_cv_build
2962else
2963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2965fi
2966
2967fi
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2969$as_echo "$ac_cv_host" >&6; }
2970case $ac_cv_host in
2971*-*-*) ;;
2972*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2973esac
2974host=$ac_cv_host
2975ac_save_IFS=$IFS; IFS='-'
2976set x $ac_cv_host
2977shift
2978host_cpu=$1
2979host_vendor=$2
2980shift; shift
2981# Remember, the first character of IFS is used to create $*,
2982# except with old shells:
2983host_os=$*
2984IFS=$ac_save_IFS
2985case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2986
2987
2988
2989
2990
2991# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2992rm -f pybuilddir.txt
2993
2994for ac_prog in python$PACKAGE_VERSION python3 python
2995do
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997set dummy $ac_prog; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002else
3003 if test -n "$PYTHON_FOR_REGEN"; then
3004 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017done
3018 done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
3024if test -n "$PYTHON_FOR_REGEN"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
3026$as_echo "$PYTHON_FOR_REGEN" >&6; }
3027else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033 test -n "$PYTHON_FOR_REGEN" && break
3034done
3035test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
3036
3037
3038
3039if test "$cross_compiling" = yes; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
3041$as_echo_n "checking for python interpreter for cross build... " >&6; }
3042 if test -z "$PYTHON_FOR_BUILD"; then
3043 for interp in python$PACKAGE_VERSION python3 python; do
3044 which $interp >/dev/null 2>&1 || continue
3045 if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then
3046 break
3047 fi
3048 interp=
3049 done
3050 if test x$interp = x; then
3051 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
3054$as_echo "$interp" >&6; }
3055 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp
3056 fi
3057elif test "$cross_compiling" = maybe; then
3058 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3059else
3060 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
3061fi
3062
3063
3064
3065if test "$prefix" != "/"; then
3066 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
3067fi
3068
3069
3070
3071
3072# We don't use PACKAGE_ variables, and they cause conflicts
3073# with other autoconf-based packages that include Python.h
3074grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3075rm confdefs.h
3076mv confdefs.h.new confdefs.h
3077
3078
3079VERSION=3.5
3080
3081# Version number of Python's own shared library file.
3082
3083SOVERSION=1.0
3084
3085# The later defininition of _XOPEN_SOURCE disables certain features
3086# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3087
3088$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3089
3090
3091# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3092# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3093# them.
3094
3095$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3096
3097
3098# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3099# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3100# them.
3101
3102$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3103
3104
3105# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3106# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3107
3108$as_echo "#define _BSD_TYPES 1" >>confdefs.h
3109
3110
3111# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3112# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3113# them.
3114
3115$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3116
3117
3118
3119define_xopen_source=yes
3120
3121# Arguments passed to configure.
3122
3123CONFIG_ARGS="$ac_configure_args"
3124
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3126$as_echo_n "checking for --enable-universalsdk... " >&6; }
3127# Check whether --enable-universalsdk was given.
3128if test "${enable_universalsdk+set}" = set; then :
3129 enableval=$enable_universalsdk;
3130 case $enableval in
3131 yes)
3132 # Locate the best usable SDK, see Mac/README.txt for more
3133 # information
3134 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3135 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3136 then
3137 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3138 if test ! -d "${enableval}"
3139 then
3140 enableval=/
3141 fi
3142 fi
3143 ;;
3144 esac
3145 case $enableval in
3146 no)
3147 UNIVERSALSDK=
3148 enable_universalsdk=
3149 ;;
3150 *)
3151 UNIVERSALSDK=$enableval
3152 if test ! -d "${UNIVERSALSDK}"
3153 then
3154 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3155 fi
3156 ;;
3157 esac
3158
3159
3160else
3161
3162 UNIVERSALSDK=
3163 enable_universalsdk=
3164
3165fi
3166
3167if test -n "${UNIVERSALSDK}"
3168then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3170$as_echo "${UNIVERSALSDK}" >&6; }
3171else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177
3178ARCH_RUN_32BIT=""
3179
3180# For backward compatibility reasons we prefer to select '32-bit' if available,
3181# otherwise use 'intel'
3182UNIVERSAL_ARCHS="32-bit"
3183if test "`uname -s`" = "Darwin"
3184then
3185 if test -n "${UNIVERSALSDK}"
3186 then
3187 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3188 then
3189 UNIVERSAL_ARCHS="intel"
3190 fi
3191 fi
3192fi
3193
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3196$as_echo_n "checking for --with-universal-archs... " >&6; }
3197
3198# Check whether --with-universal-archs was given.
3199if test "${with_universal_archs+set}" = set; then :
3200 withval=$with_universal_archs;
3201 UNIVERSAL_ARCHS="$withval"
3202
3203fi
3204
3205if test -n "${UNIVERSALSDK}"
3206then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3208$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3209else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215# Check whether --with-framework-name was given.
3216if test "${with_framework_name+set}" = set; then :
3217 withval=$with_framework_name;
3218 PYTHONFRAMEWORK=${withval}
3219 PYTHONFRAMEWORKDIR=${withval}.framework
3220 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3221
3222else
3223
3224 PYTHONFRAMEWORK=Python
3225 PYTHONFRAMEWORKDIR=Python.framework
3226 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3227
3228fi
3229
3230# Check whether --enable-framework was given.
3231if test "${enable_framework+set}" = set; then :
3232 enableval=$enable_framework;
3233 case $enableval in
3234 yes)
3235 enableval=/Library/Frameworks
3236 esac
3237 case $enableval in
3238 no)
3239 PYTHONFRAMEWORK=
3240 PYTHONFRAMEWORKDIR=no-framework
3241 PYTHONFRAMEWORKPREFIX=
3242 PYTHONFRAMEWORKINSTALLDIR=
3243 FRAMEWORKINSTALLFIRST=
3244 FRAMEWORKINSTALLLAST=
3245 FRAMEWORKALTINSTALLFIRST=
3246 FRAMEWORKALTINSTALLLAST=
3247 FRAMEWORKPYTHONW=
3248 if test "x${prefix}" = "xNONE"; then
3249 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3250 else
3251 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3252 fi
3253 enable_framework=
3254 ;;
3255 *)
3256 PYTHONFRAMEWORKPREFIX="${enableval}"
3257 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3258 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3259 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
3260 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3261 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3262 FRAMEWORKPYTHONW="frameworkpythonw"
3263 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3264
3265 if test "x${prefix}" = "xNONE" ; then
3266 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3267
3268 else
3269 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3270 fi
3271
3272 case "${enableval}" in
3273 /System*)
3274 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3275 if test "${prefix}" = "NONE" ; then
3276 # See below
3277 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3278 fi
3279 ;;
3280
3281 /Library*)
3282 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3283 ;;
3284
3285 */Library/Frameworks)
3286 MDIR="`dirname "${enableval}"`"
3287 MDIR="`dirname "${MDIR}"`"
3288 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3289
3290 if test "${prefix}" = "NONE"; then
3291 # User hasn't specified the
3292 # --prefix option, but wants to install
3293 # the framework in a non-default location,
3294 # ensure that the compatibility links get
3295 # installed relative to that prefix as well
3296 # instead of in /usr/local.
3297 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3298 fi
3299 ;;
3300
3301 *)
3302 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3303 ;;
3304 esac
3305
3306 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3307
3308 # Add files for Mac specific code to the list of output
3309 # files:
3310 ac_config_files="$ac_config_files Mac/Makefile"
3311
3312 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3313
3314 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3315
3316 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3317
3318 esac
3319
3320else
3321
3322 PYTHONFRAMEWORK=
3323 PYTHONFRAMEWORKDIR=no-framework
3324 PYTHONFRAMEWORKPREFIX=
3325 PYTHONFRAMEWORKINSTALLDIR=
3326 FRAMEWORKINSTALLFIRST=
3327 FRAMEWORKINSTALLLAST=
3328 FRAMEWORKALTINSTALLFIRST=
3329 FRAMEWORKALTINSTALLLAST=
3330 FRAMEWORKPYTHONW=
3331 if test "x${prefix}" = "xNONE" ; then
3332 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3333 else
3334 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3335 fi
3336 enable_framework=
3337
3338
3339fi
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354##AC_ARG_WITH(dyld,
3355## AS_HELP_STRING([--with-dyld],
3356## [Use (OpenStep|Rhapsody) dynamic linker]))
3357##
3358# Set name for machine-dependent library files
3359
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3361$as_echo_n "checking MACHDEP... " >&6; }
3362if test -z "$MACHDEP"
3363then
3364 # avoid using uname for cross builds
3365 if test "$cross_compiling" = yes; then
3366 # ac_sys_system and ac_sys_release are used for setting
3367 # a lot of different things including 'define_xopen_source'
3368 # in the case statement below.
3369 case "$host" in
3370 *-*-linux*)
3371 ac_sys_system=Linux
3372 ;;
3373 *-*-cygwin*)
3374 ac_sys_system=Cygwin
3375 ;;
3376 *)
3377 # for now, limit cross builds to known configurations
3378 MACHDEP="unknown"
3379 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3380 esac
3381 ac_sys_release=
3382 else
3383 ac_sys_system=`uname -s`
3384 if test "$ac_sys_system" = "AIX" \
3385 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3386 ac_sys_release=`uname -v`
3387 else
3388 ac_sys_release=`uname -r`
3389 fi
3390 fi
3391 ac_md_system=`echo $ac_sys_system |
3392 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3393 ac_md_release=`echo $ac_sys_release |
3394 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3395 MACHDEP="$ac_md_system$ac_md_release"
3396
3397 case $MACHDEP in
3398 linux*) MACHDEP="linux";;
3399 cygwin*) MACHDEP="cygwin";;
3400 darwin*) MACHDEP="darwin";;
3401 irix646) MACHDEP="irix6";;
3402 '') MACHDEP="unknown";;
3403 esac
3404fi
3405
3406
3407if test "$cross_compiling" = yes; then
3408 case "$host" in
3409 *-*-linux*)
3410 case "$host_cpu" in
3411 arm*)
3412 _host_cpu=arm
3413 ;;
3414 *)
3415 _host_cpu=$host_cpu
3416 esac
3417 ;;
3418 *-*-cygwin*)
3419 _host_cpu=
3420 ;;
3421 *)
3422 # for now, limit cross builds to known configurations
3423 MACHDEP="unknown"
3424 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3425 esac
3426 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3427fi
3428
3429# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3430# disable features if it is defined, without any means to access these
3431# features as extensions. For these systems, we skip the definition of
3432# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3433# some feature, make sure there is no alternative way to access this
3434# feature. Also, when using wildcards, make sure you have verified the
3435# need for not defining _XOPEN_SOURCE on all systems matching the
3436# wildcard, and that the wildcard does not include future systems
3437# (which may remove their limitations).
3438case $ac_sys_system/$ac_sys_release in
3439 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3440 # even though select is a POSIX function. Reported by J. Ribbens.
3441 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3442 # In addition, Stefan Krah confirms that issue #1244610 exists through
3443 # OpenBSD 4.6, but is fixed in 4.7.
3444 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3445 define_xopen_source=no
3446 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3447 # also defined. This can be overridden by defining _BSD_SOURCE
3448 # As this has a different meaning on Linux, only define it on OpenBSD
3449
3450$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3451
3452 ;;
3453 OpenBSD/*)
3454 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3455 # also defined. This can be overridden by defining _BSD_SOURCE
3456 # As this has a different meaning on Linux, only define it on OpenBSD
3457
3458$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3459
3460 ;;
3461 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3462 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3463 # Marc Recht
3464 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3465 define_xopen_source=no;;
3466 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3467 # request to enable features supported by the standard as a request
3468 # to disable features not supported by the standard. The best way
3469 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3470 # entirely and define __EXTENSIONS__ instead.
3471 SunOS/*)
3472 define_xopen_source=no;;
3473 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3474 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3475 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3476 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3477 define_xopen_source=no;;
3478 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3479 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3480 SCO_SV/3.2)
3481 define_xopen_source=no;;
3482 # On FreeBSD 4, the math functions C89 does not cover are never defined
3483 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3484 FreeBSD/4.*)
3485 define_xopen_source=no;;
3486 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3487 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3488 # identifies itself as Darwin/7.*
3489 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3490 # disables platform specific features beyond repair.
3491 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3492 # has no effect, don't bother defining them
3493 Darwin/[6789].*)
3494 define_xopen_source=no;;
3495 Darwin/1[0-9].*)
3496 define_xopen_source=no;;
3497 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3498 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3499 # or has another value. By not (re)defining it, the defaults come in place.
3500 AIX/4)
3501 define_xopen_source=no;;
3502 AIX/5)
3503 if test `uname -r` -eq 1; then
3504 define_xopen_source=no
3505 fi
3506 ;;
3507 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3508 # defining NI_NUMERICHOST.
3509 QNX/6.3.2)
3510 define_xopen_source=no
3511 ;;
3512
3513esac
3514
3515if test $define_xopen_source = yes
3516then
3517 # X/Open 7, incorporating POSIX.1-2008
3518
3519$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
3520
3521
3522 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3523 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3524 # several APIs are not declared. Since this is also needed in some
3525 # cases for HP-UX, we define it globally.
3526
3527$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3528
3529
3530
3531$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
3532
3533fi
3534
3535# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3536case $ac_sys_system in
3537 hp*|HP*)
3538 define_stdc_a1=yes;;
3539 *)
3540 define_stdc_a1=no;;
3541esac
3542
3543if test $define_stdc_a1 = yes
3544then
3545
3546$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3547
3548fi
3549
3550#
3551# SGI compilers allow the specification of the both the ABI and the
3552# ISA on the command line. Depending on the values of these switches,
3553# different and often incompatible code will be generated.
3554#
3555# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3556# thus supply support for various ABI/ISA combinations. The MACHDEP
3557# variable is also adjusted.
3558#
3559
3560if test ! -z "$SGI_ABI"
3561then
3562 CC="cc $SGI_ABI"
3563 LDFLAGS="$SGI_ABI $LDFLAGS"
3564 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3565fi
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3567$as_echo "$MACHDEP" >&6; }
3568
3569# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3570# it may influence the way we can build extensions, so distutils
3571# needs to check it
3572
3573
3574CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3575EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3576
3577# checks for alternative programs
3578
3579# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3580# for debug/optimization stuff. BASECFLAGS is for flags that are required
3581# just to get things to compile and link. Users are free to override OPT
3582# when running configure or make. The build should not break if they do.
3583# BASECFLAGS should generally not be messed with, however.
3584
3585# XXX shouldn't some/most/all of this code be merged with the stuff later
3586# on that fiddles with OPT and BASECFLAGS?
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3588$as_echo_n "checking for --without-gcc... " >&6; }
3589
3590# Check whether --with-gcc was given.
3591if test "${with_gcc+set}" = set; then :
3592 withval=$with_gcc;
3593 case $withval in
3594 no) CC=${CC:-cc}
3595 without_gcc=yes;;
3596 yes) CC=gcc
3597 without_gcc=no;;
3598 *) CC=$withval
3599 without_gcc=$withval;;
3600 esac
3601else
3602
3603 case $ac_sys_system in
3604 AIX*) CC=${CC:-xlc_r}
3605 without_gcc=;;
3606 *) without_gcc=no;;
3607 esac
3608fi
3609
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3611$as_echo "$without_gcc" >&6; }
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3614$as_echo_n "checking for --with-icc... " >&6; }
3615
3616# Check whether --with-icc was given.
3617if test "${with_icc+set}" = set; then :
3618 withval=$with_icc;
3619 case $withval in
3620 no) CC=${CC:-cc}
3621 with_icc=no;;
3622 yes) CC=icc
3623 CXX=icpc
3624 with_icc=yes;;
3625 *) CC=$withval
3626 with_icc=$withval;;
3627 esac
3628else
3629
3630 with_icc=no
3631fi
3632
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3634$as_echo "$with_icc" >&6; }
3635
3636# If the user switches compilers, we can't believe the cache
3637if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3638then
3639 as_fn_error $? "cached CC is different -- throw away $cache_file
3640(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3641fi
3642
3643# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3644# when the compiler supports them, but we don't always want -O2, and
3645# we set -g later.
3646if test -z "$CFLAGS"; then
3647 CFLAGS=
3648fi
3649
3650if test "$ac_sys_system" = "Darwin"
3651then
3652 # Compiler selection on MacOSX is more complicated than
3653 # AC_PROG_CC can handle, see Mac/README.txt for more
3654 # information
3655 if test -z "${CC}"
3656 then
3657 found_gcc=
3658 found_clang=
3659 as_save_IFS=$IFS; IFS=:
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 if test -x $as_dir/gcc; then
3664 if test -z "${found_gcc}"; then
3665 found_gcc=$as_dir/gcc
3666 fi
3667 fi
3668 if test -x $as_dir/clang; then
3669 if test -z "${found_clang}"; then
3670 found_clang=$as_dir/clang
3671 fi
3672 fi
3673 done
3674 IFS=$as_save_IFS
3675
3676 if test -n "$found_gcc" -a -n "$found_clang"
3677 then
3678 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3679 then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3681$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3682 CC="$found_clang"
3683 CXX="$found_clang++"
3684 fi
3685
3686
3687 elif test -z "$found_gcc" -a -n "$found_clang"
3688 then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3690$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3691 CC="$found_clang"
3692 CXX="$found_clang++"
3693
3694 elif test -z "$found_gcc" -a -z "$found_clang"
3695 then
3696 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3697 if test -n "${found_clang}"
3698 then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3700$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3701 CC="${found_clang}"
3702 CXX="`/usr/bin/xcrun -find clang++`"
3703
3704 # else: use default behaviour
3705 fi
3706 fi
3707 fi
3708fi
3709ac_ext=c
3710ac_cpp='$CPP $CPPFLAGS'
3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714if test -n "$ac_tool_prefix"; then
3715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3716set dummy ${ac_tool_prefix}gcc; ac_word=$2
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718$as_echo_n "checking for $ac_word... " >&6; }
3719if ${ac_cv_prog_CC+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721else
3722 if test -n "$CC"; then
3723 ac_cv_prog_CC="$CC" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737 done
3738IFS=$as_save_IFS
3739
3740fi
3741fi
3742CC=$ac_cv_prog_CC
3743if test -n "$CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3745$as_echo "$CC" >&6; }
3746else
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748$as_echo "no" >&6; }
3749fi
3750
3751
3752fi
3753if test -z "$ac_cv_prog_CC"; then
3754 ac_ct_CC=$CC
3755 # Extract the first word of "gcc", so it can be a program name with args.
3756set dummy gcc; ac_word=$2
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758$as_echo_n "checking for $ac_word... " >&6; }
3759if ${ac_cv_prog_ac_ct_CC+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761else
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764else
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_ac_ct_CC="gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776done
3777 done
3778IFS=$as_save_IFS
3779
3780fi
3781fi
3782ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783if test -n "$ac_ct_CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3785$as_echo "$ac_ct_CC" >&6; }
3786else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
3789fi
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795yes:)
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798ac_tool_warned=yes ;;
3799esac
3800 CC=$ac_ct_CC
3801 fi
3802else
3803 CC="$ac_cv_prog_CC"
3804fi
3805
3806if test -z "$CC"; then
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3809set dummy ${ac_tool_prefix}cc; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}cc"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829done
3830 done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838$as_echo "$CC" >&6; }
3839else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842fi
3843
3844
3845 fi
3846fi
3847if test -z "$CC"; then
3848 # Extract the first word of "cc", so it can be a program name with args.
3849set dummy cc; ac_word=$2
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851$as_echo_n "checking for $ac_word... " >&6; }
3852if ${ac_cv_prog_CC+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857else
3858 ac_prog_rejected=no
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3867 ac_prog_rejected=yes
3868 continue
3869 fi
3870 ac_cv_prog_CC="cc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875 done
3876IFS=$as_save_IFS
3877
3878if test $ac_prog_rejected = yes; then
3879 # We found a bogon in the path, so make sure we never use it.
3880 set dummy $ac_cv_prog_CC
3881 shift
3882 if test $# != 0; then
3883 # We chose a different compiler from the bogus one.
3884 # However, it has the same basename, so the bogon will be chosen
3885 # first if we set CC to just the basename; use the full file name.
3886 shift
3887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3888 fi
3889fi
3890fi
3891fi
3892CC=$ac_cv_prog_CC
3893if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895$as_echo "$CC" >&6; }
3896else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901
3902fi
3903if test -z "$CC"; then
3904 if test -n "$ac_tool_prefix"; then
3905 for ac_prog in cl.exe
3906 do
3907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910$as_echo_n "checking for $ac_word... " >&6; }
3911if ${ac_cv_prog_CC+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913else
3914 if test -n "$CC"; then
3915 ac_cv_prog_CC="$CC" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928done
3929 done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937$as_echo "$CC" >&6; }
3938else
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944 test -n "$CC" && break
3945 done
3946fi
3947if test -z "$CC"; then
3948 ac_ct_CC=$CC
3949 for ac_prog in cl.exe
3950do
3951 # Extract the first word of "$ac_prog", so it can be a program name with args.
3952set dummy $ac_prog; ac_word=$2
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
3955if ${ac_cv_prog_ac_ct_CC+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_CC="$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972done
3973 done
3974IFS=$as_save_IFS
3975
3976fi
3977fi
3978ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979if test -n "$ac_ct_CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981$as_echo "$ac_ct_CC" >&6; }
3982else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987
3988 test -n "$ac_ct_CC" && break
3989done
3990
3991 if test "x$ac_ct_CC" = x; then
3992 CC=""
3993 else
3994 case $cross_compiling:$ac_tool_warned in
3995yes:)
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998ac_tool_warned=yes ;;
3999esac
4000 CC=$ac_ct_CC
4001 fi
4002fi
4003
4004fi
4005
4006
4007test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009as_fn_error $? "no acceptable C compiler found in \$PATH
4010See \`config.log' for more details" "$LINENO" 5; }
4011
4012# Provide some information about the compiler.
4013$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4014set X $ac_compile
4015ac_compiler=$2
4016for ac_option in --version -v -V -qversion; do
4017 { { ac_try="$ac_compiler $ac_option >&5"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023$as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4025 ac_status=$?
4026 if test -s conftest.err; then
4027 sed '10a\
4028... rest of stderr output deleted ...
4029 10q' conftest.err >conftest.er1
4030 cat conftest.er1 >&5
4031 fi
4032 rm -f conftest.er1 conftest.err
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }
4035done
4036
4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048ac_clean_files_save=$ac_clean_files
4049ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4050# Try to create an executable without -o first, disregard a.out.
4051# It will help us diagnose broken compilers, and finding out an intuition
4052# of exeext.
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4054$as_echo_n "checking whether the C compiler works... " >&6; }
4055ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4056
4057# The possible output files:
4058ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4059
4060ac_rmfiles=
4061for ac_file in $ac_files
4062do
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4065 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4066 esac
4067done
4068rm -f $ac_rmfiles
4069
4070if { { ac_try="$ac_link_default"
4071case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076$as_echo "$ac_try_echo"; } >&5
4077 (eval "$ac_link_default") 2>&5
4078 ac_status=$?
4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }; then :
4081 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4082# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4083# in a Makefile. We should not override ac_cv_exeext if it was cached,
4084# so that the user can short-circuit this test for compilers unknown to
4085# Autoconf.
4086for ac_file in $ac_files ''
4087do
4088 test -f "$ac_file" || continue
4089 case $ac_file in
4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4091 ;;
4092 [ab].out )
4093 # We found the default executable, but exeext='' is most
4094 # certainly right.
4095 break;;
4096 *.* )
4097 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4098 then :; else
4099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4100 fi
4101 # We set ac_cv_exeext here because the later test for it is not
4102 # safe: cross compilers may not add the suffix if given an `-o'
4103 # argument, so we may need to know it at that point already.
4104 # Even if this section looks crufty: it has the advantage of
4105 # actually working.
4106 break;;
4107 * )
4108 break;;
4109 esac
4110done
4111test "$ac_cv_exeext" = no && ac_cv_exeext=
4112
4113else
4114 ac_file=''
4115fi
4116if test -z "$ac_file"; then :
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119$as_echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error 77 "C compiler cannot create executables
4125See \`config.log' for more details" "$LINENO" 5; }
4126else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128$as_echo "yes" >&6; }
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4131$as_echo_n "checking for C compiler default output file name... " >&6; }
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4133$as_echo "$ac_file" >&6; }
4134ac_exeext=$ac_cv_exeext
4135
4136rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4137ac_clean_files=$ac_clean_files_save
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4139$as_echo_n "checking for suffix of executables... " >&6; }
4140if { { ac_try="$ac_link"
4141case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146$as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_link") 2>&5
4148 ac_status=$?
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4153# work properly (i.e., refer to `conftest.exe'), while it won't with
4154# `rm'.
4155for ac_file in conftest.exe conftest conftest.*; do
4156 test -f "$ac_file" || continue
4157 case $ac_file in
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4160 break;;
4161 * ) break;;
4162 esac
4163done
4164else
4165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4168See \`config.log' for more details" "$LINENO" 5; }
4169fi
4170rm -f conftest conftest$ac_cv_exeext
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4172$as_echo "$ac_cv_exeext" >&6; }
4173
4174rm -f conftest.$ac_ext
4175EXEEXT=$ac_cv_exeext
4176ac_exeext=$EXEEXT
4177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h. */
4179#include <stdio.h>
4180int
4181main ()
4182{
4183FILE *f = fopen ("conftest.out", "w");
4184 return ferror (f) || fclose (f) != 0;
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190ac_clean_files="$ac_clean_files conftest.out"
4191# Check that the compiler produces executables we can run. If not, either
4192# the compiler is broken, or we cross compile.
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4194$as_echo_n "checking whether we are cross compiling... " >&6; }
4195if test "$cross_compiling" != yes; then
4196 { { ac_try="$ac_link"
4197case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202$as_echo "$ac_try_echo"; } >&5
4203 (eval "$ac_link") 2>&5
4204 ac_status=$?
4205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206 test $ac_status = 0; }
4207 if { ac_try='./conftest$ac_cv_exeext'
4208 { { case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213$as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_try") 2>&5
4215 ac_status=$?
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; }; }; then
4218 cross_compiling=no
4219 else
4220 if test "$cross_compiling" = maybe; then
4221 cross_compiling=yes
4222 else
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225as_fn_error $? "cannot run C compiled programs.
4226If you meant to cross compile, use \`--host'.
4227See \`config.log' for more details" "$LINENO" 5; }
4228 fi
4229 fi
4230fi
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4232$as_echo "$cross_compiling" >&6; }
4233
4234rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4235ac_clean_files=$ac_clean_files_save
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237$as_echo_n "checking for suffix of object files... " >&6; }
4238if ${ac_cv_objext+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243
4244int
4245main ()
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.o conftest.obj
4253if { { ac_try="$ac_compile"
4254case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259$as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271done
4272else
4273 $as_echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278as_fn_error $? "cannot compute suffix of object files: cannot compile
4279See \`config.log' for more details" "$LINENO" 5; }
4280fi
4281rm -f conftest.$ac_cv_objext conftest.$ac_ext
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284$as_echo "$ac_cv_objext" >&6; }
4285OBJEXT=$ac_cv_objext
4286ac_objext=$OBJEXT
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289if ${ac_cv_c_compiler_gnu+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
4294
4295int
4296main ()
4297{
4298#ifndef __GNUC__
4299 choke me
4300#endif
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308else
4309 ac_compiler_gnu=no
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312ac_cv_c_compiler_gnu=$ac_compiler_gnu
4313
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317if test $ac_compiler_gnu = yes; then
4318 GCC=yes
4319else
4320 GCC=
4321fi
4322ac_test_CFLAGS=${CFLAGS+set}
4323ac_save_CFLAGS=$CFLAGS
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325$as_echo_n "checking whether $CC accepts -g... " >&6; }
4326if ${ac_cv_prog_cc_g+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328else
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_prog_cc_g=yes
4346else
4347 CFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360
4361else
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h. */
4366
4367int
4368main ()
4369{
4370
4371 ;
4372 return 0;
4373}
4374_ACEOF
4375if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379fi
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381fi
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386$as_echo "$ac_cv_prog_cc_g" >&6; }
4387if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4391 CFLAGS="-g -O2"
4392 else
4393 CFLAGS="-g"
4394 fi
4395else
4396 if test "$GCC" = yes; then
4397 CFLAGS="-O2"
4398 else
4399 CFLAGS=
4400 fi
4401fi
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404if ${ac_cv_prog_cc_c89+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406else
4407 ac_cv_prog_cc_c89=no
4408ac_save_CC=$CC
4409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h. */
4411#include <stdarg.h>
4412#include <stdio.h>
4413struct stat;
4414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4415struct buf { int x; };
4416FILE * (*rcsopen) (struct buf *, struct stat *, int);
4417static char *e (p, i)
4418 char **p;
4419 int i;
4420{
4421 return p[i];
4422}
4423static char *f (char * (*g) (char **, int), char **p, ...)
4424{
4425 char *s;
4426 va_list v;
4427 va_start (v,p);
4428 s = g (p, va_arg (v,int));
4429 va_end (v);
4430 return s;
4431}
4432
4433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4434 function prototypes and stuff, but not '\xHH' hex character constants.
4435 These don't provoke an error unfortunately, instead are silently treated
4436 as 'x'. The following induces an error, until -std is added to get
4437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4438 array size at least. It's necessary to write '\x00'==0 to get something
4439 that's true only with -std. */
4440int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4441
4442/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4443 inside strings and character constants. */
4444#define FOO(x) 'x'
4445int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4446
4447int test (int i, double x);
4448struct s1 {int (*f) (int a);};
4449struct s2 {int (*f) (double a);};
4450int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4451int argc;
4452char **argv;
4453int
4454main ()
4455{
4456return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4463do
4464 CC="$ac_save_CC $ac_arg"
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_prog_cc_c89=$ac_arg
4467fi
4468rm -f core conftest.err conftest.$ac_objext
4469 test "x$ac_cv_prog_cc_c89" != "xno" && break
4470done
4471rm -f conftest.$ac_ext
4472CC=$ac_save_CC
4473
4474fi
4475# AC_CACHE_VAL
4476case "x$ac_cv_prog_cc_c89" in
4477 x)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479$as_echo "none needed" >&6; } ;;
4480 xno)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4482$as_echo "unsupported" >&6; } ;;
4483 *)
4484 CC="$CC $ac_cv_prog_cc_c89"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4486$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4487esac
4488if test "x$ac_cv_prog_cc_c89" != xno; then :
4489
4490fi
4491
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498ac_ext=c
4499ac_cpp='$CPP $CPPFLAGS'
4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4504$as_echo_n "checking how to run the C preprocessor... " >&6; }
4505# On Suns, sometimes $CPP names a directory.
4506if test -n "$CPP" && test -d "$CPP"; then
4507 CPP=
4508fi
4509if test -z "$CPP"; then
4510 if ${ac_cv_prog_CPP+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512else
4513 # Double quotes because CPP needs to be expanded
4514 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4515 do
4516 ac_preproc_ok=false
4517for ac_c_preproc_warn_flag in '' yes
4518do
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h. */
4527#ifdef __STDC__
4528# include <limits.h>
4529#else
4530# include <assert.h>
4531#endif
4532 Syntax error
4533_ACEOF
4534if ac_fn_c_try_cpp "$LINENO"; then :
4535
4536else
4537 # Broken: fails on valid input.
4538continue
4539fi
4540rm -f conftest.err conftest.i conftest.$ac_ext
4541
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h. */
4546#include <ac_nonexistent.h>
4547_ACEOF
4548if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: success on invalid input.
4550continue
4551else
4552 # Passes both tests.
4553ac_preproc_ok=:
4554break
4555fi
4556rm -f conftest.err conftest.i conftest.$ac_ext
4557
4558done
4559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560rm -f conftest.i conftest.err conftest.$ac_ext
4561if $ac_preproc_ok; then :
4562 break
4563fi
4564
4565 done
4566 ac_cv_prog_CPP=$CPP
4567
4568fi
4569 CPP=$ac_cv_prog_CPP
4570else
4571 ac_cv_prog_CPP=$CPP
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4574$as_echo "$CPP" >&6; }
4575ac_preproc_ok=false
4576for ac_c_preproc_warn_flag in '' yes
4577do
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586#ifdef __STDC__
4587# include <limits.h>
4588#else
4589# include <assert.h>
4590#endif
4591 Syntax error
4592_ACEOF
4593if ac_fn_c_try_cpp "$LINENO"; then :
4594
4595else
4596 # Broken: fails on valid input.
4597continue
4598fi
4599rm -f conftest.err conftest.i conftest.$ac_ext
4600
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605#include <ac_nonexistent.h>
4606_ACEOF
4607if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: success on invalid input.
4609continue
4610else
4611 # Passes both tests.
4612ac_preproc_ok=:
4613break
4614fi
4615rm -f conftest.err conftest.i conftest.$ac_ext
4616
4617done
4618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619rm -f conftest.i conftest.err conftest.$ac_ext
4620if $ac_preproc_ok; then :
4621
4622else
4623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4626See \`config.log' for more details" "$LINENO" 5; }
4627fi
4628
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4636$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4637if ${ac_cv_path_GREP+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 if test -z "$GREP"; then
4641 ac_path_GREP_found=false
4642 # Loop through the user's path and test for each of PROGNAME-LIST
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_prog in grep ggrep; do
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651 as_fn_executable_p "$ac_path_GREP" || continue
4652# Check for GNU ac_path_GREP and select it if it is found.
4653 # Check for GNU $ac_path_GREP
4654case `"$ac_path_GREP" --version 2>&1` in
4655*GNU*)
4656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657*)
4658 ac_count=0
4659 $as_echo_n 0123456789 >"conftest.in"
4660 while :
4661 do
4662 cat "conftest.in" "conftest.in" >"conftest.tmp"
4663 mv "conftest.tmp" "conftest.in"
4664 cp "conftest.in" "conftest.nl"
4665 $as_echo 'GREP' >> "conftest.nl"
4666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668 as_fn_arith $ac_count + 1 && ac_count=$as_val
4669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670 # Best one so far, save it but keep looking for a better one
4671 ac_cv_path_GREP="$ac_path_GREP"
4672 ac_path_GREP_max=$ac_count
4673 fi
4674 # 10*(2^10) chars as input seems more than enough
4675 test $ac_count -gt 10 && break
4676 done
4677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678esac
4679
4680 $ac_path_GREP_found && break 3
4681 done
4682 done
4683 done
4684IFS=$as_save_IFS
4685 if test -z "$ac_cv_path_GREP"; then
4686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 fi
4688else
4689 ac_cv_path_GREP=$GREP
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4694$as_echo "$ac_cv_path_GREP" >&6; }
4695 GREP="$ac_cv_path_GREP"
4696
4697
4698
4699
4700
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4702$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4703
4704# Check whether --with-cxx_main was given.
4705if test "${with_cxx_main+set}" = set; then :
4706 withval=$with_cxx_main;
4707
4708 case $withval in
4709 no) with_cxx_main=no
4710 MAINCC='$(CC)';;
4711 yes) with_cxx_main=yes
4712 MAINCC='$(CXX)';;
4713 *) with_cxx_main=yes
4714 MAINCC=$withval
4715 if test -z "$CXX"
4716 then
4717 CXX=$withval
4718 fi;;
4719 esac
4720else
4721
4722 with_cxx_main=no
4723 MAINCC='$(CC)'
4724
4725fi
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4728$as_echo "$with_cxx_main" >&6; }
4729
4730preset_cxx="$CXX"
4731if test -z "$CXX"
4732then
4733 case "$CC" in
4734 gcc) if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4736set dummy ${ac_tool_prefix}g++; ac_word=$2
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
4739if ${ac_cv_path_CXX+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742 case $CXX in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4745 ;;
4746 *)
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in notfound
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759 done
4760IFS=$as_save_IFS
4761
4762 ;;
4763esac
4764fi
4765CXX=$ac_cv_path_CXX
4766if test -n "$CXX"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4768$as_echo "$CXX" >&6; }
4769else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773
4774
4775fi
4776if test -z "$ac_cv_path_CXX"; then
4777 ac_pt_CXX=$CXX
4778 # Extract the first word of "g++", so it can be a program name with args.
4779set dummy g++; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; }
4782if ${ac_cv_path_ac_pt_CXX+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784else
4785 case $ac_pt_CXX in
4786 [\\/]* | ?:[\\/]*)
4787 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4788 ;;
4789 *)
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in notfound
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805 ;;
4806esac
4807fi
4808ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4809if test -n "$ac_pt_CXX"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4811$as_echo "$ac_pt_CXX" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817 if test "x$ac_pt_CXX" = x; then
4818 CXX="g++"
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826 CXX=$ac_pt_CXX
4827 fi
4828else
4829 CXX="$ac_cv_path_CXX"
4830fi
4831 ;;
4832 cc) if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4834set dummy ${ac_tool_prefix}c++; ac_word=$2
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836$as_echo_n "checking for $ac_word... " >&6; }
4837if ${ac_cv_path_CXX+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 case $CXX in
4841 [\\/]* | ?:[\\/]*)
4842 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4843 ;;
4844 *)
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in notfound
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857 done
4858IFS=$as_save_IFS
4859
4860 ;;
4861esac
4862fi
4863CXX=$ac_cv_path_CXX
4864if test -n "$CXX"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4866$as_echo "$CXX" >&6; }
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
4870fi
4871
4872
4873fi
4874if test -z "$ac_cv_path_CXX"; then
4875 ac_pt_CXX=$CXX
4876 # Extract the first word of "c++", so it can be a program name with args.
4877set dummy c++; ac_word=$2
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if ${ac_cv_path_ac_pt_CXX+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882else
4883 case $ac_pt_CXX in
4884 [\\/]* | ?:[\\/]*)
4885 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4886 ;;
4887 *)
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in notfound
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899done
4900 done
4901IFS=$as_save_IFS
4902
4903 ;;
4904esac
4905fi
4906ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4907if test -n "$ac_pt_CXX"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4909$as_echo "$ac_pt_CXX" >&6; }
4910else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
4913fi
4914
4915 if test "x$ac_pt_CXX" = x; then
4916 CXX="c++"
4917 else
4918 case $cross_compiling:$ac_tool_warned in
4919yes:)
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922ac_tool_warned=yes ;;
4923esac
4924 CXX=$ac_pt_CXX
4925 fi
4926else
4927 CXX="$ac_cv_path_CXX"
4928fi
4929 ;;
4930 clang|*/clang) if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4932set dummy ${ac_tool_prefix}clang++; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if ${ac_cv_path_CXX+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937else
4938 case $CXX in
4939 [\\/]* | ?:[\\/]*)
4940 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4941 ;;
4942 *)
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in notfound
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955 done
4956IFS=$as_save_IFS
4957
4958 ;;
4959esac
4960fi
4961CXX=$ac_cv_path_CXX
4962if test -n "$CXX"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4964$as_echo "$CXX" >&6; }
4965else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971fi
4972if test -z "$ac_cv_path_CXX"; then
4973 ac_pt_CXX=$CXX
4974 # Extract the first word of "clang++", so it can be a program name with args.
4975set dummy clang++; ac_word=$2
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977$as_echo_n "checking for $ac_word... " >&6; }
4978if ${ac_cv_path_ac_pt_CXX+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981 case $ac_pt_CXX in
4982 [\\/]* | ?:[\\/]*)
4983 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4984 ;;
4985 *)
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in notfound
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998 done
4999IFS=$as_save_IFS
5000
5001 ;;
5002esac
5003fi
5004ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5005if test -n "$ac_pt_CXX"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5007$as_echo "$ac_pt_CXX" >&6; }
5008else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013 if test "x$ac_pt_CXX" = x; then
5014 CXX="clang++"
5015 else
5016 case $cross_compiling:$ac_tool_warned in
5017yes:)
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020ac_tool_warned=yes ;;
5021esac
5022 CXX=$ac_pt_CXX
5023 fi
5024else
5025 CXX="$ac_cv_path_CXX"
5026fi
5027 ;;
5028 icc|*/icc) if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
5030set dummy ${ac_tool_prefix}icpc; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
5033if ${ac_cv_path_CXX+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035else
5036 case $CXX in
5037 [\\/]* | ?:[\\/]*)
5038 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
5039 ;;
5040 *)
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in notfound
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052done
5053 done
5054IFS=$as_save_IFS
5055
5056 ;;
5057esac
5058fi
5059CXX=$ac_cv_path_CXX
5060if test -n "$CXX"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5062$as_echo "$CXX" >&6; }
5063else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068
5069fi
5070if test -z "$ac_cv_path_CXX"; then
5071 ac_pt_CXX=$CXX
5072 # Extract the first word of "icpc", so it can be a program name with args.
5073set dummy icpc; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if ${ac_cv_path_ac_pt_CXX+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 case $ac_pt_CXX in
5080 [\\/]* | ?:[\\/]*)
5081 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
5082 ;;
5083 *)
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in notfound
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095done
5096 done
5097IFS=$as_save_IFS
5098
5099 ;;
5100esac
5101fi
5102ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5103if test -n "$ac_pt_CXX"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5105$as_echo "$ac_pt_CXX" >&6; }
5106else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110
5111 if test "x$ac_pt_CXX" = x; then
5112 CXX="icpc"
5113 else
5114 case $cross_compiling:$ac_tool_warned in
5115yes:)
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118ac_tool_warned=yes ;;
5119esac
5120 CXX=$ac_pt_CXX
5121 fi
5122else
5123 CXX="$ac_cv_path_CXX"
5124fi
5125 ;;
5126 esac
5127 if test "$CXX" = "notfound"
5128 then
5129 CXX=""
5130 fi
5131fi
5132if test -z "$CXX"
5133then
5134 if test -n "$ac_tool_prefix"; then
5135 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5136 do
5137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_prog_CXX+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143else
5144 if test -n "$CXX"; then
5145 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159 done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164CXX=$ac_cv_prog_CXX
5165if test -n "$CXX"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5167$as_echo "$CXX" >&6; }
5168else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173
5174 test -n "$CXX" && break
5175 done
5176fi
5177if test -z "$CXX"; then
5178 ac_ct_CXX=$CXX
5179 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5180do
5181 # Extract the first word of "$ac_prog", so it can be a program name with args.
5182set dummy $ac_prog; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187else
5188 if test -n "$ac_ct_CXX"; then
5189 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_CXX="$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203 done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5209if test -n "$ac_ct_CXX"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5211$as_echo "$ac_ct_CXX" >&6; }
5212else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217
5218 test -n "$ac_ct_CXX" && break
5219done
5220
5221 if test "x$ac_ct_CXX" = x; then
5222 CXX="notfound"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225yes:)
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228ac_tool_warned=yes ;;
5229esac
5230 CXX=$ac_ct_CXX
5231 fi
5232fi
5233
5234 if test "$CXX" = "notfound"
5235 then
5236 CXX=""
5237 fi
5238fi
5239if test "$preset_cxx" != "$CXX"
5240then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}:
5242
5243 By default, distutils will build C++ extension modules with \"$CXX\".
5244 If this is not intended, then set CXX on the configure command line.
5245 " >&5
5246$as_echo "$as_me:
5247
5248 By default, distutils will build C++ extension modules with \"$CXX\".
5249 If this is not intended, then set CXX on the configure command line.
5250 " >&6;}
5251fi
5252
5253
5254MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5255
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5258$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5259cat >> conftest.c <<EOF
5260#undef bfin
5261#undef cris
5262#undef fr30
5263#undef linux
5264#undef hppa
5265#undef hpux
5266#undef i386
5267#undef mips
5268#undef powerpc
5269#undef sparc
5270#undef unix
5271#if defined(__linux__)
5272# if defined(__x86_64__) && defined(__LP64__)
5273 x86_64-linux-gnu
5274# elif defined(__x86_64__) && defined(__ILP32__)
5275 x86_64-linux-gnux32
5276# elif defined(__i386__)
5277 i386-linux-gnu
5278# elif defined(__aarch64__) && defined(__AARCH64EL__)
5279# if defined(__ILP32__)
5280 aarch64_ilp32-linux-gnu
5281# else
5282 aarch64-linux-gnu
5283# endif
5284# elif defined(__aarch64__) && defined(__AARCH64EB__)
5285# if defined(__ILP32__)
5286 aarch64_be_ilp32-linux-gnu
5287# else
5288 aarch64_be-linux-gnu
5289# endif
5290# elif defined(__alpha__)
5291 alpha-linux-gnu
5292# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5293# if defined(__ARMEL__)
5294 arm-linux-gnueabihf
5295# else
5296 armeb-linux-gnueabihf
5297# endif
5298# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5299# if defined(__ARMEL__)
5300 arm-linux-gnueabi
5301# else
5302 armeb-linux-gnueabi
5303# endif
5304# elif defined(__hppa__)
5305 hppa-linux-gnu
5306# elif defined(__ia64__)
5307 ia64-linux-gnu
5308# elif defined(__m68k__) && !defined(__mcoldfire__)
5309 m68k-linux-gnu
5310# elif defined(__mips_hard_float) && defined(_MIPSEL)
5311# if _MIPS_SIM == _ABIO32
5312 mipsel-linux-gnu
5313# elif _MIPS_SIM == _ABIN32
5314 mips64el-linux-gnuabin32
5315# elif _MIPS_SIM == _ABI64
5316 mips64el-linux-gnuabi64
5317# else
5318# error unknown platform triplet
5319# endif
5320# elif defined(__mips_hard_float)
5321# if _MIPS_SIM == _ABIO32
5322 mips-linux-gnu
5323# elif _MIPS_SIM == _ABIN32
5324 mips64-linux-gnuabin32
5325# elif _MIPS_SIM == _ABI64
5326 mips64-linux-gnuabi64
5327# else
5328# error unknown platform triplet
5329# endif
5330# elif defined(__or1k__)
5331 or1k-linux-gnu
5332# elif defined(__powerpc__) && defined(__SPE__)
5333 powerpc-linux-gnuspe
5334# elif defined(__powerpc64__)
5335# if defined(__LITTLE_ENDIAN__)
5336 powerpc64le-linux-gnu
5337# else
5338 powerpc64-linux-gnu
5339# endif
5340# elif defined(__powerpc__)
5341 powerpc-linux-gnu
5342# elif defined(__s390x__)
5343 s390x-linux-gnu
5344# elif defined(__s390__)
5345 s390-linux-gnu
5346# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5347 sh4-linux-gnu
5348# elif defined(__sparc__) && defined(__arch64__)
5349 sparc64-linux-gnu
5350# elif defined(__sparc__)
5351 sparc-linux-gnu
5352# else
5353# error unknown platform triplet
5354# endif
5355#elif defined(__FreeBSD_kernel__)
5356# if defined(__LP64__)
5357 x86_64-kfreebsd-gnu
5358# elif defined(__i386__)
5359 i386-kfreebsd-gnu
5360# else
5361# error unknown platform triplet
5362# endif
5363#elif defined(__gnu_hurd__)
5364 i386-gnu
5365#elif defined(__APPLE__)
5366 darwin
5367#else
5368# error unknown platform triplet
5369#endif
5370
5371EOF
5372
5373if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5374 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5376$as_echo "$PLATFORM_TRIPLET" >&6; }
5377else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5379$as_echo "none" >&6; }
5380fi
5381rm -f conftest.c conftest.out
5382
5383if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5384 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5385 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5386 fi
5387fi
5388PLATDIR=plat-$MACHDEP
5389
5390
5391
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5394$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5395save_LDFLAGS="$LDFLAGS"
5396LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
5397
5398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400
5401int
5402main ()
5403{
5404
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409if ac_fn_c_try_link "$LINENO"; then :
5410 NO_AS_NEEDED="-Wl,--no-as-needed"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412$as_echo "yes" >&6; }
5413else
5414 NO_AS_NEEDED=""
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416$as_echo "no" >&6; }
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5420LDFLAGS="$save_LDFLAGS"
5421
5422
5423
5424# checks for UNIX variants that set C preprocessor variables
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5427$as_echo_n "checking for egrep... " >&6; }
5428if ${ac_cv_path_EGREP+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5432 then ac_cv_path_EGREP="$GREP -E"
5433 else
5434 if test -z "$EGREP"; then
5435 ac_path_EGREP_found=false
5436 # Loop through the user's path and test for each of PROGNAME-LIST
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5439do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_prog in egrep; do
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5445 as_fn_executable_p "$ac_path_EGREP" || continue
5446# Check for GNU ac_path_EGREP and select it if it is found.
5447 # Check for GNU $ac_path_EGREP
5448case `"$ac_path_EGREP" --version 2>&1` in
5449*GNU*)
5450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5451*)
5452 ac_count=0
5453 $as_echo_n 0123456789 >"conftest.in"
5454 while :
5455 do
5456 cat "conftest.in" "conftest.in" >"conftest.tmp"
5457 mv "conftest.tmp" "conftest.in"
5458 cp "conftest.in" "conftest.nl"
5459 $as_echo 'EGREP' >> "conftest.nl"
5460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5462 as_fn_arith $ac_count + 1 && ac_count=$as_val
5463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5464 # Best one so far, save it but keep looking for a better one
5465 ac_cv_path_EGREP="$ac_path_EGREP"
5466 ac_path_EGREP_max=$ac_count
5467 fi
5468 # 10*(2^10) chars as input seems more than enough
5469 test $ac_count -gt 10 && break
5470 done
5471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5472esac
5473
5474 $ac_path_EGREP_found && break 3
5475 done
5476 done
5477 done
5478IFS=$as_save_IFS
5479 if test -z "$ac_cv_path_EGREP"; then
5480 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5481 fi
5482else
5483 ac_cv_path_EGREP=$EGREP
5484fi
5485
5486 fi
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5489$as_echo "$ac_cv_path_EGREP" >&6; }
5490 EGREP="$ac_cv_path_EGREP"
5491
5492
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5494$as_echo_n "checking for ANSI C header files... " >&6; }
5495if ${ac_cv_header_stdc+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h. */
5500#include <stdlib.h>
5501#include <stdarg.h>
5502#include <string.h>
5503#include <float.h>
5504
5505int
5506main ()
5507{
5508
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_compile "$LINENO"; then :
5514 ac_cv_header_stdc=yes
5515else
5516 ac_cv_header_stdc=no
5517fi
5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519
5520if test $ac_cv_header_stdc = yes; then
5521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h. */
5524#include <string.h>
5525
5526_ACEOF
5527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "memchr" >/dev/null 2>&1; then :
5529
5530else
5531 ac_cv_header_stdc=no
5532fi
5533rm -f conftest*
5534
5535fi
5536
5537if test $ac_cv_header_stdc = yes; then
5538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h. */
5541#include <stdlib.h>
5542
5543_ACEOF
5544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev/null 2>&1; then :
5546
5547else
5548 ac_cv_header_stdc=no
5549fi
5550rm -f conftest*
5551
5552fi
5553
5554if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then :
5557 :
5558else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */
5561#include <ctype.h>
5562#include <stdlib.h>
5563#if ((' ' & 0x0FF) == 0x020)
5564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5566#else
5567# define ISLOWER(c) \
5568 (('a' <= (c) && (c) <= 'i') \
5569 || ('j' <= (c) && (c) <= 'r') \
5570 || ('s' <= (c) && (c) <= 'z'))
5571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5572#endif
5573
5574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5575int
5576main ()
5577{
5578 int i;
5579 for (i = 0; i < 256; i++)
5580 if (XOR (islower (i), ISLOWER (i))
5581 || toupper (i) != TOUPPER (i))
5582 return 2;
5583 return 0;
5584}
5585_ACEOF
5586if ac_fn_c_try_run "$LINENO"; then :
5587
5588else
5589 ac_cv_header_stdc=no
5590fi
5591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5592 conftest.$ac_objext conftest.beam conftest.$ac_ext
5593fi
5594
5595fi
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5598$as_echo "$ac_cv_header_stdc" >&6; }
5599if test $ac_cv_header_stdc = yes; then
5600
5601$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5602
5603fi
5604
5605# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5607 inttypes.h stdint.h unistd.h
5608do :
5609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5611"
5612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5613 cat >>confdefs.h <<_ACEOF
5614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615_ACEOF
5616
5617fi
5618
5619done
5620
5621
5622
5623 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5624if test "x$ac_cv_header_minix_config_h" = xyes; then :
5625 MINIX=yes
5626else
5627 MINIX=
5628fi
5629
5630
5631 if test "$MINIX" = yes; then
5632
5633$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5634
5635
5636$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5637
5638
5639$as_echo "#define _MINIX 1" >>confdefs.h
5640
5641 fi
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5645$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5646if ${ac_cv_safe_to_define___extensions__+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h. */
5651
5652# define __EXTENSIONS__ 1
5653 $ac_includes_default
5654int
5655main ()
5656{
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_safe_to_define___extensions__=yes
5664else
5665 ac_cv_safe_to_define___extensions__=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5670$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5671 test $ac_cv_safe_to_define___extensions__ = yes &&
5672 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5673
5674 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5675
5676 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5677
5678 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5679
5680 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5681
5682
5683
5684# Check for unsupported systems
5685case $ac_sys_system/$ac_sys_release in
5686atheos*|Linux*/1*)
5687 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5688 echo See README for details.
5689 exit 1;;
5690esac
5691
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5694$as_echo_n "checking for --with-suffix... " >&6; }
5695
5696# Check whether --with-suffix was given.
5697if test "${with_suffix+set}" = set; then :
5698 withval=$with_suffix;
5699 case $withval in
5700 no) EXEEXT=;;
5701 yes) EXEEXT=.exe;;
5702 *) EXEEXT=$withval;;
5703 esac
5704fi
5705
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5707$as_echo "$EXEEXT" >&6; }
5708
5709# Test whether we're running on a non-case-sensitive system, in which
5710# case we give a warning if no ext is given
5711
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5713$as_echo_n "checking for case-insensitive build directory... " >&6; }
5714if test ! -d CaseSensitiveTestDir; then
5715mkdir CaseSensitiveTestDir
5716fi
5717
5718if test -d casesensitivetestdir
5719then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
5722 BUILDEXEEXT=.exe
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726 BUILDEXEEXT=$EXEEXT
5727fi
5728rmdir CaseSensitiveTestDir
5729
5730case $MACHDEP in
5731bsdos*)
5732 case $CC in
5733 gcc) CC="$CC -D_HAVE_BSDI";;
5734 esac;;
5735esac
5736
5737case $ac_sys_system in
5738hp*|HP*)
5739 case $CC in
5740 cc|*/cc) CC="$CC -Ae";;
5741 esac;;
5742esac
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5746$as_echo_n "checking LIBRARY... " >&6; }
5747if test -z "$LIBRARY"
5748then
5749 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5752$as_echo "$LIBRARY" >&6; }
5753
5754# LDLIBRARY is the name of the library to link against (as opposed to the
5755# name of the library into which to insert object files). BLDLIBRARY is also
5756# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5757# is blank as the main program is not linked directly against LDLIBRARY.
5758# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5759# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5760# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5761# DLLLIBRARY is the shared (i.e., DLL) library.
5762#
5763# RUNSHARED is used to run shared python without installed libraries
5764#
5765# INSTSONAME is the name of the shared library that will be use to install
5766# on the system - some systems like version suffix, others don't
5767#
5768# LDVERSION is the shared library version number, normally the Python version
5769# with the ABI build flags appended.
5770
5771
5772
5773
5774
5775
5776
5777
5778LDLIBRARY="$LIBRARY"
5779BLDLIBRARY='$(LDLIBRARY)'
5780INSTSONAME='$(LDLIBRARY)'
5781DLLLIBRARY=''
5782LDLIBRARYDIR=''
5783RUNSHARED=''
5784LDVERSION="$VERSION"
5785
5786# LINKCC is the command that links the python executable -- default is $(CC).
5787# If CXX is set, and if it is needed to link a main function that was
5788# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5789# python might then depend on the C++ runtime
5790# This is altered for AIX in order to build the export list before
5791# linking.
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5794$as_echo_n "checking LINKCC... " >&6; }
5795if test -z "$LINKCC"
5796then
5797 LINKCC='$(PURIFY) $(MAINCC)'
5798 case $ac_sys_system in
5799 AIX*)
5800 exp_extra="\"\""
5801 if test $ac_sys_release -ge 5 -o \
5802 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5803 exp_extra="."
5804 fi
5805 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
5806 QNX*)
5807 # qcc must be used because the other compilers do not
5808 # support -N.
5809 LINKCC=qcc;;
5810 esac
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5813$as_echo "$LINKCC" >&6; }
5814
5815# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5816# make sure we default having it set to "no": this is used by
5817# distutils.unixccompiler to know if it should add --enable-new-dtags
5818# to linker command lines, and failing to detect GNU ld simply results
5819# in the same bahaviour as before.
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5822$as_echo_n "checking for GNU ld... " >&6; }
5823ac_prog=ld
5824if test "$GCC" = yes; then
5825 ac_prog=`$CC -print-prog-name=ld`
5826fi
5827case `"$ac_prog" -V 2>&1 < /dev/null` in
5828 *GNU*)
5829 GNULD=yes;;
5830 *)
5831 GNULD=no;;
5832esac
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5834$as_echo "$GNULD" >&6; }
5835
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5837$as_echo_n "checking for inline... " >&6; }
5838if ${ac_cv_c_inline+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840else
5841 ac_cv_c_inline=no
5842for ac_kw in inline __inline__ __inline; do
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845#ifndef __cplusplus
5846typedef int foo_t;
5847static $ac_kw foo_t static_foo () {return 0; }
5848$ac_kw foo_t foo () {return 0; }
5849#endif
5850
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853 ac_cv_c_inline=$ac_kw
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 test "$ac_cv_c_inline" != no && break
5857done
5858
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5861$as_echo "$ac_cv_c_inline" >&6; }
5862
5863case $ac_cv_c_inline in
5864 inline | yes) ;;
5865 *)
5866 case $ac_cv_c_inline in
5867 no) ac_val=;;
5868 *) ac_val=$ac_cv_c_inline;;
5869 esac
5870 cat >>confdefs.h <<_ACEOF
5871#ifndef __cplusplus
5872#define inline $ac_val
5873#endif
5874_ACEOF
5875 ;;
5876esac
5877
5878if test "$ac_cv_c_inline" != no ; then
5879
5880$as_echo "#define USE_INLINE 1" >>confdefs.h
5881
5882
5883fi
5884
5885
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5887$as_echo_n "checking for --enable-shared... " >&6; }
5888# Check whether --enable-shared was given.
5889if test "${enable_shared+set}" = set; then :
5890 enableval=$enable_shared;
5891fi
5892
5893
5894if test -z "$enable_shared"
5895then
5896 case $ac_sys_system in
5897 CYGWIN*)
5898 enable_shared="yes";;
5899 *)
5900 enable_shared="no";;
5901 esac
5902fi
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5904$as_echo "$enable_shared" >&6; }
5905
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5907$as_echo_n "checking for --enable-profiling... " >&6; }
5908# Check whether --enable-profiling was given.
5909if test "${enable_profiling+set}" = set; then :
5910 enableval=$enable_profiling;
5911fi
5912
5913if test "x$enable_profiling" = xyes; then
5914 ac_save_cc="$CC"
5915 CC="$CC -pg"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h. */
5918int main() { return 0; }
5919_ACEOF
5920if ac_fn_c_try_link "$LINENO"; then :
5921
5922else
5923 enable_profiling=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 CC="$ac_save_cc"
5928else
5929 enable_profiling=no
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5932$as_echo "$enable_profiling" >&6; }
5933
5934if test "x$enable_profiling" = xyes; then
5935 BASECFLAGS="-pg $BASECFLAGS"
5936 LDFLAGS="-pg $LDFLAGS"
5937fi
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5940$as_echo_n "checking LDLIBRARY... " >&6; }
5941
5942# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5943# library that we build, but we do not want to link against it (we
5944# will find it with a -framework option). For this reason there is an
5945# extra variable BLDLIBRARY against which Python and the extension
5946# modules are linked, BLDLIBRARY. This is normally the same as
5947# LDLIBRARY, but empty for MacOSX framework builds.
5948if test "$enable_framework"
5949then
5950 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
5951 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
5952 BLDLIBRARY=''
5953else
5954 BLDLIBRARY='$(LDLIBRARY)'
5955fi
5956
5957# Other platforms follow
5958if test $enable_shared = "yes"; then
5959 PY_ENABLE_SHARED=1
5960
5961$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5962
5963 case $ac_sys_system in
5964 CYGWIN*)
5965 LDLIBRARY='libpython$(LDVERSION).dll.a'
5966 DLLLIBRARY='libpython$(LDVERSION).dll'
5967 ;;
5968 SunOS*)
5969 LDLIBRARY='libpython$(LDVERSION).so'
5970 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
5971 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5972 INSTSONAME="$LDLIBRARY".$SOVERSION
5973 if test "$with_pydebug" != yes
5974 then
5975 PY3LIBRARY=libpython3.so
5976 fi
5977 ;;
5978 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
5979 LDLIBRARY='libpython$(LDVERSION).so'
5980 BLDLIBRARY='-L. -lpython$(LDVERSION)'
5981 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5982 INSTSONAME="$LDLIBRARY".$SOVERSION
5983 if test "$with_pydebug" != yes
5984 then
5985 PY3LIBRARY=libpython3.so
5986 fi
5987 ;;
5988 hp*|HP*)
5989 case `uname -m` in
5990 ia64)
5991 LDLIBRARY='libpython$(LDVERSION).so'
5992 ;;
5993 *)
5994 LDLIBRARY='libpython$(LDVERSION).sl'
5995 ;;
5996 esac
5997 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
5998 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
5999 ;;
6000 Darwin*)
6001 LDLIBRARY='libpython$(LDVERSION).dylib'
6002 BLDLIBRARY='-L. -lpython$(LDVERSION)'
6003 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
6004 ;;
6005 AIX*)
6006 LDLIBRARY='libpython$(LDVERSION).so'
6007 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
6008 ;;
6009
6010 esac
6011else # shared is disabled
6012 PY_ENABLE_SHARED=0
6013 case $ac_sys_system in
6014 CYGWIN*)
6015 BLDLIBRARY='$(LIBRARY)'
6016 LDLIBRARY='libpython$(LDVERSION).dll.a'
6017 ;;
6018 esac
6019fi
6020
6021if test "$cross_compiling" = yes; then
6022 RUNSHARED=
6023fi
6024
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
6026$as_echo "$LDLIBRARY" >&6; }
6027
6028if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if ${ac_cv_prog_RANLIB+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$RANLIB"; then
6037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056RANLIB=$ac_cv_prog_RANLIB
6057if test -n "$RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6059$as_echo "$RANLIB" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066fi
6067if test -z "$ac_cv_prog_RANLIB"; then
6068 ac_ct_RANLIB=$RANLIB
6069 # Extract the first word of "ranlib", so it can be a program name with args.
6070set dummy ranlib; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075else
6076 if test -n "$ac_ct_RANLIB"; then
6077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_ac_ct_RANLIB="ranlib"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090done
6091 done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6097if test -n "$ac_ct_RANLIB"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6099$as_echo "$ac_ct_RANLIB" >&6; }
6100else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102$as_echo "no" >&6; }
6103fi
6104
6105 if test "x$ac_ct_RANLIB" = x; then
6106 RANLIB=":"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109yes:)
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112ac_tool_warned=yes ;;
6113esac
6114 RANLIB=$ac_ct_RANLIB
6115 fi
6116else
6117 RANLIB="$ac_cv_prog_RANLIB"
6118fi
6119
6120
6121if test -n "$ac_tool_prefix"; then
6122 for ac_prog in ar aal
6123 do
6124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if ${ac_cv_prog_AR+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130else
6131 if test -n "$AR"; then
6132 ac_cv_prog_AR="$AR" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146 done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151AR=$ac_cv_prog_AR
6152if test -n "$AR"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6154$as_echo "$AR" >&6; }
6155else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161 test -n "$AR" && break
6162 done
6163fi
6164if test -z "$AR"; then
6165 ac_ct_AR=$AR
6166 for ac_prog in ar aal
6167do
6168 # Extract the first word of "$ac_prog", so it can be a program name with args.
6169set dummy $ac_prog; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if ${ac_cv_prog_ac_ct_AR+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 if test -n "$ac_ct_AR"; then
6176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_ac_ct_AR="$ac_prog"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190 done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195ac_ct_AR=$ac_cv_prog_ac_ct_AR
6196if test -n "$ac_ct_AR"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6198$as_echo "$ac_ct_AR" >&6; }
6199else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205 test -n "$ac_ct_AR" && break
6206done
6207
6208 if test "x$ac_ct_AR" = x; then
6209 AR="ar"
6210 else
6211 case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217 AR=$ac_ct_AR
6218 fi
6219fi
6220
6221
6222# tweak ARFLAGS only if the user didn't set it on the command line
6223
6224if test -z "$ARFLAGS"
6225then
6226 ARFLAGS="rc"
6227fi
6228
6229if test -n "$ac_tool_prefix"; then
6230 for ac_prog in readelf
6231 do
6232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if ${ac_cv_prog_READELF+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238else
6239 if test -n "$READELF"; then
6240 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254 done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259READELF=$ac_cv_prog_READELF
6260if test -n "$READELF"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6262$as_echo "$READELF" >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268
6269 test -n "$READELF" && break
6270 done
6271fi
6272if test -z "$READELF"; then
6273 ac_ct_READELF=$READELF
6274 for ac_prog in readelf
6275do
6276 # Extract the first word of "$ac_prog", so it can be a program name with args.
6277set dummy $ac_prog; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
6280if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282else
6283 if test -n "$ac_ct_READELF"; then
6284 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6285else
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_ac_ct_READELF="$ac_prog"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297done
6298 done
6299IFS=$as_save_IFS
6300
6301fi
6302fi
6303ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6304if test -n "$ac_ct_READELF"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6306$as_echo "$ac_ct_READELF" >&6; }
6307else
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
6310fi
6311
6312
6313 test -n "$ac_ct_READELF" && break
6314done
6315
6316 if test "x$ac_ct_READELF" = x; then
6317 READELF=":"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325 READELF=$ac_ct_READELF
6326 fi
6327fi
6328
6329if test "$cross_compiling" = yes; then
6330 case "$READELF" in
6331 readelf|:)
6332 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6333 ;;
6334 esac
6335fi
6336
6337
6338
6339case $MACHDEP in
6340bsdos*|hp*|HP*)
6341 # install -d does not work on BSDI or HP-UX
6342 if test -z "$INSTALL"
6343 then
6344 INSTALL="${srcdir}/install-sh -c"
6345 fi
6346esac
6347# Find a good install program. We prefer a C program (faster),
6348# so one script is as good as another. But avoid the broken or
6349# incompatible versions:
6350# SysV /etc/install, /usr/sbin/install
6351# SunOS /usr/etc/install
6352# IRIX /sbin/install
6353# AIX /bin/install
6354# AmigaOS /C/install, which installs bootblocks on floppy discs
6355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6356# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6358# OS/2's system install, which has a completely different semantic
6359# ./install, which can be erroneously created by make from ./install.sh.
6360# Reject install programs that cannot install multiple files.
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6362$as_echo_n "checking for a BSD-compatible install... " >&6; }
6363if test -z "$INSTALL"; then
6364if ${ac_cv_path_install+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 # Account for people who put trailing slashes in PATH elements.
6373case $as_dir/ in #((
6374 ./ | .// | /[cC]/* | \
6375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6376 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6377 /usr/ucb/* ) ;;
6378 *)
6379 # OSF1 and SCO ODT 3.0 have their own names for install.
6380 # Don't use installbsd from OSF since it installs stuff as root
6381 # by default.
6382 for ac_prog in ginstall scoinst install; do
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6385 if test $ac_prog = install &&
6386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6387 # AIX install. It has an incompatible calling convention.
6388 :
6389 elif test $ac_prog = install &&
6390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6391 # program-specific install script used by HP pwplus--don't use.
6392 :
6393 else
6394 rm -rf conftest.one conftest.two conftest.dir
6395 echo one > conftest.one
6396 echo two > conftest.two
6397 mkdir conftest.dir
6398 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6399 test -s conftest.one && test -s conftest.two &&
6400 test -s conftest.dir/conftest.one &&
6401 test -s conftest.dir/conftest.two
6402 then
6403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6404 break 3
6405 fi
6406 fi
6407 fi
6408 done
6409 done
6410 ;;
6411esac
6412
6413 done
6414IFS=$as_save_IFS
6415
6416rm -rf conftest.one conftest.two conftest.dir
6417
6418fi
6419 if test "${ac_cv_path_install+set}" = set; then
6420 INSTALL=$ac_cv_path_install
6421 else
6422 # As a last resort, use the slow shell script. Don't cache a
6423 # value for INSTALL within a source directory, because that will
6424 # break other packages using the cache if that directory is
6425 # removed, or if the value is a relative name.
6426 INSTALL=$ac_install_sh
6427 fi
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6430$as_echo "$INSTALL" >&6; }
6431
6432# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6433# It thinks the first close brace ends the variable substitution.
6434test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6435
6436test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6437
6438test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6439
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6441$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6442if test -z "$MKDIR_P"; then
6443 if ${ac_cv_path_mkdir+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_prog in mkdir gmkdir; do
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6454 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6455 'mkdir (GNU coreutils) '* | \
6456 'mkdir (coreutils) '* | \
6457 'mkdir (fileutils) '4.1*)
6458 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6459 break 3;;
6460 esac
6461 done
6462 done
6463 done
6464IFS=$as_save_IFS
6465
6466fi
6467
6468 test -d ./--version && rmdir ./--version
6469 if test "${ac_cv_path_mkdir+set}" = set; then
6470 MKDIR_P="$ac_cv_path_mkdir -p"
6471 else
6472 # As a last resort, use the slow shell script. Don't cache a
6473 # value for MKDIR_P within a source directory, because that will
6474 # break other packages using the cache if that directory is
6475 # removed, or if the value is a relative name.
6476 MKDIR_P="$ac_install_sh -d"
6477 fi
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6480$as_echo "$MKDIR_P" >&6; }
6481
6482
6483# Not every filesystem supports hard links
6484
6485if test -z "$LN" ; then
6486 case $ac_sys_system in
6487 CYGWIN*) LN="ln -s";;
6488 *) LN=ln;;
6489 esac
6490fi
6491
6492# For calculating the .so ABI tag.
6493
6494ABIFLAGS=""
6495
6496# Check for --with-pydebug
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6498$as_echo_n "checking for --with-pydebug... " >&6; }
6499
6500# Check whether --with-pydebug was given.
6501if test "${with_pydebug+set}" = set; then :
6502 withval=$with_pydebug;
6503if test "$withval" != no
6504then
6505
6506$as_echo "#define Py_DEBUG 1" >>confdefs.h
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6509$as_echo "yes" >&6; };
6510 Py_DEBUG='true'
6511 ABIFLAGS="${ABIFLAGS}d"
6512else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }; Py_DEBUG='false'
6514fi
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521# Enable optimization flags
6522
6523
6524Py_OPT='false'
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6526$as_echo_n "checking for --enable-optimizations... " >&6; }
6527# Check whether --enable-optimizations was given.
6528if test "${enable_optimizations+set}" = set; then :
6529 enableval=$enable_optimizations;
6530if test "$enableval" != no
6531then
6532 Py_OPT='true'
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6534$as_echo "yes" >&6; };
6535else
6536 Py_OPT='false'
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; };
6539fi
6540else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545if test "$Py_OPT" = 'true' ; then
6546 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6547 # compile working code using it and both test_distutils and test_gdb are
6548 # broken when you do managed to get a toolchain that works with it. People
6549 # who want LTO need to use --with-lto themselves.
6550 DEF_MAKE_ALL_RULE="profile-opt"
6551 REQUIRE_PGO="yes"
6552 DEF_MAKE_RULE="build_all"
6553else
6554 DEF_MAKE_ALL_RULE="build_all"
6555 REQUIRE_PGO="no"
6556 DEF_MAKE_RULE="all"
6557fi
6558
6559# Enable LTO flags
6560
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6562$as_echo_n "checking for --with-lto... " >&6; }
6563
6564# Check whether --with-lto was given.
6565if test "${with_lto+set}" = set; then :
6566 withval=$with_lto;
6567if test "$withval" != no
6568then
6569 Py_LTO='true'
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6571$as_echo "yes" >&6; };
6572else
6573 Py_LTO='false'
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; };
6576fi
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582if test "$Py_LTO" = 'true' ; then
6583 case $CC in
6584 *clang*)
6585 # Any changes made here should be reflected in the GCC+Darwin case below
6586 LTOFLAGS="-flto"
6587 ;;
6588 *gcc*)
6589 case $ac_sys_system in
6590 Darwin*)
6591 LTOFLAGS="-flto"
6592 ;;
6593 *)
6594 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6595 ;;
6596 esac
6597 ;;
6598 esac
6599fi
6600
6601# Enable PGO flags.
6602
6603
6604
6605
6606
6607# Make this work on systems where llvm tools are not installed with their
6608# normal names in the default $PATH (ie: Ubuntu). They exist under the
6609# non-suffixed name in their versioned llvm directory.
6610llvm_bin_dir=''
6611llvm_path="${PATH}"
6612if test "${CC}" = "clang"
6613then
6614 clang_bin=`which clang`
6615 # Some systems install clang elsewhere as a symlink to the real path
6616 # which is where the related llvm tools are located.
6617 if test -L "${clang_bin}"
6618 then
6619 clang_dir=`dirname "${clang_bin}"`
6620 clang_bin=`readlink "${clang_bin}"`
6621 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6622 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6623 fi
6624fi
6625
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6627$as_echo_n "checking target system type... " >&6; }
6628if ${ac_cv_target+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630else
6631 if test "x$target_alias" = x; then
6632 ac_cv_target=$ac_cv_host
6633else
6634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6636fi
6637
6638fi
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6640$as_echo "$ac_cv_target" >&6; }
6641case $ac_cv_target in
6642*-*-*) ;;
6643*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6644esac
6645target=$ac_cv_target
6646ac_save_IFS=$IFS; IFS='-'
6647set x $ac_cv_target
6648shift
6649target_cpu=$1
6650target_vendor=$2
6651shift; shift
6652# Remember, the first character of IFS is used to create $*,
6653# except with old shells:
6654target_os=$*
6655IFS=$ac_save_IFS
6656case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6657
6658
6659# The aliases save the names the user supplied, while $host etc.
6660# will get canonicalized.
6661test -n "$target_alias" &&
6662 test "$program_prefix$program_suffix$program_transform_name" = \
6663 NONENONEs,x,x, &&
6664 program_prefix=${target_alias}-
6665# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6666set dummy $target_alias-llvm-profdata; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671else
6672 case $LLVM_PROFDATA in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6675 ;;
6676 *)
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in ${llvm_path}
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689 done
6690IFS=$as_save_IFS
6691
6692 ;;
6693esac
6694fi
6695LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6696if test -n "$LLVM_PROFDATA"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6698$as_echo "$LLVM_PROFDATA" >&6; }
6699else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701$as_echo "no" >&6; }
6702fi
6703
6704
6705if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6706 if test "$build" = "$target"; then
6707 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6708 # Extract the first word of "llvm-profdata", so it can be a program name with args.
6709set dummy llvm-profdata; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714else
6715 case $ac_pt_LLVM_PROFDATA in
6716 [\\/]* | ?:[\\/]*)
6717 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6718 ;;
6719 *)
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in ${llvm_path}
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6736 ;;
6737esac
6738fi
6739ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6740if test -n "$ac_pt_LLVM_PROFDATA"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6742$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6743else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
6746fi
6747
6748 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6749 else
6750 LLVM_PROFDATA="''"
6751 fi
6752else
6753 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6754fi
6755
6756
6757if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6758then
6759 LLVM_PROF_FOUND="found"
6760else
6761 LLVM_PROF_FOUND="not-found"
6762fi
6763if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6764then
6765 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6766 if test -n "${found_llvm_profdata}"
6767 then
6768 # llvm-profdata isn't directly in $PATH in some cases.
6769 # https://apple.stackexchange.com/questions/197053/
6770 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6771 LLVM_PROF_FOUND=found
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6773$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6774 fi
6775fi
6776LLVM_PROF_ERR=no
6777case $CC in
6778 *clang*)
6779 # Any changes made here should be reflected in the GCC+Darwin case below
6780 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6781 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6782 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6783 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6784 if test $LLVM_PROF_FOUND = not-found
6785 then
6786 LLVM_PROF_ERR=yes
6787 if test "${REQUIRE_PGO}" = "yes"
6788 then
6789 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6790 fi
6791 fi
6792 ;;
6793 *gcc*)
6794 case $ac_sys_system in
6795 Darwin*)
6796 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6797 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6798 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6799 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6800 if test "${LLVM_PROF_FOUND}" = "not-found"
6801 then
6802 LLVM_PROF_ERR=yes
6803 if test "${REQUIRE_PGO}" = "yes"
6804 then
6805 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
6806 fi
6807 fi
6808 ;;
6809 *)
6810 PGO_PROF_GEN_FLAG="-fprofile-generate"
6811 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6812 LLVM_PROF_MERGER="true"
6813 LLVM_PROF_FILE=""
6814 ;;
6815 esac
6816 ;;
6817 *icc*)
6818 PGO_PROF_GEN_FLAG="-prof-gen"
6819 PGO_PROF_USE_FLAG="-prof-use"
6820 LLVM_PROF_MERGER="true"
6821 LLVM_PROF_FILE=""
6822 ;;
6823esac
6824
6825# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6826# merged with this chunk of code?
6827
6828# Optimizer/debugger flags
6829# ------------------------
6830# (The following bit of code is complicated enough - please keep things
6831# indented properly. Just pretend you're editing Python code. ;-)
6832
6833# There are two parallel sets of case statements below, one that checks to
6834# see if OPT was set and one that does BASECFLAGS setting based upon
6835# compiler and platform. BASECFLAGS tweaks need to be made even if the
6836# user set OPT.
6837
6838# tweak OPT based on compiler and platform, only if the user didn't set
6839# it on the command line
6840
6841
6842if test "${OPT-unset}" = "unset"
6843then
6844 case $GCC in
6845 yes)
6846 if test "$CC" != 'g++' ; then
6847 STRICT_PROTO="-Wstrict-prototypes"
6848 fi
6849 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6850 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6851 WRAP="-fwrapv"
6852 fi
6853
6854 case $CC in
6855 *clang*)
6856 cc_is_clang=1
6857 ;;
6858 *)
6859 if $CC --version 2>&1 | grep -q clang
6860 then
6861 cc_is_clang=1
6862 else
6863 cc_is_clang=
6864 fi
6865 esac
6866
6867 if test -n "${cc_is_clang}"
6868 then
6869 # Clang also needs -fwrapv
6870 WRAP="-fwrapv"
6871 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6872 # see Makefile.pre.in for more information
6873 CFLAGS_ALIASING="-fno-strict-aliasing"
6874 fi
6875
6876 case $ac_cv_prog_cc_g in
6877 yes)
6878 if test "$Py_DEBUG" = 'true' ; then
6879 # Optimization messes up debuggers, so turn it off for
6880 # debug builds.
6881 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
6882 OPT="-g -Og -Wall"
6883 else
6884 OPT="-g -O0 -Wall"
6885 fi
6886 else
6887 OPT="-g $WRAP -O3 -Wall"
6888 fi
6889 ;;
6890 *)
6891 OPT="-O3 -Wall"
6892 ;;
6893 esac
6894
6895 OPT="$OPT $STRICT_PROTO"
6896
6897 case $ac_sys_system in
6898 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6899 ;;
6900 esac
6901 ;;
6902
6903 *)
6904 OPT="-O"
6905 ;;
6906 esac
6907fi
6908
6909
6910
6911
6912# The -arch flags for universal builds on OSX
6913UNIVERSAL_ARCH_FLAGS=
6914
6915
6916# tweak BASECFLAGS based on compiler and platform
6917case $GCC in
6918yes)
6919 # Python doesn't violate C99 aliasing rules, but older versions of
6920 # GCC produce warnings for legal Python code. Enable
6921 # -fno-strict-aliasing on versions of GCC that support but produce
6922 # warnings. See Issue3326
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
6924$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
6925 ac_save_cc="$CC"
6926 CC="$CC -fno-strict-aliasing"
6927 save_CFLAGS="$CFLAGS"
6928 if ${ac_cv_no_strict_aliasing+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h. */
6933
6934
6935int
6936main ()
6937{
6938
6939 ;
6940 return 0;
6941}
6942
6943_ACEOF
6944if ac_fn_c_try_compile "$LINENO"; then :
6945
6946 CC="$ac_save_cc -fstrict-aliasing"
6947 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h. */
6950
6951 void f(int **x) {}
6952int
6953main ()
6954{
6955double *x; f((int **) &x);
6956 ;
6957 return 0;
6958}
6959
6960_ACEOF
6961if ac_fn_c_try_compile "$LINENO"; then :
6962
6963 ac_cv_no_strict_aliasing=no
6964
6965else
6966
6967 ac_cv_no_strict_aliasing=yes
6968
6969fi
6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971
6972else
6973
6974 ac_cv_no_strict_aliasing=no
6975
6976fi
6977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978fi
6979
6980 CFLAGS="$save_CFLAGS"
6981 CC="$ac_save_cc"
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
6983$as_echo "$ac_cv_no_strict_aliasing" >&6; }
6984 if test $ac_cv_no_strict_aliasing = yes
6985 then
6986 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6987 fi
6988
6989 # ICC doesn't recognize the option, but only emits a warning
6990 ## XXX does it emit an unused result warning and can it be disabled?
6991 case "$CC" in
6992 *icc*)
6993 ac_cv_disable_unused_result_warning=no
6994 ;;
6995 *)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
6997$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
6998 ac_save_cc="$CC"
6999 CC="$CC -Wunused-result -Werror"
7000 save_CFLAGS="$CFLAGS"
7001 if ${ac_cv_disable_unused_result_warning+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h. */
7006
7007
7008int
7009main ()
7010{
7011
7012 ;
7013 return 0;
7014}
7015
7016_ACEOF
7017if ac_fn_c_try_compile "$LINENO"; then :
7018
7019 ac_cv_disable_unused_result_warning=yes
7020
7021else
7022
7023 ac_cv_disable_unused_result_warning=no
7024
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028
7029 CFLAGS="$save_CFLAGS"
7030 CC="$ac_save_cc"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7032$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
7033 ;;
7034 esac
7035
7036 if test $ac_cv_disable_unused_result_warning = yes
7037 then
7038 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
7039 fi
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=declaration-after-statement" >&5
7042$as_echo_n "checking for -Werror=declaration-after-statement... " >&6; }
7043 ac_save_cc="$CC"
7044 CC="$CC -Werror=declaration-after-statement"
7045 save_CFLAGS="$CFLAGS"
7046 if ${ac_cv_declaration_after_statement_warning+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h. */
7051
7052
7053int
7054main ()
7055{
7056
7057 ;
7058 return 0;
7059}
7060
7061_ACEOF
7062if ac_fn_c_try_compile "$LINENO"; then :
7063
7064 ac_cv_declaration_after_statement_warning=yes
7065
7066else
7067
7068 ac_cv_declaration_after_statement_warning=no
7069
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072fi
7073
7074 CFLAGS="$save_CFLAGS"
7075 CC="$ac_save_cc"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declaration_after_statement_warning" >&5
7077$as_echo "$ac_cv_declaration_after_statement_warning" >&6; }
7078
7079 if test $ac_cv_declaration_after_statement_warning = yes
7080 then
7081 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement"
7082 fi
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7085$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7086 ac_save_cc="$CC"
7087 CC="$CC -Wsign-compare"
7088 save_CFLAGS="$CFLAGS"
7089 if ${ac_cv_enable_sign_compare_warning+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h. */
7094
7095
7096int
7097main ()
7098{
7099
7100 ;
7101 return 0;
7102}
7103
7104_ACEOF
7105if ac_fn_c_try_compile "$LINENO"; then :
7106
7107 ac_cv_enable_sign_compare_warning=yes
7108
7109else
7110
7111 ac_cv_enable_sign_compare_warning=no
7112
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116
7117 CFLAGS="$save_CFLAGS"
7118 CC="$ac_save_cc"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7120$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7121
7122 if test $ac_cv_enable_sign_compare_warning = yes
7123 then
7124 BASECFLAGS="$BASECFLAGS -Wsign-compare"
7125 fi
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7128$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7129 ac_save_cc="$CC"
7130 CC="$CC -Wunreachable-code"
7131 save_CFLAGS="$CFLAGS"
7132 if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134else
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h. */
7137
7138
7139int
7140main ()
7141{
7142
7143 ;
7144 return 0;
7145}
7146
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"; then :
7149
7150 ac_cv_enable_unreachable_code_warning=yes
7151
7152else
7153
7154 ac_cv_enable_unreachable_code_warning=no
7155
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159
7160 CFLAGS="$save_CFLAGS"
7161 CC="$ac_save_cc"
7162
7163 # Don't enable unreachable code warning in debug mode, since it usually
7164 # results in non-standard code paths.
7165 # Issue #24324: Unfortunately, the unreachable code warning does not work
7166 # correctly on gcc and has been silently removed from the compiler.
7167 # It is supported on clang but on OS X systems gcc may be an alias
7168 # for clang. Try to determine if the compiler is not really gcc and,
7169 # if so, only then enable the warning.
7170 if test $ac_cv_enable_unreachable_code_warning = yes && \
7171 test "$Py_DEBUG" != "true" && \
7172 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
7173 then
7174 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
7175 else
7176 ac_cv_enable_unreachable_code_warning=no
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7179$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
7180
7181 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7182 # support. Without this, treatment of subnormals doesn't follow
7183 # the standard.
7184 case $host in
7185 alpha*)
7186 BASECFLAGS="$BASECFLAGS -mieee"
7187 ;;
7188 esac
7189
7190 case $ac_sys_system in
7191 SCO_SV*)
7192 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7193 ;;
7194
7195 # is there any other compiler on Darwin besides gcc?
7196 Darwin*)
7197 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7198 # used to be here, but non-Apple gcc doesn't accept them.
7199 if test "${CC}" = gcc
7200 then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
7202$as_echo_n "checking which compiler should be used... " >&6; }
7203 case "${UNIVERSALSDK}" in
7204 */MacOSX10.4u.sdk)
7205 # Build using 10.4 SDK, force usage of gcc when the
7206 # compiler is gcc, otherwise the user will get very
7207 # confusing error messages when building on OSX 10.6
7208 CC=gcc-4.0
7209 CPP=cpp-4.0
7210 ;;
7211 esac
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7213$as_echo "$CC" >&6; }
7214 fi
7215
7216 if test "${enable_universalsdk}"
7217 then
7218 case "$UNIVERSAL_ARCHS" in
7219 32-bit)
7220 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7221 LIPO_32BIT_FLAGS=""
7222 ARCH_RUN_32BIT=""
7223 ;;
7224 64-bit)
7225 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7226 LIPO_32BIT_FLAGS=""
7227 ARCH_RUN_32BIT="true"
7228 ;;
7229 all)
7230 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7231 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7232 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7233 ;;
7234 intel)
7235 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7236 LIPO_32BIT_FLAGS="-extract i386"
7237 ARCH_RUN_32BIT="/usr/bin/arch -i386"
7238 ;;
7239 intel-32)
7240 UNIVERSAL_ARCH_FLAGS="-arch i386"
7241 LIPO_32BIT_FLAGS=""
7242 ARCH_RUN_32BIT=""
7243 ;;
7244 3-way)
7245 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7246 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7247 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7248 ;;
7249 *)
7250 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7251 ;;
7252 esac
7253
7254 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7255 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7256 if test "${UNIVERSALSDK}" != "/"
7257 then
7258 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
7259 fi
7260 fi
7261
7262 # Calculate an appropriate deployment target for this build:
7263 # The deployment target value is used explicitly to enable certain
7264 # features are enabled (such as builtin libedit support for readline)
7265 # through the use of Apple's Availability Macros and is used as a
7266 # component of the string returned by distutils.get_platform().
7267 #
7268 # Use the value from:
7269 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7270 # 2. the operating system version of the build machine if >= 10.6
7271 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7272 # below to pick either 10.3, 10.4, or 10.5 as the target.
7273 # 4. If we are running on OS X 10.2 or earlier, good luck!
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7276$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
7277 cur_target_major=`sw_vers -productVersion | \
7278 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7279 cur_target_minor=`sw_vers -productVersion | \
7280 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7281 cur_target="${cur_target_major}.${cur_target_minor}"
7282 if test ${cur_target_major} -eq 10 && \
7283 test ${cur_target_minor} -ge 3 && \
7284 test ${cur_target_minor} -le 5
7285 then
7286 # OS X 10.3 through 10.5
7287 cur_target=10.3
7288 if test ${enable_universalsdk}
7289 then
7290 case "$UNIVERSAL_ARCHS" in
7291 all|3-way|intel|64-bit)
7292 # These configurations were first supported in 10.5
7293 cur_target='10.5'
7294 ;;
7295 esac
7296 else
7297 if test `/usr/bin/arch` = "i386"
7298 then
7299 # 10.4 was the first release to support Intel archs
7300 cur_target="10.4"
7301 fi
7302 fi
7303 fi
7304 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
7305
7306 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7307 # environment with a value that is the same as what we'll use
7308 # in the Makefile to ensure that we'll get the same compiler
7309 # environment during configure and build time.
7310 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7311 export MACOSX_DEPLOYMENT_TARGET
7312 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7314$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
7315
7316 # end of Darwin* tests
7317 ;;
7318 esac
7319 ;;
7320
7321*)
7322 case $ac_sys_system in
7323 OpenUNIX*|UnixWare*)
7324 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7325 ;;
7326 SCO_SV*)
7327 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7328 ;;
7329 esac
7330 ;;
7331esac
7332
7333# ICC needs -fp-model strict or floats behave badly
7334case "$CC" in
7335*icc*)
7336 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7337 ;;
7338esac
7339
7340if test "$Py_DEBUG" = 'true'; then
7341 :
7342else
7343 OPT="-DNDEBUG $OPT"
7344fi
7345
7346if test "$ac_arch_flags"
7347then
7348 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7349fi
7350
7351# On some compilers, pthreads are available without further options
7352# (e.g. MacOS X). On some of these systems, the compiler will not
7353# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7354# So we have to see first whether pthreads are available without
7355# options before we can check whether -Kpthread improves anything.
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7357$as_echo_n "checking whether pthreads are available without options... " >&6; }
7358if ${ac_cv_pthread_is_default+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360else
7361 if test "$cross_compiling" = yes; then :
7362 ac_cv_pthread_is_default=no
7363else
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h. */
7366
7367#include <stdio.h>
7368#include <pthread.h>
7369
7370void* routine(void* p){return NULL;}
7371
7372int main(){
7373 pthread_t p;
7374 if(pthread_create(&p,NULL,routine,NULL)!=0)
7375 return 1;
7376 (void)pthread_detach(p);
7377 return 0;
7378}
7379
7380_ACEOF
7381if ac_fn_c_try_run "$LINENO"; then :
7382
7383 ac_cv_pthread_is_default=yes
7384 ac_cv_kthread=no
7385 ac_cv_pthread=no
7386
7387else
7388 ac_cv_pthread_is_default=no
7389fi
7390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7391 conftest.$ac_objext conftest.beam conftest.$ac_ext
7392fi
7393
7394
7395fi
7396
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7398$as_echo "$ac_cv_pthread_is_default" >&6; }
7399
7400
7401if test $ac_cv_pthread_is_default = yes
7402then
7403 ac_cv_kpthread=no
7404else
7405# -Kpthread, if available, provides the right #defines
7406# and linker options to make pthread_create available
7407# Some compilers won't report that they do not support -Kpthread,
7408# so we need to run a program to see whether it really made the
7409# function available.
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7411$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
7412if ${ac_cv_kpthread+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414else
7415 ac_save_cc="$CC"
7416CC="$CC -Kpthread"
7417if test "$cross_compiling" = yes; then :
7418 ac_cv_kpthread=no
7419else
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h. */
7422
7423#include <stdio.h>
7424#include <pthread.h>
7425
7426void* routine(void* p){return NULL;}
7427
7428int main(){
7429 pthread_t p;
7430 if(pthread_create(&p,NULL,routine,NULL)!=0)
7431 return 1;
7432 (void)pthread_detach(p);
7433 return 0;
7434}
7435
7436_ACEOF
7437if ac_fn_c_try_run "$LINENO"; then :
7438 ac_cv_kpthread=yes
7439else
7440 ac_cv_kpthread=no
7441fi
7442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7443 conftest.$ac_objext conftest.beam conftest.$ac_ext
7444fi
7445
7446CC="$ac_save_cc"
7447fi
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7450$as_echo "$ac_cv_kpthread" >&6; }
7451fi
7452
7453if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7454then
7455# -Kthread, if available, provides the right #defines
7456# and linker options to make pthread_create available
7457# Some compilers won't report that they do not support -Kthread,
7458# so we need to run a program to see whether it really made the
7459# function available.
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7461$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
7462if ${ac_cv_kthread+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464else
7465 ac_save_cc="$CC"
7466CC="$CC -Kthread"
7467if test "$cross_compiling" = yes; then :
7468 ac_cv_kthread=no
7469else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
7472
7473#include <stdio.h>
7474#include <pthread.h>
7475
7476void* routine(void* p){return NULL;}
7477
7478int main(){
7479 pthread_t p;
7480 if(pthread_create(&p,NULL,routine,NULL)!=0)
7481 return 1;
7482 (void)pthread_detach(p);
7483 return 0;
7484}
7485
7486_ACEOF
7487if ac_fn_c_try_run "$LINENO"; then :
7488 ac_cv_kthread=yes
7489else
7490 ac_cv_kthread=no
7491fi
7492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493 conftest.$ac_objext conftest.beam conftest.$ac_ext
7494fi
7495
7496CC="$ac_save_cc"
7497fi
7498
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7500$as_echo "$ac_cv_kthread" >&6; }
7501fi
7502
7503if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7504then
7505# -pthread, if available, provides the right #defines
7506# and linker options to make pthread_create available
7507# Some compilers won't report that they do not support -pthread,
7508# so we need to run a program to see whether it really made the
7509# function available.
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7511$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
7512if ${ac_cv_pthread+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514else
7515 ac_save_cc="$CC"
7516CC="$CC -pthread"
7517if test "$cross_compiling" = yes; then :
7518 ac_cv_pthread=no
7519else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h. */
7522
7523#include <stdio.h>
7524#include <pthread.h>
7525
7526void* routine(void* p){return NULL;}
7527
7528int main(){
7529 pthread_t p;
7530 if(pthread_create(&p,NULL,routine,NULL)!=0)
7531 return 1;
7532 (void)pthread_detach(p);
7533 return 0;
7534}
7535
7536_ACEOF
7537if ac_fn_c_try_run "$LINENO"; then :
7538 ac_cv_pthread=yes
7539else
7540 ac_cv_pthread=no
7541fi
7542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7543 conftest.$ac_objext conftest.beam conftest.$ac_ext
7544fi
7545
7546CC="$ac_save_cc"
7547fi
7548
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7550$as_echo "$ac_cv_pthread" >&6; }
7551fi
7552
7553# If we have set a CC compiler flag for thread support then
7554# check if it works for CXX, too.
7555ac_cv_cxx_thread=no
7556if test ! -z "$CXX"
7557then
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7559$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
7560ac_save_cxx="$CXX"
7561
7562if test "$ac_cv_kpthread" = "yes"
7563then
7564 CXX="$CXX -Kpthread"
7565 ac_cv_cxx_thread=yes
7566elif test "$ac_cv_kthread" = "yes"
7567then
7568 CXX="$CXX -Kthread"
7569 ac_cv_cxx_thread=yes
7570elif test "$ac_cv_pthread" = "yes"
7571then
7572 CXX="$CXX -pthread"
7573 ac_cv_cxx_thread=yes
7574fi
7575
7576if test $ac_cv_cxx_thread = yes
7577then
7578 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7579 $CXX -c conftest.$ac_ext 2>&5
7580 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7581 && test -s conftest$ac_exeext && ./conftest$ac_exeext
7582 then
7583 ac_cv_cxx_thread=yes
7584 else
7585 ac_cv_cxx_thread=no
7586 fi
7587 rm -fr conftest*
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7590$as_echo "$ac_cv_cxx_thread" >&6; }
7591fi
7592CXX="$ac_save_cxx"
7593
7594
7595# checks for header files
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7597$as_echo_n "checking for ANSI C header files... " >&6; }
7598if ${ac_cv_header_stdc+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600else
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h. */
7603#include <stdlib.h>
7604#include <stdarg.h>
7605#include <string.h>
7606#include <float.h>
7607
7608int
7609main ()
7610{
7611
7612 ;
7613 return 0;
7614}
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"; then :
7617 ac_cv_header_stdc=yes
7618else
7619 ac_cv_header_stdc=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622
7623if test $ac_cv_header_stdc = yes; then
7624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h. */
7627#include <string.h>
7628
7629_ACEOF
7630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7631 $EGREP "memchr" >/dev/null 2>&1; then :
7632
7633else
7634 ac_cv_header_stdc=no
7635fi
7636rm -f conftest*
7637
7638fi
7639
7640if test $ac_cv_header_stdc = yes; then
7641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h. */
7644#include <stdlib.h>
7645
7646_ACEOF
7647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7648 $EGREP "free" >/dev/null 2>&1; then :
7649
7650else
7651 ac_cv_header_stdc=no
7652fi
7653rm -f conftest*
7654
7655fi
7656
7657if test $ac_cv_header_stdc = yes; then
7658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7659 if test "$cross_compiling" = yes; then :
7660 :
7661else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h. */
7664#include <ctype.h>
7665#include <stdlib.h>
7666#if ((' ' & 0x0FF) == 0x020)
7667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7669#else
7670# define ISLOWER(c) \
7671 (('a' <= (c) && (c) <= 'i') \
7672 || ('j' <= (c) && (c) <= 'r') \
7673 || ('s' <= (c) && (c) <= 'z'))
7674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7675#endif
7676
7677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7678int
7679main ()
7680{
7681 int i;
7682 for (i = 0; i < 256; i++)
7683 if (XOR (islower (i), ISLOWER (i))
7684 || toupper (i) != TOUPPER (i))
7685 return 2;
7686 return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_run "$LINENO"; then :
7690
7691else
7692 ac_cv_header_stdc=no
7693fi
7694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7695 conftest.$ac_objext conftest.beam conftest.$ac_ext
7696fi
7697
7698fi
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7701$as_echo "$ac_cv_header_stdc" >&6; }
7702if test $ac_cv_header_stdc = yes; then
7703
7704$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7705
7706fi
7707
7708for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \
7709fcntl.h grp.h \
7710ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
7711sched.h shadow.h signal.h stdint.h stropts.h termios.h \
7712unistd.h utime.h \
7713poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
7714sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
7715sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
7716sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
7717sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
7718sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
7719libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7720bluetooth/bluetooth.h linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
7721sys/endian.h
7722do :
7723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7724ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7726 cat >>confdefs.h <<_ACEOF
7727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728_ACEOF
7729
7730fi
7731
7732done
7733
7734ac_header_dirent=no
7735for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7736 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7738$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7739if eval \${$as_ac_Header+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h. */
7744#include <sys/types.h>
7745#include <$ac_hdr>
7746
7747int
7748main ()
7749{
7750if ((DIR *) 0)
7751return 0;
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"; then :
7757 eval "$as_ac_Header=yes"
7758else
7759 eval "$as_ac_Header=no"
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762fi
7763eval ac_res=\$$as_ac_Header
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7765$as_echo "$ac_res" >&6; }
7766if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7767 cat >>confdefs.h <<_ACEOF
7768#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7769_ACEOF
7770
7771ac_header_dirent=$ac_hdr; break
7772fi
7773
7774done
7775# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7776if test $ac_header_dirent = dirent.h; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7778$as_echo_n "checking for library containing opendir... " >&6; }
7779if ${ac_cv_search_opendir+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781else
7782 ac_func_search_save_LIBS=$LIBS
7783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h. */
7785
7786/* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7789#ifdef __cplusplus
7790extern "C"
7791#endif
7792char opendir ();
7793int
7794main ()
7795{
7796return opendir ();
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801for ac_lib in '' dir; do
7802 if test -z "$ac_lib"; then
7803 ac_res="none required"
7804 else
7805 ac_res=-l$ac_lib
7806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7807 fi
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 ac_cv_search_opendir=$ac_res
7810fi
7811rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext
7813 if ${ac_cv_search_opendir+:} false; then :
7814 break
7815fi
7816done
7817if ${ac_cv_search_opendir+:} false; then :
7818
7819else
7820 ac_cv_search_opendir=no
7821fi
7822rm conftest.$ac_ext
7823LIBS=$ac_func_search_save_LIBS
7824fi
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7826$as_echo "$ac_cv_search_opendir" >&6; }
7827ac_res=$ac_cv_search_opendir
7828if test "$ac_res" != no; then :
7829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7830
7831fi
7832
7833else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7835$as_echo_n "checking for library containing opendir... " >&6; }
7836if ${ac_cv_search_opendir+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838else
7839 ac_func_search_save_LIBS=$LIBS
7840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h. */
7842
7843/* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7846#ifdef __cplusplus
7847extern "C"
7848#endif
7849char opendir ();
7850int
7851main ()
7852{
7853return opendir ();
7854 ;
7855 return 0;
7856}
7857_ACEOF
7858for ac_lib in '' x; do
7859 if test -z "$ac_lib"; then
7860 ac_res="none required"
7861 else
7862 ac_res=-l$ac_lib
7863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7864 fi
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 ac_cv_search_opendir=$ac_res
7867fi
7868rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext
7870 if ${ac_cv_search_opendir+:} false; then :
7871 break
7872fi
7873done
7874if ${ac_cv_search_opendir+:} false; then :
7875
7876else
7877 ac_cv_search_opendir=no
7878fi
7879rm conftest.$ac_ext
7880LIBS=$ac_func_search_save_LIBS
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7883$as_echo "$ac_cv_search_opendir" >&6; }
7884ac_res=$ac_cv_search_opendir
7885if test "$ac_res" != no; then :
7886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7887
7888fi
7889
7890fi
7891
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7893$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7894if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899#include <sys/types.h>
7900int
7901main ()
7902{
7903return makedev(0, 0);
7904 ;
7905 return 0;
7906}
7907_ACEOF
7908if ac_fn_c_try_link "$LINENO"; then :
7909 ac_cv_header_sys_types_h_makedev=yes
7910else
7911 ac_cv_header_sys_types_h_makedev=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915
7916fi
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7918$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7919
7920if test $ac_cv_header_sys_types_h_makedev = no; then
7921ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7922if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7923
7924$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7925
7926fi
7927
7928
7929
7930 if test $ac_cv_header_sys_mkdev_h = no; then
7931 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7932if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7933
7934$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7935
7936fi
7937
7938
7939 fi
7940fi
7941
7942
7943# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
7944for ac_header in net/if.h
7945do :
7946 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
7947#ifdef STDC_HEADERS
7948# include <stdlib.h>
7949# include <stddef.h>
7950#else
7951# ifdef HAVE_STDLIB_H
7952# include <stdlib.h>
7953# endif
7954#endif
7955#ifdef HAVE_SYS_SOCKET_H
7956# include <sys/socket.h>
7957#endif
7958
7959"
7960if test "x$ac_cv_header_net_if_h" = xyes; then :
7961 cat >>confdefs.h <<_ACEOF
7962#define HAVE_NET_IF_H 1
7963_ACEOF
7964
7965fi
7966
7967done
7968
7969
7970# On Linux, netlink.h requires asm/types.h
7971for ac_header in linux/netlink.h
7972do :
7973 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
7974#ifdef HAVE_ASM_TYPES_H
7975#include <asm/types.h>
7976#endif
7977#ifdef HAVE_SYS_SOCKET_H
7978#include <sys/socket.h>
7979#endif
7980
7981"
7982if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
7983 cat >>confdefs.h <<_ACEOF
7984#define HAVE_LINUX_NETLINK_H 1
7985_ACEOF
7986
7987fi
7988
7989done
7990
7991
7992# On Linux, can.h and can/raw.h require sys/socket.h
7993for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
7994do :
7995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7997#ifdef HAVE_SYS_SOCKET_H
7998#include <sys/socket.h>
7999#endif
8000
8001"
8002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8003 cat >>confdefs.h <<_ACEOF
8004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005_ACEOF
8006
8007fi
8008
8009done
8010
8011
8012# checks for typedefs
8013was_it_defined=no
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8015$as_echo_n "checking for clock_t in time.h... " >&6; }
8016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h. */
8018#include <time.h>
8019
8020_ACEOF
8021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8022 $EGREP "clock_t" >/dev/null 2>&1; then :
8023 was_it_defined=yes
8024else
8025
8026
8027$as_echo "#define clock_t long" >>confdefs.h
8028
8029
8030fi
8031rm -f conftest*
8032
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8034$as_echo "$was_it_defined" >&6; }
8035
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8037$as_echo_n "checking for makedev... " >&6; }
8038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h. */
8040
8041#if defined(MAJOR_IN_MKDEV)
8042#include <sys/mkdev.h>
8043#elif defined(MAJOR_IN_SYSMACROS)
8044#include <sys/sysmacros.h>
8045#else
8046#include <sys/types.h>
8047#endif
8048
8049int
8050main ()
8051{
8052
8053 makedev(0, 0)
8054 ;
8055 return 0;
8056}
8057
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"; then :
8060 ac_cv_has_makedev=yes
8061else
8062 ac_cv_has_makedev=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8067$as_echo "$ac_cv_has_makedev" >&6; }
8068if test "$ac_cv_has_makedev" = "yes"; then
8069
8070$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
8071
8072fi
8073
8074# byte swapping
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8076$as_echo_n "checking for le64toh... " >&6; }
8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080#ifdef HAVE_ENDIAN_H
8081#include <endian.h>
8082#elif defined(HAVE_SYS_ENDIAN_H)
8083#include <sys/endian.h>
8084#endif
8085
8086int
8087main ()
8088{
8089
8090 le64toh(1)
8091 ;
8092 return 0;
8093}
8094
8095_ACEOF
8096if ac_fn_c_try_link "$LINENO"; then :
8097 ac_cv_has_le64toh=yes
8098else
8099 ac_cv_has_le64toh=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8104$as_echo "$ac_cv_has_le64toh" >&6; }
8105if test "$ac_cv_has_le64toh" = "yes"; then
8106
8107$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8108
8109fi
8110
8111# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
8112# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
8113# defined, but the compiler does not support pragma redefine_extname,
8114# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
8115# structures (such as rlimit64) without declaring them. As a
8116# work-around, disable LFS on such configurations
8117
8118use_lfs=yes
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
8120$as_echo_n "checking Solaris LFS bug... " >&6; }
8121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h. */
8123
8124#define _LARGEFILE_SOURCE 1
8125#define _FILE_OFFSET_BITS 64
8126#include <sys/resource.h>
8127
8128int
8129main ()
8130{
8131struct rlimit foo;
8132 ;
8133 return 0;
8134}
8135_ACEOF
8136if ac_fn_c_try_compile "$LINENO"; then :
8137 sol_lfs_bug=no
8138else
8139 sol_lfs_bug=yes
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
8143$as_echo "$sol_lfs_bug" >&6; }
8144if test "$sol_lfs_bug" = "yes"; then
8145 use_lfs=no
8146fi
8147
8148if test "$use_lfs" = "yes"; then
8149# Two defines needed to enable largefile support on various platforms
8150# These may affect some typedefs
8151case $ac_sys_system/$ac_sys_release in
8152AIX*)
8153
8154$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8155
8156 ;;
8157esac
8158
8159$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
8160
8161
8162$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8163
8164fi
8165
8166# Add some code to confdefs.h so that the test for off_t works on SCO
8167cat >> confdefs.h <<\EOF
8168#if defined(SCO_DS)
8169#undef _OFF_T
8170#endif
8171EOF
8172
8173# Type availability checks
8174ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8175if test "x$ac_cv_type_mode_t" = xyes; then :
8176
8177else
8178
8179cat >>confdefs.h <<_ACEOF
8180#define mode_t int
8181_ACEOF
8182
8183fi
8184
8185ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8186if test "x$ac_cv_type_off_t" = xyes; then :
8187
8188else
8189
8190cat >>confdefs.h <<_ACEOF
8191#define off_t long int
8192_ACEOF
8193
8194fi
8195
8196ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8197if test "x$ac_cv_type_pid_t" = xyes; then :
8198
8199else
8200
8201cat >>confdefs.h <<_ACEOF
8202#define pid_t int
8203_ACEOF
8204
8205fi
8206
8207
8208cat >>confdefs.h <<_ACEOF
8209#define RETSIGTYPE void
8210_ACEOF
8211
8212ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8213if test "x$ac_cv_type_size_t" = xyes; then :
8214
8215else
8216
8217cat >>confdefs.h <<_ACEOF
8218#define size_t unsigned int
8219_ACEOF
8220
8221fi
8222
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8224$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8225if ${ac_cv_type_uid_t+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h. */
8230#include <sys/types.h>
8231
8232_ACEOF
8233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8234 $EGREP "uid_t" >/dev/null 2>&1; then :
8235 ac_cv_type_uid_t=yes
8236else
8237 ac_cv_type_uid_t=no
8238fi
8239rm -f conftest*
8240
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8243$as_echo "$ac_cv_type_uid_t" >&6; }
8244if test $ac_cv_type_uid_t = no; then
8245
8246$as_echo "#define uid_t int" >>confdefs.h
8247
8248
8249$as_echo "#define gid_t int" >>confdefs.h
8250
8251fi
8252
8253
8254# There are two separate checks for each of the exact-width integer types we
8255# need. First we check whether the type is available using the usual
8256# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h>
8257# and <stdint.h> where available). We then also use the special type checks of
8258# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available
8259# directly, #define's uint32_t to be a suitable type.
8260
8261ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
8262if test "x$ac_cv_type_uint32_t" = xyes; then :
8263
8264$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
8265
8266fi
8267
8268ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8269case $ac_cv_c_uint32_t in #(
8270 no|yes) ;; #(
8271 *)
8272
8273$as_echo "#define _UINT32_T 1" >>confdefs.h
8274
8275
8276cat >>confdefs.h <<_ACEOF
8277#define uint32_t $ac_cv_c_uint32_t
8278_ACEOF
8279;;
8280 esac
8281
8282
8283ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
8284if test "x$ac_cv_type_uint64_t" = xyes; then :
8285
8286$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
8287
8288fi
8289
8290ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8291case $ac_cv_c_uint64_t in #(
8292 no|yes) ;; #(
8293 *)
8294
8295$as_echo "#define _UINT64_T 1" >>confdefs.h
8296
8297
8298cat >>confdefs.h <<_ACEOF
8299#define uint64_t $ac_cv_c_uint64_t
8300_ACEOF
8301;;
8302 esac
8303
8304
8305ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
8306if test "x$ac_cv_type_int32_t" = xyes; then :
8307
8308$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
8309
8310fi
8311
8312ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8313case $ac_cv_c_int32_t in #(
8314 no|yes) ;; #(
8315 *)
8316
8317cat >>confdefs.h <<_ACEOF
8318#define int32_t $ac_cv_c_int32_t
8319_ACEOF
8320;;
8321esac
8322
8323
8324ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
8325if test "x$ac_cv_type_int64_t" = xyes; then :
8326
8327$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
8328
8329fi
8330
8331ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
8332case $ac_cv_c_int64_t in #(
8333 no|yes) ;; #(
8334 *)
8335
8336cat >>confdefs.h <<_ACEOF
8337#define int64_t $ac_cv_c_int64_t
8338_ACEOF
8339;;
8340esac
8341
8342
8343ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8344if test "x$ac_cv_type_ssize_t" = xyes; then :
8345
8346$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
8347
8348fi
8349
8350ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8351if test "x$ac_cv_type___uint128_t" = xyes; then :
8352
8353$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8354
8355fi
8356
8357
8358# Sizes of various common basic types
8359# ANSI C requires sizeof(char) == 1, so no need to check it
8360# The cast to long int works around a bug in the HP C Compiler
8361# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8362# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8363# This bug is HP SR number 8606223364.
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8365$as_echo_n "checking size of int... " >&6; }
8366if ${ac_cv_sizeof_int+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368else
8369 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8370
8371else
8372 if test "$ac_cv_type_int" = yes; then
8373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8375as_fn_error 77 "cannot compute sizeof (int)
8376See \`config.log' for more details" "$LINENO" 5; }
8377 else
8378 ac_cv_sizeof_int=0
8379 fi
8380fi
8381
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8384$as_echo "$ac_cv_sizeof_int" >&6; }
8385
8386
8387
8388cat >>confdefs.h <<_ACEOF
8389#define SIZEOF_INT $ac_cv_sizeof_int
8390_ACEOF
8391
8392
8393# The cast to long int works around a bug in the HP C Compiler
8394# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8395# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8396# This bug is HP SR number 8606223364.
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8398$as_echo_n "checking size of long... " >&6; }
8399if ${ac_cv_sizeof_long+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401else
8402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8403
8404else
8405 if test "$ac_cv_type_long" = yes; then
8406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8408as_fn_error 77 "cannot compute sizeof (long)
8409See \`config.log' for more details" "$LINENO" 5; }
8410 else
8411 ac_cv_sizeof_long=0
8412 fi
8413fi
8414
8415fi
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8417$as_echo "$ac_cv_sizeof_long" >&6; }
8418
8419
8420
8421cat >>confdefs.h <<_ACEOF
8422#define SIZEOF_LONG $ac_cv_sizeof_long
8423_ACEOF
8424
8425
8426# The cast to long int works around a bug in the HP C Compiler
8427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8429# This bug is HP SR number 8606223364.
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8431$as_echo_n "checking size of void *... " >&6; }
8432if ${ac_cv_sizeof_void_p+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434else
8435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8436
8437else
8438 if test "$ac_cv_type_void_p" = yes; then
8439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8441as_fn_error 77 "cannot compute sizeof (void *)
8442See \`config.log' for more details" "$LINENO" 5; }
8443 else
8444 ac_cv_sizeof_void_p=0
8445 fi
8446fi
8447
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8450$as_echo "$ac_cv_sizeof_void_p" >&6; }
8451
8452
8453
8454cat >>confdefs.h <<_ACEOF
8455#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8456_ACEOF
8457
8458
8459# The cast to long int works around a bug in the HP C Compiler
8460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8462# This bug is HP SR number 8606223364.
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8464$as_echo_n "checking size of short... " >&6; }
8465if ${ac_cv_sizeof_short+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8469
8470else
8471 if test "$ac_cv_type_short" = yes; then
8472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8474as_fn_error 77 "cannot compute sizeof (short)
8475See \`config.log' for more details" "$LINENO" 5; }
8476 else
8477 ac_cv_sizeof_short=0
8478 fi
8479fi
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8483$as_echo "$ac_cv_sizeof_short" >&6; }
8484
8485
8486
8487cat >>confdefs.h <<_ACEOF
8488#define SIZEOF_SHORT $ac_cv_sizeof_short
8489_ACEOF
8490
8491
8492# The cast to long int works around a bug in the HP C Compiler
8493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8495# This bug is HP SR number 8606223364.
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8497$as_echo_n "checking size of float... " >&6; }
8498if ${ac_cv_sizeof_float+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8502
8503else
8504 if test "$ac_cv_type_float" = yes; then
8505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8507as_fn_error 77 "cannot compute sizeof (float)
8508See \`config.log' for more details" "$LINENO" 5; }
8509 else
8510 ac_cv_sizeof_float=0
8511 fi
8512fi
8513
8514fi
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8516$as_echo "$ac_cv_sizeof_float" >&6; }
8517
8518
8519
8520cat >>confdefs.h <<_ACEOF
8521#define SIZEOF_FLOAT $ac_cv_sizeof_float
8522_ACEOF
8523
8524
8525# The cast to long int works around a bug in the HP C Compiler
8526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8528# This bug is HP SR number 8606223364.
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8530$as_echo_n "checking size of double... " >&6; }
8531if ${ac_cv_sizeof_double+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533else
8534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8535
8536else
8537 if test "$ac_cv_type_double" = yes; then
8538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8540as_fn_error 77 "cannot compute sizeof (double)
8541See \`config.log' for more details" "$LINENO" 5; }
8542 else
8543 ac_cv_sizeof_double=0
8544 fi
8545fi
8546
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8549$as_echo "$ac_cv_sizeof_double" >&6; }
8550
8551
8552
8553cat >>confdefs.h <<_ACEOF
8554#define SIZEOF_DOUBLE $ac_cv_sizeof_double
8555_ACEOF
8556
8557
8558# The cast to long int works around a bug in the HP C Compiler
8559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8561# This bug is HP SR number 8606223364.
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8563$as_echo_n "checking size of fpos_t... " >&6; }
8564if ${ac_cv_sizeof_fpos_t+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566else
8567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
8568
8569else
8570 if test "$ac_cv_type_fpos_t" = yes; then
8571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8573as_fn_error 77 "cannot compute sizeof (fpos_t)
8574See \`config.log' for more details" "$LINENO" 5; }
8575 else
8576 ac_cv_sizeof_fpos_t=0
8577 fi
8578fi
8579
8580fi
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8582$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
8583
8584
8585
8586cat >>confdefs.h <<_ACEOF
8587#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8588_ACEOF
8589
8590
8591# The cast to long int works around a bug in the HP C Compiler
8592# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8593# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8594# This bug is HP SR number 8606223364.
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8596$as_echo_n "checking size of size_t... " >&6; }
8597if ${ac_cv_sizeof_size_t+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8601
8602else
8603 if test "$ac_cv_type_size_t" = yes; then
8604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8606as_fn_error 77 "cannot compute sizeof (size_t)
8607See \`config.log' for more details" "$LINENO" 5; }
8608 else
8609 ac_cv_sizeof_size_t=0
8610 fi
8611fi
8612
8613fi
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8615$as_echo "$ac_cv_sizeof_size_t" >&6; }
8616
8617
8618
8619cat >>confdefs.h <<_ACEOF
8620#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8621_ACEOF
8622
8623
8624# The cast to long int works around a bug in the HP C Compiler
8625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8627# This bug is HP SR number 8606223364.
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8629$as_echo_n "checking size of pid_t... " >&6; }
8630if ${ac_cv_sizeof_pid_t+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632else
8633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
8634
8635else
8636 if test "$ac_cv_type_pid_t" = yes; then
8637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8639as_fn_error 77 "cannot compute sizeof (pid_t)
8640See \`config.log' for more details" "$LINENO" 5; }
8641 else
8642 ac_cv_sizeof_pid_t=0
8643 fi
8644fi
8645
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8648$as_echo "$ac_cv_sizeof_pid_t" >&6; }
8649
8650
8651
8652cat >>confdefs.h <<_ACEOF
8653#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8654_ACEOF
8655
8656
8657
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
8659$as_echo_n "checking for long long support... " >&6; }
8660have_long_long=no
8661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h. */
8663
8664int
8665main ()
8666{
8667long long x; x = (long long)0;
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672if ac_fn_c_try_compile "$LINENO"; then :
8673
8674
8675$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8676
8677 have_long_long=yes
8678
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
8682$as_echo "$have_long_long" >&6; }
8683if test "$have_long_long" = yes ; then
8684# The cast to long int works around a bug in the HP C Compiler
8685# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8686# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8687# This bug is HP SR number 8606223364.
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8689$as_echo_n "checking size of long long... " >&6; }
8690if ${ac_cv_sizeof_long_long+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692else
8693 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8694
8695else
8696 if test "$ac_cv_type_long_long" = yes; then
8697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8699as_fn_error 77 "cannot compute sizeof (long long)
8700See \`config.log' for more details" "$LINENO" 5; }
8701 else
8702 ac_cv_sizeof_long_long=0
8703 fi
8704fi
8705
8706fi
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8708$as_echo "$ac_cv_sizeof_long_long" >&6; }
8709
8710
8711
8712cat >>confdefs.h <<_ACEOF
8713#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8714_ACEOF
8715
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8720$as_echo_n "checking for long double support... " >&6; }
8721have_long_double=no
8722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h. */
8724
8725int
8726main ()
8727{
8728long double x; x = (long double)0;
8729 ;
8730 return 0;
8731}
8732_ACEOF
8733if ac_fn_c_try_compile "$LINENO"; then :
8734
8735
8736$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8737
8738 have_long_double=yes
8739
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8743$as_echo "$have_long_double" >&6; }
8744if test "$have_long_double" = yes ; then
8745# The cast to long int works around a bug in the HP C Compiler
8746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8748# This bug is HP SR number 8606223364.
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8750$as_echo_n "checking size of long double... " >&6; }
8751if ${ac_cv_sizeof_long_double+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8755
8756else
8757 if test "$ac_cv_type_long_double" = yes; then
8758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8760as_fn_error 77 "cannot compute sizeof (long double)
8761See \`config.log' for more details" "$LINENO" 5; }
8762 else
8763 ac_cv_sizeof_long_double=0
8764 fi
8765fi
8766
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8769$as_echo "$ac_cv_sizeof_long_double" >&6; }
8770
8771
8772
8773cat >>confdefs.h <<_ACEOF
8774#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8775_ACEOF
8776
8777
8778fi
8779
8780
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
8782$as_echo_n "checking for _Bool support... " >&6; }
8783have_c99_bool=no
8784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h. */
8786
8787int
8788main ()
8789{
8790_Bool x; x = (_Bool)0;
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_compile "$LINENO"; then :
8796
8797
8798$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
8799
8800 have_c99_bool=yes
8801
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
8805$as_echo "$have_c99_bool" >&6; }
8806if test "$have_c99_bool" = yes ; then
8807# The cast to long int works around a bug in the HP C Compiler
8808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8810# This bug is HP SR number 8606223364.
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8812$as_echo_n "checking size of _Bool... " >&6; }
8813if ${ac_cv_sizeof__Bool+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
8817
8818else
8819 if test "$ac_cv_type__Bool" = yes; then
8820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8822as_fn_error 77 "cannot compute sizeof (_Bool)
8823See \`config.log' for more details" "$LINENO" 5; }
8824 else
8825 ac_cv_sizeof__Bool=0
8826 fi
8827fi
8828
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8831$as_echo "$ac_cv_sizeof__Bool" >&6; }
8832
8833
8834
8835cat >>confdefs.h <<_ACEOF
8836#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8837_ACEOF
8838
8839
8840fi
8841
8842ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8843 #include <stdint.h>
8844 #endif
8845 #ifdef HAVE_INTTYPES_H
8846 #include <inttypes.h>
8847 #endif
8848"
8849if test "x$ac_cv_type_uintptr_t" = xyes; then :
8850
8851cat >>confdefs.h <<_ACEOF
8852#define HAVE_UINTPTR_T 1
8853_ACEOF
8854
8855# The cast to long int works around a bug in the HP C Compiler
8856# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8857# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8858# This bug is HP SR number 8606223364.
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8860$as_echo_n "checking size of uintptr_t... " >&6; }
8861if ${ac_cv_sizeof_uintptr_t+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863else
8864 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8865
8866else
8867 if test "$ac_cv_type_uintptr_t" = yes; then
8868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8870as_fn_error 77 "cannot compute sizeof (uintptr_t)
8871See \`config.log' for more details" "$LINENO" 5; }
8872 else
8873 ac_cv_sizeof_uintptr_t=0
8874 fi
8875fi
8876
8877fi
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8879$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8880
8881
8882
8883cat >>confdefs.h <<_ACEOF
8884#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8885_ACEOF
8886
8887
8888fi
8889
8890
8891# The cast to long int works around a bug in the HP C Compiler
8892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8894# This bug is HP SR number 8606223364.
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8896$as_echo_n "checking size of off_t... " >&6; }
8897if ${ac_cv_sizeof_off_t+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899else
8900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
8901#ifdef HAVE_SYS_TYPES_H
8902#include <sys/types.h>
8903#endif
8904
8905"; then :
8906
8907else
8908 if test "$ac_cv_type_off_t" = yes; then
8909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8911as_fn_error 77 "cannot compute sizeof (off_t)
8912See \`config.log' for more details" "$LINENO" 5; }
8913 else
8914 ac_cv_sizeof_off_t=0
8915 fi
8916fi
8917
8918fi
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8920$as_echo "$ac_cv_sizeof_off_t" >&6; }
8921
8922
8923
8924cat >>confdefs.h <<_ACEOF
8925#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8926_ACEOF
8927
8928
8929
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8931$as_echo_n "checking whether to enable large file support... " >&6; }
8932if test "$have_long_long" = yes
8933then
8934if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8935 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8936
8937$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8940$as_echo "yes" >&6; }
8941else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
8944fi
8945else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947$as_echo "no" >&6; }
8948fi
8949
8950# The cast to long int works around a bug in the HP C Compiler
8951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8953# This bug is HP SR number 8606223364.
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8955$as_echo_n "checking size of time_t... " >&6; }
8956if ${ac_cv_sizeof_time_t+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958else
8959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
8960#ifdef HAVE_SYS_TYPES_H
8961#include <sys/types.h>
8962#endif
8963#ifdef HAVE_TIME_H
8964#include <time.h>
8965#endif
8966
8967"; then :
8968
8969else
8970 if test "$ac_cv_type_time_t" = yes; then
8971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8973as_fn_error 77 "cannot compute sizeof (time_t)
8974See \`config.log' for more details" "$LINENO" 5; }
8975 else
8976 ac_cv_sizeof_time_t=0
8977 fi
8978fi
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8982$as_echo "$ac_cv_sizeof_time_t" >&6; }
8983
8984
8985
8986cat >>confdefs.h <<_ACEOF
8987#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8988_ACEOF
8989
8990
8991
8992# if have pthread_t then define SIZEOF_PTHREAD_T
8993ac_save_cc="$CC"
8994if test "$ac_cv_kpthread" = "yes"
8995then CC="$CC -Kpthread"
8996elif test "$ac_cv_kthread" = "yes"
8997then CC="$CC -Kthread"
8998elif test "$ac_cv_pthread" = "yes"
8999then CC="$CC -pthread"
9000fi
9001
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9003$as_echo_n "checking for pthread_t... " >&6; }
9004have_pthread_t=no
9005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h. */
9007
9008 #include <pthread.h>
9009int
9010main ()
9011{
9012pthread_t x; x = *(pthread_t*)0;
9013 ;
9014 return 0;
9015}
9016
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"; then :
9019 have_pthread_t=yes
9020fi
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9023$as_echo "$have_pthread_t" >&6; }
9024if test "$have_pthread_t" = yes ; then
9025 # The cast to long int works around a bug in the HP C Compiler
9026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9028# This bug is HP SR number 8606223364.
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9030$as_echo_n "checking size of pthread_t... " >&6; }
9031if ${ac_cv_sizeof_pthread_t+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033else
9034 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
9035#ifdef HAVE_PTHREAD_H
9036#include <pthread.h>
9037#endif
9038
9039"; then :
9040
9041else
9042 if test "$ac_cv_type_pthread_t" = yes; then
9043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9045as_fn_error 77 "cannot compute sizeof (pthread_t)
9046See \`config.log' for more details" "$LINENO" 5; }
9047 else
9048 ac_cv_sizeof_pthread_t=0
9049 fi
9050fi
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9054$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
9055
9056
9057
9058cat >>confdefs.h <<_ACEOF
9059#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9060_ACEOF
9061
9062
9063fi
9064CC="$ac_save_cc"
9065
9066
9067case $ac_sys_system/$ac_sys_release in
9068 Darwin/[01567]\..*)
9069 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9070 ;;
9071 Darwin/*)
9072 OTHER_LIBTOOL_OPT=""
9073 ;;
9074esac
9075
9076
9077
9078case $ac_sys_system/$ac_sys_release in
9079 Darwin/[01567]\..*)
9080 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9081 if test "${enable_universalsdk}"; then
9082 :
9083 else
9084 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
9085 fi
9086 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9087 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9088 Darwin/*)
9089 gcc_version=`gcc -dumpversion`
9090 if test ${gcc_version} '<' 4.0
9091 then
9092 LIBTOOL_CRUFT="-lcc_dynamic"
9093 else
9094 LIBTOOL_CRUFT=""
9095 fi
9096 if test "$cross_compiling" = yes; then :
9097 ac_osx_32bit=yes
9098else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h. */
9101
9102 #include <unistd.h>
9103 int main(int argc, char*argv[])
9104 {
9105 if (sizeof(long) == 4) {
9106 return 0;
9107 } else {
9108 return 1;
9109 }
9110 }
9111
9112_ACEOF
9113if ac_fn_c_try_run "$LINENO"; then :
9114 ac_osx_32bit=yes
9115else
9116 ac_osx_32bit=no
9117fi
9118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119 conftest.$ac_objext conftest.beam conftest.$ac_ext
9120fi
9121
9122
9123 if test "${ac_osx_32bit}" = "yes"; then
9124 case `/usr/bin/arch` in
9125 i386)
9126 MACOSX_DEFAULT_ARCH="i386"
9127 ;;
9128 ppc)
9129 MACOSX_DEFAULT_ARCH="ppc"
9130 ;;
9131 *)
9132 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
9133 ;;
9134 esac
9135 else
9136 case `/usr/bin/arch` in
9137 i386)
9138 MACOSX_DEFAULT_ARCH="x86_64"
9139 ;;
9140 ppc)
9141 MACOSX_DEFAULT_ARCH="ppc64"
9142 ;;
9143 *)
9144 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
9145 ;;
9146 esac
9147
9148 fi
9149
9150 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
9151 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9152 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9153esac
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9155$as_echo_n "checking for --enable-framework... " >&6; }
9156if test "$enable_framework"
9157then
9158 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9159 # -F. is needed to allow linking to the framework while
9160 # in the build location.
9161
9162$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
9163
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9165$as_echo "yes" >&6; }
9166 if test $enable_shared = "yes"
9167 then
9168 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
9169 fi
9170else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
9173fi
9174
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9176$as_echo_n "checking for dyld... " >&6; }
9177case $ac_sys_system/$ac_sys_release in
9178 Darwin/*)
9179
9180$as_echo "#define WITH_DYLD 1" >>confdefs.h
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9183$as_echo "always on for Darwin" >&6; }
9184 ;;
9185 *)
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187$as_echo "no" >&6; }
9188 ;;
9189esac
9190
9191# Set info about shared libraries.
9192
9193
9194
9195
9196
9197
9198
9199# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9200# -- usually .so, .sl on HP-UX, .dll on Cygwin
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9202$as_echo_n "checking the extension of shared libraries... " >&6; }
9203if test -z "$SHLIB_SUFFIX"; then
9204 case $ac_sys_system in
9205 hp*|HP*)
9206 case `uname -m` in
9207 ia64) SHLIB_SUFFIX=.so;;
9208 *) SHLIB_SUFFIX=.sl;;
9209 esac
9210 ;;
9211 CYGWIN*) SHLIB_SUFFIX=.dll;;
9212 *) SHLIB_SUFFIX=.so;;
9213 esac
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9216$as_echo "$SHLIB_SUFFIX" >&6; }
9217
9218# LDSHARED is the ld *command* used to create shared library
9219# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9220# (Shared libraries in this instance are shared modules to be loaded into
9221# Python, as opposed to building Python itself as a shared library.)
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9223$as_echo_n "checking LDSHARED... " >&6; }
9224if test -z "$LDSHARED"
9225then
9226 case $ac_sys_system/$ac_sys_release in
9227 AIX*)
9228 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9229 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
9230 ;;
9231 IRIX/5*) LDSHARED="ld -shared";;
9232 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9233 SunOS/5*)
9234 if test "$GCC" = "yes" ; then
9235 LDSHARED='$(CC) -shared'
9236 LDCXXSHARED='$(CXX) -shared'
9237 else
9238 LDSHARED='$(CC) -G'
9239 LDCXXSHARED='$(CXX) -G'
9240 fi ;;
9241 hp*|HP*)
9242 if test "$GCC" = "yes" ; then
9243 LDSHARED='$(CC) -shared'
9244 LDCXXSHARED='$(CXX) -shared'
9245 else
9246 LDSHARED='ld -b'
9247 fi ;;
9248 Darwin/1.3*)
9249 LDSHARED='$(CC) -bundle'
9250 LDCXXSHARED='$(CXX) -bundle'
9251 if test "$enable_framework" ; then
9252 # Link against the framework. All externals should be defined.
9253 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9254 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9255 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9256 else
9257 # No framework. Ignore undefined symbols, assuming they come from Python
9258 LDSHARED="$LDSHARED -undefined suppress"
9259 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
9260 fi ;;
9261 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
9262 LDSHARED='$(CC) -bundle'
9263 LDCXXSHARED='$(CXX) -bundle'
9264 if test "$enable_framework" ; then
9265 # Link against the framework. All externals should be defined.
9266 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9267 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9268 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9269 else
9270 # No framework, use the Python app as bundle-loader
9271 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9272 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9273 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9274 fi ;;
9275 Darwin/*)
9276 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9277 # This allows an extension to be used in any Python
9278
9279 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9280 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9281 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9282 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9283 if test ${dep_target_major} -eq 10 && \
9284 test ${dep_target_minor} -le 2
9285 then
9286 # building for OS X 10.0 through 10.2
9287 LDSHARED='$(CC) -bundle'
9288 LDCXXSHARED='$(CXX) -bundle'
9289 if test "$enable_framework" ; then
9290 # Link against the framework. All externals should be defined.
9291 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9292 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9293 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9294 else
9295 # No framework, use the Python app as bundle-loader
9296 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9297 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9298 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9299 fi
9300 else
9301 # building for OS X 10.3 and later
9302 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9303 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9304 BLDSHARED="$LDSHARED"
9305 fi
9306 ;;
9307 Linux*|GNU*|QNX*)
9308 LDSHARED='$(CC) -shared'
9309 LDCXXSHARED='$(CXX) -shared';;
9310 BSD/OS*/4*)
9311 LDSHARED="gcc -shared"
9312 LDCXXSHARED="g++ -shared";;
9313 FreeBSD*)
9314 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9315 then
9316 LDSHARED='$(CC) -shared'
9317 LDCXXSHARED='$(CXX) -shared'
9318 else
9319 LDSHARED="ld -Bshareable"
9320 fi;;
9321 OpenBSD*)
9322 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9323 then
9324 LDSHARED='$(CC) -shared $(CCSHARED)'
9325 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9326 else
9327 case `uname -r` in
9328 [01].* | 2.[0-7] | 2.[0-7].*)
9329 LDSHARED="ld -Bshareable ${LDFLAGS}"
9330 ;;
9331 *)
9332 LDSHARED='$(CC) -shared $(CCSHARED)'
9333 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9334 ;;
9335 esac
9336 fi;;
9337 NetBSD*|DragonFly*)
9338 LDSHARED='$(CC) -shared'
9339 LDCXXSHARED='$(CXX) -shared';;
9340 OpenUNIX*|UnixWare*)
9341 if test "$GCC" = "yes" ; then
9342 LDSHARED='$(CC) -shared'
9343 LDCXXSHARED='$(CXX) -shared'
9344 else
9345 LDSHARED='$(CC) -G'
9346 LDCXXSHARED='$(CXX) -G'
9347 fi;;
9348 SCO_SV*)
9349 LDSHARED='$(CC) -Wl,-G,-Bexport'
9350 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9351 CYGWIN*)
9352 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9353 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
9354 *) LDSHARED="ld";;
9355 esac
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9358$as_echo "$LDSHARED" >&6; }
9359LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
9360BLDSHARED=${BLDSHARED-$LDSHARED}
9361# CCSHARED are the C *flags* used to create objects to go into a shared
9362# library (module) -- this is only needed for a few systems
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9364$as_echo_n "checking CCSHARED... " >&6; }
9365if test -z "$CCSHARED"
9366then
9367 case $ac_sys_system/$ac_sys_release in
9368 SunOS*) if test "$GCC" = yes;
9369 then CCSHARED="-fPIC";
9370 elif test `uname -p` = sparc;
9371 then CCSHARED="-xcode=pic32";
9372 else CCSHARED="-Kpic";
9373 fi;;
9374 hp*|HP*) if test "$GCC" = yes;
9375 then CCSHARED="-fPIC";
9376 else CCSHARED="+z";
9377 fi;;
9378 Linux*|GNU*) CCSHARED="-fPIC";;
9379 BSD/OS*/4*) CCSHARED="-fpic";;
9380 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9381 OpenUNIX*|UnixWare*)
9382 if test "$GCC" = "yes"
9383 then CCSHARED="-fPIC"
9384 else CCSHARED="-KPIC"
9385 fi;;
9386 SCO_SV*)
9387 if test "$GCC" = "yes"
9388 then CCSHARED="-fPIC"
9389 else CCSHARED="-Kpic -belf"
9390 fi;;
9391 IRIX*/6*) case $CC in
9392 *gcc*) CCSHARED="-shared";;
9393 *) CCSHARED="";;
9394 esac;;
9395 esac
9396fi
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9398$as_echo "$CCSHARED" >&6; }
9399# LINKFORSHARED are the flags passed to the $(CC) command that links
9400# the python executable -- this is only needed for a few systems
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9402$as_echo_n "checking LINKFORSHARED... " >&6; }
9403if test -z "$LINKFORSHARED"
9404then
9405 case $ac_sys_system/$ac_sys_release in
9406 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9407 hp*|HP*)
9408 LINKFORSHARED="-Wl,-E -Wl,+s";;
9409# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9410 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
9411 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9412 # -u libsys_s pulls in all symbols in libsys
9413 Darwin/*)
9414 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
9415
9416 # Issue #18075: the default maximum stack size (8MBytes) is too
9417 # small for the default recursion limit. Increase the stack size
9418 # to ensure that tests don't crash
9419 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9420
9421 if test "$enable_framework"
9422 then
9423 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9424 fi
9425 LINKFORSHARED="$LINKFORSHARED";;
9426 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9427 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9428 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9429 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
9430 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9431 then
9432 LINKFORSHARED="-Wl,--export-dynamic"
9433 fi;;
9434 SunOS/5*) case $CC in
9435 *gcc*)
9436 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9437 then
9438 LINKFORSHARED="-Xlinker --export-dynamic"
9439 fi;;
9440 esac;;
9441 CYGWIN*)
9442 if test $enable_shared = "no"
9443 then
9444 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9445 fi;;
9446 QNX*)
9447 # -Wl,-E causes the symbols to be added to the dynamic
9448 # symbol table so that they can be found when a module
9449 # is loaded. -N 2048K causes the stack size to be set
9450 # to 2048 kilobytes so that the stack doesn't overflow
9451 # when running test_compile.py.
9452 LINKFORSHARED='-Wl,-E -N 2048K';;
9453 esac
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9456$as_echo "$LINKFORSHARED" >&6; }
9457
9458
9459
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9461$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
9462if test ! "$LIBRARY" = "$LDLIBRARY"
9463then
9464 case $ac_sys_system in
9465 CYGWIN*)
9466 # Cygwin needs CCSHARED when building extension DLLs
9467 # but not when building the interpreter DLL.
9468 CFLAGSFORSHARED='';;
9469 *)
9470 CFLAGSFORSHARED='$(CCSHARED)'
9471 esac
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9474$as_echo "$CFLAGSFORSHARED" >&6; }
9475
9476# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9477# library (with --enable-shared).
9478# For platforms on which shared libraries are not allowed to have unresolved
9479# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9480# if it is not required, since it creates a dependency of the shared library
9481# to LIBS. This, in turn, means that applications linking the shared libpython
9482# don't need to link LIBS explicitly. The default should be only changed
9483# on systems where this approach causes problems.
9484
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9486$as_echo_n "checking SHLIBS... " >&6; }
9487case "$ac_sys_system" in
9488 *)
9489 SHLIBS='$(LIBS)';;
9490esac
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9492$as_echo "$SHLIBS" >&6; }
9493
9494
9495# checks for libraries
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9497$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
9498if ${ac_cv_lib_sendfile_sendfile+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 ac_check_lib_save_LIBS=$LIBS
9502LIBS="-lsendfile $LIBS"
9503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h. */
9505
9506/* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9509#ifdef __cplusplus
9510extern "C"
9511#endif
9512char sendfile ();
9513int
9514main ()
9515{
9516return sendfile ();
9517 ;
9518 return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522 ac_cv_lib_sendfile_sendfile=yes
9523else
9524 ac_cv_lib_sendfile_sendfile=no
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528LIBS=$ac_check_lib_save_LIBS
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9531$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
9532if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
9533 cat >>confdefs.h <<_ACEOF
9534#define HAVE_LIBSENDFILE 1
9535_ACEOF
9536
9537 LIBS="-lsendfile $LIBS"
9538
9539fi
9540
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9542$as_echo_n "checking for dlopen in -ldl... " >&6; }
9543if ${ac_cv_lib_dl_dlopen+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545else
9546 ac_check_lib_save_LIBS=$LIBS
9547LIBS="-ldl $LIBS"
9548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h. */
9550
9551/* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554#ifdef __cplusplus
9555extern "C"
9556#endif
9557char dlopen ();
9558int
9559main ()
9560{
9561return dlopen ();
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566if ac_fn_c_try_link "$LINENO"; then :
9567 ac_cv_lib_dl_dlopen=yes
9568else
9569 ac_cv_lib_dl_dlopen=no
9570fi
9571rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573LIBS=$ac_check_lib_save_LIBS
9574fi
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9576$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9577if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9578 cat >>confdefs.h <<_ACEOF
9579#define HAVE_LIBDL 1
9580_ACEOF
9581
9582 LIBS="-ldl $LIBS"
9583
9584fi
9585 # Dynamic linking for SunOS/Solaris and SYSV
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9587$as_echo_n "checking for shl_load in -ldld... " >&6; }
9588if ${ac_cv_lib_dld_shl_load+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590else
9591 ac_check_lib_save_LIBS=$LIBS
9592LIBS="-ldld $LIBS"
9593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h. */
9595
9596/* Override any GCC internal prototype to avoid an error.
9597 Use char because int might match the return type of a GCC
9598 builtin and then its argument prototype would still apply. */
9599#ifdef __cplusplus
9600extern "C"
9601#endif
9602char shl_load ();
9603int
9604main ()
9605{
9606return shl_load ();
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_link "$LINENO"; then :
9612 ac_cv_lib_dld_shl_load=yes
9613else
9614 ac_cv_lib_dld_shl_load=no
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618LIBS=$ac_check_lib_save_LIBS
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9621$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9622if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9623 cat >>confdefs.h <<_ACEOF
9624#define HAVE_LIBDLD 1
9625_ACEOF
9626
9627 LIBS="-ldld $LIBS"
9628
9629fi
9630 # Dynamic linking for HP-UX
9631
9632# only check for sem_init if thread support is requested
9633if test "$with_threads" = "yes" -o -z "$with_threads"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
9635$as_echo_n "checking for library containing sem_init... " >&6; }
9636if ${ac_cv_search_sem_init+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639 ac_func_search_save_LIBS=$LIBS
9640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h. */
9642
9643/* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646#ifdef __cplusplus
9647extern "C"
9648#endif
9649char sem_init ();
9650int
9651main ()
9652{
9653return sem_init ();
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658for ac_lib in '' pthread rt posix4; do
9659 if test -z "$ac_lib"; then
9660 ac_res="none required"
9661 else
9662 ac_res=-l$ac_lib
9663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9664 fi
9665 if ac_fn_c_try_link "$LINENO"; then :
9666 ac_cv_search_sem_init=$ac_res
9667fi
9668rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext
9670 if ${ac_cv_search_sem_init+:} false; then :
9671 break
9672fi
9673done
9674if ${ac_cv_search_sem_init+:} false; then :
9675
9676else
9677 ac_cv_search_sem_init=no
9678fi
9679rm conftest.$ac_ext
9680LIBS=$ac_func_search_save_LIBS
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9683$as_echo "$ac_cv_search_sem_init" >&6; }
9684ac_res=$ac_cv_search_sem_init
9685if test "$ac_res" != no; then :
9686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9687
9688fi
9689 # 'Real Time' functions on Solaris
9690 # posix4 on Solaris 2.6
9691 # pthread (first!) on Linux
9692fi
9693
9694# check if we need libintl for locale functions
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9696$as_echo_n "checking for textdomain in -lintl... " >&6; }
9697if ${ac_cv_lib_intl_textdomain+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699else
9700 ac_check_lib_save_LIBS=$LIBS
9701LIBS="-lintl $LIBS"
9702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h. */
9704
9705/* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9708#ifdef __cplusplus
9709extern "C"
9710#endif
9711char textdomain ();
9712int
9713main ()
9714{
9715return textdomain ();
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721 ac_cv_lib_intl_textdomain=yes
9722else
9723 ac_cv_lib_intl_textdomain=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9730$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
9731if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
9732
9733$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
9734
9735 LIBS="-lintl $LIBS"
9736fi
9737
9738
9739# checks for system dependent C++ extensions support
9740case "$ac_sys_system" in
9741 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9742$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h. */
9745
9746 #include <load.h>
9747int
9748main ()
9749{
9750loadAndInit("", 0, "")
9751 ;
9752 return 0;
9753}
9754
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"; then :
9757
9758
9759$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
9760
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9762$as_echo "yes" >&6; }
9763
9764else
9765
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext;;
9772 *) ;;
9773esac
9774
9775# check for systems that require aligned memory access
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
9777$as_echo_n "checking aligned memory access is required... " >&6; }
9778if test "$cross_compiling" = yes; then :
9779 aligned_required=yes
9780else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783
9784int main()
9785{
9786 char s[16];
9787 int i, *p1, *p2;
9788 for (i=0; i < 16; i++)
9789 s[i] = i;
9790 p1 = (int*)(s+1);
9791 p2 = (int*)(s+2);
9792 if (*p1 == *p2)
9793 return 1;
9794 return 0;
9795}
9796
9797_ACEOF
9798if ac_fn_c_try_run "$LINENO"; then :
9799 aligned_required=no
9800else
9801 aligned_required=yes
9802fi
9803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9804 conftest.$ac_objext conftest.beam conftest.$ac_ext
9805fi
9806
9807
9808if test "$aligned_required" = yes ; then
9809
9810$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
9811
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5
9814$as_echo "$aligned_required" >&6; }
9815
9816
9817# str, bytes and memoryview hash algorithm
9818
9819
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
9821$as_echo_n "checking for --with-hash-algorithm... " >&6; }
9822
9823# Check whether --with-hash_algorithm was given.
9824if test "${with_hash_algorithm+set}" = set; then :
9825 withval=$with_hash_algorithm;
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9827$as_echo "$withval" >&6; }
9828case "$withval" in
9829 siphash24)
9830 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
9831
9832 ;;
9833 fnv)
9834 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
9835
9836 ;;
9837 *)
9838 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
9839 ;;
9840esac
9841
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
9844$as_echo "default" >&6; }
9845fi
9846
9847
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
9849$as_echo_n "checking for --with-address-sanitizer... " >&6; }
9850
9851# Check whether --with-address_sanitizer was given.
9852if test "${with_address_sanitizer+set}" = set; then :
9853 withval=$with_address_sanitizer;
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9855$as_echo "$withval" >&6; }
9856BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
9857LDFLAGS="-fsanitize=address $LDFLAGS"
9858
9859else
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861$as_echo "no" >&6; }
9862fi
9863
9864
9865# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
9867$as_echo_n "checking for t_open in -lnsl... " >&6; }
9868if ${ac_cv_lib_nsl_t_open+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870else
9871 ac_check_lib_save_LIBS=$LIBS
9872LIBS="-lnsl $LIBS"
9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h. */
9875
9876/* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879#ifdef __cplusplus
9880extern "C"
9881#endif
9882char t_open ();
9883int
9884main ()
9885{
9886return t_open ();
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891if ac_fn_c_try_link "$LINENO"; then :
9892 ac_cv_lib_nsl_t_open=yes
9893else
9894 ac_cv_lib_nsl_t_open=no
9895fi
9896rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898LIBS=$ac_check_lib_save_LIBS
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
9901$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
9902if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
9903 LIBS="-lnsl $LIBS"
9904fi
9905 # SVR4
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9907$as_echo_n "checking for socket in -lsocket... " >&6; }
9908if ${ac_cv_lib_socket_socket+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910else
9911 ac_check_lib_save_LIBS=$LIBS
9912LIBS="-lsocket $LIBS $LIBS"
9913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h. */
9915
9916/* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char socket ();
9923int
9924main ()
9925{
9926return socket ();
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_link "$LINENO"; then :
9932 ac_cv_lib_socket_socket=yes
9933else
9934 ac_cv_lib_socket_socket=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938LIBS=$ac_check_lib_save_LIBS
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9941$as_echo "$ac_cv_lib_socket_socket" >&6; }
9942if test "x$ac_cv_lib_socket_socket" = xyes; then :
9943 LIBS="-lsocket $LIBS"
9944fi
9945 # SVR4 sockets
9946
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
9948$as_echo_n "checking for --with-libs... " >&6; }
9949
9950# Check whether --with-libs was given.
9951if test "${with_libs+set}" = set; then :
9952 withval=$with_libs;
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9954$as_echo "$withval" >&6; }
9955LIBS="$withval $LIBS"
9956
9957else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959$as_echo "no" >&6; }
9960fi
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9971 if test -n "$ac_tool_prefix"; then
9972 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9973set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if ${ac_cv_path_PKG_CONFIG+:} false; then :
9977 $as_echo_n "(cached) " >&6
9978else
9979 case $PKG_CONFIG in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9982 ;;
9983 *)
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995done
9996 done
9997IFS=$as_save_IFS
9998
9999 ;;
10000esac
10001fi
10002PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10003if test -n "$PKG_CONFIG"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10005$as_echo "$PKG_CONFIG" >&6; }
10006else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011
10012fi
10013if test -z "$ac_cv_path_PKG_CONFIG"; then
10014 ac_pt_PKG_CONFIG=$PKG_CONFIG
10015 # Extract the first word of "pkg-config", so it can be a program name with args.
10016set dummy pkg-config; ac_word=$2
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 case $ac_pt_PKG_CONFIG in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10025 ;;
10026 *)
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10034 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10037 fi
10038done
10039 done
10040IFS=$as_save_IFS
10041
10042 ;;
10043esac
10044fi
10045ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10046if test -n "$ac_pt_PKG_CONFIG"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10048$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10049else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
10052fi
10053
10054 if test "x$ac_pt_PKG_CONFIG" = x; then
10055 PKG_CONFIG=""
10056 else
10057 case $cross_compiling:$ac_tool_warned in
10058yes:)
10059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10061ac_tool_warned=yes ;;
10062esac
10063 PKG_CONFIG=$ac_pt_PKG_CONFIG
10064 fi
10065else
10066 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10067fi
10068
10069fi
10070if test -n "$PKG_CONFIG"; then
10071 _pkg_min_version=0.9.0
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10073$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10074 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10076$as_echo "yes" >&6; }
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
10080 PKG_CONFIG=""
10081 fi
10082fi
10083
10084# Check for use of the system expat library
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10086$as_echo_n "checking for --with-system-expat... " >&6; }
10087
10088# Check whether --with-system_expat was given.
10089if test "${with_system_expat+set}" = set; then :
10090 withval=$with_system_expat;
10091else
10092 with_system_expat="no"
10093fi
10094
10095
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10097$as_echo "$with_system_expat" >&6; }
10098
10099# Check for use of the system libffi library
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10101$as_echo_n "checking for --with-system-ffi... " >&6; }
10102
10103# Check whether --with-system_ffi was given.
10104if test "${with_system_ffi+set}" = set; then :
10105 withval=$with_system_ffi;
10106else
10107 with_system_ffi="no"
10108fi
10109
10110
10111if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
10112 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10113else
10114 LIBFFI_INCLUDEDIR=""
10115fi
10116
10117
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10119$as_echo "$with_system_ffi" >&6; }
10120
10121# Check for use of the system libmpdec library
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10123$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10124
10125# Check whether --with-system_libmpdec was given.
10126if test "${with_system_libmpdec+set}" = set; then :
10127 withval=$with_system_libmpdec;
10128else
10129 with_system_libmpdec="no"
10130fi
10131
10132
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10134$as_echo "$with_system_libmpdec" >&6; }
10135
10136# Check for support for loadable sqlite extensions
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10138$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10139# Check whether --enable-loadable-sqlite-extensions was given.
10140if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10141 enableval=$enable_loadable_sqlite_extensions;
10142else
10143 enable_loadable_sqlite_extensions="no"
10144fi
10145
10146
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10148$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10149
10150# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10151
10152
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10154$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10155
10156# Check whether --with-tcltk-includes was given.
10157if test "${with_tcltk_includes+set}" = set; then :
10158 withval=$with_tcltk_includes;
10159else
10160 with_tcltk_includes="default"
10161fi
10162
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10164$as_echo "$with_tcltk_includes" >&6; }
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10166$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10167
10168# Check whether --with-tcltk-libs was given.
10169if test "${with_tcltk_libs+set}" = set; then :
10170 withval=$with_tcltk_libs;
10171else
10172 with_tcltk_libs="default"
10173fi
10174
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10176$as_echo "$with_tcltk_libs" >&6; }
10177if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10178then
10179 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10180 then
10181 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10182 fi
10183 TCLTK_INCLUDES=""
10184 TCLTK_LIBS=""
10185else
10186 TCLTK_INCLUDES="$with_tcltk_includes"
10187 TCLTK_LIBS="$with_tcltk_libs"
10188fi
10189
10190# Check for --with-dbmliborder
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10192$as_echo_n "checking for --with-dbmliborder... " >&6; }
10193
10194# Check whether --with-dbmliborder was given.
10195if test "${with_dbmliborder+set}" = set; then :
10196 withval=$with_dbmliborder;
10197if test x$with_dbmliborder = xyes
10198then
10199as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10200else
10201 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10202 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10203 then
10204 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10205 fi
10206 done
10207fi
10208fi
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10211$as_echo "$with_dbmliborder" >&6; }
10212
10213# Determine if signalmodule should be used.
10214
10215
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
10217$as_echo_n "checking for --with-signal-module... " >&6; }
10218
10219# Check whether --with-signal-module was given.
10220if test "${with_signal_module+set}" = set; then :
10221 withval=$with_signal_module;
10222fi
10223
10224
10225if test -z "$with_signal_module"
10226then with_signal_module="yes"
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
10229$as_echo "$with_signal_module" >&6; }
10230
10231if test "${with_signal_module}" = "yes"; then
10232 USE_SIGNAL_MODULE=""
10233 SIGNAL_OBJS=""
10234else
10235 USE_SIGNAL_MODULE="#"
10236 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
10237fi
10238
10239# This is used to generate Setup.config
10240
10241USE_THREAD_MODULE=""
10242
10243
10244
10245# Templates for things AC_DEFINEd more than once.
10246# For a single AC_DEFINE, no template is needed.
10247
10248
10249
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
10251$as_echo_n "checking for --with-threads... " >&6; }
10252
10253# Check whether --with-threads was given.
10254if test "${with_threads+set}" = set; then :
10255 withval=$with_threads;
10256fi
10257
10258
10259# --with-thread is deprecated, but check for it anyway
10260
10261# Check whether --with-thread was given.
10262if test "${with_thread+set}" = set; then :
10263 withval=$with_thread; with_threads=$with_thread
10264fi
10265
10266
10267if test -z "$with_threads"
10268then with_threads="yes"
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
10271$as_echo "$with_threads" >&6; }
10272
10273
10274if test "$with_threads" = "no"
10275then
10276 USE_THREAD_MODULE="#"
10277elif test "$ac_cv_pthread_is_default" = yes
10278then
10279 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10280
10281 # Defining _REENTRANT on system with POSIX threads should not hurt.
10282 $as_echo "#define _REENTRANT 1" >>confdefs.h
10283
10284 posix_threads=yes
10285 THREADOBJ="Python/thread.o"
10286elif test "$ac_cv_kpthread" = "yes"
10287then
10288 CC="$CC -Kpthread"
10289 if test "$ac_cv_cxx_thread" = "yes"; then
10290 CXX="$CXX -Kpthread"
10291 fi
10292 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10293
10294 posix_threads=yes
10295 THREADOBJ="Python/thread.o"
10296elif test "$ac_cv_kthread" = "yes"
10297then
10298 CC="$CC -Kthread"
10299 if test "$ac_cv_cxx_thread" = "yes"; then
10300 CXX="$CXX -Kthread"
10301 fi
10302 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10303
10304 posix_threads=yes
10305 THREADOBJ="Python/thread.o"
10306elif test "$ac_cv_pthread" = "yes"
10307then
10308 CC="$CC -pthread"
10309 if test "$ac_cv_cxx_thread" = "yes"; then
10310 CXX="$CXX -pthread"
10311 fi
10312 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10313
10314 posix_threads=yes
10315 THREADOBJ="Python/thread.o"
10316else
10317 if test ! -z "$with_threads" -a -d "$with_threads"
10318 then LDFLAGS="$LDFLAGS -L$with_threads"
10319 fi
10320 if test ! -z "$withval" -a -d "$withval"
10321 then LDFLAGS="$LDFLAGS -L$withval"
10322 fi
10323
10324 # According to the POSIX spec, a pthreads implementation must
10325 # define _POSIX_THREADS in unistd.h. Some apparently don't
10326 # (e.g. gnu pth with pthread emulation)
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10328$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h. */
10331
10332#include <unistd.h>
10333#ifdef _POSIX_THREADS
10334yes
10335#endif
10336
10337_ACEOF
10338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10339 $EGREP "yes" >/dev/null 2>&1; then :
10340 unistd_defines_pthreads=yes
10341else
10342 unistd_defines_pthreads=no
10343fi
10344rm -f conftest*
10345
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10347$as_echo "$unistd_defines_pthreads" >&6; }
10348
10349 $as_echo "#define _REENTRANT 1" >>confdefs.h
10350
10351 # Just looking for pthread_create in libpthread is not enough:
10352 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10353 # So we really have to include pthread.h, and then link.
10354 _libs=$LIBS
10355 LIBS="$LIBS -lpthread"
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10357$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h. */
10360
10361#include <stdio.h>
10362#include <pthread.h>
10363
10364void * start_routine (void *arg) { exit (0); }
10365int
10366main ()
10367{
10368
10369pthread_create (NULL, NULL, start_routine, NULL)
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377$as_echo "yes" >&6; }
10378 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10379
10380 posix_threads=yes
10381 THREADOBJ="Python/thread.o"
10382else
10383
10384 LIBS=$_libs
10385 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
10386if test "x$ac_cv_func_pthread_detach" = xyes; then :
10387 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10388
10389 posix_threads=yes
10390 THREADOBJ="Python/thread.o"
10391else
10392
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10394$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
10395if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397else
10398 ac_check_lib_save_LIBS=$LIBS
10399LIBS="-lpthreads $LIBS"
10400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h. */
10402
10403/* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10406#ifdef __cplusplus
10407extern "C"
10408#endif
10409char pthread_create ();
10410int
10411main ()
10412{
10413return pthread_create ();
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418if ac_fn_c_try_link "$LINENO"; then :
10419 ac_cv_lib_pthreads_pthread_create=yes
10420else
10421 ac_cv_lib_pthreads_pthread_create=no
10422fi
10423rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425LIBS=$ac_check_lib_save_LIBS
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10428$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
10429if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
10430 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10431
10432 posix_threads=yes
10433 LIBS="$LIBS -lpthreads"
10434 THREADOBJ="Python/thread.o"
10435else
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10438$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
10439if ${ac_cv_lib_c_r_pthread_create+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441else
10442 ac_check_lib_save_LIBS=$LIBS
10443LIBS="-lc_r $LIBS"
10444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h. */
10446
10447/* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450#ifdef __cplusplus
10451extern "C"
10452#endif
10453char pthread_create ();
10454int
10455main ()
10456{
10457return pthread_create ();
10458 ;
10459 return 0;
10460}
10461_ACEOF
10462if ac_fn_c_try_link "$LINENO"; then :
10463 ac_cv_lib_c_r_pthread_create=yes
10464else
10465 ac_cv_lib_c_r_pthread_create=no
10466fi
10467rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469LIBS=$ac_check_lib_save_LIBS
10470fi
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10472$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
10473if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
10474 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10475
10476 posix_threads=yes
10477 LIBS="$LIBS -lc_r"
10478 THREADOBJ="Python/thread.o"
10479else
10480
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10482$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
10483if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485else
10486 ac_check_lib_save_LIBS=$LIBS
10487LIBS="-lpthread $LIBS"
10488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h. */
10490
10491/* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
10494#ifdef __cplusplus
10495extern "C"
10496#endif
10497char __pthread_create_system ();
10498int
10499main ()
10500{
10501return __pthread_create_system ();
10502 ;
10503 return 0;
10504}
10505_ACEOF
10506if ac_fn_c_try_link "$LINENO"; then :
10507 ac_cv_lib_pthread___pthread_create_system=yes
10508else
10509 ac_cv_lib_pthread___pthread_create_system=no
10510fi
10511rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513LIBS=$ac_check_lib_save_LIBS
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10516$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
10517if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
10518 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10519
10520 posix_threads=yes
10521 LIBS="$LIBS -lpthread"
10522 THREADOBJ="Python/thread.o"
10523else
10524
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10526$as_echo_n "checking for pthread_create in -lcma... " >&6; }
10527if ${ac_cv_lib_cma_pthread_create+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529else
10530 ac_check_lib_save_LIBS=$LIBS
10531LIBS="-lcma $LIBS"
10532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h. */
10534
10535/* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10538#ifdef __cplusplus
10539extern "C"
10540#endif
10541char pthread_create ();
10542int
10543main ()
10544{
10545return pthread_create ();
10546 ;
10547 return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551 ac_cv_lib_cma_pthread_create=yes
10552else
10553 ac_cv_lib_cma_pthread_create=no
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557LIBS=$ac_check_lib_save_LIBS
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10560$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
10561if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
10562 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10563
10564 posix_threads=yes
10565 LIBS="$LIBS -lcma"
10566 THREADOBJ="Python/thread.o"
10567else
10568
10569 USE_THREAD_MODULE="#"
10570fi
10571
10572
10573fi
10574
10575fi
10576
10577fi
10578
10579fi
10580
10581fi
10582rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10586$as_echo_n "checking for usconfig in -lmpc... " >&6; }
10587if ${ac_cv_lib_mpc_usconfig+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589else
10590 ac_check_lib_save_LIBS=$LIBS
10591LIBS="-lmpc $LIBS"
10592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h. */
10594
10595/* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
10601char usconfig ();
10602int
10603main ()
10604{
10605return usconfig ();
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_lib_mpc_usconfig=yes
10612else
10613 ac_cv_lib_mpc_usconfig=no
10614fi
10615rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617LIBS=$ac_check_lib_save_LIBS
10618fi
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10620$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
10621if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
10622 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10623
10624 LIBS="$LIBS -lmpc"
10625 THREADOBJ="Python/thread.o"
10626 USE_THREAD_MODULE=""
10627fi
10628
10629
10630 if test "$posix_threads" != "yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
10632$as_echo_n "checking for thr_create in -lthread... " >&6; }
10633if ${ac_cv_lib_thread_thr_create+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635else
10636 ac_check_lib_save_LIBS=$LIBS
10637LIBS="-lthread $LIBS"
10638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h. */
10640
10641/* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10644#ifdef __cplusplus
10645extern "C"
10646#endif
10647char thr_create ();
10648int
10649main ()
10650{
10651return thr_create ();
10652 ;
10653 return 0;
10654}
10655_ACEOF
10656if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_lib_thread_thr_create=yes
10658else
10659 ac_cv_lib_thread_thr_create=no
10660fi
10661rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663LIBS=$ac_check_lib_save_LIBS
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
10666$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
10667if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
10668 $as_echo "#define WITH_THREAD 1" >>confdefs.h
10669
10670 LIBS="$LIBS -lthread"
10671 THREADOBJ="Python/thread.o"
10672 USE_THREAD_MODULE=""
10673fi
10674
10675 fi
10676fi
10677
10678if test "$posix_threads" = "yes"; then
10679 if test "$unistd_defines_pthreads" = "no"; then
10680
10681$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
10682
10683 fi
10684
10685 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10686 case $ac_sys_system/$ac_sys_release in
10687 SunOS/5.6)
10688$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
10689
10690 ;;
10691 SunOS/5.8)
10692$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10693
10694 ;;
10695 AIX/*)
10696$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
10697
10698 ;;
10699 esac
10700
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10702$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
10703 if ${ac_cv_pthread_system_supported+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705else
10706 if test "$cross_compiling" = yes; then :
10707 ac_cv_pthread_system_supported=no
10708else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710/* end confdefs.h. */
10711
10712 #include <stdio.h>
10713 #include <pthread.h>
10714 void *foo(void *parm) {
10715 return NULL;
10716 }
10717 main() {
10718 pthread_attr_t attr;
10719 pthread_t id;
10720 if (pthread_attr_init(&attr)) exit(-1);
10721 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10722 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10723 exit(0);
10724 }
10725_ACEOF
10726if ac_fn_c_try_run "$LINENO"; then :
10727 ac_cv_pthread_system_supported=yes
10728else
10729 ac_cv_pthread_system_supported=no
10730fi
10731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10732 conftest.$ac_objext conftest.beam conftest.$ac_ext
10733fi
10734
10735
10736fi
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10739$as_echo "$ac_cv_pthread_system_supported" >&6; }
10740 if test "$ac_cv_pthread_system_supported" = "yes"; then
10741
10742$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
10743
10744 fi
10745 for ac_func in pthread_sigmask
10746do :
10747 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
10748if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
10749 cat >>confdefs.h <<_ACEOF
10750#define HAVE_PTHREAD_SIGMASK 1
10751_ACEOF
10752 case $ac_sys_system in
10753 CYGWIN*)
10754
10755$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
10756
10757 ;;
10758 esac
10759fi
10760done
10761
10762 for ac_func in pthread_atfork
10763do :
10764 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10765if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10766 cat >>confdefs.h <<_ACEOF
10767#define HAVE_PTHREAD_ATFORK 1
10768_ACEOF
10769
10770fi
10771done
10772
10773fi
10774
10775
10776# Check for enable-ipv6
10777
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10779$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10780# Check whether --enable-ipv6 was given.
10781if test "${enable_ipv6+set}" = set; then :
10782 enableval=$enable_ipv6; case "$enableval" in
10783 no)
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785$as_echo "no" >&6; }
10786 ipv6=no
10787 ;;
10788 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789$as_echo "yes" >&6; }
10790 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10791
10792 ipv6=yes
10793 ;;
10794 esac
10795else
10796
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h. */
10799 /* AF_INET6 available check */
10800#include <sys/types.h>
10801#include <sys/socket.h>
10802int
10803main ()
10804{
10805int domain = AF_INET6;
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_compile "$LINENO"; then :
10811
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813$as_echo "yes" >&6; }
10814 ipv6=yes
10815
10816else
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819$as_echo "no" >&6; }
10820 ipv6=no
10821
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824
10825if test "$ipv6" = "yes"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10827$as_echo_n "checking if RFC2553 API is available... " >&6; }
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829/* end confdefs.h. */
10830
10831 #include <sys/types.h>
10832#include <netinet/in.h>
10833int
10834main ()
10835{
10836struct sockaddr_in6 x;
10837 x.sin6_scope_id;
10838 ;
10839 return 0;
10840}
10841
10842_ACEOF
10843if ac_fn_c_try_compile "$LINENO"; then :
10844
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10846$as_echo "yes" >&6; }
10847 ipv6=yes
10848
10849else
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
10853 ipv6=no
10854
10855fi
10856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857fi
10858
10859if test "$ipv6" = "yes"; then
10860 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
10861
10862fi
10863
10864fi
10865
10866
10867ipv6type=unknown
10868ipv6lib=none
10869ipv6trylibc=no
10870
10871if test "$ipv6" = "yes"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10873$as_echo_n "checking ipv6 stack type... " >&6; }
10874 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10875 do
10876 case $i in
10877 inria)
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h. */
10880
10881#include <netinet/in.h>
10882#ifdef IPV6_INRIA_VERSION
10883yes
10884#endif
10885_ACEOF
10886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10887 $EGREP "yes" >/dev/null 2>&1; then :
10888 ipv6type=$i
10889fi
10890rm -f conftest*
10891
10892 ;;
10893 kame)
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h. */
10896
10897#include <netinet/in.h>
10898#ifdef __KAME__
10899yes
10900#endif
10901_ACEOF
10902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10903 $EGREP "yes" >/dev/null 2>&1; then :
10904 ipv6type=$i;
10905 ipv6lib=inet6
10906 ipv6libdir=/usr/local/v6/lib
10907 ipv6trylibc=yes
10908fi
10909rm -f conftest*
10910
10911 ;;
10912 linux-glibc)
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914/* end confdefs.h. */
10915
10916#include <features.h>
10917#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
10918yes
10919#endif
10920_ACEOF
10921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10922 $EGREP "yes" >/dev/null 2>&1; then :
10923 ipv6type=$i;
10924 ipv6trylibc=yes
10925fi
10926rm -f conftest*
10927
10928 ;;
10929 linux-inet6)
10930 if test -d /usr/inet6; then
10931 ipv6type=$i
10932 ipv6lib=inet6
10933 ipv6libdir=/usr/inet6/lib
10934 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
10935 fi
10936 ;;
10937 solaris)
10938 if test -f /etc/netconfig; then
10939 if $GREP -q tcp6 /etc/netconfig; then
10940 ipv6type=$i
10941 ipv6trylibc=yes
10942 fi
10943 fi
10944 ;;
10945 toshiba)
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h. */
10948
10949#include <sys/param.h>
10950#ifdef _TOSHIBA_INET6
10951yes
10952#endif
10953_ACEOF
10954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10955 $EGREP "yes" >/dev/null 2>&1; then :
10956 ipv6type=$i;
10957 ipv6lib=inet6;
10958 ipv6libdir=/usr/local/v6/lib
10959fi
10960rm -f conftest*
10961
10962 ;;
10963 v6d)
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965/* end confdefs.h. */
10966
10967#include </usr/local/v6/include/sys/v6config.h>
10968#ifdef __V6D__
10969yes
10970#endif
10971_ACEOF
10972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10973 $EGREP "yes" >/dev/null 2>&1; then :
10974 ipv6type=$i;
10975 ipv6lib=v6;
10976 ipv6libdir=/usr/local/v6/lib;
10977 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
10978fi
10979rm -f conftest*
10980
10981 ;;
10982 zeta)
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h. */
10985
10986#include <sys/param.h>
10987#ifdef _ZETA_MINAMI_INET6
10988yes
10989#endif
10990_ACEOF
10991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10992 $EGREP "yes" >/dev/null 2>&1; then :
10993 ipv6type=$i;
10994 ipv6lib=inet6;
10995 ipv6libdir=/usr/local/v6/lib
10996fi
10997rm -f conftest*
10998
10999 ;;
11000 esac
11001 if test "$ipv6type" != "unknown"; then
11002 break
11003 fi
11004 done
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11006$as_echo "$ipv6type" >&6; }
11007fi
11008
11009if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11010 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11011 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11012 echo "using lib$ipv6lib"
11013 else
11014 if test $ipv6trylibc = "yes"; then
11015 echo "using libc"
11016 else
11017 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11018 echo "You need to fetch lib$ipv6lib.a from appropriate"
11019 echo 'ipv6 kit and compile beforehand.'
11020 exit 1
11021 fi
11022 fi
11023fi
11024
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11026$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028/* end confdefs.h. */
11029 /* CAN_RAW_FD_FRAMES available check */
11030#include <linux/can/raw.h>
11031int
11032main ()
11033{
11034int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11035 ;
11036 return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_compile "$LINENO"; then :
11040
11041
11042$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11043
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045$as_echo "yes" >&6; }
11046
11047else
11048
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
11051
11052fi
11053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
11056$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058/* end confdefs.h. */
11059
11060 #include <Carbon/Carbon.h>
11061int
11062main ()
11063{
11064FSIORefNum fRef = 0
11065 ;
11066 return 0;
11067}
11068
11069_ACEOF
11070if ac_fn_c_try_compile "$LINENO"; then :
11071
11072
11073$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076$as_echo "yes" >&6; }
11077
11078else
11079
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
11082
11083fi
11084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085
11086# Check for --with-doc-strings
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11088$as_echo_n "checking for --with-doc-strings... " >&6; }
11089
11090# Check whether --with-doc-strings was given.
11091if test "${with_doc_strings+set}" = set; then :
11092 withval=$with_doc_strings;
11093fi
11094
11095
11096if test -z "$with_doc_strings"
11097then with_doc_strings="yes"
11098fi
11099if test "$with_doc_strings" != "no"
11100then
11101
11102$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
11103
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11106$as_echo "$with_doc_strings" >&6; }
11107
11108# Check if eval loop should use timestamp counter profiling
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
11110$as_echo_n "checking for --with-tsc... " >&6; }
11111
11112# Check whether --with-tsc was given.
11113if test "${with_tsc+set}" = set; then :
11114 withval=$with_tsc;
11115if test "$withval" != no
11116then
11117
11118$as_echo "#define WITH_TSC 1" >>confdefs.h
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121$as_echo "yes" >&6; }
11122else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
11124fi
11125else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127$as_echo "no" >&6; }
11128fi
11129
11130
11131# Check for Python-specific malloc support
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11133$as_echo_n "checking for --with-pymalloc... " >&6; }
11134
11135# Check whether --with-pymalloc was given.
11136if test "${with_pymalloc+set}" = set; then :
11137 withval=$with_pymalloc;
11138fi
11139
11140
11141if test -z "$with_pymalloc"
11142then
11143 with_pymalloc="yes"
11144fi
11145if test "$with_pymalloc" != "no"
11146then
11147
11148$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
11149
11150 ABIFLAGS="${ABIFLAGS}m"
11151fi
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11153$as_echo "$with_pymalloc" >&6; }
11154
11155# Check for Valgrind support
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11157$as_echo_n "checking for --with-valgrind... " >&6; }
11158
11159# Check whether --with-valgrind was given.
11160if test "${with_valgrind+set}" = set; then :
11161 withval=$with_valgrind;
11162else
11163 with_valgrind=no
11164fi
11165
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11167$as_echo "$with_valgrind" >&6; }
11168if test "$with_valgrind" != no; then
11169 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11170if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
11171
11172$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
11173
11174else
11175 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
11176
11177fi
11178
11179
11180 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
11181fi
11182
11183# -I${DLINCLDIR} is added to the compile rule for importdl.o
11184
11185DLINCLDIR=.
11186
11187# the dlopen() function means we might want to use dynload_shlib.o. some
11188# platforms, such as AIX, have dlopen(), but don't want to use it.
11189for ac_func in dlopen
11190do :
11191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11192if test "x$ac_cv_func_dlopen" = xyes; then :
11193 cat >>confdefs.h <<_ACEOF
11194#define HAVE_DLOPEN 1
11195_ACEOF
11196
11197fi
11198done
11199
11200
11201# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11202# loading of modules.
11203
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11205$as_echo_n "checking DYNLOADFILE... " >&6; }
11206if test -z "$DYNLOADFILE"
11207then
11208 case $ac_sys_system/$ac_sys_release in
11209 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
11210 if test "$ac_cv_func_dlopen" = yes
11211 then DYNLOADFILE="dynload_shlib.o"
11212 else DYNLOADFILE="dynload_aix.o"
11213 fi
11214 ;;
11215 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
11216 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
11217 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
11218 *)
11219 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11220 # out any dynamic loading
11221 if test "$ac_cv_func_dlopen" = yes
11222 then DYNLOADFILE="dynload_shlib.o"
11223 else DYNLOADFILE="dynload_stub.o"
11224 fi
11225 ;;
11226 esac
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11229$as_echo "$DYNLOADFILE" >&6; }
11230if test "$DYNLOADFILE" != "dynload_stub.o"
11231then
11232
11233$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
11234
11235fi
11236
11237# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11238
11239
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11241$as_echo_n "checking MACHDEP_OBJS... " >&6; }
11242if test -z "$MACHDEP_OBJS"
11243then
11244 MACHDEP_OBJS=$extra_machdep_objs
11245else
11246 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
11247fi
11248if test -z "$MACHDEP_OBJS"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11250$as_echo "none" >&6; }
11251else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11253$as_echo "$MACHDEP_OBJS" >&6; }
11254fi
11255
11256# checks for library functions
11257for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
11258 clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
11259 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
11260 futimens futimes gai_strerror getentropy \
11261 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
11262 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
11263 if_nameindex \
11264 initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
11265 memrchr mbrtowc mkdirat mkfifo \
11266 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
11267 posix_fallocate posix_fadvise pread \
11268 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \
11269 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
11270 setgid sethostname \
11271 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
11272 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11273 sched_rr_get_interval \
11274 sigaction sigaltstack siginterrupt sigpending sigrelse \
11275 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
11276 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
11277 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
11278 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
11279do :
11280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11283 cat >>confdefs.h <<_ACEOF
11284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285_ACEOF
11286
11287fi
11288done
11289
11290
11291ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11292 #include <dirent.h>
11293"
11294if test "x$ac_cv_have_decl_dirfd" = xyes; then :
11295
11296$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
11297
11298fi
11299
11300
11301# For some functions, having a definition is not sufficient, since
11302# we want to take their address.
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11304$as_echo_n "checking for chroot... " >&6; }
11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307#include <unistd.h>
11308int
11309main ()
11310{
11311void *x=chroot
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316if ac_fn_c_try_compile "$LINENO"; then :
11317
11318$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
11319
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11321$as_echo "yes" >&6; }
11322else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
11325
11326fi
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11329$as_echo_n "checking for link... " >&6; }
11330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331/* end confdefs.h. */
11332#include <unistd.h>
11333int
11334main ()
11335{
11336void *x=link
11337 ;
11338 return 0;
11339}
11340_ACEOF
11341if ac_fn_c_try_compile "$LINENO"; then :
11342
11343$as_echo "#define HAVE_LINK 1" >>confdefs.h
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346$as_echo "yes" >&6; }
11347else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349$as_echo "no" >&6; }
11350
11351fi
11352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11354$as_echo_n "checking for symlink... " >&6; }
11355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356/* end confdefs.h. */
11357#include <unistd.h>
11358int
11359main ()
11360{
11361void *x=symlink
11362 ;
11363 return 0;
11364}
11365_ACEOF
11366if ac_fn_c_try_compile "$LINENO"; then :
11367
11368$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371$as_echo "yes" >&6; }
11372else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374$as_echo "no" >&6; }
11375
11376fi
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11379$as_echo_n "checking for fchdir... " >&6; }
11380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h. */
11382#include <unistd.h>
11383int
11384main ()
11385{
11386void *x=fchdir
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_compile "$LINENO"; then :
11392
11393$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11396$as_echo "yes" >&6; }
11397else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399$as_echo "no" >&6; }
11400
11401fi
11402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11404$as_echo_n "checking for fsync... " >&6; }
11405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406/* end confdefs.h. */
11407#include <unistd.h>
11408int
11409main ()
11410{
11411void *x=fsync
11412 ;
11413 return 0;
11414}
11415_ACEOF
11416if ac_fn_c_try_compile "$LINENO"; then :
11417
11418$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421$as_echo "yes" >&6; }
11422else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424$as_echo "no" >&6; }
11425
11426fi
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11429$as_echo_n "checking for fdatasync... " >&6; }
11430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h. */
11432#include <unistd.h>
11433int
11434main ()
11435{
11436void *x=fdatasync
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_compile "$LINENO"; then :
11442
11443$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11446$as_echo "yes" >&6; }
11447else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449$as_echo "no" >&6; }
11450
11451fi
11452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11454$as_echo_n "checking for epoll... " >&6; }
11455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456/* end confdefs.h. */
11457#include <sys/epoll.h>
11458int
11459main ()
11460{
11461void *x=epoll_create
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466if ac_fn_c_try_compile "$LINENO"; then :
11467
11468$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
11469
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11471$as_echo "yes" >&6; }
11472else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
11475
11476fi
11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11479$as_echo_n "checking for epoll_create1... " >&6; }
11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h. */
11482#include <sys/epoll.h>
11483int
11484main ()
11485{
11486void *x=epoll_create1
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_compile "$LINENO"; then :
11492
11493$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
11494
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11496$as_echo "yes" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500
11501fi
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11504$as_echo_n "checking for kqueue... " >&6; }
11505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506/* end confdefs.h. */
11507
11508#include <sys/types.h>
11509#include <sys/event.h>
11510
11511int
11512main ()
11513{
11514int x=kqueue()
11515 ;
11516 return 0;
11517}
11518_ACEOF
11519if ac_fn_c_try_compile "$LINENO"; then :
11520
11521$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524$as_echo "yes" >&6; }
11525else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
11528
11529fi
11530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11532$as_echo_n "checking for prlimit... " >&6; }
11533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536#include <sys/time.h>
11537#include <sys/resource.h>
11538
11539int
11540main ()
11541{
11542void *x=prlimit
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_compile "$LINENO"; then :
11548
11549$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552$as_echo "yes" >&6; }
11553else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
11556
11557fi
11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559
11560# On some systems (eg. FreeBSD 5), we would find a definition of the
11561# functions ctermid_r, setgroups in the library, but no prototype
11562# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
11563# address to avoid compiler warnings and potential miscompilations
11564# because of the missing prototypes.
11565
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11567$as_echo_n "checking for ctermid_r... " >&6; }
11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h. */
11570
11571#include <stdio.h>
11572
11573int
11574main ()
11575{
11576void* p = ctermid_r
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581if ac_fn_c_try_compile "$LINENO"; then :
11582
11583$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586$as_echo "yes" >&6; }
11587else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590
11591fi
11592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11595$as_echo_n "checking for flock declaration... " >&6; }
11596if ${ac_cv_flock_decl+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598else
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h. */
11601#include <sys/file.h>
11602int
11603main ()
11604{
11605void* p = flock
11606
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611if ac_fn_c_try_compile "$LINENO"; then :
11612 ac_cv_flock_decl=yes
11613else
11614 ac_cv_flock_decl=no
11615
11616fi
11617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11621$as_echo "$ac_cv_flock_decl" >&6; }
11622if test "x${ac_cv_flock_decl}" = xyes; then
11623 for ac_func in flock
11624do :
11625 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
11626if test "x$ac_cv_func_flock" = xyes; then :
11627 cat >>confdefs.h <<_ACEOF
11628#define HAVE_FLOCK 1
11629_ACEOF
11630
11631else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
11633$as_echo_n "checking for flock in -lbsd... " >&6; }
11634if ${ac_cv_lib_bsd_flock+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636else
11637 ac_check_lib_save_LIBS=$LIBS
11638LIBS="-lbsd $LIBS"
11639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640/* end confdefs.h. */
11641
11642/* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645#ifdef __cplusplus
11646extern "C"
11647#endif
11648char flock ();
11649int
11650main ()
11651{
11652return flock ();
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657if ac_fn_c_try_link "$LINENO"; then :
11658 ac_cv_lib_bsd_flock=yes
11659else
11660 ac_cv_lib_bsd_flock=no
11661fi
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664LIBS=$ac_check_lib_save_LIBS
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11667$as_echo "$ac_cv_lib_bsd_flock" >&6; }
11668if test "x$ac_cv_lib_bsd_flock" = xyes; then :
11669 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
11670
11671
11672$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
11673
11674
11675fi
11676
11677
11678fi
11679done
11680
11681fi
11682
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11684$as_echo_n "checking for getpagesize... " >&6; }
11685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686/* end confdefs.h. */
11687
11688#include <unistd.h>
11689
11690int
11691main ()
11692{
11693void* p = getpagesize
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698if ac_fn_c_try_compile "$LINENO"; then :
11699
11700$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703$as_echo "yes" >&6; }
11704else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
11707
11708fi
11709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
11712$as_echo_n "checking for broken unsetenv... " >&6; }
11713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714/* end confdefs.h. */
11715
11716#include <stdlib.h>
11717
11718int
11719main ()
11720{
11721int res = unsetenv("DUMMY")
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_compile "$LINENO"; then :
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
11729else
11730
11731$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734$as_echo "yes" >&6; }
11735
11736fi
11737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738
11739for ac_prog in true
11740do
11741 # Extract the first word of "$ac_prog", so it can be a program name with args.
11742set dummy $ac_prog; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_TRUE+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747else
11748 if test -n "$TRUE"; then
11749 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_TRUE="$ac_prog"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762done
11763 done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768TRUE=$ac_cv_prog_TRUE
11769if test -n "$TRUE"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11771$as_echo "$TRUE" >&6; }
11772else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778 test -n "$TRUE" && break
11779done
11780test -n "$TRUE" || TRUE="/bin/true"
11781
11782
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11784$as_echo_n "checking for inet_aton in -lc... " >&6; }
11785if ${ac_cv_lib_c_inet_aton+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787else
11788 ac_check_lib_save_LIBS=$LIBS
11789LIBS="-lc $LIBS"
11790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h. */
11792
11793/* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799char inet_aton ();
11800int
11801main ()
11802{
11803return inet_aton ();
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808if ac_fn_c_try_link "$LINENO"; then :
11809 ac_cv_lib_c_inet_aton=yes
11810else
11811 ac_cv_lib_c_inet_aton=no
11812fi
11813rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815LIBS=$ac_check_lib_save_LIBS
11816fi
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11818$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
11819if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
11820 $ac_cv_prog_TRUE
11821else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
11823$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
11824if ${ac_cv_lib_resolv_inet_aton+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826else
11827 ac_check_lib_save_LIBS=$LIBS
11828LIBS="-lresolv $LIBS"
11829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h. */
11831
11832/* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11835#ifdef __cplusplus
11836extern "C"
11837#endif
11838char inet_aton ();
11839int
11840main ()
11841{
11842return inet_aton ();
11843 ;
11844 return 0;
11845}
11846_ACEOF
11847if ac_fn_c_try_link "$LINENO"; then :
11848 ac_cv_lib_resolv_inet_aton=yes
11849else
11850 ac_cv_lib_resolv_inet_aton=no
11851fi
11852rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854LIBS=$ac_check_lib_save_LIBS
11855fi
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
11857$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
11858if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
11859 cat >>confdefs.h <<_ACEOF
11860#define HAVE_LIBRESOLV 1
11861_ACEOF
11862
11863 LIBS="-lresolv $LIBS"
11864
11865fi
11866
11867
11868fi
11869
11870
11871# On Tru64, chflags seems to be present, but calling it will
11872# exit Python
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
11874$as_echo_n "checking for chflags... " >&6; }
11875if ${ac_cv_have_chflags+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877else
11878 if test "$cross_compiling" = yes; then :
11879 ac_cv_have_chflags=cross
11880else
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h. */
11883
11884#include <sys/stat.h>
11885#include <unistd.h>
11886int main(int argc, char*argv[])
11887{
11888 if(chflags(argv[0], 0) != 0)
11889 return 1;
11890 return 0;
11891}
11892
11893_ACEOF
11894if ac_fn_c_try_run "$LINENO"; then :
11895 ac_cv_have_chflags=yes
11896else
11897 ac_cv_have_chflags=no
11898fi
11899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11900 conftest.$ac_objext conftest.beam conftest.$ac_ext
11901fi
11902
11903
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
11906$as_echo "$ac_cv_have_chflags" >&6; }
11907if test "$ac_cv_have_chflags" = cross ; then
11908 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
11909if test "x$ac_cv_func_chflags" = xyes; then :
11910 ac_cv_have_chflags="yes"
11911else
11912 ac_cv_have_chflags="no"
11913fi
11914
11915fi
11916if test "$ac_cv_have_chflags" = yes ; then
11917
11918$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
11919
11920fi
11921
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
11923$as_echo_n "checking for lchflags... " >&6; }
11924if ${ac_cv_have_lchflags+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926else
11927 if test "$cross_compiling" = yes; then :
11928 ac_cv_have_lchflags=cross
11929else
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h. */
11932
11933#include <sys/stat.h>
11934#include <unistd.h>
11935int main(int argc, char*argv[])
11936{
11937 if(lchflags(argv[0], 0) != 0)
11938 return 1;
11939 return 0;
11940}
11941
11942_ACEOF
11943if ac_fn_c_try_run "$LINENO"; then :
11944 ac_cv_have_lchflags=yes
11945else
11946 ac_cv_have_lchflags=no
11947fi
11948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11949 conftest.$ac_objext conftest.beam conftest.$ac_ext
11950fi
11951
11952
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
11955$as_echo "$ac_cv_have_lchflags" >&6; }
11956if test "$ac_cv_have_lchflags" = cross ; then
11957 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
11958if test "x$ac_cv_func_lchflags" = xyes; then :
11959 ac_cv_have_lchflags="yes"
11960else
11961 ac_cv_have_lchflags="no"
11962fi
11963
11964fi
11965if test "$ac_cv_have_lchflags" = yes ; then
11966
11967$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
11968
11969fi
11970
11971case $ac_sys_system/$ac_sys_release in
11972Darwin/*)
11973 _CUR_CFLAGS="${CFLAGS}"
11974 _CUR_LDFLAGS="${LDFLAGS}"
11975 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
11976 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
11977 ;;
11978esac
11979
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
11981$as_echo_n "checking for inflateCopy in -lz... " >&6; }
11982if ${ac_cv_lib_z_inflateCopy+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984else
11985 ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lz $LIBS"
11987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h. */
11989
11990/* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
11993#ifdef __cplusplus
11994extern "C"
11995#endif
11996char inflateCopy ();
11997int
11998main ()
11999{
12000return inflateCopy ();
12001 ;
12002 return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_link "$LINENO"; then :
12006 ac_cv_lib_z_inflateCopy=yes
12007else
12008 ac_cv_lib_z_inflateCopy=no
12009fi
12010rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012LIBS=$ac_check_lib_save_LIBS
12013fi
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12015$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
12016if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
12017
12018$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
12019
12020fi
12021
12022
12023case $ac_sys_system/$ac_sys_release in
12024Darwin/*)
12025 CFLAGS="${_CUR_CFLAGS}"
12026 LDFLAGS="${_CUR_LDFLAGS}"
12027 ;;
12028esac
12029
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12031$as_echo_n "checking for hstrerror... " >&6; }
12032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h. */
12034
12035#include <netdb.h>
12036
12037int
12038main ()
12039{
12040void* p = hstrerror; hstrerror(0)
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046
12047$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12050$as_echo "yes" >&6; }
12051else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
12054
12055fi
12056rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12060$as_echo_n "checking for inet_aton... " >&6; }
12061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062/* end confdefs.h. */
12063
12064#include <sys/types.h>
12065#include <sys/socket.h>
12066#include <netinet/in.h>
12067#include <arpa/inet.h>
12068
12069int
12070main ()
12071{
12072void* p = inet_aton;inet_aton(0,0)
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077if ac_fn_c_try_link "$LINENO"; then :
12078
12079$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12082$as_echo "yes" >&6; }
12083else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
12086
12087fi
12088rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12092$as_echo_n "checking for inet_pton... " >&6; }
12093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h. */
12095
12096#include <sys/types.h>
12097#include <sys/socket.h>
12098#include <netinet/in.h>
12099#include <arpa/inet.h>
12100
12101int
12102main ()
12103{
12104void* p = inet_pton
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_compile "$LINENO"; then :
12110
12111$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12114$as_echo "yes" >&6; }
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118
12119fi
12120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121
12122# On some systems, setgroups is in unistd.h, on others, in grp.h
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12124$as_echo_n "checking for setgroups... " >&6; }
12125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h. */
12127
12128#include <unistd.h>
12129#ifdef HAVE_GRP_H
12130#include <grp.h>
12131#endif
12132
12133int
12134main ()
12135{
12136void* p = setgroups
12137 ;
12138 return 0;
12139}
12140_ACEOF
12141if ac_fn_c_try_compile "$LINENO"; then :
12142
12143$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
12144
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146$as_echo "yes" >&6; }
12147else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
12150
12151fi
12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153
12154# check for openpty and forkpty
12155
12156for ac_func in openpty
12157do :
12158 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
12159if test "x$ac_cv_func_openpty" = xyes; then :
12160 cat >>confdefs.h <<_ACEOF
12161#define HAVE_OPENPTY 1
12162_ACEOF
12163
12164else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12166$as_echo_n "checking for openpty in -lutil... " >&6; }
12167if ${ac_cv_lib_util_openpty+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169else
12170 ac_check_lib_save_LIBS=$LIBS
12171LIBS="-lutil $LIBS"
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h. */
12174
12175/* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char openpty ();
12182int
12183main ()
12184{
12185return openpty ();
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_util_openpty=yes
12192else
12193 ac_cv_lib_util_openpty=no
12194fi
12195rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197LIBS=$ac_check_lib_save_LIBS
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12200$as_echo "$ac_cv_lib_util_openpty" >&6; }
12201if test "x$ac_cv_lib_util_openpty" = xyes; then :
12202 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12203 LIBS="$LIBS -lutil"
12204else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12206$as_echo_n "checking for openpty in -lbsd... " >&6; }
12207if ${ac_cv_lib_bsd_openpty+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209else
12210 ac_check_lib_save_LIBS=$LIBS
12211LIBS="-lbsd $LIBS"
12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h. */
12214
12215/* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221char openpty ();
12222int
12223main ()
12224{
12225return openpty ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_bsd_openpty=yes
12232else
12233 ac_cv_lib_bsd_openpty=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12240$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
12241if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
12242 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12243 LIBS="$LIBS -lbsd"
12244fi
12245
12246
12247fi
12248
12249
12250fi
12251done
12252
12253for ac_func in forkpty
12254do :
12255 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
12256if test "x$ac_cv_func_forkpty" = xyes; then :
12257 cat >>confdefs.h <<_ACEOF
12258#define HAVE_FORKPTY 1
12259_ACEOF
12260
12261else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12263$as_echo_n "checking for forkpty in -lutil... " >&6; }
12264if ${ac_cv_lib_util_forkpty+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266else
12267 ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lutil $LIBS"
12269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h. */
12271
12272/* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275#ifdef __cplusplus
12276extern "C"
12277#endif
12278char forkpty ();
12279int
12280main ()
12281{
12282return forkpty ();
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_lib_util_forkpty=yes
12289else
12290 ac_cv_lib_util_forkpty=no
12291fi
12292rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294LIBS=$ac_check_lib_save_LIBS
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12297$as_echo "$ac_cv_lib_util_forkpty" >&6; }
12298if test "x$ac_cv_lib_util_forkpty" = xyes; then :
12299 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
12300 LIBS="$LIBS -lutil"
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12303$as_echo_n "checking for forkpty in -lbsd... " >&6; }
12304if ${ac_cv_lib_bsd_forkpty+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 ac_check_lib_save_LIBS=$LIBS
12308LIBS="-lbsd $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h. */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315#ifdef __cplusplus
12316extern "C"
12317#endif
12318char forkpty ();
12319int
12320main ()
12321{
12322return forkpty ();
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_bsd_forkpty=yes
12329else
12330 ac_cv_lib_bsd_forkpty=no
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334LIBS=$ac_check_lib_save_LIBS
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12337$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
12338if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
12339 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
12340 LIBS="$LIBS -lbsd"
12341fi
12342
12343
12344fi
12345
12346
12347fi
12348done
12349
12350
12351# Stuff for expat.
12352for ac_func in memmove
12353do :
12354 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
12355if test "x$ac_cv_func_memmove" = xyes; then :
12356 cat >>confdefs.h <<_ACEOF
12357#define HAVE_MEMMOVE 1
12358_ACEOF
12359
12360fi
12361done
12362
12363
12364# check for long file support functions
12365for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12366do :
12367 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12369if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12370 cat >>confdefs.h <<_ACEOF
12371#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12372_ACEOF
12373
12374fi
12375done
12376
12377
12378ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
12379if test "x$ac_cv_func_dup2" = xyes; then :
12380 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12381
12382else
12383 case " $LIBOBJS " in
12384 *" dup2.$ac_objext "* ) ;;
12385 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
12386 ;;
12387esac
12388
12389fi
12390
12391ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12392if test "x$ac_cv_func_strdup" = xyes; then :
12393 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12394
12395else
12396 case " $LIBOBJS " in
12397 *" strdup.$ac_objext "* ) ;;
12398 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12399 ;;
12400esac
12401
12402fi
12403
12404
12405for ac_func in getpgrp
12406do :
12407 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
12408if test "x$ac_cv_func_getpgrp" = xyes; then :
12409 cat >>confdefs.h <<_ACEOF
12410#define HAVE_GETPGRP 1
12411_ACEOF
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h. */
12414#include <unistd.h>
12415int
12416main ()
12417{
12418getpgrp(0);
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_compile "$LINENO"; then :
12424
12425$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
12426
12427fi
12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429
12430fi
12431done
12432
12433for ac_func in setpgrp
12434do :
12435 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12436if test "x$ac_cv_func_setpgrp" = xyes; then :
12437 cat >>confdefs.h <<_ACEOF
12438#define HAVE_SETPGRP 1
12439_ACEOF
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h. */
12442#include <unistd.h>
12443int
12444main ()
12445{
12446setpgrp(0,0);
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451if ac_fn_c_try_compile "$LINENO"; then :
12452
12453$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
12454
12455fi
12456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457
12458fi
12459done
12460
12461for ac_func in gettimeofday
12462do :
12463 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12464if test "x$ac_cv_func_gettimeofday" = xyes; then :
12465 cat >>confdefs.h <<_ACEOF
12466#define HAVE_GETTIMEOFDAY 1
12467_ACEOF
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h. */
12470#include <sys/time.h>
12471int
12472main ()
12473{
12474gettimeofday((struct timeval*)0,(struct timezone*)0);
12475 ;
12476 return 0;
12477}
12478_ACEOF
12479if ac_fn_c_try_compile "$LINENO"; then :
12480
12481else
12482
12483$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
12484
12485
12486fi
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488
12489fi
12490done
12491
12492
12493for ac_func in clock_gettime
12494do :
12495 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12496if test "x$ac_cv_func_clock_gettime" = xyes; then :
12497 cat >>confdefs.h <<_ACEOF
12498#define HAVE_CLOCK_GETTIME 1
12499_ACEOF
12500
12501else
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12504$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12505if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12506 $as_echo_n "(cached) " >&6
12507else
12508 ac_check_lib_save_LIBS=$LIBS
12509LIBS="-lrt $LIBS"
12510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h. */
12512
12513/* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12516#ifdef __cplusplus
12517extern "C"
12518#endif
12519char clock_gettime ();
12520int
12521main ()
12522{
12523return clock_gettime ();
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_lib_rt_clock_gettime=yes
12530else
12531 ac_cv_lib_rt_clock_gettime=no
12532fi
12533rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535LIBS=$ac_check_lib_save_LIBS
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12538$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12539if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12540
12541 LIBS="$LIBS -lrt"
12542 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12543
12544
12545$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
12546
12547
12548fi
12549
12550
12551fi
12552done
12553
12554
12555for ac_func in clock_getres
12556do :
12557 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
12558if test "x$ac_cv_func_clock_getres" = xyes; then :
12559 cat >>confdefs.h <<_ACEOF
12560#define HAVE_CLOCK_GETRES 1
12561_ACEOF
12562
12563else
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
12566$as_echo_n "checking for clock_getres in -lrt... " >&6; }
12567if ${ac_cv_lib_rt_clock_getres+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569else
12570 ac_check_lib_save_LIBS=$LIBS
12571LIBS="-lrt $LIBS"
12572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h. */
12574
12575/* Override any GCC internal prototype to avoid an error.
12576 Use char because int might match the return type of a GCC
12577 builtin and then its argument prototype would still apply. */
12578#ifdef __cplusplus
12579extern "C"
12580#endif
12581char clock_getres ();
12582int
12583main ()
12584{
12585return clock_getres ();
12586 ;
12587 return 0;
12588}
12589_ACEOF
12590if ac_fn_c_try_link "$LINENO"; then :
12591 ac_cv_lib_rt_clock_getres=yes
12592else
12593 ac_cv_lib_rt_clock_getres=no
12594fi
12595rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597LIBS=$ac_check_lib_save_LIBS
12598fi
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
12600$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
12601if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
12602
12603 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
12604
12605
12606fi
12607
12608
12609fi
12610done
12611
12612
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
12614$as_echo_n "checking for major... " >&6; }
12615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616/* end confdefs.h. */
12617
12618#if defined(MAJOR_IN_MKDEV)
12619#include <sys/mkdev.h>
12620#elif defined(MAJOR_IN_SYSMACROS)
12621#include <sys/sysmacros.h>
12622#else
12623#include <sys/types.h>
12624#endif
12625
12626int
12627main ()
12628{
12629
12630 makedev(major(0),minor(0));
12631
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636if ac_fn_c_try_link "$LINENO"; then :
12637
12638
12639$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
12640
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642$as_echo "yes" >&6; }
12643
12644else
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648
12649fi
12650rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652
12653# On OSF/1 V5.1, getaddrinfo is available, but a define
12654# for [no]getaddrinfo in netdb.h.
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
12656$as_echo_n "checking for getaddrinfo... " >&6; }
12657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h. */
12659
12660#include <sys/types.h>
12661#include <sys/socket.h>
12662#include <netdb.h>
12663#include <stdio.h>
12664
12665int
12666main ()
12667{
12668getaddrinfo(NULL, NULL, NULL, NULL);
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673if ac_fn_c_try_link "$LINENO"; then :
12674 have_getaddrinfo=yes
12675else
12676 have_getaddrinfo=no
12677fi
12678rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
12681$as_echo "$have_getaddrinfo" >&6; }
12682if test $have_getaddrinfo = yes
12683then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
12685$as_echo_n "checking getaddrinfo bug... " >&6; }
12686 if ${ac_cv_buggy_getaddrinfo+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688else
12689 if test "$cross_compiling" = yes; then :
12690
12691if test "${enable_ipv6+set}" = set; then
12692 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
12693else
12694 ac_cv_buggy_getaddrinfo=yes
12695fi
12696else
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h. */
12699
12700#include <stdio.h>
12701#include <sys/types.h>
12702#include <netdb.h>
12703#include <string.h>
12704#include <sys/socket.h>
12705#include <netinet/in.h>
12706
12707int main()
12708{
12709 int passive, gaierr, inet4 = 0, inet6 = 0;
12710 struct addrinfo hints, *ai, *aitop;
12711 char straddr[INET6_ADDRSTRLEN], strport[16];
12712
12713 for (passive = 0; passive <= 1; passive++) {
12714 memset(&hints, 0, sizeof(hints));
12715 hints.ai_family = AF_UNSPEC;
12716 hints.ai_flags = passive ? AI_PASSIVE : 0;
12717 hints.ai_socktype = SOCK_STREAM;
12718 hints.ai_protocol = IPPROTO_TCP;
12719 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
12720 (void)gai_strerror(gaierr);
12721 goto bad;
12722 }
12723 for (ai = aitop; ai; ai = ai->ai_next) {
12724 if (ai->ai_addr == NULL ||
12725 ai->ai_addrlen == 0 ||
12726 getnameinfo(ai->ai_addr, ai->ai_addrlen,
12727 straddr, sizeof(straddr), strport, sizeof(strport),
12728 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
12729 goto bad;
12730 }
12731 switch (ai->ai_family) {
12732 case AF_INET:
12733 if (strcmp(strport, "54321") != 0) {
12734 goto bad;
12735 }
12736 if (passive) {
12737 if (strcmp(straddr, "0.0.0.0") != 0) {
12738 goto bad;
12739 }
12740 } else {
12741 if (strcmp(straddr, "127.0.0.1") != 0) {
12742 goto bad;
12743 }
12744 }
12745 inet4++;
12746 break;
12747 case AF_INET6:
12748 if (strcmp(strport, "54321") != 0) {
12749 goto bad;
12750 }
12751 if (passive) {
12752 if (strcmp(straddr, "::") != 0) {
12753 goto bad;
12754 }
12755 } else {
12756 if (strcmp(straddr, "::1") != 0) {
12757 goto bad;
12758 }
12759 }
12760 inet6++;
12761 break;
12762 case AF_UNSPEC:
12763 goto bad;
12764 break;
12765 default:
12766 /* another family support? */
12767 break;
12768 }
12769 }
12770 freeaddrinfo(aitop);
12771 aitop = NULL;
12772 }
12773
12774 if (!(inet4 == 0 || inet4 == 2))
12775 goto bad;
12776 if (!(inet6 == 0 || inet6 == 2))
12777 goto bad;
12778
12779 if (aitop)
12780 freeaddrinfo(aitop);
12781 return 0;
12782
12783 bad:
12784 if (aitop)
12785 freeaddrinfo(aitop);
12786 return 1;
12787}
12788
12789_ACEOF
12790if ac_fn_c_try_run "$LINENO"; then :
12791 ac_cv_buggy_getaddrinfo=no
12792else
12793 ac_cv_buggy_getaddrinfo=yes
12794fi
12795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12796 conftest.$ac_objext conftest.beam conftest.$ac_ext
12797fi
12798
12799fi
12800
12801fi
12802
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
12804$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
12805
12806if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
12807then
12808 if test $ipv6 = yes
12809 then
12810 echo 'Fatal: You must get working getaddrinfo() function.'
12811 echo ' or you can specify "--disable-ipv6"'.
12812 exit 1
12813 fi
12814else
12815
12816$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
12817
12818fi
12819
12820for ac_func in getnameinfo
12821do :
12822 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12823if test "x$ac_cv_func_getnameinfo" = xyes; then :
12824 cat >>confdefs.h <<_ACEOF
12825#define HAVE_GETNAMEINFO 1
12826_ACEOF
12827
12828fi
12829done
12830
12831
12832# checks for structures
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12834$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12835if ${ac_cv_header_time+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h. */
12840#include <sys/types.h>
12841#include <sys/time.h>
12842#include <time.h>
12843
12844int
12845main ()
12846{
12847if ((struct tm *) 0)
12848return 0;
12849 ;
12850 return 0;
12851}
12852_ACEOF
12853if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_header_time=yes
12855else
12856 ac_cv_header_time=no
12857fi
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12861$as_echo "$ac_cv_header_time" >&6; }
12862if test $ac_cv_header_time = yes; then
12863
12864$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12865
12866fi
12867
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12869$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12870if ${ac_cv_struct_tm+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874/* end confdefs.h. */
12875#include <sys/types.h>
12876#include <time.h>
12877
12878int
12879main ()
12880{
12881struct tm tm;
12882 int *p = &tm.tm_sec;
12883 return !p;
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888if ac_fn_c_try_compile "$LINENO"; then :
12889 ac_cv_struct_tm=time.h
12890else
12891 ac_cv_struct_tm=sys/time.h
12892fi
12893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12896$as_echo "$ac_cv_struct_tm" >&6; }
12897if test $ac_cv_struct_tm = sys/time.h; then
12898
12899$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12900
12901fi
12902
12903ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12904#include <$ac_cv_struct_tm>
12905
12906"
12907if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12908
12909cat >>confdefs.h <<_ACEOF
12910#define HAVE_STRUCT_TM_TM_ZONE 1
12911_ACEOF
12912
12913
12914fi
12915
12916if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12917
12918$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12919
12920else
12921 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12922"
12923if test "x$ac_cv_have_decl_tzname" = xyes; then :
12924 ac_have_decl=1
12925else
12926 ac_have_decl=0
12927fi
12928
12929cat >>confdefs.h <<_ACEOF
12930#define HAVE_DECL_TZNAME $ac_have_decl
12931_ACEOF
12932
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12934$as_echo_n "checking for tzname... " >&6; }
12935if ${ac_cv_var_tzname+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937else
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939/* end confdefs.h. */
12940#include <time.h>
12941#if !HAVE_DECL_TZNAME
12942extern char *tzname[];
12943#endif
12944
12945int
12946main ()
12947{
12948return tzname[0][0];
12949 ;
12950 return 0;
12951}
12952_ACEOF
12953if ac_fn_c_try_link "$LINENO"; then :
12954 ac_cv_var_tzname=yes
12955else
12956 ac_cv_var_tzname=no
12957fi
12958rm -f core conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12960fi
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12962$as_echo "$ac_cv_var_tzname" >&6; }
12963 if test $ac_cv_var_tzname = yes; then
12964
12965$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12966
12967 fi
12968fi
12969
12970ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12971if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12972
12973cat >>confdefs.h <<_ACEOF
12974#define HAVE_STRUCT_STAT_ST_RDEV 1
12975_ACEOF
12976
12977
12978fi
12979
12980ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12981if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12982
12983cat >>confdefs.h <<_ACEOF
12984#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12985_ACEOF
12986
12987
12988fi
12989
12990ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
12991if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
12992
12993cat >>confdefs.h <<_ACEOF
12994#define HAVE_STRUCT_STAT_ST_FLAGS 1
12995_ACEOF
12996
12997
12998fi
12999
13000ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
13001if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
13002
13003cat >>confdefs.h <<_ACEOF
13004#define HAVE_STRUCT_STAT_ST_GEN 1
13005_ACEOF
13006
13007
13008fi
13009
13010ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
13011if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
13012
13013cat >>confdefs.h <<_ACEOF
13014#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13015_ACEOF
13016
13017
13018fi
13019
13020ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13021if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13022
13023cat >>confdefs.h <<_ACEOF
13024#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13025_ACEOF
13026
13027
13028fi
13029
13030
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13032$as_echo_n "checking for time.h that defines altzone... " >&6; }
13033if ${ac_cv_header_time_altzone+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035else
13036
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h. */
13039#include <time.h>
13040int
13041main ()
13042{
13043return altzone;
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048if ac_fn_c_try_compile "$LINENO"; then :
13049 ac_cv_header_time_altzone=yes
13050else
13051 ac_cv_header_time_altzone=no
13052fi
13053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054
13055fi
13056
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13058$as_echo "$ac_cv_header_time_altzone" >&6; }
13059if test $ac_cv_header_time_altzone = yes; then
13060
13061$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
13062
13063fi
13064
13065was_it_defined=no
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13067$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h. */
13070
13071#include <sys/types.h>
13072#include <sys/select.h>
13073#include <sys/time.h>
13074
13075int
13076main ()
13077{
13078;
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083if ac_fn_c_try_compile "$LINENO"; then :
13084
13085
13086$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
13087
13088 was_it_defined=yes
13089
13090fi
13091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13093$as_echo "$was_it_defined" >&6; }
13094
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13096$as_echo_n "checking for addrinfo... " >&6; }
13097if ${ac_cv_struct_addrinfo+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099else
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101/* end confdefs.h. */
13102#include <netdb.h>
13103int
13104main ()
13105{
13106struct addrinfo a
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111if ac_fn_c_try_compile "$LINENO"; then :
13112 ac_cv_struct_addrinfo=yes
13113else
13114 ac_cv_struct_addrinfo=no
13115fi
13116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117fi
13118
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13120$as_echo "$ac_cv_struct_addrinfo" >&6; }
13121if test $ac_cv_struct_addrinfo = yes; then
13122
13123$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
13124
13125fi
13126
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13128$as_echo_n "checking for sockaddr_storage... " >&6; }
13129if ${ac_cv_struct_sockaddr_storage+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133/* end confdefs.h. */
13134
13135# include <sys/types.h>
13136# include <sys/socket.h>
13137int
13138main ()
13139{
13140struct sockaddr_storage s
13141 ;
13142 return 0;
13143}
13144_ACEOF
13145if ac_fn_c_try_compile "$LINENO"; then :
13146 ac_cv_struct_sockaddr_storage=yes
13147else
13148 ac_cv_struct_sockaddr_storage=no
13149fi
13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151fi
13152
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13154$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
13155if test $ac_cv_struct_sockaddr_storage = yes; then
13156
13157$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
13158
13159fi
13160
13161# checks for compiler characteristics
13162
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13164$as_echo_n "checking whether char is unsigned... " >&6; }
13165if ${ac_cv_c_char_unsigned+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167else
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h. */
13170$ac_includes_default
13171int
13172main ()
13173{
13174static int test_array [1 - 2 * !(((char) -1) < 0)];
13175test_array [0] = 0;
13176return test_array [0];
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182if ac_fn_c_try_compile "$LINENO"; then :
13183 ac_cv_c_char_unsigned=no
13184else
13185 ac_cv_c_char_unsigned=yes
13186fi
13187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188fi
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13190$as_echo "$ac_cv_c_char_unsigned" >&6; }
13191if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
13192 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
13193
13194fi
13195
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13197$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13198if ${ac_cv_c_const+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200else
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h. */
13203
13204int
13205main ()
13206{
13207
13208#ifndef __cplusplus
13209 /* Ultrix mips cc rejects this sort of thing. */
13210 typedef int charset[2];
13211 const charset cs = { 0, 0 };
13212 /* SunOS 4.1.1 cc rejects this. */
13213 char const *const *pcpcc;
13214 char **ppc;
13215 /* NEC SVR4.0.2 mips cc rejects this. */
13216 struct point {int x, y;};
13217 static struct point const zero = {0,0};
13218 /* AIX XL C 1.02.0.0 rejects this.
13219 It does not let you subtract one const X* pointer from another in
13220 an arm of an if-expression whose if-part is not a constant
13221 expression */
13222 const char *g = "string";
13223 pcpcc = &g + (g ? g-g : 0);
13224 /* HPUX 7.0 cc rejects these. */
13225 ++pcpcc;
13226 ppc = (char**) pcpcc;
13227 pcpcc = (char const *const *) ppc;
13228 { /* SCO 3.2v4 cc rejects this sort of thing. */
13229 char tx;
13230 char *t = &tx;
13231 char const *s = 0 ? (char *) 0 : (char const *) 0;
13232
13233 *t++ = 0;
13234 if (s) return 0;
13235 }
13236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13237 int x[] = {25, 17};
13238 const int *foo = &x[0];
13239 ++foo;
13240 }
13241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13242 typedef const int *iptr;
13243 iptr p = 0;
13244 ++p;
13245 }
13246 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13248 struct s { int j; const int *ap[3]; } bx;
13249 struct s *b = &bx; b->j = 5;
13250 }
13251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13252 const int foo = 10;
13253 if (!foo) return 0;
13254 }
13255 return !cs[0] && !zero.x;
13256#endif
13257
13258 ;
13259 return 0;
13260}
13261_ACEOF
13262if ac_fn_c_try_compile "$LINENO"; then :
13263 ac_cv_c_const=yes
13264else
13265 ac_cv_c_const=no
13266fi
13267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268fi
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13270$as_echo "$ac_cv_c_const" >&6; }
13271if test $ac_cv_c_const = no; then
13272
13273$as_echo "#define const /**/" >>confdefs.h
13274
13275fi
13276
13277
13278works=no
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13280$as_echo_n "checking for working volatile... " >&6; }
13281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282/* end confdefs.h. */
13283
13284int
13285main ()
13286{
13287volatile int x; x = 0;
13288 ;
13289 return 0;
13290}
13291_ACEOF
13292if ac_fn_c_try_compile "$LINENO"; then :
13293 works=yes
13294else
13295
13296$as_echo "#define volatile /**/" >>confdefs.h
13297
13298
13299fi
13300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13302$as_echo "$works" >&6; }
13303
13304works=no
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13306$as_echo_n "checking for working signed char... " >&6; }
13307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h. */
13309
13310int
13311main ()
13312{
13313signed char c;
13314 ;
13315 return 0;
13316}
13317_ACEOF
13318if ac_fn_c_try_compile "$LINENO"; then :
13319 works=yes
13320else
13321
13322$as_echo "#define signed /**/" >>confdefs.h
13323
13324
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13328$as_echo "$works" >&6; }
13329
13330have_prototypes=no
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13332$as_echo_n "checking for prototypes... " >&6; }
13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h. */
13335int foo(int x) { return 0; }
13336int
13337main ()
13338{
13339return foo(10);
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344if ac_fn_c_try_compile "$LINENO"; then :
13345
13346$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
13347
13348 have_prototypes=yes
13349fi
13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13352$as_echo "$have_prototypes" >&6; }
13353
13354works=no
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13356$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h. */
13359
13360#include <stdarg.h>
13361int foo(int x, ...) {
13362 va_list va;
13363 va_start(va, x);
13364 va_arg(va, int);
13365 va_arg(va, char *);
13366 va_arg(va, double);
13367 return 0;
13368}
13369
13370int
13371main ()
13372{
13373return foo(10, "", 3.14);
13374 ;
13375 return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"; then :
13379
13380
13381$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
13382
13383 works=yes
13384
13385fi
13386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13388$as_echo "$works" >&6; }
13389
13390# check for socketpair
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13392$as_echo_n "checking for socketpair... " >&6; }
13393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395
13396#include <sys/types.h>
13397#include <sys/socket.h>
13398
13399int
13400main ()
13401{
13402void *x=socketpair
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407if ac_fn_c_try_compile "$LINENO"; then :
13408
13409$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
13410
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412$as_echo "yes" >&6; }
13413else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416
13417fi
13418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419
13420# check if sockaddr has sa_len member
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
13422$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
13423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424/* end confdefs.h. */
13425#include <sys/types.h>
13426#include <sys/socket.h>
13427int
13428main ()
13429{
13430struct sockaddr x;
13431x.sa_len = 0;
13432 ;
13433 return 0;
13434}
13435_ACEOF
13436if ac_fn_c_try_compile "$LINENO"; then :
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13438$as_echo "yes" >&6; }
13439
13440$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
13441
13442else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444$as_echo "no" >&6; }
13445
13446fi
13447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448
13449va_list_is_array=no
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
13451$as_echo_n "checking whether va_list is an array... " >&6; }
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h. */
13454
13455#ifdef HAVE_STDARG_PROTOTYPES
13456#include <stdarg.h>
13457#else
13458#include <varargs.h>
13459#endif
13460
13461int
13462main ()
13463{
13464va_list list1, list2; list1 = list2;
13465 ;
13466 return 0;
13467}
13468_ACEOF
13469if ac_fn_c_try_compile "$LINENO"; then :
13470
13471else
13472
13473
13474$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
13475
13476 va_list_is_array=yes
13477
13478fi
13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
13481$as_echo "$va_list_is_array" >&6; }
13482
13483# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
13484
13485
13486ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13487if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13488
13489 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
13492$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
13493 OLD_CFLAGS=$CFLAGS
13494 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h. */
13497
13498# include <netdb.h>
13499
13500int
13501main ()
13502{
13503
13504 char *name;
13505 struct hostent *he, *res;
13506 char buffer[2048];
13507 int buflen = 2048;
13508 int h_errnop;
13509
13510 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
13511
13512 ;
13513 return 0;
13514}
13515_ACEOF
13516if ac_fn_c_try_compile "$LINENO"; then :
13517
13518 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13519
13520
13521$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13522
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524$as_echo "yes" >&6; }
13525
13526else
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529$as_echo "no" >&6; }
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
13531$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533/* end confdefs.h. */
13534
13535# include <netdb.h>
13536
13537int
13538main ()
13539{
13540
13541 char *name;
13542 struct hostent *he;
13543 char buffer[2048];
13544 int buflen = 2048;
13545 int h_errnop;
13546
13547 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
13548
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553if ac_fn_c_try_compile "$LINENO"; then :
13554
13555 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13556
13557
13558$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561$as_echo "yes" >&6; }
13562
13563else
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
13568$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h. */
13571
13572# include <netdb.h>
13573
13574int
13575main ()
13576{
13577
13578 char *name;
13579 struct hostent *he;
13580 struct hostent_data data;
13581
13582 (void) gethostbyname_r(name, he, &data);
13583
13584 ;
13585 return 0;
13586}
13587_ACEOF
13588if ac_fn_c_try_compile "$LINENO"; then :
13589
13590 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13591
13592
13593$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13596$as_echo "yes" >&6; }
13597
13598else
13599
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601$as_echo "no" >&6; }
13602
13603fi
13604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605
13606fi
13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608
13609fi
13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 CFLAGS=$OLD_CFLAGS
13612
13613else
13614
13615 for ac_func in gethostbyname
13616do :
13617 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13618if test "x$ac_cv_func_gethostbyname" = xyes; then :
13619 cat >>confdefs.h <<_ACEOF
13620#define HAVE_GETHOSTBYNAME 1
13621_ACEOF
13622
13623fi
13624done
13625
13626
13627fi
13628
13629
13630
13631
13632
13633
13634
13635# checks for system services
13636# (none yet)
13637
13638# Linux requires this for correct f.p. operations
13639ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
13640if test "x$ac_cv_func___fpu_control" = xyes; then :
13641
13642else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
13644$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
13645if ${ac_cv_lib_ieee___fpu_control+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647else
13648 ac_check_lib_save_LIBS=$LIBS
13649LIBS="-lieee $LIBS"
13650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h. */
13652
13653/* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13656#ifdef __cplusplus
13657extern "C"
13658#endif
13659char __fpu_control ();
13660int
13661main ()
13662{
13663return __fpu_control ();
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668if ac_fn_c_try_link "$LINENO"; then :
13669 ac_cv_lib_ieee___fpu_control=yes
13670else
13671 ac_cv_lib_ieee___fpu_control=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675LIBS=$ac_check_lib_save_LIBS
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
13678$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
13679if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
13680 cat >>confdefs.h <<_ACEOF
13681#define HAVE_LIBIEEE 1
13682_ACEOF
13683
13684 LIBS="-lieee $LIBS"
13685
13686fi
13687
13688
13689fi
13690
13691
13692# Check for --with-fpectl
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
13694$as_echo_n "checking for --with-fpectl... " >&6; }
13695
13696# Check whether --with-fpectl was given.
13697if test "${with_fpectl+set}" = set; then :
13698 withval=$with_fpectl;
13699if test "$withval" != no
13700then
13701
13702$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705$as_echo "yes" >&6; }
13706else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707$as_echo "no" >&6; }
13708fi
13709else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711$as_echo "no" >&6; }
13712fi
13713
13714
13715# check for --with-libm=...
13716
13717case $ac_sys_system in
13718Darwin) ;;
13719*) LIBM=-lm
13720esac
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
13722$as_echo_n "checking for --with-libm=STRING... " >&6; }
13723
13724# Check whether --with-libm was given.
13725if test "${with_libm+set}" = set; then :
13726 withval=$with_libm;
13727if test "$withval" = no
13728then LIBM=
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
13730$as_echo "force LIBM empty" >&6; }
13731elif test "$withval" != yes
13732then LIBM=$withval
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
13734$as_echo "set LIBM=\"$withval\"" >&6; }
13735else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
13736fi
13737else
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
13739$as_echo "default LIBM=\"$LIBM\"" >&6; }
13740fi
13741
13742
13743# check for --with-libc=...
13744
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
13746$as_echo_n "checking for --with-libc=STRING... " >&6; }
13747
13748# Check whether --with-libc was given.
13749if test "${with_libc+set}" = set; then :
13750 withval=$with_libc;
13751if test "$withval" = no
13752then LIBC=
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
13754$as_echo "force LIBC empty" >&6; }
13755elif test "$withval" != yes
13756then LIBC=$withval
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
13758$as_echo "set LIBC=\"$withval\"" >&6; }
13759else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
13760fi
13761else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
13763$as_echo "default LIBC=\"$LIBC\"" >&6; }
13764fi
13765
13766
13767# **************************************
13768# * Check for gcc x64 inline assembler *
13769# **************************************
13770
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
13772$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
13773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774/* end confdefs.h. */
13775
13776int
13777main ()
13778{
13779
13780 __asm__ __volatile__ ("movq %rcx, %rax");
13781
13782 ;
13783 return 0;
13784}
13785_ACEOF
13786if ac_fn_c_try_link "$LINENO"; then :
13787 have_gcc_asm_for_x64=yes
13788else
13789 have_gcc_asm_for_x64=no
13790fi
13791rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
13794$as_echo "$have_gcc_asm_for_x64" >&6; }
13795if test "$have_gcc_asm_for_x64" = yes
13796then
13797
13798$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
13799
13800fi
13801
13802# **************************************************
13803# * Check for various properties of floating point *
13804# **************************************************
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
13807$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
13808if ${ac_cv_little_endian_double+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810else
13811
13812if test "$cross_compiling" = yes; then :
13813 ac_cv_little_endian_double=no
13814else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816/* end confdefs.h. */
13817
13818#include <string.h>
13819int main() {
13820 double x = 9006104071832581.0;
13821 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
13822 return 0;
13823 else
13824 return 1;
13825}
13826
13827_ACEOF
13828if ac_fn_c_try_run "$LINENO"; then :
13829 ac_cv_little_endian_double=yes
13830else
13831 ac_cv_little_endian_double=no
13832fi
13833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13834 conftest.$ac_objext conftest.beam conftest.$ac_ext
13835fi
13836
13837fi
13838
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
13840$as_echo "$ac_cv_little_endian_double" >&6; }
13841if test "$ac_cv_little_endian_double" = yes
13842then
13843
13844$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
13845
13846fi
13847
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
13849$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
13850if ${ac_cv_big_endian_double+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852else
13853
13854if test "$cross_compiling" = yes; then :
13855 ac_cv_big_endian_double=no
13856else
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h. */
13859
13860#include <string.h>
13861int main() {
13862 double x = 9006104071832581.0;
13863 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
13864 return 0;
13865 else
13866 return 1;
13867}
13868
13869_ACEOF
13870if ac_fn_c_try_run "$LINENO"; then :
13871 ac_cv_big_endian_double=yes
13872else
13873 ac_cv_big_endian_double=no
13874fi
13875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13876 conftest.$ac_objext conftest.beam conftest.$ac_ext
13877fi
13878
13879fi
13880
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
13882$as_echo "$ac_cv_big_endian_double" >&6; }
13883if test "$ac_cv_big_endian_double" = yes
13884then
13885
13886$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
13887
13888fi
13889
13890# Some ARM platforms use a mixed-endian representation for doubles.
13891# While Python doesn't currently have full support for these platforms
13892# (see e.g., issue 1762561), we can at least make sure that float <-> string
13893# conversions work.
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
13895$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
13896if ${ac_cv_mixed_endian_double+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898else
13899
13900if test "$cross_compiling" = yes; then :
13901 ac_cv_mixed_endian_double=no
13902else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h. */
13905
13906#include <string.h>
13907int main() {
13908 double x = 9006104071832581.0;
13909 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
13910 return 0;
13911 else
13912 return 1;
13913}
13914
13915_ACEOF
13916if ac_fn_c_try_run "$LINENO"; then :
13917 ac_cv_mixed_endian_double=yes
13918else
13919 ac_cv_mixed_endian_double=no
13920fi
13921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13922 conftest.$ac_objext conftest.beam conftest.$ac_ext
13923fi
13924
13925fi
13926
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
13928$as_echo "$ac_cv_mixed_endian_double" >&6; }
13929if test "$ac_cv_mixed_endian_double" = yes
13930then
13931
13932$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
13933
13934fi
13935
13936# The short float repr introduced in Python 3.1 requires the
13937# correctly-rounded string <-> double conversion functions from
13938# Python/dtoa.c, which in turn require that the FPU uses 53-bit
13939# rounding; this is a problem on x86, where the x87 FPU has a default
13940# rounding precision of 64 bits. For gcc/x86, we can fix this by
13941# using inline assembler to get and set the x87 FPU control word.
13942
13943# This inline assembler syntax may also work for suncc and icc,
13944# so we try it on all platforms.
13945
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
13947$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
13948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h. */
13950
13951int
13952main ()
13953{
13954
13955 unsigned short cw;
13956 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13957 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
13958
13959 ;
13960 return 0;
13961}
13962_ACEOF
13963if ac_fn_c_try_link "$LINENO"; then :
13964 have_gcc_asm_for_x87=yes
13965else
13966 have_gcc_asm_for_x87=no
13967fi
13968rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
13971$as_echo "$have_gcc_asm_for_x87" >&6; }
13972if test "$have_gcc_asm_for_x87" = yes
13973then
13974
13975$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
13976
13977fi
13978
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
13980$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h. */
13983
13984int
13985main ()
13986{
13987
13988 unsigned int fpcr;
13989 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
13990 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
13991
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996if ac_fn_c_try_link "$LINENO"; then :
13997 have_gcc_asm_for_mc68881=yes
13998else
13999 have_gcc_asm_for_mc68881=no
14000fi
14001rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14004$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14005if test "$have_gcc_asm_for_mc68881" = yes
14006then
14007
14008$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14009
14010fi
14011
14012# Detect whether system arithmetic is subject to x87-style double
14013# rounding issues. The result of this test has little meaning on non
14014# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
14015# mode is round-to-nearest and double rounding issues are present, and
14016# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14018$as_echo_n "checking for x87-style double rounding... " >&6; }
14019# $BASECFLAGS may affect the result
14020ac_save_cc="$CC"
14021CC="$CC $BASECFLAGS"
14022if test "$cross_compiling" = yes; then :
14023 ac_cv_x87_double_rounding=no
14024else
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h. */
14027
14028#include <stdlib.h>
14029#include <math.h>
14030int main() {
14031 volatile double x, y, z;
14032 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14033 x = 0.99999999999999989; /* 1-2**-53 */
14034 y = 1./x;
14035 if (y != 1.)
14036 exit(0);
14037 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14038 x = 1e16;
14039 y = 2.99999;
14040 z = x + y;
14041 if (z != 1e16+4.)
14042 exit(0);
14043 /* both tests show evidence of double rounding */
14044 exit(1);
14045}
14046
14047_ACEOF
14048if ac_fn_c_try_run "$LINENO"; then :
14049 ac_cv_x87_double_rounding=no
14050else
14051 ac_cv_x87_double_rounding=yes
14052fi
14053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14054 conftest.$ac_objext conftest.beam conftest.$ac_ext
14055fi
14056
14057CC="$ac_save_cc"
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14059$as_echo "$ac_cv_x87_double_rounding" >&6; }
14060if test "$ac_cv_x87_double_rounding" = yes
14061then
14062
14063$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
14064
14065fi
14066
14067# ************************************
14068# * Check for mathematical functions *
14069# ************************************
14070
14071LIBS_SAVE=$LIBS
14072LIBS="$LIBS $LIBM"
14073
14074for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14075do :
14076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14077ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14078if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14079 cat >>confdefs.h <<_ACEOF
14080#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14081_ACEOF
14082
14083fi
14084done
14085
14086for ac_func in hypot lgamma log1p log2 round tgamma
14087do :
14088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14089ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14090if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14091 cat >>confdefs.h <<_ACEOF
14092#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093_ACEOF
14094
14095fi
14096done
14097
14098ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14099"
14100if test "x$ac_cv_have_decl_isinf" = xyes; then :
14101 ac_have_decl=1
14102else
14103 ac_have_decl=0
14104fi
14105
14106cat >>confdefs.h <<_ACEOF
14107#define HAVE_DECL_ISINF $ac_have_decl
14108_ACEOF
14109ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14110"
14111if test "x$ac_cv_have_decl_isnan" = xyes; then :
14112 ac_have_decl=1
14113else
14114 ac_have_decl=0
14115fi
14116
14117cat >>confdefs.h <<_ACEOF
14118#define HAVE_DECL_ISNAN $ac_have_decl
14119_ACEOF
14120ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14121"
14122if test "x$ac_cv_have_decl_isfinite" = xyes; then :
14123 ac_have_decl=1
14124else
14125 ac_have_decl=0
14126fi
14127
14128cat >>confdefs.h <<_ACEOF
14129#define HAVE_DECL_ISFINITE $ac_have_decl
14130_ACEOF
14131
14132
14133# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
14134# -0. on some architectures.
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
14136$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
14137if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139else
14140
14141if test "$cross_compiling" = yes; then :
14142 ac_cv_tanh_preserves_zero_sign=no
14143else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h. */
14146
14147#include <math.h>
14148#include <stdlib.h>
14149int main() {
14150 /* return 0 if either negative zeros don't exist
14151 on this platform or if negative zeros exist
14152 and tanh(-0.) == -0. */
14153 if (atan2(0., -1.) == atan2(-0., -1.) ||
14154 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
14155 else exit(1);
14156}
14157
14158_ACEOF
14159if ac_fn_c_try_run "$LINENO"; then :
14160 ac_cv_tanh_preserves_zero_sign=yes
14161else
14162 ac_cv_tanh_preserves_zero_sign=no
14163fi
14164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14165 conftest.$ac_objext conftest.beam conftest.$ac_ext
14166fi
14167
14168fi
14169
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
14171$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
14172if test "$ac_cv_tanh_preserves_zero_sign" = yes
14173then
14174
14175$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
14176
14177fi
14178
14179if test "$ac_cv_func_log1p" = yes
14180then
14181 # On some versions of AIX, log1p(-0.) returns 0. instead of
14182 # -0. See issue #9920.
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5
14184$as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; }
14185 if ${ac_cv_log1p_drops_zero_sign+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187else
14188
14189 if test "$cross_compiling" = yes; then :
14190 ac_cv_log1p_drops_zero_sign=no
14191else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193/* end confdefs.h. */
14194
14195 #include <math.h>
14196 #include <stdlib.h>
14197 int main() {
14198 /* Fail if the signs of log1p(-0.) and -0. can be
14199 distinguished. */
14200 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.))
14201 return 0;
14202 else
14203 return 1;
14204 }
14205
14206_ACEOF
14207if ac_fn_c_try_run "$LINENO"; then :
14208 ac_cv_log1p_drops_zero_sign=no
14209else
14210 ac_cv_log1p_drops_zero_sign=yes
14211fi
14212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14213 conftest.$ac_objext conftest.beam conftest.$ac_ext
14214fi
14215
14216fi
14217
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5
14219$as_echo "$ac_cv_log1p_drops_zero_sign" >&6; }
14220fi
14221if test "$ac_cv_log1p_drops_zero_sign" = yes
14222then
14223
14224$as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h
14225
14226fi
14227
14228LIBS=$LIBS_SAVE
14229
14230# For multiprocessing module, check that sem_open
14231# actually works. For FreeBSD versions <= 7.2,
14232# the kernel module that provides POSIX semaphores
14233# isn't loaded by default, so an attempt to call
14234# sem_open results in a 'Signal 12' error.
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14236$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
14237if ${ac_cv_posix_semaphores_enabled+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239else
14240 if test "$cross_compiling" = yes; then :
14241 ac_cv_posix_semaphores_enabled=yes
14242else
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244/* end confdefs.h. */
14245
14246#include <unistd.h>
14247#include <fcntl.h>
14248#include <stdio.h>
14249#include <semaphore.h>
14250#include <sys/stat.h>
14251
14252int main(void) {
14253 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
14254 if (a == SEM_FAILED) {
14255 perror("sem_open");
14256 return 1;
14257 }
14258 sem_close(a);
14259 sem_unlink("/autoconf");
14260 return 0;
14261}
14262
14263_ACEOF
14264if ac_fn_c_try_run "$LINENO"; then :
14265 ac_cv_posix_semaphores_enabled=yes
14266else
14267 ac_cv_posix_semaphores_enabled=no
14268fi
14269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14270 conftest.$ac_objext conftest.beam conftest.$ac_ext
14271fi
14272
14273
14274fi
14275
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14277$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
14278if test $ac_cv_posix_semaphores_enabled = no
14279then
14280
14281$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
14282
14283fi
14284
14285# Multiprocessing check for broken sem_getvalue
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14287$as_echo_n "checking for broken sem_getvalue... " >&6; }
14288if ${ac_cv_broken_sem_getvalue+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290else
14291 if test "$cross_compiling" = yes; then :
14292 ac_cv_broken_sem_getvalue=yes
14293else
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h. */
14296
14297#include <unistd.h>
14298#include <fcntl.h>
14299#include <stdio.h>
14300#include <semaphore.h>
14301#include <sys/stat.h>
14302
14303int main(void){
14304 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
14305 int count;
14306 int res;
14307 if(a==SEM_FAILED){
14308 perror("sem_open");
14309 return 1;
14310
14311 }
14312 res = sem_getvalue(a, &count);
14313 sem_close(a);
14314 sem_unlink("/autocftw");
14315 return res==-1 ? 1 : 0;
14316}
14317
14318_ACEOF
14319if ac_fn_c_try_run "$LINENO"; then :
14320 ac_cv_broken_sem_getvalue=no
14321else
14322 ac_cv_broken_sem_getvalue=yes
14323fi
14324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14325 conftest.$ac_objext conftest.beam conftest.$ac_ext
14326fi
14327
14328
14329fi
14330
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14332$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
14333if test $ac_cv_broken_sem_getvalue = yes
14334then
14335
14336$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
14337
14338fi
14339
14340# determine what size digit to use for Python's longs
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14342$as_echo_n "checking digit size for Python's longs... " >&6; }
14343# Check whether --enable-big-digits was given.
14344if test "${enable_big_digits+set}" = set; then :
14345 enableval=$enable_big_digits; case $enable_big_digits in
14346yes)
14347 enable_big_digits=30 ;;
14348no)
14349 enable_big_digits=15 ;;
1435015|30)
14351 ;;
14352*)
14353 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
14354esac
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14356$as_echo "$enable_big_digits" >&6; }
14357
14358cat >>confdefs.h <<_ACEOF
14359#define PYLONG_BITS_IN_DIGIT $enable_big_digits
14360_ACEOF
14361
14362
14363else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14365$as_echo "no value specified" >&6; }
14366fi
14367
14368
14369# check for wchar.h
14370ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
14371if test "x$ac_cv_header_wchar_h" = xyes; then :
14372
14373
14374$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
14375
14376 wchar_h="yes"
14377
14378else
14379 wchar_h="no"
14380
14381fi
14382
14383
14384
14385# determine wchar_t size
14386if test "$wchar_h" = yes
14387then
14388 # The cast to long int works around a bug in the HP C Compiler
14389# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14390# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14391# This bug is HP SR number 8606223364.
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14393$as_echo_n "checking size of wchar_t... " >&6; }
14394if ${ac_cv_sizeof_wchar_t+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396else
14397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
14398"; then :
14399
14400else
14401 if test "$ac_cv_type_wchar_t" = yes; then
14402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14404as_fn_error 77 "cannot compute sizeof (wchar_t)
14405See \`config.log' for more details" "$LINENO" 5; }
14406 else
14407 ac_cv_sizeof_wchar_t=0
14408 fi
14409fi
14410
14411fi
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14413$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
14414
14415
14416
14417cat >>confdefs.h <<_ACEOF
14418#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
14419_ACEOF
14420
14421
14422fi
14423
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14425$as_echo_n "checking for UCS-4 tcl... " >&6; }
14426have_ucs4_tcl=no
14427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428/* end confdefs.h. */
14429
14430#include <tcl.h>
14431#if TCL_UTF_MAX != 6
14432# error "NOT UCS4_TCL"
14433#endif
14434int
14435main ()
14436{
14437
14438 ;
14439 return 0;
14440}
14441_ACEOF
14442if ac_fn_c_try_compile "$LINENO"; then :
14443
14444
14445$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
14446
14447 have_ucs4_tcl=yes
14448
14449fi
14450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14452$as_echo "$have_ucs4_tcl" >&6; }
14453
14454# check whether wchar_t is signed or not
14455if test "$wchar_h" = yes
14456then
14457 # check whether wchar_t is signed or not
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14459$as_echo_n "checking whether wchar_t is signed... " >&6; }
14460 if ${ac_cv_wchar_t_signed+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462else
14463
14464 if test "$cross_compiling" = yes; then :
14465 ac_cv_wchar_t_signed=yes
14466else
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h. */
14469
14470 #include <wchar.h>
14471 int main()
14472 {
14473 /* Success: exit code 0 */
14474 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
14475 }
14476
14477_ACEOF
14478if ac_fn_c_try_run "$LINENO"; then :
14479 ac_cv_wchar_t_signed=yes
14480else
14481 ac_cv_wchar_t_signed=no
14482fi
14483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14484 conftest.$ac_objext conftest.beam conftest.$ac_ext
14485fi
14486
14487fi
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
14490$as_echo "$ac_cv_wchar_t_signed" >&6; }
14491fi
14492
14493# wchar_t is only usable if it maps to an unsigned type
14494if test "$ac_cv_sizeof_wchar_t" -ge 2 \
14495 -a "$ac_cv_wchar_t_signed" = "no"
14496then
14497 HAVE_USABLE_WCHAR_T="yes"
14498
14499$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
14500
14501else
14502 HAVE_USABLE_WCHAR_T="no usable wchar_t found"
14503fi
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5
14505$as_echo "$HAVE_USABLE_WCHAR_T" >&6; }
14506
14507# check for endianness
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14509$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14510if ${ac_cv_c_bigendian+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512else
14513 ac_cv_c_bigendian=unknown
14514 # See if we're dealing with a universal compiler.
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516/* end confdefs.h. */
14517#ifndef __APPLE_CC__
14518 not a universal capable compiler
14519 #endif
14520 typedef int dummy;
14521
14522_ACEOF
14523if ac_fn_c_try_compile "$LINENO"; then :
14524
14525 # Check for potential -arch flags. It is not universal unless
14526 # there are at least two -arch flags with different values.
14527 ac_arch=
14528 ac_prev=
14529 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14530 if test -n "$ac_prev"; then
14531 case $ac_word in
14532 i?86 | x86_64 | ppc | ppc64)
14533 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14534 ac_arch=$ac_word
14535 else
14536 ac_cv_c_bigendian=universal
14537 break
14538 fi
14539 ;;
14540 esac
14541 ac_prev=
14542 elif test "x$ac_word" = "x-arch"; then
14543 ac_prev=arch
14544 fi
14545 done
14546fi
14547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14548 if test $ac_cv_c_bigendian = unknown; then
14549 # See if sys/param.h defines the BYTE_ORDER macro.
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551/* end confdefs.h. */
14552#include <sys/types.h>
14553 #include <sys/param.h>
14554
14555int
14556main ()
14557{
14558#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14559 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14560 && LITTLE_ENDIAN)
14561 bogus endian macros
14562 #endif
14563
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568if ac_fn_c_try_compile "$LINENO"; then :
14569 # It does; now see whether it defined to BIG_ENDIAN or not.
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571/* end confdefs.h. */
14572#include <sys/types.h>
14573 #include <sys/param.h>
14574
14575int
14576main ()
14577{
14578#if BYTE_ORDER != BIG_ENDIAN
14579 not big endian
14580 #endif
14581
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586if ac_fn_c_try_compile "$LINENO"; then :
14587 ac_cv_c_bigendian=yes
14588else
14589 ac_cv_c_bigendian=no
14590fi
14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592fi
14593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 fi
14595 if test $ac_cv_c_bigendian = unknown; then
14596 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598/* end confdefs.h. */
14599#include <limits.h>
14600
14601int
14602main ()
14603{
14604#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14605 bogus endian macros
14606 #endif
14607
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612if ac_fn_c_try_compile "$LINENO"; then :
14613 # It does; now see whether it defined to _BIG_ENDIAN or not.
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h. */
14616#include <limits.h>
14617
14618int
14619main ()
14620{
14621#ifndef _BIG_ENDIAN
14622 not big endian
14623 #endif
14624
14625 ;
14626 return 0;
14627}
14628_ACEOF
14629if ac_fn_c_try_compile "$LINENO"; then :
14630 ac_cv_c_bigendian=yes
14631else
14632 ac_cv_c_bigendian=no
14633fi
14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635fi
14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 fi
14638 if test $ac_cv_c_bigendian = unknown; then
14639 # Compile a test program.
14640 if test "$cross_compiling" = yes; then :
14641 # Try to guess by grepping values from an object file.
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h. */
14644short int ascii_mm[] =
14645 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14646 short int ascii_ii[] =
14647 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14648 int use_ascii (int i) {
14649 return ascii_mm[i] + ascii_ii[i];
14650 }
14651 short int ebcdic_ii[] =
14652 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14653 short int ebcdic_mm[] =
14654 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14655 int use_ebcdic (int i) {
14656 return ebcdic_mm[i] + ebcdic_ii[i];
14657 }
14658 extern int foo;
14659
14660int
14661main ()
14662{
14663return use_ascii (foo) == use_ebcdic (foo);
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668if ac_fn_c_try_compile "$LINENO"; then :
14669 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14670 ac_cv_c_bigendian=yes
14671 fi
14672 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14673 if test "$ac_cv_c_bigendian" = unknown; then
14674 ac_cv_c_bigendian=no
14675 else
14676 # finding both strings is unlikely to happen, but who knows?
14677 ac_cv_c_bigendian=unknown
14678 fi
14679 fi
14680fi
14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682else
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h. */
14685$ac_includes_default
14686int
14687main ()
14688{
14689
14690 /* Are we little or big endian? From Harbison&Steele. */
14691 union
14692 {
14693 long int l;
14694 char c[sizeof (long int)];
14695 } u;
14696 u.l = 1;
14697 return u.c[sizeof (long int) - 1] == 1;
14698
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703if ac_fn_c_try_run "$LINENO"; then :
14704 ac_cv_c_bigendian=no
14705else
14706 ac_cv_c_bigendian=yes
14707fi
14708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14709 conftest.$ac_objext conftest.beam conftest.$ac_ext
14710fi
14711
14712 fi
14713fi
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14715$as_echo "$ac_cv_c_bigendian" >&6; }
14716 case $ac_cv_c_bigendian in #(
14717 yes)
14718 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14719;; #(
14720 no)
14721 ;; #(
14722 universal)
14723
14724$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14725
14726 ;; #(
14727 *)
14728 as_fn_error $? "unknown endianness
14729 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14730 esac
14731
14732
14733# ABI version string for Python extension modules. This appears between the
14734# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
14735# from the following attributes which affect the ABI of this Python build (in
14736# this order):
14737#
14738# * The Python implementation (always 'cpython-' for us)
14739# * The major and minor version numbers
14740# * --with-pydebug (adds a 'd')
14741# * --with-pymalloc (adds a 'm')
14742# * --with-wide-unicode (adds a 'u')
14743#
14744# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
14745# would get a shared library ABI version tag of 'cpython-32dmu' and shared
14746# libraries would be named 'foo.cpython-32dmu.so'.
14747
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
14749$as_echo_n "checking ABIFLAGS... " >&6; }
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
14751$as_echo "$ABIFLAGS" >&6; }
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
14753$as_echo_n "checking SOABI... " >&6; }
14754SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
14756$as_echo "$SOABI" >&6; }
14757
14758
14759case $ac_sys_system in
14760 Linux*|GNU*|Darwin)
14761 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
14762 *)
14763 EXT_SUFFIX=${SHLIB_SUFFIX};;
14764esac
14765
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
14767$as_echo_n "checking LDVERSION... " >&6; }
14768LDVERSION='$(VERSION)$(ABIFLAGS)'
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
14770$as_echo "$LDVERSION" >&6; }
14771
14772
14773LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
14774
14775
14776# Check whether right shifting a negative integer extends the sign bit
14777# or fills with zeros (like the Cray J90, according to Tim Peters).
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
14779$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
14780if ${ac_cv_rshift_extends_sign+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783
14784if test "$cross_compiling" = yes; then :
14785 ac_cv_rshift_extends_sign=yes
14786else
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788/* end confdefs.h. */
14789
14790int main()
14791{
14792 exit(((-1)>>3 == -1) ? 0 : 1);
14793}
14794
14795_ACEOF
14796if ac_fn_c_try_run "$LINENO"; then :
14797 ac_cv_rshift_extends_sign=yes
14798else
14799 ac_cv_rshift_extends_sign=no
14800fi
14801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14802 conftest.$ac_objext conftest.beam conftest.$ac_ext
14803fi
14804
14805fi
14806
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
14808$as_echo "$ac_cv_rshift_extends_sign" >&6; }
14809if test "$ac_cv_rshift_extends_sign" = no
14810then
14811
14812$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
14813
14814fi
14815
14816# check for getc_unlocked and related locking functions
14817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
14818$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
14819if ${ac_cv_have_getc_unlocked+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821else
14822
14823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h. */
14825#include <stdio.h>
14826int
14827main ()
14828{
14829
14830 FILE *f = fopen("/dev/null", "r");
14831 flockfile(f);
14832 getc_unlocked(f);
14833 funlockfile(f);
14834
14835 ;
14836 return 0;
14837}
14838_ACEOF
14839if ac_fn_c_try_link "$LINENO"; then :
14840 ac_cv_have_getc_unlocked=yes
14841else
14842 ac_cv_have_getc_unlocked=no
14843fi
14844rm -f core conftest.err conftest.$ac_objext \
14845 conftest$ac_exeext conftest.$ac_ext
14846fi
14847
14848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
14849$as_echo "$ac_cv_have_getc_unlocked" >&6; }
14850if test "$ac_cv_have_getc_unlocked" = yes
14851then
14852
14853$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
14854
14855fi
14856
14857# check where readline lives
14858# save the value of LIBS so we don't actually link Python with readline
14859LIBS_no_readline=$LIBS
14860
14861# On some systems we need to link readline to a termcap compatible
14862# library. NOTE: Keep the precedence of listed libraries synchronised
14863# with setup.py.
14864py_cv_lib_readline=no
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
14866$as_echo_n "checking how to link readline libs... " >&6; }
14867for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
14868 if test -z "$py_libtermcap"; then
14869 READLINE_LIBS="-lreadline"
14870 else
14871 READLINE_LIBS="-lreadline -l$py_libtermcap"
14872 fi
14873 LIBS="$READLINE_LIBS $LIBS_no_readline"
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h. */
14876
14877/* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880#ifdef __cplusplus
14881extern "C"
14882#endif
14883char readline ();
14884int
14885main ()
14886{
14887return readline ();
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892if ac_fn_c_try_link "$LINENO"; then :
14893 py_cv_lib_readline=yes
14894fi
14895rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 if test $py_cv_lib_readline = yes; then
14898 break
14899 fi
14900done
14901# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
14902#AC_SUBST([READLINE_LIBS])
14903if test $py_cv_lib_readline = no; then
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14905$as_echo "none" >&6; }
14906else
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
14908$as_echo "$READLINE_LIBS" >&6; }
14909
14910$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14911
14912fi
14913
14914# check for readline 2.1
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
14916$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
14917if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919else
14920 ac_check_lib_save_LIBS=$LIBS
14921LIBS="-lreadline $READLINE_LIBS $LIBS"
14922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923/* end confdefs.h. */
14924
14925/* Override any GCC internal prototype to avoid an error.
14926 Use char because int might match the return type of a GCC
14927 builtin and then its argument prototype would still apply. */
14928#ifdef __cplusplus
14929extern "C"
14930#endif
14931char rl_callback_handler_install ();
14932int
14933main ()
14934{
14935return rl_callback_handler_install ();
14936 ;
14937 return 0;
14938}
14939_ACEOF
14940if ac_fn_c_try_link "$LINENO"; then :
14941 ac_cv_lib_readline_rl_callback_handler_install=yes
14942else
14943 ac_cv_lib_readline_rl_callback_handler_install=no
14944fi
14945rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14947LIBS=$ac_check_lib_save_LIBS
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
14950$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
14951if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
14952
14953$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
14954
14955fi
14956
14957
14958# check for readline 2.2
14959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h. */
14961#include <readline/readline.h>
14962_ACEOF
14963if ac_fn_c_try_cpp "$LINENO"; then :
14964 have_readline=yes
14965else
14966 have_readline=no
14967
14968fi
14969rm -f conftest.err conftest.i conftest.$ac_ext
14970if test $have_readline = yes
14971then
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973/* end confdefs.h. */
14974#include <readline/readline.h>
14975
14976_ACEOF
14977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14978 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
14979
14980$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
14981
14982fi
14983rm -f conftest*
14984
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h. */
14987#include <readline/readline.h>
14988
14989_ACEOF
14990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14991 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
14992
14993$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
14994
14995fi
14996rm -f conftest*
14997
14998fi
14999
15000# check for readline 4.0
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15002$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
15003if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005else
15006 ac_check_lib_save_LIBS=$LIBS
15007LIBS="-lreadline $READLINE_LIBS $LIBS"
15008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009/* end confdefs.h. */
15010
15011/* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014#ifdef __cplusplus
15015extern "C"
15016#endif
15017char rl_pre_input_hook ();
15018int
15019main ()
15020{
15021return rl_pre_input_hook ();
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026if ac_fn_c_try_link "$LINENO"; then :
15027 ac_cv_lib_readline_rl_pre_input_hook=yes
15028else
15029 ac_cv_lib_readline_rl_pre_input_hook=no
15030fi
15031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033LIBS=$ac_check_lib_save_LIBS
15034fi
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15036$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
15037if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
15038
15039$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
15040
15041fi
15042
15043
15044# also in 4.0
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
15046$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
15047if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
15048 $as_echo_n "(cached) " >&6
15049else
15050 ac_check_lib_save_LIBS=$LIBS
15051LIBS="-lreadline $READLINE_LIBS $LIBS"
15052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053/* end confdefs.h. */
15054
15055/* Override any GCC internal prototype to avoid an error.
15056 Use char because int might match the return type of a GCC
15057 builtin and then its argument prototype would still apply. */
15058#ifdef __cplusplus
15059extern "C"
15060#endif
15061char rl_completion_display_matches_hook ();
15062int
15063main ()
15064{
15065return rl_completion_display_matches_hook ();
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070if ac_fn_c_try_link "$LINENO"; then :
15071 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
15072else
15073 ac_cv_lib_readline_rl_completion_display_matches_hook=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15077LIBS=$ac_check_lib_save_LIBS
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
15080$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
15081if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
15082
15083$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
15084
15085fi
15086
15087
15088# also in 4.0, but not in editline
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15090$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15091if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093else
15094 ac_check_lib_save_LIBS=$LIBS
15095LIBS="-lreadline $READLINE_LIBS $LIBS"
15096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h. */
15098
15099/* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15102#ifdef __cplusplus
15103extern "C"
15104#endif
15105char rl_resize_terminal ();
15106int
15107main ()
15108{
15109return rl_resize_terminal ();
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115 ac_cv_lib_readline_rl_resize_terminal=yes
15116else
15117 ac_cv_lib_readline_rl_resize_terminal=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15124$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
15125if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
15126
15127$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
15128
15129fi
15130
15131
15132# check for readline 4.2
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15134$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
15135if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137else
15138 ac_check_lib_save_LIBS=$LIBS
15139LIBS="-lreadline $READLINE_LIBS $LIBS"
15140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141/* end confdefs.h. */
15142
15143/* Override any GCC internal prototype to avoid an error.
15144 Use char because int might match the return type of a GCC
15145 builtin and then its argument prototype would still apply. */
15146#ifdef __cplusplus
15147extern "C"
15148#endif
15149char rl_completion_matches ();
15150int
15151main ()
15152{
15153return rl_completion_matches ();
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_link "$LINENO"; then :
15159 ac_cv_lib_readline_rl_completion_matches=yes
15160else
15161 ac_cv_lib_readline_rl_completion_matches=no
15162fi
15163rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165LIBS=$ac_check_lib_save_LIBS
15166fi
15167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15168$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
15169if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
15170
15171$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
15172
15173fi
15174
15175
15176# also in readline 4.2
15177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h. */
15179#include <readline/readline.h>
15180_ACEOF
15181if ac_fn_c_try_cpp "$LINENO"; then :
15182 have_readline=yes
15183else
15184 have_readline=no
15185
15186fi
15187rm -f conftest.err conftest.i conftest.$ac_ext
15188if test $have_readline = yes
15189then
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191/* end confdefs.h. */
15192#include <readline/readline.h>
15193
15194_ACEOF
15195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
15197
15198$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
15199
15200fi
15201rm -f conftest*
15202
15203fi
15204
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15206$as_echo_n "checking for append_history in -lreadline... " >&6; }
15207if ${ac_cv_lib_readline_append_history+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209else
15210 ac_check_lib_save_LIBS=$LIBS
15211LIBS="-lreadline $READLINE_LIBS $LIBS"
15212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h. */
15214
15215/* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15218#ifdef __cplusplus
15219extern "C"
15220#endif
15221char append_history ();
15222int
15223main ()
15224{
15225return append_history ();
15226 ;
15227 return 0;
15228}
15229_ACEOF
15230if ac_fn_c_try_link "$LINENO"; then :
15231 ac_cv_lib_readline_append_history=yes
15232else
15233 ac_cv_lib_readline_append_history=no
15234fi
15235rm -f core conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15237LIBS=$ac_check_lib_save_LIBS
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15240$as_echo "$ac_cv_lib_readline_append_history" >&6; }
15241if test "x$ac_cv_lib_readline_append_history" = xyes; then :
15242
15243$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
15244
15245fi
15246
15247
15248# End of readline checks: restore LIBS
15249LIBS=$LIBS_no_readline
15250
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15252$as_echo_n "checking for broken nice()... " >&6; }
15253if ${ac_cv_broken_nice+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255else
15256
15257if test "$cross_compiling" = yes; then :
15258 ac_cv_broken_nice=no
15259else
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261/* end confdefs.h. */
15262
15263int main()
15264{
15265 int val1 = nice(1);
15266 if (val1 != -1 && val1 == nice(2))
15267 exit(0);
15268 exit(1);
15269}
15270
15271_ACEOF
15272if ac_fn_c_try_run "$LINENO"; then :
15273 ac_cv_broken_nice=yes
15274else
15275 ac_cv_broken_nice=no
15276fi
15277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15278 conftest.$ac_objext conftest.beam conftest.$ac_ext
15279fi
15280
15281fi
15282
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15284$as_echo "$ac_cv_broken_nice" >&6; }
15285if test "$ac_cv_broken_nice" = yes
15286then
15287
15288$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
15289
15290fi
15291
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15293$as_echo_n "checking for broken poll()... " >&6; }
15294if ${ac_cv_broken_poll+:} false; then :
15295 $as_echo_n "(cached) " >&6
15296else
15297 if test "$cross_compiling" = yes; then :
15298 ac_cv_broken_poll=no
15299else
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301/* end confdefs.h. */
15302
15303#include <poll.h>
15304
15305int main()
15306{
15307 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
15308 int poll_test;
15309
15310 close (42);
15311
15312 poll_test = poll(&poll_struct, 1, 0);
15313 if (poll_test < 0)
15314 return 0;
15315 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
15316 return 0;
15317 else
15318 return 1;
15319}
15320
15321_ACEOF
15322if ac_fn_c_try_run "$LINENO"; then :
15323 ac_cv_broken_poll=yes
15324else
15325 ac_cv_broken_poll=no
15326fi
15327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328 conftest.$ac_objext conftest.beam conftest.$ac_ext
15329fi
15330
15331fi
15332
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15334$as_echo "$ac_cv_broken_poll" >&6; }
15335if test "$ac_cv_broken_poll" = yes
15336then
15337
15338$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
15339
15340fi
15341
15342# Before we can test tzset, we need to check if struct tm has a tm_zone
15343# (which is not required by ISO C or UNIX spec) and/or if we support
15344# tzname[]
15345ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
15346#include <$ac_cv_struct_tm>
15347
15348"
15349if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
15350
15351cat >>confdefs.h <<_ACEOF
15352#define HAVE_STRUCT_TM_TM_ZONE 1
15353_ACEOF
15354
15355
15356fi
15357
15358if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15359
15360$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
15361
15362else
15363 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
15364"
15365if test "x$ac_cv_have_decl_tzname" = xyes; then :
15366 ac_have_decl=1
15367else
15368 ac_have_decl=0
15369fi
15370
15371cat >>confdefs.h <<_ACEOF
15372#define HAVE_DECL_TZNAME $ac_have_decl
15373_ACEOF
15374
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
15376$as_echo_n "checking for tzname... " >&6; }
15377if ${ac_cv_var_tzname+:} false; then :
15378 $as_echo_n "(cached) " >&6
15379else
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h. */
15382#include <time.h>
15383#if !HAVE_DECL_TZNAME
15384extern char *tzname[];
15385#endif
15386
15387int
15388main ()
15389{
15390return tzname[0][0];
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395if ac_fn_c_try_link "$LINENO"; then :
15396 ac_cv_var_tzname=yes
15397else
15398 ac_cv_var_tzname=no
15399fi
15400rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402fi
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
15404$as_echo "$ac_cv_var_tzname" >&6; }
15405 if test $ac_cv_var_tzname = yes; then
15406
15407$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
15408
15409 fi
15410fi
15411
15412
15413# check tzset(3) exists and works like we expect it to
15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15415$as_echo_n "checking for working tzset()... " >&6; }
15416if ${ac_cv_working_tzset+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418else
15419
15420if test "$cross_compiling" = yes; then :
15421 ac_cv_working_tzset=no
15422else
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h. */
15425
15426#include <stdlib.h>
15427#include <time.h>
15428#include <string.h>
15429
15430#if HAVE_TZNAME
15431extern char *tzname[];
15432#endif
15433
15434int main()
15435{
15436 /* Note that we need to ensure that not only does tzset(3)
15437 do 'something' with localtime, but it works as documented
15438 in the library reference and as expected by the test suite.
15439 This includes making sure that tzname is set properly if
15440 tm->tm_zone does not exist since it is the alternative way
15441 of getting timezone info.
15442
15443 Red Hat 6.2 doesn't understand the southern hemisphere
15444 after New Year's Day.
15445 */
15446
15447 time_t groundhogday = 1044144000; /* GMT-based */
15448 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
15449
15450 putenv("TZ=UTC+0");
15451 tzset();
15452 if (localtime(&groundhogday)->tm_hour != 0)
15453 exit(1);
15454#if HAVE_TZNAME
15455 /* For UTC, tzname[1] is sometimes "", sometimes " " */
15456 if (strcmp(tzname[0], "UTC") ||
15457 (tzname[1][0] != 0 && tzname[1][0] != ' '))
15458 exit(1);
15459#endif
15460
15461 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
15462 tzset();
15463 if (localtime(&groundhogday)->tm_hour != 19)
15464 exit(1);
15465#if HAVE_TZNAME
15466 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
15467 exit(1);
15468#endif
15469
15470 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15471 tzset();
15472 if (localtime(&groundhogday)->tm_hour != 11)
15473 exit(1);
15474#if HAVE_TZNAME
15475 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
15476 exit(1);
15477#endif
15478
15479#if HAVE_STRUCT_TM_TM_ZONE
15480 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15481 exit(1);
15482 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15483 exit(1);
15484#endif
15485
15486 exit(0);
15487}
15488
15489_ACEOF
15490if ac_fn_c_try_run "$LINENO"; then :
15491 ac_cv_working_tzset=yes
15492else
15493 ac_cv_working_tzset=no
15494fi
15495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15496 conftest.$ac_objext conftest.beam conftest.$ac_ext
15497fi
15498
15499fi
15500
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15502$as_echo "$ac_cv_working_tzset" >&6; }
15503if test "$ac_cv_working_tzset" = yes
15504then
15505
15506$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
15507
15508fi
15509
15510# Look for subsecond timestamps in struct stat
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15512$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
15513if ${ac_cv_stat_tv_nsec+:} false; then :
15514 $as_echo_n "(cached) " >&6
15515else
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517/* end confdefs.h. */
15518#include <sys/stat.h>
15519int
15520main ()
15521{
15522
15523struct stat st;
15524st.st_mtim.tv_nsec = 1;
15525
15526 ;
15527 return 0;
15528}
15529_ACEOF
15530if ac_fn_c_try_compile "$LINENO"; then :
15531 ac_cv_stat_tv_nsec=yes
15532else
15533 ac_cv_stat_tv_nsec=no
15534fi
15535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536fi
15537
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15539$as_echo "$ac_cv_stat_tv_nsec" >&6; }
15540if test "$ac_cv_stat_tv_nsec" = yes
15541then
15542
15543$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
15544
15545fi
15546
15547# Look for BSD style subsecond timestamps in struct stat
15548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15549$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
15550if ${ac_cv_stat_tv_nsec2+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552else
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554/* end confdefs.h. */
15555#include <sys/stat.h>
15556int
15557main ()
15558{
15559
15560struct stat st;
15561st.st_mtimespec.tv_nsec = 1;
15562
15563 ;
15564 return 0;
15565}
15566_ACEOF
15567if ac_fn_c_try_compile "$LINENO"; then :
15568 ac_cv_stat_tv_nsec2=yes
15569else
15570 ac_cv_stat_tv_nsec2=no
15571fi
15572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573fi
15574
15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15576$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
15577if test "$ac_cv_stat_tv_nsec2" = yes
15578then
15579
15580$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
15581
15582fi
15583
15584# first curses header check
15585ac_save_cppflags="$CPPFLAGS"
15586CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15587
15588for ac_header in curses.h ncurses.h
15589do :
15590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15593 cat >>confdefs.h <<_ACEOF
15594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15595_ACEOF
15596
15597fi
15598
15599done
15600
15601
15602# On Solaris, term.h requires curses.h
15603for ac_header in term.h
15604do :
15605 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
15606#ifdef HAVE_CURSES_H
15607#include <curses.h>
15608#endif
15609
15610"
15611if test "x$ac_cv_header_term_h" = xyes; then :
15612 cat >>confdefs.h <<_ACEOF
15613#define HAVE_TERM_H 1
15614_ACEOF
15615
15616fi
15617
15618done
15619
15620
15621# On HP/UX 11.0, mvwdelch is a block with a return statement
15622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
15623$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
15624if ${ac_cv_mvwdelch_is_expression+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626else
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628/* end confdefs.h. */
15629#include <curses.h>
15630int
15631main ()
15632{
15633
15634 int rtn;
15635 rtn = mvwdelch(0,0,0);
15636
15637 ;
15638 return 0;
15639}
15640_ACEOF
15641if ac_fn_c_try_compile "$LINENO"; then :
15642 ac_cv_mvwdelch_is_expression=yes
15643else
15644 ac_cv_mvwdelch_is_expression=no
15645fi
15646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647fi
15648
15649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
15650$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
15651
15652if test "$ac_cv_mvwdelch_is_expression" = yes
15653then
15654
15655$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
15656
15657fi
15658
15659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
15660$as_echo_n "checking whether WINDOW has _flags... " >&6; }
15661if ${ac_cv_window_has_flags+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663else
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665/* end confdefs.h. */
15666#include <curses.h>
15667int
15668main ()
15669{
15670
15671 WINDOW *w;
15672 w->_flags = 0;
15673
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678if ac_fn_c_try_compile "$LINENO"; then :
15679 ac_cv_window_has_flags=yes
15680else
15681 ac_cv_window_has_flags=no
15682fi
15683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684fi
15685
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
15687$as_echo "$ac_cv_window_has_flags" >&6; }
15688
15689
15690if test "$ac_cv_window_has_flags" = yes
15691then
15692
15693$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
15694
15695fi
15696
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
15698$as_echo_n "checking for is_term_resized... " >&6; }
15699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700/* end confdefs.h. */
15701#include <curses.h>
15702int
15703main ()
15704{
15705void *x=is_term_resized
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710if ac_fn_c_try_compile "$LINENO"; then :
15711
15712$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
15713
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715$as_echo "yes" >&6; }
15716else
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718$as_echo "no" >&6; }
15719
15720fi
15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
15724$as_echo_n "checking for resize_term... " >&6; }
15725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726/* end confdefs.h. */
15727#include <curses.h>
15728int
15729main ()
15730{
15731void *x=resize_term
15732 ;
15733 return 0;
15734}
15735_ACEOF
15736if ac_fn_c_try_compile "$LINENO"; then :
15737
15738$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
15739
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15741$as_echo "yes" >&6; }
15742else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744$as_echo "no" >&6; }
15745
15746fi
15747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
15750$as_echo_n "checking for resizeterm... " >&6; }
15751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h. */
15753#include <curses.h>
15754int
15755main ()
15756{
15757void *x=resizeterm
15758 ;
15759 return 0;
15760}
15761_ACEOF
15762if ac_fn_c_try_compile "$LINENO"; then :
15763
15764$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15767$as_echo "yes" >&6; }
15768else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770$as_echo "no" >&6; }
15771
15772fi
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774# last curses configure check
15775CPPFLAGS=$ac_save_cppflags
15776
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
15778$as_echo "$as_me: checking for device files" >&6;}
15779
15780if test "x$cross_compiling" = xyes; then
15781 if test "${ac_cv_file__dev_ptmx+set}" != set; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15783$as_echo_n "checking for /dev/ptmx... " >&6; }
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15785$as_echo "not set" >&6; }
15786 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15787 fi
15788 if test "${ac_cv_file__dev_ptc+set}" != set; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15790$as_echo_n "checking for /dev/ptc... " >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
15792$as_echo "not set" >&6; }
15793 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
15794 fi
15795fi
15796
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
15798$as_echo_n "checking for /dev/ptmx... " >&6; }
15799if ${ac_cv_file__dev_ptmx+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801else
15802 test "$cross_compiling" = yes &&
15803 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15804if test -r "/dev/ptmx"; then
15805 ac_cv_file__dev_ptmx=yes
15806else
15807 ac_cv_file__dev_ptmx=no
15808fi
15809fi
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
15811$as_echo "$ac_cv_file__dev_ptmx" >&6; }
15812if test "x$ac_cv_file__dev_ptmx" = xyes; then :
15813
15814fi
15815
15816if test "x$ac_cv_file__dev_ptmx" = xyes; then
15817
15818$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15819
15820fi
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
15822$as_echo_n "checking for /dev/ptc... " >&6; }
15823if ${ac_cv_file__dev_ptc+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825else
15826 test "$cross_compiling" = yes &&
15827 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15828if test -r "/dev/ptc"; then
15829 ac_cv_file__dev_ptc=yes
15830else
15831 ac_cv_file__dev_ptc=no
15832fi
15833fi
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
15835$as_echo "$ac_cv_file__dev_ptc" >&6; }
15836if test "x$ac_cv_file__dev_ptc" = xyes; then :
15837
15838fi
15839
15840if test "x$ac_cv_file__dev_ptc" = xyes; then
15841
15842$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
15843
15844fi
15845
15846if test "$have_long_long" = yes
15847then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
15849$as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
15850 if ${ac_cv_have_long_long_format+:} false; then :
15851 $as_echo_n "(cached) " >&6
15852else
15853 if test "$cross_compiling" = yes; then :
15854 ac_cv_have_long_long_format="cross -- assuming no"
15855 if test x$GCC = xyes; then
15856 save_CFLAGS=$CFLAGS
15857 CFLAGS="$CFLAGS -Werror -Wformat"
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859/* end confdefs.h. */
15860
15861 #include <stdio.h>
15862 #include <stddef.h>
15863
15864int
15865main ()
15866{
15867
15868 char *buffer;
15869 sprintf(buffer, "%lld", (long long)123);
15870 sprintf(buffer, "%lld", (long long)-123);
15871 sprintf(buffer, "%llu", (unsigned long long)123);
15872
15873 ;
15874 return 0;
15875}
15876_ACEOF
15877if ac_fn_c_try_compile "$LINENO"; then :
15878 ac_cv_have_long_long_format=yes
15879
15880fi
15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 CFLAGS=$save_CFLAGS
15883 fi
15884else
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h. */
15887
15888 #include <stdio.h>
15889 #include <stddef.h>
15890 #include <string.h>
15891
15892 #ifdef HAVE_SYS_TYPES_H
15893 #include <sys/types.h>
15894 #endif
15895
15896 int main()
15897 {
15898 char buffer[256];
15899
15900 if (sprintf(buffer, "%lld", (long long)123) < 0)
15901 return 1;
15902 if (strcmp(buffer, "123"))
15903 return 1;
15904
15905 if (sprintf(buffer, "%lld", (long long)-123) < 0)
15906 return 1;
15907 if (strcmp(buffer, "-123"))
15908 return 1;
15909
15910 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
15911 return 1;
15912 if (strcmp(buffer, "123"))
15913 return 1;
15914
15915 return 0;
15916 }
15917
15918_ACEOF
15919if ac_fn_c_try_run "$LINENO"; then :
15920 ac_cv_have_long_long_format=yes
15921else
15922 ac_cv_have_long_long_format=no
15923fi
15924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15925 conftest.$ac_objext conftest.beam conftest.$ac_ext
15926fi
15927
15928
15929fi
15930
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
15932$as_echo "$ac_cv_have_long_long_format" >&6; }
15933fi
15934
15935if test "$ac_cv_have_long_long_format" = yes
15936then
15937
15938$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
15939
15940fi
15941
15942if test $ac_sys_system = Darwin
15943then
15944 LIBS="$LIBS -framework CoreFoundation"
15945fi
15946
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
15948$as_echo_n "checking for %zd printf() format support... " >&6; }
15949if ${ac_cv_have_size_t_format+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951else
15952 if test "$cross_compiling" = yes; then :
15953 ac_cv_have_size_t_format="cross -- assuming yes"
15954
15955else
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h. */
15958
15959#include <stdio.h>
15960#include <stddef.h>
15961#include <string.h>
15962
15963#ifdef HAVE_SYS_TYPES_H
15964#include <sys/types.h>
15965#endif
15966
15967#ifdef HAVE_SSIZE_T
15968typedef ssize_t Py_ssize_t;
15969#elif SIZEOF_VOID_P == SIZEOF_LONG
15970typedef long Py_ssize_t;
15971#else
15972typedef int Py_ssize_t;
15973#endif
15974
15975int main()
15976{
15977 char buffer[256];
15978
15979 if(sprintf(buffer, "%zd", (size_t)123) < 0)
15980 return 1;
15981
15982 if (strcmp(buffer, "123"))
15983 return 1;
15984
15985 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
15986 return 1;
15987
15988 if (strcmp(buffer, "-123"))
15989 return 1;
15990
15991 return 0;
15992}
15993
15994_ACEOF
15995if ac_fn_c_try_run "$LINENO"; then :
15996 ac_cv_have_size_t_format=yes
15997else
15998 ac_cv_have_size_t_format=no
15999fi
16000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16001 conftest.$ac_objext conftest.beam conftest.$ac_ext
16002fi
16003
16004fi
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16006$as_echo "$ac_cv_have_size_t_format" >&6; }
16007if test "$ac_cv_have_size_t_format" != no ; then
16008
16009$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
16010
16011fi
16012
16013ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16014#ifdef HAVE_SYS_TYPES_H
16015#include <sys/types.h>
16016#endif
16017#ifdef HAVE_SYS_SOCKET_H
16018#include <sys/socket.h>
16019#endif
16020
16021"
16022if test "x$ac_cv_type_socklen_t" = xyes; then :
16023
16024else
16025
16026$as_echo "#define socklen_t int" >>confdefs.h
16027
16028fi
16029
16030
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16032$as_echo_n "checking for broken mbstowcs... " >&6; }
16033if ${ac_cv_broken_mbstowcs+:} false; then :
16034 $as_echo_n "(cached) " >&6
16035else
16036 if test "$cross_compiling" = yes; then :
16037 ac_cv_broken_mbstowcs=no
16038else
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041
16042#include <stdio.h>
16043#include<stdlib.h>
16044int main() {
16045 size_t len = -1;
16046 const char *str = "text";
16047 len = mbstowcs(NULL, str, 0);
16048 return (len != 4);
16049}
16050
16051_ACEOF
16052if ac_fn_c_try_run "$LINENO"; then :
16053 ac_cv_broken_mbstowcs=no
16054else
16055 ac_cv_broken_mbstowcs=yes
16056fi
16057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16058 conftest.$ac_objext conftest.beam conftest.$ac_ext
16059fi
16060
16061fi
16062
16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16064$as_echo "$ac_cv_broken_mbstowcs" >&6; }
16065if test "$ac_cv_broken_mbstowcs" = yes
16066then
16067
16068$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
16069
16070fi
16071
16072# Check for --with-computed-gotos
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16074$as_echo_n "checking for --with-computed-gotos... " >&6; }
16075
16076# Check whether --with-computed-gotos was given.
16077if test "${with_computed_gotos+set}" = set; then :
16078 withval=$with_computed_gotos;
16079if test "$withval" = yes
16080then
16081
16082$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
16083
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16085$as_echo "yes" >&6; }
16086fi
16087if test "$withval" = no
16088then
16089
16090$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093$as_echo "no" >&6; }
16094fi
16095
16096else
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16098$as_echo "no value specified" >&6; }
16099fi
16100
16101
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16103$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
16104if ${ac_cv_computed_gotos+:} false; then :
16105 $as_echo_n "(cached) " >&6
16106else
16107 if test "$cross_compiling" = yes; then :
16108 if test "${with_computed_gotos+set}" = set; then
16109 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16110 else
16111 ac_cv_computed_gotos=no
16112 fi
16113else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h. */
16116
16117int main(int argc, char **argv)
16118{
16119 static void *targets[1] = { &&LABEL1 };
16120 goto LABEL2;
16121LABEL1:
16122 return 0;
16123LABEL2:
16124 goto *targets[0];
16125 return 1;
16126}
16127
16128_ACEOF
16129if ac_fn_c_try_run "$LINENO"; then :
16130 ac_cv_computed_gotos=yes
16131else
16132 ac_cv_computed_gotos=no
16133fi
16134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135 conftest.$ac_objext conftest.beam conftest.$ac_ext
16136fi
16137
16138fi
16139
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16141$as_echo "$ac_cv_computed_gotos" >&6; }
16142case "$ac_cv_computed_gotos" in yes*)
16143
16144$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
16145
16146esac
16147
16148case $ac_sys_system in
16149AIX*)
16150
16151$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
16152 ;;
16153esac
16154
16155
16156
16157
16158for h in `(cd $srcdir;echo Python/thread_*.h)`
16159do
16160 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16161done
16162
16163
16164SRCDIRS="Parser Grammar Objects Python Modules Mac Programs"
16165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16166$as_echo_n "checking for build directories... " >&6; }
16167for dir in $SRCDIRS; do
16168 if test ! -d $dir; then
16169 mkdir $dir
16170 fi
16171done
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16173$as_echo "done" >&6; }
16174
16175# Availability of -O2:
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16177$as_echo_n "checking for -O2... " >&6; }
16178saved_cflags="$CFLAGS"
16179CFLAGS="-O2"
16180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h. */
16182
16183int
16184main ()
16185{
16186
16187
16188 ;
16189 return 0;
16190}
16191_ACEOF
16192if ac_fn_c_try_compile "$LINENO"; then :
16193 have_O2=yes
16194else
16195 have_O2=no
16196fi
16197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16199$as_echo "$have_O2" >&6; }
16200CFLAGS="$saved_cflags"
16201
16202# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16203# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16205$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16206saved_cflags="$CFLAGS"
16207CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16208if test "$have_O2" = no; then
16209 CFLAGS=""
16210fi
16211if test "$cross_compiling" = yes; then :
16212 have_glibc_memmove_bug=undefined
16213else
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h. */
16216
16217#include <stdio.h>
16218#include <stdlib.h>
16219#include <string.h>
16220void foo(void *p, void *q) { memmove(p, q, 19); }
16221int main() {
16222 char a[32] = "123456789000000000";
16223 foo(&a[9], a);
16224 if (strcmp(a, "123456789123456789000000000") != 0)
16225 return 1;
16226 foo(a, &a[9]);
16227 if (strcmp(a, "123456789000000000") != 0)
16228 return 1;
16229 return 0;
16230}
16231
16232_ACEOF
16233if ac_fn_c_try_run "$LINENO"; then :
16234 have_glibc_memmove_bug=no
16235else
16236 have_glibc_memmove_bug=yes
16237fi
16238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16239 conftest.$ac_objext conftest.beam conftest.$ac_ext
16240fi
16241
16242CFLAGS="$saved_cflags"
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16244$as_echo "$have_glibc_memmove_bug" >&6; }
16245if test "$have_glibc_memmove_bug" = yes; then
16246
16247$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
16248
16249fi
16250
16251if test "$have_gcc_asm_for_x87" = yes; then
16252 # Some versions of gcc miscompile inline asm:
16253 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16254 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16255 case $CC in
16256 *gcc*)
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16258$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16259 saved_cflags="$CFLAGS"
16260 CFLAGS="-O2"
16261 if test "$cross_compiling" = yes; then :
16262 have_ipa_pure_const_bug=undefined
16263else
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265/* end confdefs.h. */
16266
16267 __attribute__((noinline)) int
16268 foo(int *p) {
16269 int r;
16270 asm ( "movl \$6, (%1)\n\t"
16271 "xorl %0, %0\n\t"
16272 : "=r" (r) : "r" (p) : "memory"
16273 );
16274 return r;
16275 }
16276 int main() {
16277 int p = 8;
16278 if ((foo(&p) ? : p) != 6)
16279 return 1;
16280 return 0;
16281 }
16282
16283_ACEOF
16284if ac_fn_c_try_run "$LINENO"; then :
16285 have_ipa_pure_const_bug=no
16286else
16287 have_ipa_pure_const_bug=yes
16288fi
16289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16290 conftest.$ac_objext conftest.beam conftest.$ac_ext
16291fi
16292
16293 CFLAGS="$saved_cflags"
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16295$as_echo "$have_ipa_pure_const_bug" >&6; }
16296 if test "$have_ipa_pure_const_bug" = yes; then
16297
16298$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
16299
16300 fi
16301 ;;
16302 esac
16303fi
16304
16305# Check for stdatomic.h
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16307$as_echo_n "checking for stdatomic.h... " >&6; }
16308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h. */
16310
16311
16312 #include <stdatomic.h>
16313 atomic_int value = ATOMIC_VAR_INIT(1);
16314 _Atomic void *py_atomic_address = (void*) &value;
16315 int main() {
16316 int loaded_value = atomic_load(&value);
16317 return 0;
16318 }
16319
16320
16321_ACEOF
16322if ac_fn_c_try_link "$LINENO"; then :
16323 have_stdatomic_h=yes
16324else
16325 have_stdatomic_h=no
16326fi
16327rm -f core conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16329
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16331$as_echo "$have_stdatomic_h" >&6; }
16332
16333if test "$have_stdatomic_h" = yes; then
16334
16335$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
16336
16337fi
16338
16339# Check for GCC >= 4.7 __atomic builtins
16340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16341$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h. */
16344
16345
16346 volatile int val = 1;
16347 int main() {
16348 __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16349 return 0;
16350 }
16351
16352
16353_ACEOF
16354if ac_fn_c_try_link "$LINENO"; then :
16355 have_builtin_atomic=yes
16356else
16357 have_builtin_atomic=no
16358fi
16359rm -f core conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16363$as_echo "$have_builtin_atomic" >&6; }
16364
16365if test "$have_builtin_atomic" = yes; then
16366
16367$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
16368
16369fi
16370
16371# ensurepip option
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16373$as_echo_n "checking for ensurepip... " >&6; }
16374
16375# Check whether --with-ensurepip was given.
16376if test "${with_ensurepip+set}" = set; then :
16377 withval=$with_ensurepip;
16378else
16379 with_ensurepip=upgrade
16380fi
16381
16382case $with_ensurepip in #(
16383 yes|upgrade) :
16384 ENSUREPIP=upgrade ;; #(
16385 install) :
16386 ENSUREPIP=install ;; #(
16387 no) :
16388 ENSUREPIP=no ;; #(
16389 *) :
16390 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16391esac
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16393$as_echo "$ENSUREPIP" >&6; }
16394
16395
16396# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
16397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16398$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
16399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h. */
16401
16402
16403 #include <dirent.h>
16404
16405 int main() {
16406 struct dirent entry;
16407 return entry.d_type == DT_UNKNOWN;
16408 }
16409
16410
16411_ACEOF
16412if ac_fn_c_try_link "$LINENO"; then :
16413 have_dirent_d_type=yes
16414else
16415 have_dirent_d_type=no
16416fi
16417rm -f core conftest.err conftest.$ac_objext \
16418 conftest$ac_exeext conftest.$ac_ext
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16420$as_echo "$have_dirent_d_type" >&6; }
16421
16422if test "$have_dirent_d_type" = yes; then
16423
16424$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16425
16426fi
16427
16428# check if the Linux getrandom() syscall is available
16429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
16430$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
16431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432/* end confdefs.h. */
16433
16434
16435 #include <unistd.h>
16436 #include <sys/syscall.h>
16437 #include <linux/random.h>
16438
16439 int main() {
16440 char buffer[1];
16441 const size_t buflen = sizeof(buffer);
16442 const int flags = GRND_NONBLOCK;
16443 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
16444 (void)syscall(SYS_getrandom, buffer, buflen, flags);
16445 return 0;
16446 }
16447
16448
16449_ACEOF
16450if ac_fn_c_try_link "$LINENO"; then :
16451 have_getrandom_syscall=yes
16452else
16453 have_getrandom_syscall=no
16454fi
16455rm -f core conftest.err conftest.$ac_objext \
16456 conftest$ac_exeext conftest.$ac_ext
16457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
16458$as_echo "$have_getrandom_syscall" >&6; }
16459
16460if test "$have_getrandom_syscall" = yes; then
16461
16462$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
16463
16464fi
16465
16466# check if the getrandom() function is available
16467# the test was written for the Solaris function of <sys/random.h>
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
16469$as_echo_n "checking for the getrandom() function... " >&6; }
16470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h. */
16472
16473
16474 #include <sys/random.h>
16475
16476 int main() {
16477 char buffer[1];
16478 const size_t buflen = sizeof(buffer);
16479 const int flags = 0;
16480 /* ignore the result, Python checks for ENOSYS at runtime */
16481 (void)getrandom(buffer, buflen, flags);
16482 return 0;
16483 }
16484
16485
16486_ACEOF
16487if ac_fn_c_try_link "$LINENO"; then :
16488 have_getrandom=yes
16489else
16490 have_getrandom=no
16491fi
16492rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
16495$as_echo "$have_getrandom" >&6; }
16496
16497if test "$have_getrandom" = yes; then
16498
16499$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
16500
16501fi
16502
16503# generate output files
16504ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh"
16505
16506ac_config_files="$ac_config_files Modules/ld_so_aix"
16507
16508cat >confcache <<\_ACEOF
16509# This file is a shell script that caches the results of configure
16510# tests run on this system so they can be shared between configure
16511# scripts and configure runs, see configure's option --config-cache.
16512# It is not useful on other systems. If it contains results you don't
16513# want to keep, you may remove or edit it.
16514#
16515# config.status only pays attention to the cache file if you give it
16516# the --recheck option to rerun configure.
16517#
16518# `ac_cv_env_foo' variables (set or unset) will be overridden when
16519# loading this file, other *unset* `ac_cv_foo' will be assigned the
16520# following values.
16521
16522_ACEOF
16523
16524# The following way of writing the cache mishandles newlines in values,
16525# but we know of no workaround that is simple, portable, and efficient.
16526# So, we kill variables containing newlines.
16527# Ultrix sh set writes to stderr and can't be redirected directly,
16528# and sets the high bit in the cache file unless we assign to the vars.
16529(
16530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16531 eval ac_val=\$$ac_var
16532 case $ac_val in #(
16533 *${as_nl}*)
16534 case $ac_var in #(
16535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16536$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16537 esac
16538 case $ac_var in #(
16539 _ | IFS | as_nl) ;; #(
16540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16541 *) { eval $ac_var=; unset $ac_var;} ;;
16542 esac ;;
16543 esac
16544 done
16545
16546 (set) 2>&1 |
16547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16548 *${as_nl}ac_space=\ *)
16549 # `set' does not quote correctly, so add quotes: double-quote
16550 # substitution turns \\\\ into \\, and sed turns \\ into \.
16551 sed -n \
16552 "s/'/'\\\\''/g;
16553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16554 ;; #(
16555 *)
16556 # `set' quotes correctly as required by POSIX, so do not add quotes.
16557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16558 ;;
16559 esac |
16560 sort
16561) |
16562 sed '
16563 /^ac_cv_env_/b end
16564 t clear
16565 :clear
16566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16567 t end
16568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16569 :end' >>confcache
16570if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16571 if test -w "$cache_file"; then
16572 if test "x$cache_file" != "x/dev/null"; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16574$as_echo "$as_me: updating cache $cache_file" >&6;}
16575 if test ! -f "$cache_file" || test -h "$cache_file"; then
16576 cat confcache >"$cache_file"
16577 else
16578 case $cache_file in #(
16579 */* | ?:*)
16580 mv -f confcache "$cache_file"$$ &&
16581 mv -f "$cache_file"$$ "$cache_file" ;; #(
16582 *)
16583 mv -f confcache "$cache_file" ;;
16584 esac
16585 fi
16586 fi
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16589$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16590 fi
16591fi
16592rm -f confcache
16593
16594test "x$prefix" = xNONE && prefix=$ac_default_prefix
16595# Let make expand exec_prefix.
16596test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16597
16598DEFS=-DHAVE_CONFIG_H
16599
16600ac_libobjs=
16601ac_ltlibobjs=
16602U=
16603for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16604 # 1. Remove the extension, and $U if already installed.
16605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16608 # will be set to the directory where LIBOBJS objects are built.
16609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16611done
16612LIBOBJS=$ac_libobjs
16613
16614LTLIBOBJS=$ac_ltlibobjs
16615
16616
16617
16618
16619: "${CONFIG_STATUS=./config.status}"
16620ac_write_fail=0
16621ac_clean_files_save=$ac_clean_files
16622ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16624$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16625as_write_fail=0
16626cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16627#! $SHELL
16628# Generated by $as_me.
16629# Run this file to recreate the current configuration.
16630# Compiler output produced by configure, useful for debugging
16631# configure, is in config.log if it exists.
16632
16633debug=false
16634ac_cs_recheck=false
16635ac_cs_silent=false
16636
16637SHELL=\${CONFIG_SHELL-$SHELL}
16638export SHELL
16639_ASEOF
16640cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16641## -------------------- ##
16642## M4sh Initialization. ##
16643## -------------------- ##
16644
16645# Be more Bourne compatible
16646DUALCASE=1; export DUALCASE # for MKS sh
16647if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16648 emulate sh
16649 NULLCMD=:
16650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16651 # is contrary to our usage. Disable this feature.
16652 alias -g '${1+"$@"}'='"$@"'
16653 setopt NO_GLOB_SUBST
16654else
16655 case `(set -o) 2>/dev/null` in #(
16656 *posix*) :
16657 set -o posix ;; #(
16658 *) :
16659 ;;
16660esac
16661fi
16662
16663
16664as_nl='
16665'
16666export as_nl
16667# Printing a long string crashes Solaris 7 /usr/bin/printf.
16668as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16670as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16671# Prefer a ksh shell builtin over an external printf program on Solaris,
16672# but without wasting forks for bash or zsh.
16673if test -z "$BASH_VERSION$ZSH_VERSION" \
16674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16675 as_echo='print -r --'
16676 as_echo_n='print -rn --'
16677elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16678 as_echo='printf %s\n'
16679 as_echo_n='printf %s'
16680else
16681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16683 as_echo_n='/usr/ucb/echo -n'
16684 else
16685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16686 as_echo_n_body='eval
16687 arg=$1;
16688 case $arg in #(
16689 *"$as_nl"*)
16690 expr "X$arg" : "X\\(.*\\)$as_nl";
16691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16692 esac;
16693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16694 '
16695 export as_echo_n_body
16696 as_echo_n='sh -c $as_echo_n_body as_echo'
16697 fi
16698 export as_echo_body
16699 as_echo='sh -c $as_echo_body as_echo'
16700fi
16701
16702# The user is always right.
16703if test "${PATH_SEPARATOR+set}" != set; then
16704 PATH_SEPARATOR=:
16705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16707 PATH_SEPARATOR=';'
16708 }
16709fi
16710
16711
16712# IFS
16713# We need space, tab and new line, in precisely that order. Quoting is
16714# there to prevent editors from complaining about space-tab.
16715# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16716# splitting by setting IFS to empty value.)
16717IFS=" "" $as_nl"
16718
16719# Find who we are. Look in the path if we contain no directory separator.
16720as_myself=
16721case $0 in #((
16722 *[\\/]* ) as_myself=$0 ;;
16723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724for as_dir in $PATH
16725do
16726 IFS=$as_save_IFS
16727 test -z "$as_dir" && as_dir=.
16728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16729 done
16730IFS=$as_save_IFS
16731
16732 ;;
16733esac
16734# We did not find ourselves, most probably we were run as `sh COMMAND'
16735# in which case we are not to be found in the path.
16736if test "x$as_myself" = x; then
16737 as_myself=$0
16738fi
16739if test ! -f "$as_myself"; then
16740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16741 exit 1
16742fi
16743
16744# Unset variables that we do not need and which cause bugs (e.g. in
16745# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16746# suppresses any "Segmentation fault" message there. '((' could
16747# trigger a bug in pdksh 5.2.14.
16748for as_var in BASH_ENV ENV MAIL MAILPATH
16749do eval test x\${$as_var+set} = xset \
16750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16751done
16752PS1='$ '
16753PS2='> '
16754PS4='+ '
16755
16756# NLS nuisances.
16757LC_ALL=C
16758export LC_ALL
16759LANGUAGE=C
16760export LANGUAGE
16761
16762# CDPATH.
16763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16764
16765
16766# as_fn_error STATUS ERROR [LINENO LOG_FD]
16767# ----------------------------------------
16768# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16769# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16770# script with STATUS, using 1 if that was 0.
16771as_fn_error ()
16772{
16773 as_status=$1; test $as_status -eq 0 && as_status=1
16774 if test "$4"; then
16775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16777 fi
16778 $as_echo "$as_me: error: $2" >&2
16779 as_fn_exit $as_status
16780} # as_fn_error
16781
16782
16783# as_fn_set_status STATUS
16784# -----------------------
16785# Set $? to STATUS, without forking.
16786as_fn_set_status ()
16787{
16788 return $1
16789} # as_fn_set_status
16790
16791# as_fn_exit STATUS
16792# -----------------
16793# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16794as_fn_exit ()
16795{
16796 set +e
16797 as_fn_set_status $1
16798 exit $1
16799} # as_fn_exit
16800
16801# as_fn_unset VAR
16802# ---------------
16803# Portably unset VAR.
16804as_fn_unset ()
16805{
16806 { eval $1=; unset $1;}
16807}
16808as_unset=as_fn_unset
16809# as_fn_append VAR VALUE
16810# ----------------------
16811# Append the text in VALUE to the end of the definition contained in VAR. Take
16812# advantage of any shell optimizations that allow amortized linear growth over
16813# repeated appends, instead of the typical quadratic growth present in naive
16814# implementations.
16815if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16816 eval 'as_fn_append ()
16817 {
16818 eval $1+=\$2
16819 }'
16820else
16821 as_fn_append ()
16822 {
16823 eval $1=\$$1\$2
16824 }
16825fi # as_fn_append
16826
16827# as_fn_arith ARG...
16828# ------------------
16829# Perform arithmetic evaluation on the ARGs, and store the result in the
16830# global $as_val. Take advantage of shells that can avoid forks. The arguments
16831# must be portable across $(()) and expr.
16832if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16833 eval 'as_fn_arith ()
16834 {
16835 as_val=$(( $* ))
16836 }'
16837else
16838 as_fn_arith ()
16839 {
16840 as_val=`expr "$@" || test $? -eq 1`
16841 }
16842fi # as_fn_arith
16843
16844
16845if expr a : '\(a\)' >/dev/null 2>&1 &&
16846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16847 as_expr=expr
16848else
16849 as_expr=false
16850fi
16851
16852if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16853 as_basename=basename
16854else
16855 as_basename=false
16856fi
16857
16858if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16859 as_dirname=dirname
16860else
16861 as_dirname=false
16862fi
16863
16864as_me=`$as_basename -- "$0" ||
16865$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16866 X"$0" : 'X\(//\)$' \| \
16867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16868$as_echo X/"$0" |
16869 sed '/^.*\/\([^/][^/]*\)\/*$/{
16870 s//\1/
16871 q
16872 }
16873 /^X\/\(\/\/\)$/{
16874 s//\1/
16875 q
16876 }
16877 /^X\/\(\/\).*/{
16878 s//\1/
16879 q
16880 }
16881 s/.*/./; q'`
16882
16883# Avoid depending upon Character Ranges.
16884as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16885as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16886as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16887as_cr_digits='0123456789'
16888as_cr_alnum=$as_cr_Letters$as_cr_digits
16889
16890ECHO_C= ECHO_N= ECHO_T=
16891case `echo -n x` in #(((((
16892-n*)
16893 case `echo 'xy\c'` in
16894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16895 xy) ECHO_C='\c';;
16896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16897 ECHO_T=' ';;
16898 esac;;
16899*)
16900 ECHO_N='-n';;
16901esac
16902
16903rm -f conf$$ conf$$.exe conf$$.file
16904if test -d conf$$.dir; then
16905 rm -f conf$$.dir/conf$$.file
16906else
16907 rm -f conf$$.dir
16908 mkdir conf$$.dir 2>/dev/null
16909fi
16910if (echo >conf$$.file) 2>/dev/null; then
16911 if ln -s conf$$.file conf$$ 2>/dev/null; then
16912 as_ln_s='ln -s'
16913 # ... but there are two gotchas:
16914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16916 # In both cases, we have to default to `cp -pR'.
16917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16918 as_ln_s='cp -pR'
16919 elif ln conf$$.file conf$$ 2>/dev/null; then
16920 as_ln_s=ln
16921 else
16922 as_ln_s='cp -pR'
16923 fi
16924else
16925 as_ln_s='cp -pR'
16926fi
16927rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16928rmdir conf$$.dir 2>/dev/null
16929
16930
16931# as_fn_mkdir_p
16932# -------------
16933# Create "$as_dir" as a directory, including parents if necessary.
16934as_fn_mkdir_p ()
16935{
16936
16937 case $as_dir in #(
16938 -*) as_dir=./$as_dir;;
16939 esac
16940 test -d "$as_dir" || eval $as_mkdir_p || {
16941 as_dirs=
16942 while :; do
16943 case $as_dir in #(
16944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16945 *) as_qdir=$as_dir;;
16946 esac
16947 as_dirs="'$as_qdir' $as_dirs"
16948 as_dir=`$as_dirname -- "$as_dir" ||
16949$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16950 X"$as_dir" : 'X\(//\)[^/]' \| \
16951 X"$as_dir" : 'X\(//\)$' \| \
16952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16953$as_echo X"$as_dir" |
16954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955 s//\1/
16956 q
16957 }
16958 /^X\(\/\/\)[^/].*/{
16959 s//\1/
16960 q
16961 }
16962 /^X\(\/\/\)$/{
16963 s//\1/
16964 q
16965 }
16966 /^X\(\/\).*/{
16967 s//\1/
16968 q
16969 }
16970 s/.*/./; q'`
16971 test -d "$as_dir" && break
16972 done
16973 test -z "$as_dirs" || eval "mkdir $as_dirs"
16974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16975
16976
16977} # as_fn_mkdir_p
16978if mkdir -p . 2>/dev/null; then
16979 as_mkdir_p='mkdir -p "$as_dir"'
16980else
16981 test -d ./-p && rmdir ./-p
16982 as_mkdir_p=false
16983fi
16984
16985
16986# as_fn_executable_p FILE
16987# -----------------------
16988# Test if FILE is an executable regular file.
16989as_fn_executable_p ()
16990{
16991 test -f "$1" && test -x "$1"
16992} # as_fn_executable_p
16993as_test_x='test -x'
16994as_executable_p=as_fn_executable_p
16995
16996# Sed expression to map a string onto a valid CPP name.
16997as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16998
16999# Sed expression to map a string onto a valid variable name.
17000as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17001
17002
17003exec 6>&1
17004## ----------------------------------- ##
17005## Main body of $CONFIG_STATUS script. ##
17006## ----------------------------------- ##
17007_ASEOF
17008test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17009
17010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011# Save the log message, to keep $0 and so on meaningful, and to
17012# report actual input values of CONFIG_FILES etc. instead of their
17013# values after options handling.
17014ac_log="
17015This file was extended by python $as_me 3.5, which was
17016generated by GNU Autoconf 2.69. Invocation command line was
17017
17018 CONFIG_FILES = $CONFIG_FILES
17019 CONFIG_HEADERS = $CONFIG_HEADERS
17020 CONFIG_LINKS = $CONFIG_LINKS
17021 CONFIG_COMMANDS = $CONFIG_COMMANDS
17022 $ $0 $@
17023
17024on `(hostname || uname -n) 2>/dev/null | sed 1q`
17025"
17026
17027_ACEOF
17028
17029case $ac_config_files in *"
17030"*) set x $ac_config_files; shift; ac_config_files=$*;;
17031esac
17032
17033case $ac_config_headers in *"
17034"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17035esac
17036
17037
17038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17039# Files that config.status was made for.
17040config_files="$ac_config_files"
17041config_headers="$ac_config_headers"
17042
17043_ACEOF
17044
17045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046ac_cs_usage="\
17047\`$as_me' instantiates files and other configuration actions
17048from templates according to the current configuration. Unless the files
17049and actions are specified as TAGs, all are instantiated by default.
17050
17051Usage: $0 [OPTION]... [TAG]...
17052
17053 -h, --help print this help, then exit
17054 -V, --version print version number and configuration settings, then exit
17055 --config print configuration, then exit
17056 -q, --quiet, --silent
17057 do not print progress messages
17058 -d, --debug don't remove temporary files
17059 --recheck update $as_me by reconfiguring in the same conditions
17060 --file=FILE[:TEMPLATE]
17061 instantiate the configuration file FILE
17062 --header=FILE[:TEMPLATE]
17063 instantiate the configuration header FILE
17064
17065Configuration files:
17066$config_files
17067
17068Configuration headers:
17069$config_headers
17070
17071Report bugs to <https://bugs.python.org/>."
17072
17073_ACEOF
17074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17076ac_cs_version="\\
17077python config.status 3.5
17078configured by $0, generated by GNU Autoconf 2.69,
17079 with options \\"\$ac_cs_config\\"
17080
17081Copyright (C) 2012 Free Software Foundation, Inc.
17082This config.status script is free software; the Free Software Foundation
17083gives unlimited permission to copy, distribute and modify it."
17084
17085ac_pwd='$ac_pwd'
17086srcdir='$srcdir'
17087INSTALL='$INSTALL'
17088MKDIR_P='$MKDIR_P'
17089test -n "\$AWK" || AWK=awk
17090_ACEOF
17091
17092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093# The default lists apply if the user does not specify any file.
17094ac_need_defaults=:
17095while test $# != 0
17096do
17097 case $1 in
17098 --*=?*)
17099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17101 ac_shift=:
17102 ;;
17103 --*=)
17104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17105 ac_optarg=
17106 ac_shift=:
17107 ;;
17108 *)
17109 ac_option=$1
17110 ac_optarg=$2
17111 ac_shift=shift
17112 ;;
17113 esac
17114
17115 case $ac_option in
17116 # Handling of the options.
17117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17118 ac_cs_recheck=: ;;
17119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17120 $as_echo "$ac_cs_version"; exit ;;
17121 --config | --confi | --conf | --con | --co | --c )
17122 $as_echo "$ac_cs_config"; exit ;;
17123 --debug | --debu | --deb | --de | --d | -d )
17124 debug=: ;;
17125 --file | --fil | --fi | --f )
17126 $ac_shift
17127 case $ac_optarg in
17128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17129 '') as_fn_error $? "missing file argument" ;;
17130 esac
17131 as_fn_append CONFIG_FILES " '$ac_optarg'"
17132 ac_need_defaults=false;;
17133 --header | --heade | --head | --hea )
17134 $ac_shift
17135 case $ac_optarg in
17136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17137 esac
17138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17139 ac_need_defaults=false;;
17140 --he | --h)
17141 # Conflict between --help and --header
17142 as_fn_error $? "ambiguous option: \`$1'
17143Try \`$0 --help' for more information.";;
17144 --help | --hel | -h )
17145 $as_echo "$ac_cs_usage"; exit ;;
17146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17148 ac_cs_silent=: ;;
17149
17150 # This is an error.
17151 -*) as_fn_error $? "unrecognized option: \`$1'
17152Try \`$0 --help' for more information." ;;
17153
17154 *) as_fn_append ac_config_targets " $1"
17155 ac_need_defaults=false ;;
17156
17157 esac
17158 shift
17159done
17160
17161ac_configure_extra_args=
17162
17163if $ac_cs_silent; then
17164 exec 6>/dev/null
17165 ac_configure_extra_args="$ac_configure_extra_args --silent"
17166fi
17167
17168_ACEOF
17169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17170if \$ac_cs_recheck; then
17171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17172 shift
17173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17174 CONFIG_SHELL='$SHELL'
17175 export CONFIG_SHELL
17176 exec "\$@"
17177fi
17178
17179_ACEOF
17180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181exec 5>>config.log
17182{
17183 echo
17184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17185## Running $as_me. ##
17186_ASBOX
17187 $as_echo "$ac_log"
17188} >&5
17189
17190_ACEOF
17191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17192_ACEOF
17193
17194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17195
17196# Handling of arguments.
17197for ac_config_target in $ac_config_targets
17198do
17199 case $ac_config_target in
17200 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
17201 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
17202 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
17203 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
17204 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
17205 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
17206 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
17207 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
17208 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
17209 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
17210
17211 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17212 esac
17213done
17214
17215
17216# If the user did not use the arguments to specify the items to instantiate,
17217# then the envvar interface is used. Set only those that are not.
17218# We use the long form for the default assignment because of an extremely
17219# bizarre bug on SunOS 4.1.3.
17220if $ac_need_defaults; then
17221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17223fi
17224
17225# Have a temporary directory for convenience. Make it in the build tree
17226# simply because there is no reason against having it here, and in addition,
17227# creating and moving files from /tmp can sometimes cause problems.
17228# Hook for its removal unless debugging.
17229# Note that there is a small window in which the directory will not be cleaned:
17230# after its creation but before its name has been assigned to `$tmp'.
17231$debug ||
17232{
17233 tmp= ac_tmp=
17234 trap 'exit_status=$?
17235 : "${ac_tmp:=$tmp}"
17236 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17237' 0
17238 trap 'as_fn_exit 1' 1 2 13 15
17239}
17240# Create a (secure) tmp directory for tmp files.
17241
17242{
17243 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17244 test -d "$tmp"
17245} ||
17246{
17247 tmp=./conf$$-$RANDOM
17248 (umask 077 && mkdir "$tmp")
17249} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17250ac_tmp=$tmp
17251
17252# Set up the scripts for CONFIG_FILES section.
17253# No need to generate them if there are no CONFIG_FILES.
17254# This happens for instance with `./config.status config.h'.
17255if test -n "$CONFIG_FILES"; then
17256
17257
17258ac_cr=`echo X | tr X '\015'`
17259# On cygwin, bash can eat \r inside `` if the user requested igncr.
17260# But we know of no other shell where ac_cr would be empty at this
17261# point, so we can use a bashism as a fallback.
17262if test "x$ac_cr" = x; then
17263 eval ac_cr=\$\'\\r\'
17264fi
17265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17267 ac_cs_awk_cr='\\r'
17268else
17269 ac_cs_awk_cr=$ac_cr
17270fi
17271
17272echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17273_ACEOF
17274
17275
17276{
17277 echo "cat >conf$$subs.awk <<_ACEOF" &&
17278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17279 echo "_ACEOF"
17280} >conf$$subs.sh ||
17281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17282ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17283ac_delim='%!_!# '
17284for ac_last_try in false false false false false :; do
17285 . ./conf$$subs.sh ||
17286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17287
17288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17289 if test $ac_delim_n = $ac_delim_num; then
17290 break
17291 elif $ac_last_try; then
17292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17293 else
17294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17295 fi
17296done
17297rm -f conf$$subs.sh
17298
17299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17300cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17301_ACEOF
17302sed -n '
17303h
17304s/^/S["/; s/!.*/"]=/
17305p
17306g
17307s/^[^!]*!//
17308:repl
17309t repl
17310s/'"$ac_delim"'$//
17311t delim
17312:nl
17313h
17314s/\(.\{148\}\)..*/\1/
17315t more1
17316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17317p
17318n
17319b repl
17320:more1
17321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17322p
17323g
17324s/.\{148\}//
17325t nl
17326:delim
17327h
17328s/\(.\{148\}\)..*/\1/
17329t more2
17330s/["\\]/\\&/g; s/^/"/; s/$/"/
17331p
17332b
17333:more2
17334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17335p
17336g
17337s/.\{148\}//
17338t delim
17339' <conf$$subs.awk | sed '
17340/^[^""]/{
17341 N
17342 s/\n//
17343}
17344' >>$CONFIG_STATUS || ac_write_fail=1
17345rm -f conf$$subs.awk
17346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17347_ACAWK
17348cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17349 for (key in S) S_is_set[key] = 1
17350 FS = ""
17351
17352}
17353{
17354 line = $ 0
17355 nfields = split(line, field, "@")
17356 substed = 0
17357 len = length(field[1])
17358 for (i = 2; i < nfields; i++) {
17359 key = field[i]
17360 keylen = length(key)
17361 if (S_is_set[key]) {
17362 value = S[key]
17363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17364 len += length(value) + length(field[++i])
17365 substed = 1
17366 } else
17367 len += 1 + keylen
17368 }
17369
17370 print line
17371}
17372
17373_ACAWK
17374_ACEOF
17375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17378else
17379 cat
17380fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17381 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17382_ACEOF
17383
17384# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17385# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17386# trailing colons and then remove the whole line if VPATH becomes empty
17387# (actually we leave an empty line to preserve line numbers).
17388if test "x$srcdir" = x.; then
17389 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17390h
17391s///
17392s/^/:/
17393s/[ ]*$/:/
17394s/:\$(srcdir):/:/g
17395s/:\${srcdir}:/:/g
17396s/:@srcdir@:/:/g
17397s/^:*//
17398s/:*$//
17399x
17400s/\(=[ ]*\).*/\1/
17401G
17402s/\n//
17403s/^[^=]*=[ ]*$//
17404}'
17405fi
17406
17407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17408fi # test -n "$CONFIG_FILES"
17409
17410# Set up the scripts for CONFIG_HEADERS section.
17411# No need to generate them if there are no CONFIG_HEADERS.
17412# This happens for instance with `./config.status Makefile'.
17413if test -n "$CONFIG_HEADERS"; then
17414cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17415BEGIN {
17416_ACEOF
17417
17418# Transform confdefs.h into an awk script `defines.awk', embedded as
17419# here-document in config.status, that substitutes the proper values into
17420# config.h.in to produce config.h.
17421
17422# Create a delimiter string that does not exist in confdefs.h, to ease
17423# handling of long lines.
17424ac_delim='%!_!# '
17425for ac_last_try in false false :; do
17426 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17427 if test -z "$ac_tt"; then
17428 break
17429 elif $ac_last_try; then
17430 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17431 else
17432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17433 fi
17434done
17435
17436# For the awk script, D is an array of macro values keyed by name,
17437# likewise P contains macro parameters if any. Preserve backslash
17438# newline sequences.
17439
17440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17441sed -n '
17442s/.\{148\}/&'"$ac_delim"'/g
17443t rset
17444:rset
17445s/^[ ]*#[ ]*define[ ][ ]*/ /
17446t def
17447d
17448:def
17449s/\\$//
17450t bsnl
17451s/["\\]/\\&/g
17452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17453D["\1"]=" \3"/p
17454s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17455d
17456:bsnl
17457s/["\\]/\\&/g
17458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17459D["\1"]=" \3\\\\\\n"\\/p
17460t cont
17461s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17462t cont
17463d
17464:cont
17465n
17466s/.\{148\}/&'"$ac_delim"'/g
17467t clear
17468:clear
17469s/\\$//
17470t bsnlc
17471s/["\\]/\\&/g; s/^/"/; s/$/"/p
17472d
17473:bsnlc
17474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17475b cont
17476' <confdefs.h | sed '
17477s/'"$ac_delim"'/"\\\
17478"/g' >>$CONFIG_STATUS || ac_write_fail=1
17479
17480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17481 for (key in D) D_is_set[key] = 1
17482 FS = ""
17483}
17484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17485 line = \$ 0
17486 split(line, arg, " ")
17487 if (arg[1] == "#") {
17488 defundef = arg[2]
17489 mac1 = arg[3]
17490 } else {
17491 defundef = substr(arg[1], 2)
17492 mac1 = arg[2]
17493 }
17494 split(mac1, mac2, "(") #)
17495 macro = mac2[1]
17496 prefix = substr(line, 1, index(line, defundef) - 1)
17497 if (D_is_set[macro]) {
17498 # Preserve the white space surrounding the "#".
17499 print prefix "define", macro P[macro] D[macro]
17500 next
17501 } else {
17502 # Replace #undef with comments. This is necessary, for example,
17503 # in the case of _POSIX_SOURCE, which is predefined and required
17504 # on some systems where configure will not decide to define it.
17505 if (defundef == "undef") {
17506 print "/*", prefix defundef, macro, "*/"
17507 next
17508 }
17509 }
17510}
17511{ print }
17512_ACAWK
17513_ACEOF
17514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17516fi # test -n "$CONFIG_HEADERS"
17517
17518
17519eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17520shift
17521for ac_tag
17522do
17523 case $ac_tag in
17524 :[FHLC]) ac_mode=$ac_tag; continue;;
17525 esac
17526 case $ac_mode$ac_tag in
17527 :[FHL]*:*);;
17528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17529 :[FH]-) ac_tag=-:-;;
17530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17531 esac
17532 ac_save_IFS=$IFS
17533 IFS=:
17534 set x $ac_tag
17535 IFS=$ac_save_IFS
17536 shift
17537 ac_file=$1
17538 shift
17539
17540 case $ac_mode in
17541 :L) ac_source=$1;;
17542 :[FH])
17543 ac_file_inputs=
17544 for ac_f
17545 do
17546 case $ac_f in
17547 -) ac_f="$ac_tmp/stdin";;
17548 *) # Look for the file first in the build tree, then in the source tree
17549 # (if the path is not absolute). The absolute path cannot be DOS-style,
17550 # because $ac_f cannot contain `:'.
17551 test -f "$ac_f" ||
17552 case $ac_f in
17553 [\\/$]*) false;;
17554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17555 esac ||
17556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17557 esac
17558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17559 as_fn_append ac_file_inputs " '$ac_f'"
17560 done
17561
17562 # Let's still pretend it is `configure' which instantiates (i.e., don't
17563 # use $as_me), people would be surprised to read:
17564 # /* config.h. Generated by config.status. */
17565 configure_input='Generated from '`
17566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17567 `' by configure.'
17568 if test x"$ac_file" != x-; then
17569 configure_input="$ac_file. $configure_input"
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17571$as_echo "$as_me: creating $ac_file" >&6;}
17572 fi
17573 # Neutralize special characters interpreted by sed in replacement strings.
17574 case $configure_input in #(
17575 *\&* | *\|* | *\\* )
17576 ac_sed_conf_input=`$as_echo "$configure_input" |
17577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17578 *) ac_sed_conf_input=$configure_input;;
17579 esac
17580
17581 case $ac_tag in
17582 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17584 esac
17585 ;;
17586 esac
17587
17588 ac_dir=`$as_dirname -- "$ac_file" ||
17589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$ac_file" : 'X\(//\)[^/]' \| \
17591 X"$ac_file" : 'X\(//\)$' \| \
17592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17593$as_echo X"$ac_file" |
17594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17595 s//\1/
17596 q
17597 }
17598 /^X\(\/\/\)[^/].*/{
17599 s//\1/
17600 q
17601 }
17602 /^X\(\/\/\)$/{
17603 s//\1/
17604 q
17605 }
17606 /^X\(\/\).*/{
17607 s//\1/
17608 q
17609 }
17610 s/.*/./; q'`
17611 as_dir="$ac_dir"; as_fn_mkdir_p
17612 ac_builddir=.
17613
17614case "$ac_dir" in
17615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17616*)
17617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17618 # A ".." for each directory in $ac_dir_suffix.
17619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17620 case $ac_top_builddir_sub in
17621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17623 esac ;;
17624esac
17625ac_abs_top_builddir=$ac_pwd
17626ac_abs_builddir=$ac_pwd$ac_dir_suffix
17627# for backward compatibility:
17628ac_top_builddir=$ac_top_build_prefix
17629
17630case $srcdir in
17631 .) # We are building in place.
17632 ac_srcdir=.
17633 ac_top_srcdir=$ac_top_builddir_sub
17634 ac_abs_top_srcdir=$ac_pwd ;;
17635 [\\/]* | ?:[\\/]* ) # Absolute name.
17636 ac_srcdir=$srcdir$ac_dir_suffix;
17637 ac_top_srcdir=$srcdir
17638 ac_abs_top_srcdir=$srcdir ;;
17639 *) # Relative name.
17640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17641 ac_top_srcdir=$ac_top_build_prefix$srcdir
17642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17643esac
17644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17645
17646
17647 case $ac_mode in
17648 :F)
17649 #
17650 # CONFIG_FILE
17651 #
17652
17653 case $INSTALL in
17654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17656 esac
17657 ac_MKDIR_P=$MKDIR_P
17658 case $MKDIR_P in
17659 [\\/$]* | ?:[\\/]* ) ;;
17660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17661 esac
17662_ACEOF
17663
17664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17665# If the template does not know about datarootdir, expand it.
17666# FIXME: This hack should be removed a few years after 2.60.
17667ac_datarootdir_hack=; ac_datarootdir_seen=
17668ac_sed_dataroot='
17669/datarootdir/ {
17670 p
17671 q
17672}
17673/@datadir@/p
17674/@docdir@/p
17675/@infodir@/p
17676/@localedir@/p
17677/@mandir@/p'
17678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17679*datarootdir*) ac_datarootdir_seen=yes;;
17680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17683_ACEOF
17684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17685 ac_datarootdir_hack='
17686 s&@datadir@&$datadir&g
17687 s&@docdir@&$docdir&g
17688 s&@infodir@&$infodir&g
17689 s&@localedir@&$localedir&g
17690 s&@mandir@&$mandir&g
17691 s&\\\${datarootdir}&$datarootdir&g' ;;
17692esac
17693_ACEOF
17694
17695# Neutralize VPATH when `$srcdir' = `.'.
17696# Shell code in configure.ac might set extrasub.
17697# FIXME: do we really want to maintain this feature?
17698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17699ac_sed_extra="$ac_vpsub
17700$extrasub
17701_ACEOF
17702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17703:t
17704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17705s|@configure_input@|$ac_sed_conf_input|;t t
17706s&@top_builddir@&$ac_top_builddir_sub&;t t
17707s&@top_build_prefix@&$ac_top_build_prefix&;t t
17708s&@srcdir@&$ac_srcdir&;t t
17709s&@abs_srcdir@&$ac_abs_srcdir&;t t
17710s&@top_srcdir@&$ac_top_srcdir&;t t
17711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17712s&@builddir@&$ac_builddir&;t t
17713s&@abs_builddir@&$ac_abs_builddir&;t t
17714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17715s&@INSTALL@&$ac_INSTALL&;t t
17716s&@MKDIR_P@&$ac_MKDIR_P&;t t
17717$ac_datarootdir_hack
17718"
17719eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17720 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17721
17722test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17725 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17727which seems to be undefined. Please make sure it is defined" >&5
17728$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17729which seems to be undefined. Please make sure it is defined" >&2;}
17730
17731 rm -f "$ac_tmp/stdin"
17732 case $ac_file in
17733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17735 esac \
17736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17737 ;;
17738 :H)
17739 #
17740 # CONFIG_HEADER
17741 #
17742 if test x"$ac_file" != x-; then
17743 {
17744 $as_echo "/* $configure_input */" \
17745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17746 } >"$ac_tmp/config.h" \
17747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17748 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17750$as_echo "$as_me: $ac_file is unchanged" >&6;}
17751 else
17752 rm -f "$ac_file"
17753 mv "$ac_tmp/config.h" "$ac_file" \
17754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17755 fi
17756 else
17757 $as_echo "/* $configure_input */" \
17758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17759 || as_fn_error $? "could not create -" "$LINENO" 5
17760 fi
17761 ;;
17762
17763
17764 esac
17765
17766
17767 case $ac_file$ac_mode in
17768 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
17769
17770 esac
17771done # for ac_tag
17772
17773
17774as_fn_exit 0
17775_ACEOF
17776ac_clean_files=$ac_clean_files_save
17777
17778test $ac_write_fail = 0 ||
17779 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17780
17781
17782# configure is writing to config.log, and then calls config.status.
17783# config.status does its own redirection, appending to config.log.
17784# Unfortunately, on DOS this fails, as config.log is still kept open
17785# by configure, so config.status won't be able to write to it; its
17786# output is simply discarded. So we exec the FD to /dev/null,
17787# effectively closing config.log, so it can be properly (re)opened and
17788# appended to by config.status. When coming back to configure, we
17789# need to make the FD available again.
17790if test "$no_create" != yes; then
17791 ac_cs_success=:
17792 ac_config_status_args=
17793 test "$silent" = yes &&
17794 ac_config_status_args="$ac_config_status_args --quiet"
17795 exec 5>/dev/null
17796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17797 exec 5>>config.log
17798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17799 # would make configure fail if this is the last instruction.
17800 $ac_cs_success || as_fn_exit 1
17801fi
17802if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17804$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17805fi
17806
17807
17808echo "creating Modules/Setup" >&6
17809if test ! -f Modules/Setup
17810then
17811 cp $srcdir/Modules/Setup.dist Modules/Setup
17812fi
17813
17814echo "creating Modules/Setup.local" >&6
17815if test ! -f Modules/Setup.local
17816then
17817 echo "# Edit this file for local setup changes" >Modules/Setup.local
17818fi
17819
17820echo "creating Makefile" >&6
17821$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
17822 -s Modules Modules/Setup.config \
17823 Modules/Setup.local Modules/Setup
17824mv config.c Modules
17825
17826if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
17827 echo "" >&6
17828 echo "" >&6
17829 echo "If you want a release build with all stable optimizations active (PGO, etc),"
17830 echo "please run ./configure --enable-optimizations" >&6
17831 echo "" >&6
17832 echo "" >&6
17833fi