blob: 7004660d2f01eb6b9d73a509ecf911bc57c7c1ab [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:281#! /bin/sh
Guido van Rossum627b2d71993-12-24 10:39:162# Guess values for system-dependent variables and create Makefiles.
Ned Deily5489bda2018-01-31 22:44:093# Generated by GNU Autoconf 2.69 for python 3.8.
Guido van Rossum76be6ed1995-01-02 18:33:544#
Benjamin Petersonc2fcbf42016-08-04 05:01:325# Report bugs to <https://bugs.python.org/>.
Martin v. Löwis1d459062005-03-14 21:23:336#
Matthias Kloseb9621712010-04-24 17:59:497#
Ross Lagerwall1b863eb2012-10-29 17:31:548# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Matthias Kloseb9621712010-04-24 17:59:499#
10#
Guido van Rossum76be6ed1995-01-02 18:33:5411# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Matthias Kloseb9621712010-04-24 17:59:4913## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Martin v. Löwis11437992002-04-12 09:54:0316
Thomas Wouters47b49bf2007-08-30 22:15:3317# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:4919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0320 emulate sh
21 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:4922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0423 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:3325 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:4126else
Matthias Kloseb9621712010-04-24 17:59:4927 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3332esac
Martin v. Löwis11437992002-04-12 09:54:0333fi
Thomas Wouters89f507f2006-12-13 04:49:3034
35
Matthias Kloseb9621712010-04-24 17:59:4936as_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
Martin v. Löwis11437992002-04-12 09:54:0373
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:4976 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 }
Thomas Wouters47b49bf2007-08-30 22:15:3381fi
Martin v. Löwis11437992002-04-12 09:54:0382
Thomas Wouters47b49bf2007-08-30 22:15:3383
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.)
Thomas Wouters47b49bf2007-08-30 22:15:3389IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 11:06:0992as_myself=
Matthias Kloseb9621712010-04-24 17:59:4993case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:3394 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0396for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Thomas Wouters47b49bf2007-08-30 22:15:33102IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03103
Thomas Wouters47b49bf2007-08-30 22:15:33104 ;;
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
Matthias Kloseb9621712010-04-24 17:59:49112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:33114fi
115
Matthias Kloseb9621712010-04-24 17:59:49116# 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 || :
Thomas Wouters47b49bf2007-08-30 22:15:33123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:49129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:33133
Matthias Kloseb9621712010-04-24 17:59:49134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Ross Lagerwall1b863eb2012-10-29 17:31:54137# 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;}
Matthias Kloseb9621712010-04-24 17:59:49162if 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
Ross Lagerwall1b863eb2012-10-29 17:31:54195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Matthias Kloseb9621712010-04-24 17:59:49197 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 :
Ross Lagerwall1b863eb2012-10-29 17:31:54241 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
Matthias Kloseb9621712010-04-24 17:59:49260fi
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
Benjamin Petersonc2fcbf42016-08-04 05:01:32270$0: https://bugs.python.org/ about your system, including
Matthias Kloseb9621712010-04-24 17:59:49271$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"
Ross Lagerwallb0ae53d2011-06-10 05:30:30358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:49359
360
361} # as_fn_mkdir_p
Ross Lagerwall1b863eb2012-10-29 17:31:54362
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
Matthias Kloseb9621712010-04-24 17:59:49370# 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
Ross Lagerwallb0ae53d2011-06-10 05:30:30406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:49408# 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
Ross Lagerwallb0ae53d2011-06-10 05:30:30410# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:49411as_fn_error ()
412{
Ross Lagerwallb0ae53d2011-06-10 05:30:30413 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
Matthias Kloseb9621712010-04-24 17:59:49417 fi
Ross Lagerwallb0ae53d2011-06-10 05:30:30418 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:49419 as_fn_exit $as_status
420} # as_fn_error
421
Thomas Wouters47b49bf2007-08-30 22:15:33422if 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
Matthias Kloseb9621712010-04-24 17:59:49435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Thomas Wouters47b49bf2007-08-30 22:15:33440
Thomas Wouters47b49bf2007-08-30 22:15:33441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:49445$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:33446 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
Matthias Kloseb9621712010-04-24 17:59:49460# 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
Thomas Wouters47b49bf2007-08-30 22:15:33466
467
Matthias Kloseb9621712010-04-24 17:59:49468 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. :-)
Thomas Wouters47b49bf2007-08-30 22:15:33473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03477 sed '
Thomas Wouters47b49bf2007-08-30 22:15:33478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Martin v. Löwis11437992002-04-12 09:54:03482 N
Thomas Wouters47b49bf2007-08-30 22:15:33483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03485 t loop
Thomas Wouters47b49bf2007-08-30 22:15:33486 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03487 ' >$as_me.lineno &&
Thomas Wouters47b49bf2007-08-30 22:15:33488 chmod +x "$as_me.lineno" ||
Matthias Kloseb9621712010-04-24 17:59:49489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Martin v. Löwis11437992002-04-12 09:54:03490
Ross Lagerwall1b863eb2012-10-29 17:31:54491 # 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
Martin v. Löwis11437992002-04-12 09:54:03495 # 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
Thomas Wouters47b49bf2007-08-30 22:15:33497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03499 # Exit status is that of the last command.
500 exit
501}
502
Thomas Wouters47b49bf2007-08-30 22:15:33503ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:49504case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:33505-n*)
Matthias Kloseb9621712010-04-24 17:59:49506 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:33507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:49508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:33511 esac;;
512*)
513 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03514esac
Ronald Oussoren74f29b42009-09-20 20:09:26515
Martin v. Löwis11437992002-04-12 09:54:03516rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:33517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:49521 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:33522fi
Matthias Kloseb9621712010-04-24 17:59:49523if (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.
Ross Lagerwall1b863eb2012-10-29 17:31:54529 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:49530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:54531 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
Ross Lagerwall1b863eb2012-10-29 17:31:54535 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49536 fi
Martin v. Löwis11437992002-04-12 09:54:03537else
Ross Lagerwall1b863eb2012-10-29 17:31:54538 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:03539fi
Thomas Wouters47b49bf2007-08-30 22:15:33540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03542
Skip Montanaro6dead952003-09-25 14:50:04543if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:49544 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:04545else
Skip Montanarof0d5f792004-08-15 14:08:23546 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04547 as_mkdir_p=false
548fi
549
Ross Lagerwall1b863eb2012-10-29 17:31:54550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:03552
553# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03555
556# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03558
559
Matthias Kloseb9621712010-04-24 17:59:49560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Martin v. Löwis11437992002-04-12 09:54:03562
563# Name of the host.
Ross Lagerwallb0ae53d2011-06-10 05:30:30564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Martin v. Löwis11437992002-04-12 09:54:03565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Martin v. Löwis11437992002-04-12 09:54:03568#
569# Initializations.
570#
Guido van Rossum76be6ed1995-01-02 18:33:54571ac_default_prefix=/usr/local
Thomas Wouters47b49bf2007-08-30 22:15:33572ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04573ac_config_libobj_dir=.
Thomas Wouters47b49bf2007-08-30 22:15:33574LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Martin v. Löwis11437992002-04-12 09:54:03579
Martin v. Löwis11437992002-04-12 09:54:03580# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
Ned Deily5489bda2018-01-31 22:44:09583PACKAGE_VERSION='3.8'
584PACKAGE_STRING='python 3.8'
Benjamin Petersonc2fcbf42016-08-04 05:01:32585PACKAGE_BUGREPORT='https://bugs.python.org/'
Matthias Kloseb9621712010-04-24 17:59:49586PACKAGE_URL=''
Martin v. Löwis11437992002-04-12 09:54:03587
588ac_unique_file="Include/object.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
Thomas Wouters47b49bf2007-08-30 22:15:33592#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03593# include <sys/types.h>
594#endif
Thomas Wouters47b49bf2007-08-30 22:15:33595#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03596# include <sys/stat.h>
597#endif
Thomas Wouters47b49bf2007-08-30 22:15:33598#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03599# include <stdlib.h>
600# include <stddef.h>
601#else
Thomas Wouters47b49bf2007-08-30 22:15:33602# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03603# include <stdlib.h>
604# endif
605#endif
Thomas Wouters47b49bf2007-08-30 22:15:33606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03608# include <memory.h>
609# endif
610# include <string.h>
611#endif
Thomas Wouters47b49bf2007-08-30 22:15:33612#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03613# include <strings.h>
614#endif
Thomas Wouters47b49bf2007-08-30 22:15:33615#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03616# include <inttypes.h>
Thomas Wouters477c8d52006-05-27 19:21:47617#endif
Thomas Wouters47b49bf2007-08-30 22:15:33618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03622# include <unistd.h>
623#endif"
624
Matthias Kloseb9621712010-04-24 17:59:49625ac_subst_vars='LTLIBOBJS
Christian Heimesff5be6e2018-01-20 12:19:21626OPENSSL_LDFLAGS
627OPENSSL_LIBS
628OPENSSL_INCLUDES
Ned Deily322f5ba2013-11-22 07:01:59629ENSUREPIP
Ronald Oussoren74f29b42009-09-20 20:09:26630SRCDIRS
Matthias Kloseb9621712010-04-24 17:59:49631THREADHEADERS
doko@python.org87421192013-01-26 10:39:31632LIBPL
633PY_ENABLE_SHARED
xdegaye254b3092019-04-29 07:27:40634LIBPYTHON
doko@ubuntu.comd5537d02013-03-21 20:21:49635EXT_SUFFIX
Victor Stinner5422e3c2019-04-25 23:40:00636ALT_SOABI
Barry Warsaw35f3a2c2010-09-03 18:30:30637SOABI
Matthias Kloseb9621712010-04-24 17:59:49638LIBC
639LIBM
640HAVE_GETHOSTBYNAME
641HAVE_GETHOSTBYNAME_R
642HAVE_GETHOSTBYNAME_R_3_ARG
643HAVE_GETHOSTBYNAME_R_5_ARG
644HAVE_GETHOSTBYNAME_R_6_ARG
645LIBOBJS
646TRUE
647MACHDEP_OBJS
648DYNLOADFILE
649DLINCLDIR
Łukasz Langaa785c872016-09-10 00:37:37650DTRACE_OBJS
651DTRACE_HEADERS
652DFLAGS
653DTRACE
Ned Deilyd819b932013-09-06 08:07:05654TCLTK_LIBS
655TCLTK_INCLUDES
Matthias Kloseb9621712010-04-24 17:59:49656LIBFFI_INCLUDEDIR
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:08657PKG_CONFIG_LIBDIR
658PKG_CONFIG_PATH
659PKG_CONFIG
Matthias Kloseb9621712010-04-24 17:59:49660SHLIBS
661CFLAGSFORSHARED
662LINKFORSHARED
663CCSHARED
664BLDSHARED
665LDCXXSHARED
666LDSHARED
doko@ubuntu.comd5537d02013-03-21 20:21:49667SHLIB_SUFFIX
Matthias Kloseb9621712010-04-24 17:59:49668LIBTOOL_CRUFT
669OTHER_LIBTOOL_OPT
670UNIVERSAL_ARCH_FLAGS
stratakiscf10a752018-12-19 17:19:01671LDFLAGS_NODIST
Benjamin Petersonacb8c522014-08-10 03:01:49672CFLAGS_NODIST
Matthias Kloseb9621712010-04-24 17:59:49673BASECFLAGS
Victor Stinner826f83f2017-04-28 13:07:10674CFLAGS_ALIASING
Matthias Kloseb9621712010-04-24 17:59:49675OPT
Brett Cannon7188a3e2015-09-18 22:13:44676LLVM_PROF_FOUND
Gregory P. Smith799520c2016-09-07 23:10:00677LLVM_PROFDATA
Brett Cannon7188a3e2015-09-18 22:13:44678LLVM_PROF_ERR
679LLVM_PROF_FILE
680LLVM_PROF_MERGER
681PGO_PROF_USE_FLAG
682PGO_PROF_GEN_FLAG
serge-sans-paille5ad36f92018-10-24 23:54:22683LLVM_AR_FOUND
serge-sans-paille5ad36f92018-10-24 23:54:22684LLVM_AR
Miss Islington (bot)24066722019-07-22 20:17:23685PROFILE_TASK
Brett Cannon63d98bc2016-09-07 00:12:40686DEF_MAKE_RULE
687DEF_MAKE_ALL_RULE
Barry Warsaw8cf4eae2010-10-16 01:04:07688ABIFLAGS
Matthias Kloseb9621712010-04-24 17:59:49689LN
Matthias Klose93a0ef12012-03-15 17:08:34690MKDIR_P
Matthias Kloseb9621712010-04-24 17:59:49691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
doko@ubuntu.com58844492012-06-30 16:25:32694ac_ct_READELF
695READELF
Matthias Kloseb9621712010-04-24 17:59:49696ARFLAGS
doko@ubuntu.com51f65942012-06-30 12:42:46697ac_ct_AR
Matthias Kloseb9621712010-04-24 17:59:49698AR
Matthias Kloseb9621712010-04-24 17:59:49699GNULD
700LINKCC
Barry Warsaw8cf4eae2010-10-16 01:04:07701LDVERSION
Matthias Kloseb9621712010-04-24 17:59:49702RUNSHARED
703INSTSONAME
704LDLIBRARYDIR
Martin v. Löwisd1fc34d2010-12-30 14:55:47705PY3LIBRARY
Matthias Kloseb9621712010-04-24 17:59:49706BLDLIBRARY
707DLLLIBRARY
708LDLIBRARY
709LIBRARY
710BUILDEXEEXT
711EGREP
Martin v. Löwis48e14d32011-05-09 05:37:45712NO_AS_NEEDED
doko@ubuntu.com55532312016-06-14 06:55:19713MULTIARCH_CPPFLAGS
doko@ubuntu.comd3899c12015-04-15 18:23:14714PLATFORM_TRIPLET
715MULTIARCH
doko@ubuntu.com51f65942012-06-30 12:42:46716ac_ct_CXX
Matthias Kloseb9621712010-04-24 17:59:49717MAINCC
718CXX
Łukasz Langaa785c872016-09-10 00:37:37719SED
doko@ubuntu.comd3899c12015-04-15 18:23:14720GREP
721CPP
Matthias Kloseb9621712010-04-24 17:59:49722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729EXPORT_MACOSX_DEPLOYMENT_TARGET
730CONFIGURE_MACOSX_DEPLOYMENT_TARGET
doko@ubuntu.com1abe1c52012-06-30 18:42:45731_PYTHON_HOST_PLATFORM
Matthias Kloseb9621712010-04-24 17:59:49732MACHDEP
Ronald Oussoren86b33c82010-04-30 11:41:56733FRAMEWORKINSTALLAPPSPREFIX
Matthias Kloseb9621712010-04-24 17:59:49734FRAMEWORKUNIXTOOLSPREFIX
Ned Deilyb8f944f2013-11-22 06:42:25735FRAMEWORKPYTHONW
Matthias Kloseb9621712010-04-24 17:59:49736FRAMEWORKALTINSTALLLAST
737FRAMEWORKALTINSTALLFIRST
738FRAMEWORKINSTALLLAST
739FRAMEWORKINSTALLFIRST
740PYTHONFRAMEWORKINSTALLDIR
741PYTHONFRAMEWORKPREFIX
742PYTHONFRAMEWORKDIR
743PYTHONFRAMEWORKIDENTIFIER
744PYTHONFRAMEWORK
Ned Deily78e55882021-05-02 10:55:04745LIPO_INTEL64_FLAGS
Matthias Kloseb9621712010-04-24 17:59:49746LIPO_32BIT_FLAGS
747ARCH_RUN_32BIT
748UNIVERSALSDK
749CONFIG_ARGS
750SOVERSION
751VERSION
doko@ubuntu.com1abe1c52012-06-30 18:42:45752PYTHON_FOR_BUILD
Victor Stinnera5c62a82017-05-03 16:21:48753PYTHON_FOR_REGEN
Matthias Kloseca2f6ec2012-03-15 20:30:11754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
Ned Deily5c4b0d02017-03-04 05:19:55762HAS_GIT
763GITBRANCH
764GITTAG
765GITVERSION
Trent Nelson4d4ec652012-10-16 12:51:24766BASECPPFLAGS
Matthias Kloseb9621712010-04-24 17:59:49767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
Seth Michael Larson575c99a2023-12-06 23:26:42786runstatedir
Matthias Kloseb9621712010-04-24 17:59:49787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
Skip Montanaro6dead952003-09-25 14:50:04806ac_subst_files=''
Matthias Kloseb9621712010-04-24 17:59:49807ac_user_opts='
808enable_option_checking
809enable_universalsdk
810with_universal_archs
811with_framework_name
812enable_framework
Matthias Kloseb9621712010-04-24 17:59:49813with_cxx_main
814with_suffix
815enable_shared
816enable_profiling
817with_pydebug
Victor Stinnerf4e47032019-04-24 22:56:28818with_trace_refs
T. Woutersddbfa2c2017-05-22 23:30:49819with_assertions
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:42820enable_optimizations
Gregory P. Smithd82da9f2016-04-15 23:57:04821with_lto
Christian Heimes985ecdc2013-11-20 10:46:18822with_hash_algorithm
Charles-François Natalid30b0222014-05-08 22:08:51823with_address_sanitizer
Gregory P. Smith1584a002018-11-12 20:07:14824with_memory_sanitizer
825with_undefined_behavior_sanitizer
Matthias Kloseb9621712010-04-24 17:59:49826with_libs
827with_system_expat
828with_system_ffi
Stefan Krah60187b52012-03-23 18:06:27829with_system_libmpdec
Stefan Krah4d701242020-02-29 21:16:32830with_decimal_contextvar
Benjamin Peterson076ed002010-10-31 17:11:02831enable_loadable_sqlite_extensions
Ned Deilyd819b932013-09-06 08:07:05832with_tcltk_includes
833with_tcltk_libs
Matthias Kloseb9621712010-04-24 17:59:49834with_dbmliborder
Matthias Kloseb9621712010-04-24 17:59:49835enable_ipv6
836with_doc_strings
Matthias Kloseb9621712010-04-24 17:59:49837with_pymalloc
Nick Coghlan6ea41862017-06-11 03:16:15838with_c_locale_coercion
Matthias Kloseb9621712010-04-24 17:59:49839with_valgrind
Łukasz Langaa785c872016-09-10 00:37:37840with_dtrace
Matthias Kloseb9621712010-04-24 17:59:49841with_libm
842with_libc
843enable_big_digits
Matthias Kloseb9621712010-04-24 17:59:49844with_computed_gotos
Ned Deily322f5ba2013-11-22 07:01:59845with_ensurepip
Christian Heimesff5be6e2018-01-20 12:19:21846with_openssl
Christian Heimes892d66e2018-01-29 13:10:18847with_ssl_default_suites
Matthias Kloseb9621712010-04-24 17:59:49848'
Thomas Wouters47b49bf2007-08-30 22:15:33849 ac_precious_vars='build_alias
850host_alias
851target_alias
doko@python.orgeab42bf2013-01-26 17:57:19852MACHDEP
Thomas Wouters47b49bf2007-08-30 22:15:33853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:08858CPP
Miss Islington (bot)24066722019-07-22 20:17:23859PROFILE_TASK
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:08860PKG_CONFIG
861PKG_CONFIG_PATH
862PKG_CONFIG_LIBDIR'
Thomas Wouters47b49bf2007-08-30 22:15:33863
Guido van Rossum627b2d71993-12-24 10:39:16864
Guido van Rossum7f43da71994-08-01 12:15:30865# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03866ac_init_help=
867ac_init_version=false
Matthias Kloseb9621712010-04-24 17:59:49868ac_unrecognized_opts=
869ac_unrecognized_sep=
Guido van Rossum7f43da71994-08-01 12:15:30870# The variables have the same names as the options, with
871# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03872cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54873exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30874no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54875no_recursion=
876prefix=NONE
877program_prefix=NONE
878program_suffix=NONE
879program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30880silent=
Guido van Rossum76be6ed1995-01-02 18:33:54881site=
Guido van Rossum7f43da71994-08-01 12:15:30882srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30883verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54884x_includes=NONE
885x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03886
887# Installation directory options.
888# These are left unexpanded so users can "make install exec_prefix=/foo"
889# and all the variables that are supposed to be based on exec_prefix
890# by default will actually change.
891# Use braces instead of parens because sh, perl, etc. also accept them.
Thomas Wouters47b49bf2007-08-30 22:15:33892# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48893bindir='${exec_prefix}/bin'
894sbindir='${exec_prefix}/sbin'
895libexecdir='${exec_prefix}/libexec'
Thomas Wouters47b49bf2007-08-30 22:15:33896datarootdir='${prefix}/share'
897datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48898sysconfdir='${prefix}/etc'
899sharedstatedir='${prefix}/com'
900localstatedir='${prefix}/var'
Seth Michael Larson575c99a2023-12-06 23:26:42901runstatedir='${localstatedir}/run'
Guido van Rossum48bdbfc1996-05-28 22:53:48902includedir='${prefix}/include'
903oldincludedir='/usr/include'
Thomas Wouters47b49bf2007-08-30 22:15:33904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54913
Guido van Rossum7f43da71994-08-01 12:15:30914ac_prev=
Thomas Wouters47b49bf2007-08-30 22:15:33915ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30916for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16917do
Guido van Rossum7f43da71994-08-01 12:15:30918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
Thomas Wouters47b49bf2007-08-30 22:15:33920 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30921 ac_prev=
922 continue
Guido van Rossum627b2d71993-12-24 10:39:16923 fi
Guido van Rossum7f43da71994-08-01 12:15:30924
Thomas Wouters47b49bf2007-08-30 22:15:33925 case $ac_option in
Ross Lagerwallb0ae53d2011-06-10 05:30:30926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
Thomas Wouters47b49bf2007-08-30 22:15:33929 esac
Guido van Rossum7f43da71994-08-01 12:15:30930
Guido van Rossum76be6ed1995-01-02 18:33:54931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
Thomas Wouters47b49bf2007-08-30 22:15:33933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30936
Guido van Rossum48bdbfc1996-05-28 22:53:48937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03940 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48941
942 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03943 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03945 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30946
Guido van Rossum76be6ed1995-01-02 18:33:54947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54956
Thomas Wouters47b49bf2007-08-30 22:15:33957 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48958 ac_prev=datadir ;;
Thomas Wouters47b49bf2007-08-30 22:15:33959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03960 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48961
Thomas Wouters47b49bf2007-08-30 22:15:33962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
Guido van Rossum7f43da71994-08-01 12:15:30969 -disable-* | --disable-*)
Matthias Kloseb9621712010-04-24 17:59:49970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54971 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30973 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
Thomas Wouters47b49bf2007-08-30 22:15:33984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30994
995 -enable-* | --enable-*)
Matthias Kloseb9621712010-04-24 17:59:49996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54997 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30999 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"enable_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301010
Guido van Rossum7f43da71994-08-01 12:15:301011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:031018 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301019
1020 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:541021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301023
Martin v. Löwis11437992002-04-12 09:54:031024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:301030
1031 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:031032 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301033 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:031034 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301035
Thomas Wouters47b49bf2007-08-30 22:15:331036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
Guido van Rossum48bdbfc1996-05-28 22:53:481042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:031047 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:031052 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:031057 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:031064 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481065
Thomas Wouters47b49bf2007-08-30 22:15:331066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
Guido van Rossum48bdbfc1996-05-28 22:53:481071 -localstatedir | --localstatedir | --localstatedi | --localstated \
Thomas Wouters47b49bf2007-08-30 22:15:331072 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:481073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Thomas Wouters47b49bf2007-08-30 22:15:331075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:031076 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:031081 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481082
Guido van Rossum7f43da71994-08-01 12:15:301083 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:541084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:031088 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:301089 no_create=yes ;;
1090
Guido van Rossum76be6ed1995-01-02 18:33:541091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301094
Guido van Rossum48bdbfc1996-05-28 22:53:481095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:031102 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481103
Guido van Rossum7f43da71994-08-01 12:15:301104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:031107 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:031114 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:031121 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:031138 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301139
Thomas Wouters47b49bf2007-08-30 22:15:331140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
Guido van Rossum7f43da71994-08-01 12:15:301150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
Seth Michael Larson575c99a2023-12-06 23:26:421154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1162
Guido van Rossum48bdbfc1996-05-28 22:53:481163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:031167 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:031178 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481179
Guido van Rossum76be6ed1995-01-02 18:33:541180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:031183 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:541184
Guido van Rossum7f43da71994-08-01 12:15:301185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:031188 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301189
Guido van Rossum48bdbfc1996-05-28 22:53:481190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:031195 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481196
Guido van Rossum7f43da71994-08-01 12:15:301197 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:031198 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:031200 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
Martin v. Löwis11437992002-04-12 09:54:031205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:301207
1208 -with-* | --with-*)
Matthias Kloseb9621712010-04-24 17:59:491209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541210 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301212 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491213 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--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301223
1224 -without-* | --without-*)
Matthias Kloseb9621712010-04-24 17:59:491225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541226 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301228 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301239
Guido van Rossum76be6ed1995-01-02 18:33:541240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:031249 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:031256 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301257
Ross Lagerwallb0ae53d2011-06-10 05:30:301258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259Try \`$0 --help' for more information"
Guido van Rossum7f43da71994-08-01 12:15:301260 ;;
1261
Martin v. Löwis11437992002-04-12 09:54:031262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
Ross Lagerwallb0ae53d2011-06-10 05:30:301267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Matthias Kloseb9621712010-04-24 17:59:491268 esac
Thomas Wouters47b49bf2007-08-30 22:15:331269 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:031270 export $ac_envvar ;;
1271
Guido van Rossum48bdbfc1996-05-28 22:53:481272 *)
Martin v. Löwis11437992002-04-12 09:54:031273 # FIXME: should be removed in autoconf 3.0.
Matthias Kloseb9621712010-04-24 17:59:491274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:031275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Matthias Kloseb9621712010-04-24 17:59:491276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Victor Stinnere0be4232011-10-25 11:06:091277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Guido van Rossum7f43da71994-08-01 12:15:301278 ;;
1279
1280 esac
Guido van Rossum627b2d71993-12-24 10:39:161281done
1282
Guido van Rossum7f43da71994-08-01 12:15:301283if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:031284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ross Lagerwallb0ae53d2011-06-10 05:30:301285 as_fn_error $? "missing argument to $ac_option"
Guido van Rossum7f43da71994-08-01 12:15:301286fi
1287
Matthias Kloseb9621712010-04-24 17:59:491288if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:301291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Matthias Kloseb9621712010-04-24 17:59:491292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294fi
1295
1296# Check all directory arguments for consistency.
Thomas Wouters47b49bf2007-08-30 22:15:331297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Seth Michael Larson575c99a2023-12-06 23:26:421300 libdir localedir mandir runstatedir
Guido van Rossum76be6ed1995-01-02 18:33:541301do
Thomas Wouters47b49bf2007-08-30 22:15:331302 eval ac_val=\$$ac_var
Matthias Kloseb9621712010-04-24 17:59:491303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:031310 case $ac_val in
Thomas Wouters47b49bf2007-08-30 22:15:331311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:301313 esac
Ross Lagerwallb0ae53d2011-06-10 05:30:301314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Martin v. Löwis11437992002-04-12 09:54:031315done
Guido van Rossum627b2d71993-12-24 10:39:161316
Martin v. Löwis11437992002-04-12 09:54:031317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:161323
Martin v. Löwis11437992002-04-12 09:54:031324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
Martin v. Löwis11437992002-04-12 09:54:031328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
Guido van Rossum627b2d71993-12-24 10:39:161338
Thomas Wouters47b49bf2007-08-30 22:15:331339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301342 as_fn_error $? "working directory cannot be determined"
Thomas Wouters47b49bf2007-08-30 22:15:331343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301344 as_fn_error $? "pwd does not report name of working directory"
Thomas Wouters47b49bf2007-08-30 22:15:331345
1346
Guido van Rossum627b2d71993-12-24 10:39:161347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:301349 ac_srcdir_defaulted=yes
Thomas Wouters47b49bf2007-08-30 22:15:331350 # Try the directory containing this script, then the parent directory.
Matthias Kloseb9621712010-04-24 17:59:491351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356$as_echo X"$as_myself" |
Thomas Wouters47b49bf2007-08-30 22:15:331357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:301374 srcdir=$ac_confdir
Thomas Wouters47b49bf2007-08-30 22:15:331375 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:161376 srcdir=..
1377 fi
Guido van Rossum76be6ed1995-01-02 18:33:541378else
1379 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:161380fi
Thomas Wouters47b49bf2007-08-30 22:15:331381if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ross Lagerwallb0ae53d2011-06-10 05:30:301383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Thomas Wouters477c8d52006-05-27 19:21:471384fi
Thomas Wouters47b49bf2007-08-30 22:15:331385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
Ross Lagerwallb0ae53d2011-06-10 05:30:301387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Thomas Wouters47b49bf2007-08-30 22:15:331388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
Guido van Rossum76be6ed1995-01-02 18:33:541405
Martin v. Löwis11437992002-04-12 09:54:031406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
Ned Deily5489bda2018-01-31 22:44:091413\`configure' configures python 3.8 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:031414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
Ross Lagerwallb0ae53d2011-06-10 05:30:301427 -q, --quiet, --silent do not print \`checking ...' messages
Martin v. Löwis11437992002-04-12 09:54:031428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
Martin v. Löwis11437992002-04-12 09:54:031433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
Matthias Kloseb9621712010-04-24 17:59:491435 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:031436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Matthias Kloseb9621712010-04-24 17:59:491437 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:031438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
Matthias Kloseb9621712010-04-24 17:59:491447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Seth Michael Larson575c99a2023-12-06 23:26:421453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Matthias Kloseb9621712010-04-24 17:59:491454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:031467_ACEOF
1468
1469 cat <<\_ACEOF
Matthias Kloseca2f6ec2012-03-15 20:30:111470
1471System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Martin v. Löwis11437992002-04-12 09:54:031474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:441478 case $ac_init_help in
Ned Deily5489bda2018-01-31 22:44:091479 short | recursive ) echo "Configuration of python 3.8:";;
Martin v. Löwis88afe662002-10-26 13:47:441480 esac
Martin v. Löwis11437992002-04-12 09:54:031481 cat <<\_ACEOF
1482
1483Optional Features:
Matthias Kloseb9621712010-04-24 17:59:491484 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:031485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Christian Heimes68f5fbe2008-02-14 08:27:371487 --enable-universalsdk[=SDKDIR]
Ned Deilycbfb9a52012-06-23 23:02:191488 Build fat binary against Mac OS X SDK
Martin v. Löwis3e2c6322002-10-29 10:07:431489 --enable-framework[=INSTALLDIR]
1490 Build (MacOSX|Darwin) framework
1491 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:221492 --enable-profiling enable C-level code profiling
Brett Cannonb4e5fee2017-06-09 20:56:571493 --enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1494 Disabled by default.
Benjamin Peterson076ed002010-10-31 17:11:021495 --enable-loadable-sqlite-extensions
1496 support loadable extensions in _sqlite module
Martin v. Löwis3e2c6322002-10-29 10:07:431497 --enable-ipv6 Enable ipv6 (with ipv4) support
1498 --disable-ipv6 Disable ipv6 support
Mark Dickinsonbd792642009-03-18 20:06:121499 --enable-big-digits[=BITS]
Matthias Kloseb9621712010-04-24 17:59:491500 use big digits for Python longs [[BITS=30]]
Martin v. Löwis11437992002-04-12 09:54:031501
1502Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benjamin Peterson14ae9592008-07-16 02:20:151505 --with-universal-archs=ARCH
Ned Deily78e55882021-05-02 10:55:041506 specify the kind of macOS universal binary that
1507 should be created. This option is only valid when
1508 --enable-universalsdk is set; options are:
1509 ("universal2", "intel-64", "intel-32", "intel",
1510 "32-bit", "64-bit", "3-way", or "all") see
1511 Mac/README.rst
Christian Heimes81ee3ef2008-05-04 22:42:011512 --with-framework-name=FRAMEWORK
1513 specify an alternate name of the framework built
1514 with --enable-framework
Thomas Wouters49fd7fa2006-04-21 10:40:581515 --with-cxx-main=<compiler>
1516 compile main() and link python executable with C++
1517 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:431518 --with-suffix=.exe set executable suffix
1519 --with-pydebug build with Py_DEBUG defined
Victor Stinnerf4e47032019-04-24 22:56:281520 --with-trace-refs enable tracing references for debugging purpose
T. Woutersddbfa2c2017-05-22 23:30:491521 --with-assertions build with C assertions enabled
octaviansoldea4c814012017-09-08 19:14:331522 --with-lto Enable Link Time Optimization in any build. Disabled
1523 by default.
Christian Heimes985ecdc2013-11-20 10:46:181524 --with-hash-algorithm=[fnv|siphash24]
1525 select hash algorithm
Charles-François Natalid30b0222014-05-08 22:08:511526 --with-address-sanitizer
Gregory P. Smith1584a002018-11-12 20:07:141527 enable AddressSanitizer (asan)
1528 --with-memory-sanitizer enable MemorySanitizer (msan)
1529 --with-undefined-behavior-sanitizer
1530 enable UndefinedBehaviorSanitizer (ubsan)
Martin v. Löwis3e2c6322002-10-29 10:07:431531 --with-libs='lib1 ...' link against additional libs
Benjamin Petersonb2d90462009-12-31 03:23:101532 --with-system-expat build pyexpat module using an installed expat
1533 library
Thomas Wouters49fd7fa2006-04-21 10:40:581534 --with-system-ffi build _ctypes module using an installed ffi library
Stefan Krah60187b52012-03-23 18:06:271535 --with-system-libmpdec build _decimal module using an installed libmpdec
1536 library
Stefan Krah4d701242020-02-29 21:16:321537 --with-decimal-contextvar
1538 build _decimal module using a coroutine-local rather
1539 than a thread-local context (default is yes)
Ned Deilyd819b932013-09-06 08:07:051540 --with-tcltk-includes='-I...'
1541 override search for Tcl and Tk include files
1542 --with-tcltk-libs='-L...'
1543 override search for Tcl and Tk libs
Matthias Klose55708cc2009-04-30 08:06:491544 --with-dbmliborder=db1:db2:...
1545 order to check db backends for dbm. Valid value is a
1546 colon separated string with the backend names
1547 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:431548 --with(out)-doc-strings disable/enable documentation strings
1549 --with(out)-pymalloc disable/enable specialized mallocs
Nick Coghlan6ea41862017-06-11 03:16:151550 --with(out)-c-locale-coercion
1551 disable/enable C locale coercion to a UTF-8 based
1552 locale
Benjamin Peterson05159c42009-12-03 03:01:271553 --with-valgrind Enable Valgrind support
Łukasz Langaa785c872016-09-10 00:37:371554 --with(out)-dtrace disable/enable DTrace support
Martin v. Löwis3e2c6322002-10-29 10:07:431555 --with-libm=STRING math library
1556 --with-libc=STRING C library
Antoine Pitrou042b1282010-08-13 21:15:581557 --with(out)-computed-gotos
1558 Use computed gotos in evaluation loop (enabled by
1559 default on supported compilers)
Ned Deily322f5ba2013-11-22 07:01:591560 --with(out)-ensurepip=[=upgrade]
1561 "install" or "upgrade" using bundled pip
Christian Heimesff5be6e2018-01-20 12:19:211562 --with-openssl=DIR root of the OpenSSL directory
Christian Heimes892d66e2018-01-29 13:10:181563 --with-ssl-default-suites=[python|openssl|STRING]
1564 Override default cipher suites string, python: use
1565 Python's preferred selection (default), openssl:
1566 leave OpenSSL's defaults untouched, STRING: use a
1567 custom string, PROTOCOL_SSLv2 ignores the setting
Martin v. Löwis11437992002-04-12 09:54:031568
1569Some influential environment variables:
doko@python.orgeab42bf2013-01-26 17:57:191570 MACHDEP name for machine-dependent library files
Martin v. Löwis11437992002-04-12 09:54:031571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
Thomas Wouters47b49bf2007-08-30 22:15:331575 LIBS libraries to pass to the linker, e.g. -l<library>
Matthias Kloseb9621712010-04-24 17:59:491576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Thomas Wouters47b49bf2007-08-30 22:15:331577 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:031578 CPP C preprocessor
Miss Islington (bot)24066722019-07-22 20:17:231579 PROFILE_TASK
1580 Python args for PGO generation task
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:081581 PKG_CONFIG path to pkg-config utility
1582 PKG_CONFIG_PATH
1583 directories to add to pkg-config's search path
1584 PKG_CONFIG_LIBDIR
1585 path overriding pkg-config's built-in search path
Martin v. Löwis11437992002-04-12 09:54:031586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
Benjamin Petersonc2fcbf42016-08-04 05:01:321590Report bugs to <https://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:031591_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331592ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:031593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:031597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Matthias Kloseb9621712010-04-24 17:59:491598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
Martin v. Löwis11437992002-04-12 09:54:031601 ac_builddir=.
1602
Thomas Wouters47b49bf2007-08-30 22:15:331603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
Matthias Kloseb9621712010-04-24 17:59:491606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:331607 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:491608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:331609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:031618
1619case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:331620 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:031621 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:331622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:031625 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:331626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:031632esac
Thomas Wouters47b49bf2007-08-30 22:15:331633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:231634
Thomas Wouters47b49bf2007-08-30 22:15:331635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:031643 else
Matthias Kloseb9621712010-04-24 17:59:491644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Thomas Wouters47b49bf2007-08-30 22:15:331645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:031647 done
1648fi
1649
Thomas Wouters47b49bf2007-08-30 22:15:331650test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:031651if $ac_init_version; then
1652 cat <<\_ACEOF
Ned Deily5489bda2018-01-31 22:44:091653python configure 3.8
Ross Lagerwall1b863eb2012-10-29 17:31:541654generated by GNU Autoconf 2.69
Martin v. Löwis11437992002-04-12 09:54:031655
Ross Lagerwall1b863eb2012-10-29 17:31:541656Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:031657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331660 exit
Martin v. Löwis11437992002-04-12 09:54:031661fi
Matthias Kloseb9621712010-04-24 17:59:491662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
Victor Stinnere0be4232011-10-25 11:06:091700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491701 as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
doko@ubuntu.comd3899c12015-04-15 18:23:141705# ac_fn_c_try_cpp LINENO
1706# ----------------------
1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_cpp ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_cpp
1741
Matthias Kloseb9621712010-04-24 17:59:491742# ac_fn_c_try_link LINENO
1743# -----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_link ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext conftest$ac_exeext
1749 if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest$ac_exeext && {
1768 test "$cross_compiling" = yes ||
Ross Lagerwall1b863eb2012-10-29 17:31:541769 test -x conftest$ac_exeext
Matthias Kloseb9621712010-04-24 17:59:491770 }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491784 as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_link
1787
Matthias Kloseb9621712010-04-24 17:59:491788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Victor Stinnere0be4232011-10-25 11:06:091796 if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091799if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491800 $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806 # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1816else
1817 ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1832else
1833 ac_header_preproc=no
1834fi
Ross Lagerwallb0ae53d2011-06-10 05:30:301835rm -f conftest.err conftest.i conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:491836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So? What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 yes:no: )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ;;
1847 no:yes:* )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Benjamin Petersonc2fcbf42016-08-04 05:01:321858( $as_echo "## --------------------------------------- ##
1859## Report this to https://bugs.python.org/ ##
1860## --------------------------------------- ##"
Matthias Kloseb9621712010-04-24 17:59:491861 ) | sed "s/^/$as_me: WARNING: /" >&2
1862 ;;
1863esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091866if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491867 $as_echo_n "(cached) " >&6
1868else
1869 eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
Victor Stinnere0be4232011-10-25 11:06:091875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491876
1877} # ac_fn_c_check_header_mongrel
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=$ac_status
1914fi
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491917 as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists and can be compiled using the include files in
1924# INCLUDES, setting the cache variable VAR accordingly.
1925ac_fn_c_check_header_compile ()
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; }
Victor Stinnere0be4232011-10-25 11:06:091930if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491931 $as_echo_n "(cached) " >&6
1932else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h. */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:091948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491949
1950} # ac_fn_c_check_header_compile
1951
Matthias Kloseb9621712010-04-24 17:59:491952# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1953# -------------------------------------------
1954# Tests whether TYPE exists after having included INCLUDES, setting cache
1955# variable VAR accordingly.
1956ac_fn_c_check_type ()
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091961if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491962 $as_echo_n "(cached) " >&6
1963else
1964 eval "$3=no"
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967$4
1968int
1969main ()
1970{
1971if (sizeof ($2))
1972 return 0;
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981int
1982main ()
1983{
1984if (sizeof (($2)))
1985 return 0;
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991
1992else
1993 eval "$3=yes"
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492003
2004} # ac_fn_c_check_type
2005
Matthias Kloseb9621712010-04-24 17:59:492006# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007# --------------------------------------------
2008# Tries to find the compile-time value of EXPR in a program that includes
2009# INCLUDES, setting VAR accordingly. Returns whether the value could be
2010# computed
2011ac_fn_c_compute_int ()
2012{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$4
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(($2) >= 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542023test_array [0] = 0;
2024return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492025
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=0 ac_mid=0
2032 while :; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
2039static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542040test_array [0] = 0;
2041return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_hi=$ac_mid; break
2049else
2050 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2051 if test $ac_lo -le $ac_mid; then
2052 ac_lo= ac_hi=
2053 break
2054 fi
2055 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 done
2059else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h. */
2062$4
2063int
2064main ()
2065{
2066static int test_array [1 - 2 * !(($2) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542067test_array [0] = 0;
2068return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=-1 ac_mid=-1
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542084test_array [0] = 0;
2085return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=$ac_mid; break
2093else
2094 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2095 if test $ac_mid -le $ac_hi; then
2096 ac_lo= ac_hi=
2097 break
2098 fi
2099 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103else
2104 ac_lo= ac_hi=
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109# Binary search between lo and hi bounds.
2110while test "x$ac_lo" != "x$ac_hi"; do
2111 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h. */
2114$4
2115int
2116main ()
2117{
2118static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542119test_array [0] = 0;
2120return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid
2128else
2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132done
2133case $ac_lo in #((
2134?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2135'') ac_retval=1 ;;
2136esac
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141static long int longval () { return $2; }
2142static unsigned long int ulongval () { return $2; }
2143#include <stdio.h>
2144#include <stdlib.h>
2145int
2146main ()
2147{
2148
2149 FILE *f = fopen ("conftest.val", "w");
2150 if (! f)
2151 return 1;
2152 if (($2) < 0)
2153 {
2154 long int i = longval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%ld", i);
2158 }
2159 else
2160 {
2161 unsigned long int i = ulongval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%lu", i);
2165 }
2166 /* Do not output a trailing newline, as this causes \r\n confusion
2167 on some platforms. */
2168 return ferror (f) || fclose (f) != 0;
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_run "$LINENO"; then :
2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2176else
2177 ac_retval=1
2178fi
2179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180 conftest.$ac_objext conftest.beam conftest.$ac_ext
2181rm -f conftest.val
2182
2183 fi
Victor Stinnere0be4232011-10-25 11:06:092184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492185 as_fn_set_status $ac_retval
2186
2187} # ac_fn_c_compute_int
2188
2189# ac_fn_c_check_func LINENO FUNC VAR
2190# ----------------------------------
2191# Tests whether FUNC exists, setting the cache variable VAR accordingly
2192ac_fn_c_check_func ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092197if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492198 $as_echo_n "(cached) " >&6
2199else
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h. */
2202/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204#define $2 innocuous_$2
2205
2206/* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2210
2211#ifdef __STDC__
2212# include <limits.h>
2213#else
2214# include <assert.h>
2215#endif
2216
2217#undef $2
2218
2219/* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2222#ifdef __cplusplus
2223extern "C"
2224#endif
2225char $2 ();
2226/* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229#if defined __stub_$2 || defined __stub___$2
2230choke me
2231#endif
2232
2233int
2234main ()
2235{
2236return $2 ();
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_link "$LINENO"; then :
2242 eval "$3=yes"
2243else
2244 eval "$3=no"
2245fi
2246rm -f core conftest.err conftest.$ac_objext \
2247 conftest$ac_exeext conftest.$ac_ext
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492253
2254} # ac_fn_c_check_func
2255
Gregory P. Smithdf300d52012-01-22 02:20:152256# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2257# ---------------------------------------------
2258# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2259# accordingly.
2260ac_fn_c_check_decl ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 as_decl_name=`echo $2|sed 's/ *(.*//'`
2264 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2266$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2267if eval \${$3+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h. */
2272$4
2273int
2274main ()
2275{
2276#ifndef $as_decl_name
2277#ifdef __cplusplus
2278 (void) $as_decl_use;
2279#else
2280 (void) $as_decl_name;
2281#endif
2282#endif
2283
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289 eval "$3=yes"
2290else
2291 eval "$3=no"
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294fi
2295eval ac_res=\$$3
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297$as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300} # ac_fn_c_check_decl
2301
Matthias Kloseb9621712010-04-24 17:59:492302# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2303# ----------------------------------------------------
2304# Tries to find if the field MEMBER exists in type AGGR, after including
2305# INCLUDES, setting cache variable VAR accordingly.
2306ac_fn_c_check_member ()
2307{
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2310$as_echo_n "checking for $2.$3... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092311if eval \${$4+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492312 $as_echo_n "(cached) " >&6
2313else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h. */
2316$5
2317int
2318main ()
2319{
2320static $2 ac_aggr;
2321if (ac_aggr.$3)
2322return 0;
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$4=yes"
2329else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h. */
2332$5
2333int
2334main ()
2335{
2336static $2 ac_aggr;
2337if (sizeof ac_aggr.$3)
2338return 0;
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343if ac_fn_c_try_compile "$LINENO"; then :
2344 eval "$4=yes"
2345else
2346 eval "$4=no"
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351fi
2352eval ac_res=\$$4
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492356
2357} # ac_fn_c_check_member
Thomas Wouters47b49bf2007-08-30 22:15:332358cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:032359This file contains any messages produced by compilers while
2360running configure, to aid debugging if configure makes a mistake.
2361
Ned Deily5489bda2018-01-31 22:44:092362It was created by python $as_me 3.8, which was
Ross Lagerwall1b863eb2012-10-29 17:31:542363generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:032364
2365 $ $0 $@
2366
2367_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:332368exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:032369{
2370cat <<_ASUNAME
2371## --------- ##
2372## Platform. ##
2373## --------- ##
2374
2375hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2376uname -m = `(uname -m) 2>/dev/null || echo unknown`
2377uname -r = `(uname -r) 2>/dev/null || echo unknown`
2378uname -s = `(uname -s) 2>/dev/null || echo unknown`
2379uname -v = `(uname -v) 2>/dev/null || echo unknown`
2380
2381/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2382/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2383
2384/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2385/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2386/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Thomas Wouters47b49bf2007-08-30 22:15:332387/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:032388/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2389/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2390/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2391
2392_ASUNAME
2393
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:492399 $as_echo "PATH: $as_dir"
2400 done
Thomas Wouters47b49bf2007-08-30 22:15:332401IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:032402
2403} >&5
2404
2405cat >&5 <<_ACEOF
2406
2407
2408## ----------- ##
2409## Core tests. ##
2410## ----------- ##
2411
2412_ACEOF
2413
2414
2415# Keep a trace of the command line.
2416# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:042417# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:032418# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:042419# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:032420ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:042421ac_configure_args0=
2422ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:042423ac_must_keep_next=false
2424for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:032425do
Skip Montanaro6dead952003-09-25 14:50:042426 for ac_arg
2427 do
2428 case $ac_arg in
2429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2431 | -silent | --silent | --silen | --sile | --sil)
2432 continue ;;
Thomas Wouters47b49bf2007-08-30 22:15:332433 *\'*)
Matthias Kloseb9621712010-04-24 17:59:492434 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:042435 esac
2436 case $ac_pass in
Matthias Kloseb9621712010-04-24 17:59:492437 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Skip Montanaro6dead952003-09-25 14:50:042438 2)
Matthias Kloseb9621712010-04-24 17:59:492439 as_fn_append ac_configure_args1 " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042440 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:232441 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:042442 else
Skip Montanarof0d5f792004-08-15 14:08:232443 case $ac_arg in
2444 *=* | --config-cache | -C | -disable-* | --disable-* \
2445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2447 | -with-* | --with-* | -without-* | --without-* | --x)
2448 case "$ac_configure_args0 " in
2449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2450 esac
2451 ;;
2452 -* ) ac_must_keep_next=true ;;
2453 esac
Skip Montanaro6dead952003-09-25 14:50:042454 fi
Matthias Kloseb9621712010-04-24 17:59:492455 as_fn_append ac_configure_args " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042456 ;;
2457 esac
2458 done
Martin v. Löwis11437992002-04-12 09:54:032459done
Matthias Kloseb9621712010-04-24 17:59:492460{ ac_configure_args0=; unset ac_configure_args0;}
2461{ ac_configure_args1=; unset ac_configure_args1;}
Martin v. Löwis11437992002-04-12 09:54:032462
2463# When interrupted or exit'd, cleanup temporary files, and complete
2464# config.log. We remove comments because anyway the quotes in there
2465# would cause problems or look ugly.
Thomas Wouters47b49bf2007-08-30 22:15:332466# WARNING: Use '\'' to represent an apostrophe within the trap.
2467# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Martin v. Löwis11437992002-04-12 09:54:032468trap 'exit_status=$?
2469 # Save into config.log some information that might help in debugging.
2470 {
2471 echo
Skip Montanaro6dead952003-09-25 14:50:042472
Ross Lagerwallb0ae53d2011-06-10 05:30:302473 $as_echo "## ---------------- ##
Martin v. Löwis11437992002-04-12 09:54:032474## Cache variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302475## ---------------- ##"
Martin v. Löwis11437992002-04-12 09:54:032476 echo
2477 # The following way of writing the cache mishandles newlines in values,
Thomas Wouters47b49bf2007-08-30 22:15:332478(
2479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in #(
2482 *${as_nl}*)
2483 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:492484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332486 esac
2487 case $ac_var in #(
2488 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:492489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332491 esac ;;
2492 esac
2493 done
Martin v. Löwis11437992002-04-12 09:54:032494 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:332495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:032497 sed -n \
Thomas Wouters47b49bf2007-08-30 22:15:332498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2500 ;; #(
Skip Montanaroeb33e5a2007-08-17 12:57:412501 *)
Thomas Wouters47b49bf2007-08-30 22:15:332502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaroeb33e5a2007-08-17 12:57:412503 ;;
Thomas Wouters47b49bf2007-08-30 22:15:332504 esac |
2505 sort
2506)
Martin v. Löwis11437992002-04-12 09:54:032507 echo
Skip Montanaro6dead952003-09-25 14:50:042508
Ross Lagerwallb0ae53d2011-06-10 05:30:302509 $as_echo "## ----------------- ##
Skip Montanaro6dead952003-09-25 14:50:042510## Output variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302511## ----------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042512 echo
2513 for ac_var in $ac_subst_vars
2514 do
Thomas Wouters47b49bf2007-08-30 22:15:332515 eval ac_val=\$$ac_var
2516 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332518 esac
Matthias Kloseb9621712010-04-24 17:59:492519 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042520 done | sort
2521 echo
2522
2523 if test -n "$ac_subst_files"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302524 $as_echo "## ------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332525## File substitutions. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302526## ------------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042527 echo
2528 for ac_var in $ac_subst_files
2529 do
Thomas Wouters47b49bf2007-08-30 22:15:332530 eval ac_val=\$$ac_var
2531 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332533 esac
Matthias Kloseb9621712010-04-24 17:59:492534 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042535 done | sort
2536 echo
2537 fi
2538
Martin v. Löwis11437992002-04-12 09:54:032539 if test -s confdefs.h; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302540 $as_echo "## ----------- ##
Martin v. Löwis11437992002-04-12 09:54:032541## confdefs.h. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302542## ----------- ##"
Martin v. Löwis11437992002-04-12 09:54:032543 echo
Thomas Wouters47b49bf2007-08-30 22:15:332544 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032545 echo
2546 fi
2547 test "$ac_signal" != 0 &&
Matthias Kloseb9621712010-04-24 17:59:492548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:032550 } >&5
Thomas Wouters47b49bf2007-08-30 22:15:332551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:032553 exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:332554' 0
Martin v. Löwis11437992002-04-12 09:54:032555for ac_signal in 1 2 13 15; do
Matthias Kloseb9621712010-04-24 17:59:492556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Martin v. Löwis11437992002-04-12 09:54:032557done
2558ac_signal=0
2559
2560# confdefs.h avoids OS command line length limits that DEFS can exceed.
Thomas Wouters47b49bf2007-08-30 22:15:332561rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032562
Matthias Kloseb9621712010-04-24 17:59:492563$as_echo "/* confdefs.h */" > confdefs.h
2564
Martin v. Löwis11437992002-04-12 09:54:032565# Predefined preprocessor variables.
2566
2567cat >>confdefs.h <<_ACEOF
2568#define PACKAGE_NAME "$PACKAGE_NAME"
2569_ACEOF
2570
Martin v. Löwis11437992002-04-12 09:54:032571cat >>confdefs.h <<_ACEOF
2572#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573_ACEOF
2574
Martin v. Löwis11437992002-04-12 09:54:032575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_VERSION "$PACKAGE_VERSION"
2577_ACEOF
2578
Martin v. Löwis11437992002-04-12 09:54:032579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_STRING "$PACKAGE_STRING"
2581_ACEOF
2582
Martin v. Löwis11437992002-04-12 09:54:032583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2585_ACEOF
2586
Matthias Kloseb9621712010-04-24 17:59:492587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_URL "$PACKAGE_URL"
2589_ACEOF
2590
Martin v. Löwis11437992002-04-12 09:54:032591
2592# Let the site file select an alternate cache file if it wants to.
Matthias Kloseb9621712010-04-24 17:59:492593# Prefer an explicitly selected file to automatically selected ones.
2594ac_site_file1=NONE
2595ac_site_file2=NONE
Thomas Wouters47b49bf2007-08-30 22:15:332596if test -n "$CONFIG_SITE"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302597 # We do not want a PATH search for config.site.
2598 case $CONFIG_SITE in #((
2599 -*) ac_site_file1=./$CONFIG_SITE;;
2600 */*) ac_site_file1=$CONFIG_SITE;;
2601 *) ac_site_file1=./$CONFIG_SITE;;
2602 esac
Thomas Wouters47b49bf2007-08-30 22:15:332603elif test "x$prefix" != xNONE; then
Matthias Kloseb9621712010-04-24 17:59:492604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
Thomas Wouters47b49bf2007-08-30 22:15:332606else
Matthias Kloseb9621712010-04-24 17:59:492607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:542609fi
Matthias Kloseb9621712010-04-24 17:59:492610for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Thomas Wouters47b49bf2007-08-30 22:15:332611do
Matthias Kloseb9621712010-04-24 17:59:492612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032616 sed 's/^/| /' "$ac_site_file" >&5
Ross Lagerwallb0ae53d2011-06-10 05:30:302617 . "$ac_site_file" \
2618 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620as_fn_error $? "failed to load site script $ac_site_file
Victor Stinnere0be4232011-10-25 11:06:092621See \`config.log' for more details" "$LINENO" 5; }
Guido van Rossum76be6ed1995-01-02 18:33:542622 fi
2623done
2624
2625if test -r "$cache_file"; then
Matthias Kloseb9621712010-04-24 17:59:492626 # Some versions of bash will fail to source /dev/null (special files
2627 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2628 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2630$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032631 case $cache_file in
Thomas Wouters47b49bf2007-08-30 22:15:332632 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2633 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:032634 esac
2635 fi
Guido van Rossum76be6ed1995-01-02 18:33:542636else
Matthias Kloseb9621712010-04-24 17:59:492637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2638$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032639 >$cache_file
2640fi
2641
2642# Check that the precious variables saved in the cache have kept the same
2643# value.
2644ac_cache_corrupted=false
Thomas Wouters47b49bf2007-08-30 22:15:332645for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:032646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2647 eval ac_new_set=\$ac_env_${ac_var}_set
Thomas Wouters47b49bf2007-08-30 22:15:332648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2649 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:032650 case $ac_old_set,$ac_new_set in
2651 set,)
Matthias Kloseb9621712010-04-24 17:59:492652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2653$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032654 ac_cache_corrupted=: ;;
2655 ,set)
Matthias Kloseb9621712010-04-24 17:59:492656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2657$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032658 ac_cache_corrupted=: ;;
2659 ,);;
2660 *)
2661 if test "x$ac_old_val" != "x$ac_new_val"; then
Matthias Kloseb9621712010-04-24 17:59:492662 # differences in whitespace do not lead to failure.
2663 ac_old_val_w=`echo x $ac_old_val`
2664 ac_new_val_w=`echo x $ac_new_val`
2665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2667$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2668 ac_cache_corrupted=:
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2671$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2672 eval $ac_var=\$ac_old_val
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2675$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2677$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032678 fi;;
2679 esac
2680 # Pass precious variables to config.status.
2681 if test "$ac_new_set" = set; then
2682 case $ac_new_val in
Matthias Kloseb9621712010-04-24 17:59:492683 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:032684 *) ac_arg=$ac_var=$ac_new_val ;;
2685 esac
2686 case " $ac_configure_args " in
2687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Matthias Kloseb9621712010-04-24 17:59:492688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Martin v. Löwis11437992002-04-12 09:54:032689 esac
2690 fi
2691done
2692if $ac_cache_corrupted; then
Matthias Kloseb9621712010-04-24 17:59:492693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2696$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:302697 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:542698fi
Matthias Kloseb9621712010-04-24 17:59:492699## -------------------- ##
2700## Main body of script. ##
2701## -------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332702
Guido van Rossum7f43da71994-08-01 12:15:302703ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:542704ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:032705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:542708
Guido van Rossum627b2d71993-12-24 10:39:162709
Michael W. Hudson54241132001-12-07 15:38:262710
Trent Nelson4d4ec652012-10-16 12:51:242711
Christian Heimesff5be6e2018-01-20 12:19:212712
2713
Martin Panterc5ee3ca2016-09-12 01:32:032714if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
Trent Nelson4d4ec652012-10-16 12:51:242715 # If we're building out-of-tree, we need to make sure the following
2716 # resources get picked up before their $srcdir counterparts.
2717 # Objects/ -> typeslots.inc
2718 # Include/ -> Python-ast.h, graminit.h
2719 # Python/ -> importlib.h
2720 # (A side effect of this is that these resources will automatically be
2721 # regenerated when building out-of-tree, regardless of whether or not
2722 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2723 # off.)
2724 BASECPPFLAGS="-IObjects -IInclude -IPython"
2725else
2726 BASECPPFLAGS=""
2727fi
2728
Benjamin Peterson8c6f88e2011-06-01 01:52:172729
2730
2731
2732
Victor Stinner9ed34a82017-05-02 20:35:582733if test -e $srcdir/.git
Benjamin Peterson8c6f88e2011-06-01 01:52:172734then
Ned Deily5c4b0d02017-03-04 05:19:552735# Extract the first word of "git", so it can be a program name with args.
2736set dummy git; ac_word=$2
Benjamin Peterson8c6f88e2011-06-01 01:52:172737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
Ned Deily5c4b0d02017-03-04 05:19:552739if ${ac_cv_prog_HAS_GIT+:} false; then :
Benjamin Peterson8c6f88e2011-06-01 01:52:172740 $as_echo_n "(cached) " >&6
2741else
Ned Deily5c4b0d02017-03-04 05:19:552742 if test -n "$HAS_GIT"; then
2743 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
Benjamin Peterson8c6f88e2011-06-01 01:52:172744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:572751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deily5c4b0d02017-03-04 05:19:552752 ac_cv_prog_HAS_GIT="found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756done
2757 done
2758IFS=$as_save_IFS
2759
Ned Deily5c4b0d02017-03-04 05:19:552760 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172761fi
2762fi
Ned Deily5c4b0d02017-03-04 05:19:552763HAS_GIT=$ac_cv_prog_HAS_GIT
2764if test -n "$HAS_GIT"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2766$as_echo "$HAS_GIT" >&6; }
Benjamin Peterson8c6f88e2011-06-01 01:52:172767else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773else
Ned Deily5c4b0d02017-03-04 05:19:552774HAS_GIT=no-repository
Benjamin Peterson8c6f88e2011-06-01 01:52:172775fi
Ned Deily5c4b0d02017-03-04 05:19:552776if test $HAS_GIT = found
Benjamin Peterson8c6f88e2011-06-01 01:52:172777then
Xiang Zhang4c855572018-08-20 14:36:192778 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2779 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2780 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
Benjamin Peterson8c6f88e2011-06-01 01:52:172781else
Ned Deily5c4b0d02017-03-04 05:19:552782 GITVERSION=""
2783 GITTAG=""
2784 GITBRANCH=""
Benjamin Peterson8c6f88e2011-06-01 01:52:172785fi
2786
2787
Thomas Wouters47b49bf2007-08-30 22:15:332788ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:032789
2790
Matthias Kloseca2f6ec2012-03-15 20:30:112791ac_aux_dir=
2792for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2793 if test -f "$ac_dir/install-sh"; then
2794 ac_aux_dir=$ac_dir
2795 ac_install_sh="$ac_aux_dir/install-sh -c"
2796 break
2797 elif test -f "$ac_dir/install.sh"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/install.sh -c"
2800 break
2801 elif test -f "$ac_dir/shtool"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/shtool install -c"
2804 break
2805 fi
2806done
2807if test -z "$ac_aux_dir"; then
2808 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2809fi
2810
2811# These three variables are undocumented and unsupported,
2812# and are intended to be withdrawn in a future Autoconf release.
2813# They can cause serious problems if a builder's source tree is in a directory
2814# whose full name contains unusual characters.
2815ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2816ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2817ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2818
2819
2820# Make sure we can run config.sub.
2821$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2822 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2823
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2825$as_echo_n "checking build system type... " >&6; }
2826if ${ac_cv_build+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828else
2829 ac_build_alias=$build_alias
2830test "x$ac_build_alias" = x &&
2831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2832test "x$ac_build_alias" = x &&
2833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2834ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2836
2837fi
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2839$as_echo "$ac_cv_build" >&6; }
2840case $ac_cv_build in
2841*-*-*) ;;
2842*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2843esac
2844build=$ac_cv_build
2845ac_save_IFS=$IFS; IFS='-'
2846set x $ac_cv_build
2847shift
2848build_cpu=$1
2849build_vendor=$2
2850shift; shift
2851# Remember, the first character of IFS is used to create $*,
2852# except with old shells:
2853build_os=$*
2854IFS=$ac_save_IFS
2855case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2856
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2859$as_echo_n "checking host system type... " >&6; }
2860if ${ac_cv_host+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862else
2863 if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2865else
2866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2868fi
2869
2870fi
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2872$as_echo "$ac_cv_host" >&6; }
2873case $ac_cv_host in
2874*-*-*) ;;
2875*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2876esac
2877host=$ac_cv_host
2878ac_save_IFS=$IFS; IFS='-'
2879set x $ac_cv_host
2880shift
2881host_cpu=$1
2882host_vendor=$2
2883shift; shift
2884# Remember, the first character of IFS is used to create $*,
2885# except with old shells:
2886host_os=$*
2887IFS=$ac_save_IFS
2888case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2889
2890
2891
doko@python.orga10e4a92013-01-25 17:45:122892
2893
Ned Deilyfcbc2462014-08-22 20:32:492894# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2895rm -f pybuilddir.txt
2896
Xavier de Gayefd0d5932016-07-26 10:48:082897for ac_prog in python$PACKAGE_VERSION python3 python
2898do
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900set dummy $ac_prog; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnera5c62a82017-05-03 16:21:482903if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
Xavier de Gayefd0d5932016-07-26 10:48:082904 $as_echo_n "(cached) " >&6
2905else
Victor Stinnera5c62a82017-05-03 16:21:482906 if test -n "$PYTHON_FOR_REGEN"; then
2907 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
Xavier de Gayefd0d5932016-07-26 10:48:082908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Victor Stinnera5c62a82017-05-03 16:21:482916 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
Xavier de Gayefd0d5932016-07-26 10:48:082917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920done
2921 done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
Victor Stinnera5c62a82017-05-03 16:21:482926PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2927if test -n "$PYTHON_FOR_REGEN"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2929$as_echo "$PYTHON_FOR_REGEN" >&6; }
Xavier de Gayefd0d5932016-07-26 10:48:082930else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
Victor Stinnera5c62a82017-05-03 16:21:482936 test -n "$PYTHON_FOR_REGEN" && break
Xavier de Gayefd0d5932016-07-26 10:48:082937done
Victor Stinnera5c62a82017-05-03 16:21:482938test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
Xavier de Gayefd0d5932016-07-26 10:48:082939
Xavier de Gayefd0d5932016-07-26 10:48:082940
2941
doko@ubuntu.com1abe1c52012-06-30 18:42:452942if test "$cross_compiling" = yes; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2944$as_echo_n "checking for python interpreter for cross build... " >&6; }
2945 if test -z "$PYTHON_FOR_BUILD"; then
2946 for interp in python$PACKAGE_VERSION python3 python; do
2947 which $interp >/dev/null 2>&1 || continue
Xavier de Gaye4afd1432016-07-07 16:00:222948 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
doko@ubuntu.com1abe1c52012-06-30 18:42:452949 break
2950 fi
2951 interp=
2952 done
2953 if test x$interp = x; then
2954 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2957$as_echo "$interp" >&6; }
Xavier de Gaye92dec542016-09-11 20:22:242958 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 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp
doko@ubuntu.com1abe1c52012-06-30 18:42:452959 fi
Christian Heimes954ac032012-12-12 12:10:212960elif test "$cross_compiling" = maybe; then
2961 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
doko@ubuntu.com1abe1c52012-06-30 18:42:452962else
2963 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2964fi
2965
2966
Martin v. Löwis11437992002-04-12 09:54:032967
Benjamin Petersond23f8222009-04-05 19:13:162968if test "$prefix" != "/"; then
2969 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2970fi
2971
2972
Martin v. Löwis11437992002-04-12 09:54:032973
2974
Martin v. Löwis8316feb2003-06-14 07:48:072975# We don't use PACKAGE_ variables, and they cause conflicts
2976# with other autoconf-based packages that include Python.h
2977grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2978rm confdefs.h
2979mv confdefs.h.new confdefs.h
2980
Martin v. Löwisbddf5a52002-11-11 13:37:282981
Ned Deily5489bda2018-01-31 22:44:092982VERSION=3.8
Guido van Rossum1fd74a71997-07-19 19:36:022983
Benjamin Petersond7f73e92010-09-05 00:09:072984# Version number of Python's own shared library file.
Martin v. Löwis1142de32002-03-29 16:28:312985
2986SOVERSION=1.0
2987
Martin v. Löwis6f18a3c2002-07-20 08:51:522988# The later defininition of _XOPEN_SOURCE disables certain features
2989# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2990
Matthias Kloseb9621712010-04-24 17:59:492991$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Martin v. Löwis6f18a3c2002-07-20 08:51:522992
2993
Martin v. Löwisbcd93962003-05-03 10:32:182994# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2995# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2996# them.
2997
Matthias Kloseb9621712010-04-24 17:59:492998$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
Martin v. Löwisbcd93962003-05-03 10:32:182999
3000
Andrew MacIntyreabccf412003-07-02 13:53:253001# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3002# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3003# them.
3004
Matthias Kloseb9621712010-04-24 17:59:493005$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
Andrew MacIntyreabccf412003-07-02 13:53:253006
3007
Martin v. Löwisd6320502004-08-12 13:45:083008# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
Benjamin Peterson14ae9592008-07-16 02:20:153009# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3010# them.
3011
Matthias Kloseb9621712010-04-24 17:59:493012$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
Benjamin Peterson14ae9592008-07-16 02:20:153013
3014
3015
Martin v. Löwis35195ad2002-11-11 13:26:513016define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:523017
Neil Schemenauer4edbc2a2001-03-22 00:34:033018# Arguments passed to configure.
3019
3020CONFIG_ARGS="$ac_configure_args"
3021
Matthias Kloseb9621712010-04-24 17:59:493022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3023$as_echo_n "checking for --enable-universalsdk... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:333024# Check whether --enable-universalsdk was given.
Matthias Kloseb9621712010-04-24 17:59:493025if test "${enable_universalsdk+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333026 enableval=$enable_universalsdk;
Thomas Wouters477c8d52006-05-27 19:21:473027 case $enableval in
3028 yes)
Serhiy Storchaka88cc3392018-06-04 05:20:253029 # Locate the best usable SDK, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193030 # information
3031 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
Ned Deily87adb6e2013-10-19 04:09:563032 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
Ronald Oussoren8af24c12010-02-07 12:03:423033 then
Ned Deilycbfb9a52012-06-23 23:02:193034 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3035 if test ! -d "${enableval}"
3036 then
3037 enableval=/
3038 fi
Ronald Oussoren8af24c12010-02-07 12:03:423039 fi
Thomas Wouters477c8d52006-05-27 19:21:473040 ;;
3041 esac
3042 case $enableval in
3043 no)
3044 UNIVERSALSDK=
3045 enable_universalsdk=
3046 ;;
3047 *)
3048 UNIVERSALSDK=$enableval
Ronald Oussoren8af24c12010-02-07 12:03:423049 if test ! -d "${UNIVERSALSDK}"
3050 then
Ross Lagerwallb0ae53d2011-06-10 05:30:303051 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
Ronald Oussoren8af24c12010-02-07 12:03:423052 fi
Thomas Wouters477c8d52006-05-27 19:21:473053 ;;
3054 esac
Martin v. Löwis11437992002-04-12 09:54:033055
Ronald Oussoren8af24c12010-02-07 12:03:423056
Thomas Wouters477c8d52006-05-27 19:21:473057else
3058
3059 UNIVERSALSDK=
3060 enable_universalsdk=
3061
Thomas Wouters47b49bf2007-08-30 22:15:333062fi
Thomas Wouters477c8d52006-05-27 19:21:473063
Ronald Oussoren8af24c12010-02-07 12:03:423064if test -n "${UNIVERSALSDK}"
3065then
Matthias Kloseb9621712010-04-24 17:59:493066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3067$as_echo "${UNIVERSALSDK}" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423068else
Matthias Kloseb9621712010-04-24 17:59:493069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423071fi
Thomas Wouters477c8d52006-05-27 19:21:473072
Thomas Wouters47b49bf2007-08-30 22:15:333073
Benjamin Peterson6794aa32008-07-16 20:33:373074
Ned Deily87adb6e2013-10-19 04:09:563075ARCH_RUN_32BIT=""
Benjamin Peterson6794aa32008-07-16 20:33:373076
Ned Deilycbfb9a52012-06-23 23:02:193077# For backward compatibility reasons we prefer to select '32-bit' if available,
3078# otherwise use 'intel'
Benjamin Peterson14ae9592008-07-16 02:20:153079UNIVERSAL_ARCHS="32-bit"
Ned Deilycbfb9a52012-06-23 23:02:193080if test "`uname -s`" = "Darwin"
3081then
3082 if test -n "${UNIVERSALSDK}"
3083 then
Ned Deily87adb6e2013-10-19 04:09:563084 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
Ned Deilycbfb9a52012-06-23 23:02:193085 then
3086 UNIVERSAL_ARCHS="intel"
3087 fi
3088 fi
3089fi
3090
Ronald Oussoren6f6c5622009-12-24 14:03:193091
Ned Deily78e55882021-05-02 10:55:043092
Matthias Kloseb9621712010-04-24 17:59:493093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3094$as_echo_n "checking for --with-universal-archs... " >&6; }
Benjamin Peterson14ae9592008-07-16 02:20:153095
3096# Check whether --with-universal-archs was given.
Matthias Kloseb9621712010-04-24 17:59:493097if test "${with_universal_archs+set}" = set; then :
Benjamin Peterson14ae9592008-07-16 02:20:153098 withval=$with_universal_archs;
Benjamin Peterson14ae9592008-07-16 02:20:153099 UNIVERSAL_ARCHS="$withval"
3100
Benjamin Peterson14ae9592008-07-16 02:20:153101fi
3102
Ned Deily87adb6e2013-10-19 04:09:563103if test -n "${UNIVERSALSDK}"
3104then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3106$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
Benjamin Peterson14ae9592008-07-16 02:20:153111
Christian Heimes81ee3ef2008-05-04 22:42:013112
3113# Check whether --with-framework-name was given.
Matthias Kloseb9621712010-04-24 17:59:493114if test "${with_framework_name+set}" = set; then :
Christian Heimes81ee3ef2008-05-04 22:42:013115 withval=$with_framework_name;
3116 PYTHONFRAMEWORK=${withval}
3117 PYTHONFRAMEWORKDIR=${withval}.framework
3118 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3119
3120else
3121
3122 PYTHONFRAMEWORK=Python
3123 PYTHONFRAMEWORKDIR=Python.framework
3124 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3125
3126fi
3127
Thomas Wouters47b49bf2007-08-30 22:15:333128# Check whether --enable-framework was given.
Matthias Kloseb9621712010-04-24 17:59:493129if test "${enable_framework+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333130 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:143131 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:033132 yes)
Jack Jansene578a632001-08-15 01:27:143133 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:543134 esac
3135 case $enableval in
3136 no)
3137 PYTHONFRAMEWORK=
3138 PYTHONFRAMEWORKDIR=no-framework
3139 PYTHONFRAMEWORKPREFIX=
3140 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473141 FRAMEWORKINSTALLFIRST=
3142 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453143 FRAMEWORKALTINSTALLFIRST=
3144 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253145 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453146 if test "x${prefix}" = "xNONE"; then
3147 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3148 else
3149 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3150 fi
Jack Jansen127e56e2001-09-11 14:41:543151 enable_framework=
Jack Jansene578a632001-08-15 01:27:143152 ;;
3153 *)
Ronald Oussoren86b33c82010-04-30 11:41:563154 PYTHONFRAMEWORKPREFIX="${enableval}"
Jack Jansen127e56e2001-09-11 14:41:543155 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Thomas Wouters477c8d52006-05-27 19:21:473156 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussorenf6ccbf62009-06-02 10:55:563157 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
Ronald Oussoren6f6c5622009-12-24 14:03:193158 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3159 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
Ned Deilyb8f944f2013-11-22 06:42:253160 FRAMEWORKPYTHONW="frameworkpythonw"
Ronald Oussoren86b33c82010-04-30 11:41:563161 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
Benjamin Peterson14ae9592008-07-16 02:20:153162
Thomas Wouters73e5a5b2006-06-08 15:35:453163 if test "x${prefix}" = "xNONE" ; then
3164 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
Ronald Oussoren86b33c82010-04-30 11:41:563165
Thomas Wouters73e5a5b2006-06-08 15:35:453166 else
3167 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3168 fi
Ronald Oussoren86b33c82010-04-30 11:41:563169
3170 case "${enableval}" in
3171 /System*)
3172 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3173 if test "${prefix}" = "NONE" ; then
3174 # See below
3175 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3176 fi
3177 ;;
3178
3179 /Library*)
3180 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3181 ;;
3182
3183 */Library/Frameworks)
3184 MDIR="`dirname "${enableval}"`"
3185 MDIR="`dirname "${MDIR}"`"
3186 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3187
3188 if test "${prefix}" = "NONE"; then
3189 # User hasn't specified the
3190 # --prefix option, but wants to install
3191 # the framework in a non-default location,
3192 # ensure that the compatibility links get
3193 # installed relative to that prefix as well
3194 # instead of in /usr/local.
3195 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3196 fi
3197 ;;
3198
3199 *)
3200 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3201 ;;
3202 esac
3203
Jack Jansen127e56e2001-09-11 14:41:543204 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Thomas Wouters477c8d52006-05-27 19:21:473205
Christian Heimes81ee3ef2008-05-04 22:42:013206 # Add files for Mac specific code to the list of output
Thomas Wouters477c8d52006-05-27 19:21:473207 # files:
Thomas Wouters47b49bf2007-08-30 22:15:333208 ac_config_files="$ac_config_files Mac/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473209
Thomas Wouters47b49bf2007-08-30 22:15:333210 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473211
Christian Heimes81ee3ef2008-05-04 22:42:013212 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3213
3214 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3215
Jack Jansene578a632001-08-15 01:27:143216 esac
Martin v. Löwis11437992002-04-12 09:54:033217
Guido van Rossum563e7081996-09-10 18:20:483218else
Martin v. Löwis11437992002-04-12 09:54:033219
Jack Jansene578a632001-08-15 01:27:143220 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:543221 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:143222 PYTHONFRAMEWORKPREFIX=
3223 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473224 FRAMEWORKINSTALLFIRST=
3225 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453226 FRAMEWORKALTINSTALLFIRST=
3227 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253228 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453229 if test "x${prefix}" = "xNONE" ; then
3230 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3231 else
3232 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3233 fi
Jack Jansene578a632001-08-15 01:27:143234 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:353235
Benjamin Peterson14ae9592008-07-16 02:20:153236
Thomas Wouters47b49bf2007-08-30 22:15:333237fi
3238
Thomas Wouters477c8d52006-05-27 19:21:473239
3240
Michael W. Hudson54241132001-12-07 15:38:263241
3242
3243
3244
Jack Jansene578a632001-08-15 01:27:143245
Thomas Wouters73e5a5b2006-06-08 15:35:453246
3247
3248
Christian Heimes81ee3ef2008-05-04 22:42:013249
Ronald Oussoren86b33c82010-04-30 11:41:563250
Ned Deilyb8f944f2013-11-22 06:42:253251
INADA Naokia8f8d5b2017-06-28 15:31:533252
3253cat >>confdefs.h <<_ACEOF
INADA Naoki6b42eb12017-06-29 06:31:383254#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}"
INADA Naokia8f8d5b2017-06-28 15:31:533255_ACEOF
3256
3257
Jack Jansene578a632001-08-15 01:27:143258##AC_ARG_WITH(dyld,
Matthias Klose2b8733f2010-04-25 18:34:363259## AS_HELP_STRING([--with-dyld],
Matthias Klosec80c93f2010-04-24 17:04:353260## [Use (OpenStep|Rhapsody) dynamic linker]))
Jack Jansene578a632001-08-15 01:27:143261##
Guido van Rossum7b3853f1996-07-30 18:09:353262# Set name for machine-dependent library files
3263
Matthias Kloseb9621712010-04-24 17:59:493264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3265$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353266if test -z "$MACHDEP"
3267then
Matthias Klosedf2aecb2012-03-15 21:19:283268 # avoid using uname for cross builds
3269 if test "$cross_compiling" = yes; then
doko@python.org44bbbda2013-01-25 13:44:003270 # ac_sys_system and ac_sys_release are used for setting
3271 # a lot of different things including 'define_xopen_source'
3272 # in the case statement below.
Matthias Klosedf2aecb2012-03-15 21:19:283273 case "$host" in
Xavier de Gaye2a352b62017-01-04 20:51:163274 *-*-linux-android*)
3275 ac_sys_system=Linux-android
3276 ;;
Matthias Klosedf2aecb2012-03-15 21:19:283277 *-*-linux*)
3278 ac_sys_system=Linux
3279 ;;
3280 *-*-cygwin*)
3281 ac_sys_system=Cygwin
3282 ;;
pxinwr32f5fdd2019-02-27 11:09:283283 *-*-vxworks*)
3284 ac_sys_system=VxWorks
3285 ;;
Matthias Klosedf2aecb2012-03-15 21:19:283286 *)
3287 # for now, limit cross builds to known configurations
3288 MACHDEP="unknown"
3289 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3290 esac
3291 ac_sys_release=
3292 else
Guido van Rossum563e7081996-09-10 18:20:483293 ac_sys_system=`uname -s`
Benjamin Peterson8719ad52009-09-11 22:24:023294 if test "$ac_sys_system" = "AIX" \
Martin v. Löwis21ee4092002-09-30 16:19:483295 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:483296 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:353297 else
Guido van Rossum563e7081996-09-10 18:20:483298 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:353299 fi
Matthias Klosedf2aecb2012-03-15 21:19:283300 fi
3301 ac_md_system=`echo $ac_sys_system |
3302 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3303 ac_md_release=`echo $ac_sys_release |
3304 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3305 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:483306
Matthias Klosedf2aecb2012-03-15 21:19:283307 case $MACHDEP in
Michael Felt9d949f72019-04-12 14:15:323308 aix*) MACHDEP="aix";;
Victor Stinner7209ff22011-08-20 22:00:163309 linux*) MACHDEP="linux";;
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:043310 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:323311 darwin*) MACHDEP="darwin";;
Guido van Rossumb97ef171997-09-28 05:44:033312 '') MACHDEP="unknown";;
Matthias Klosedf2aecb2012-03-15 21:19:283313 esac
Guido van Rossum7b3853f1996-07-30 18:09:353314fi
E. M. Brayb1fc4172019-05-24 16:39:393315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
3316$as_echo "\"$MACHDEP\"" >&6; }
Guido van Rossum91922671997-10-09 20:24:133317
doko@ubuntu.com1abe1c52012-06-30 18:42:453318
3319if test "$cross_compiling" = yes; then
3320 case "$host" in
3321 *-*-linux*)
3322 case "$host_cpu" in
3323 arm*)
3324 _host_cpu=arm
3325 ;;
3326 *)
3327 _host_cpu=$host_cpu
3328 esac
3329 ;;
3330 *-*-cygwin*)
3331 _host_cpu=
3332 ;;
pxinwr32f5fdd2019-02-27 11:09:283333 *-*-vxworks*)
3334 _host_cpu=$host_cpu
3335 ;;
doko@ubuntu.com1abe1c52012-06-30 18:42:453336 *)
3337 # for now, limit cross builds to known configurations
3338 MACHDEP="unknown"
3339 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3340 esac
3341 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3342fi
3343
Martin v. Löwis35195ad2002-11-11 13:26:513344# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3345# disable features if it is defined, without any means to access these
3346# features as extensions. For these systems, we skip the definition of
3347# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3348# some feature, make sure there is no alternative way to access this
3349# feature. Also, when using wildcards, make sure you have verified the
3350# need for not defining _XOPEN_SOURCE on all systems matching the
3351# wildcard, and that the wildcard does not include future systems
3352# (which may remove their limitations).
3353case $ac_sys_system/$ac_sys_release in
3354 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3355 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:443356 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Martin v. Löwis19ed3c82010-02-15 21:45:063357 # In addition, Stefan Krah confirms that issue #1244610 exists through
3358 # OpenBSD 4.6, but is fixed in 4.7.
Charles-François Natali54ef40b2011-07-22 21:52:023359 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
Christian Heimes5b5e81c2007-12-31 16:14:333360 define_xopen_source=no
3361 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3362 # also defined. This can be overridden by defining _BSD_SOURCE
3363 # As this has a different meaning on Linux, only define it on OpenBSD
3364
Matthias Kloseb9621712010-04-24 17:59:493365$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Christian Heimes5b5e81c2007-12-31 16:14:333366
3367 ;;
Charles-François Natali54ef40b2011-07-22 21:52:023368 OpenBSD/*)
Martin v. Löwis7671efc2010-02-15 08:35:163369 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3370 # also defined. This can be overridden by defining _BSD_SOURCE
3371 # As this has a different meaning on Linux, only define it on OpenBSD
3372
Matthias Kloseb9621712010-04-24 17:59:493373$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwis7671efc2010-02-15 08:35:163374
3375 ;;
Thomas Wouters89f507f2006-12-13 04:49:303376 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3377 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3378 # Marc Recht
Benjamin Petersonf608c612008-11-16 18:33:533379 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
Martin v. Löwis35195ad2002-11-11 13:26:513380 define_xopen_source=no;;
Martin v. Löwis1a415762010-05-28 15:44:203381 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3382 # request to enable features supported by the standard as a request
3383 # to disable features not supported by the standard. The best way
3384 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3385 # entirely and define __EXTENSIONS__ instead.
3386 SunOS/*)
Martin v. Löwisa9d71422003-03-28 18:43:313387 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:413388 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3389 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:453390 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:143391 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:413392 define_xopen_source=no;;
3393 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:183394 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:413395 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:183396 define_xopen_source=no;;
Martin v. Löwisb37509b2008-11-04 20:45:293397 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3398 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3399 # identifies itself as Darwin/7.*
3400 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3401 # disables platform specific features beyond repair.
3402 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3403 # has no effect, don't bother defining them
3404 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:233405 define_xopen_source=no;;
Miss Islington (bot)c4a53e42020-06-25 15:15:063406 Darwin/[12][0-9].*)
Ronald Oussorenb8f11a62010-03-08 07:02:033407 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393408 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3409 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3410 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:443411 AIX/4)
3412 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393413 AIX/5)
3414 if test `uname -r` -eq 1; then
3415 define_xopen_source=no
3416 fi
3417 ;;
Benjamin Petersonde9c8692008-07-01 18:23:093418 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3419 # defining NI_NUMERICHOST.
3420 QNX/6.3.2)
3421 define_xopen_source=no
3422 ;;
pxinwr32f5fdd2019-02-27 11:09:283423 # On VxWorks, defining _XOPEN_SOURCE causes compile failures
3424 # in network headers still using system V types.
3425 VxWorks/*)
3426 define_xopen_source=no
3427 ;;
Bob Ippolito7026a0a2005-03-28 23:23:473428
Miss Islington (bot)28fc1ba2020-02-14 03:27:283429 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
3430 # chroot() and other functions
3431 hp*|HP*)
3432 define_xopen_source=no
3433 ;;
3434
Martin v. Löwis35195ad2002-11-11 13:26:513435esac
3436
3437if test $define_xopen_source = yes
3438then
Victor Stinner14d098d2011-09-07 20:29:433439 # X/Open 7, incorporating POSIX.1-2008
Martin v. Löwis678fc1e2002-11-12 06:04:393440
Victor Stinner14d098d2011-09-07 20:29:433441$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
Martin v. Löwis35195ad2002-11-11 13:26:513442
Martin v. Löwis678fc1e2002-11-12 06:04:393443
3444 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3445 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3446 # several APIs are not declared. Since this is also needed in some
3447 # cases for HP-UX, we define it globally.
Martin v. Löwis678fc1e2002-11-12 06:04:393448
Matthias Kloseb9621712010-04-24 17:59:493449$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393450
3451
Bob Ippolito7026a0a2005-03-28 23:23:473452
Victor Stinnerd169fdc2011-09-07 22:56:173453$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393454
Martin v. Löwis35195ad2002-11-11 13:26:513455fi
3456
Christian Heimes647cd872013-12-07 22:39:333457# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3458case $ac_sys_system in
Christian Heimesb02bcae2013-12-08 14:21:083459 hp*|HP*)
3460 define_stdc_a1=yes;;
3461 *)
3462 define_stdc_a1=no;;
3463esac
3464
3465if test $define_stdc_a1 = yes
3466then
Christian Heimes647cd872013-12-07 22:39:333467
3468$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3469
Christian Heimesb02bcae2013-12-08 14:21:083470fi
Christian Heimes647cd872013-12-07 22:39:333471
Jack Jansen6b08a402004-06-03 12:41:453472# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3473# it may influence the way we can build extensions, so distutils
3474# needs to check it
3475
Thomas Wouters477c8d52006-05-27 19:21:473476
Jack Jansen6b08a402004-06-03 12:41:453477CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Thomas Wouters477c8d52006-05-27 19:21:473478EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:453479
Guido van Rossum627b2d71993-12-24 10:39:163480# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:493481
3482# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3483# for debug/optimization stuff. BASECFLAGS is for flags that are required
3484# just to get things to compile and link. Users are free to override OPT
3485# when running configure or make. The build should not break if they do.
3486# BASECFLAGS should generally not be messed with, however.
3487
Guido van Rossum8b131c51995-03-09 14:10:133488# If the user switches compilers, we can't believe the cache
3489if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3490then
Ross Lagerwallb0ae53d2011-06-10 05:30:303491 as_fn_error $? "cached CC is different -- throw away $cache_file
Matthias Kloseb9621712010-04-24 17:59:493492(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
Guido van Rossum8b131c51995-03-09 14:10:133493fi
3494
Jeffrey Yasskind4fcdb12010-07-09 16:30:583495# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3496# when the compiler supports them, but we don't always want -O2, and
3497# we set -g later.
3498if test -z "$CFLAGS"; then
3499 CFLAGS=
3500fi
Ned Deilycbfb9a52012-06-23 23:02:193501
3502if test "$ac_sys_system" = "Darwin"
3503then
3504 # Compiler selection on MacOSX is more complicated than
Serhiy Storchaka88cc3392018-06-04 05:20:253505 # AC_PROG_CC can handle, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193506 # information
3507 if test -z "${CC}"
3508 then
3509 found_gcc=
3510 found_clang=
3511 as_save_IFS=$IFS; IFS=:
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
Ned Deily14aa00b2017-10-09 17:53:273515 if test -x "${as_dir}/gcc"; then
Ned Deilycbfb9a52012-06-23 23:02:193516 if test -z "${found_gcc}"; then
Ned Deily14aa00b2017-10-09 17:53:273517 found_gcc="${as_dir}/gcc"
Ned Deilycbfb9a52012-06-23 23:02:193518 fi
3519 fi
Ned Deily14aa00b2017-10-09 17:53:273520 if test -x "${as_dir}/clang"; then
Ned Deilycbfb9a52012-06-23 23:02:193521 if test -z "${found_clang}"; then
Ned Deily14aa00b2017-10-09 17:53:273522 found_clang="${as_dir}/clang"
Ned Deilycbfb9a52012-06-23 23:02:193523 fi
3524 fi
3525 done
3526 IFS=$as_save_IFS
3527
3528 if test -n "$found_gcc" -a -n "$found_clang"
3529 then
3530 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3531 then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3533$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3534 CC="$found_clang"
3535 CXX="$found_clang++"
3536 fi
3537
3538
3539 elif test -z "$found_gcc" -a -n "$found_clang"
3540 then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3542$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3543 CC="$found_clang"
3544 CXX="$found_clang++"
3545
3546 elif test -z "$found_gcc" -a -z "$found_clang"
3547 then
3548 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3549 if test -n "${found_clang}"
3550 then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3552$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3553 CC="${found_clang}"
3554 CXX="`/usr/bin/xcrun -find clang++`"
3555
3556 # else: use default behaviour
3557 fi
3558 fi
3559 fi
3560fi
Martin v. Löwis11437992002-04-12 09:54:033561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566if test -n "$ac_tool_prefix"; then
3567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3568set dummy ${ac_tool_prefix}gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093571if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493572 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:483573else
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576else
Martin v. Löwis11437992002-04-12 09:54:033577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493582 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Matthias Kloseb9621712010-04-24 17:59:493585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033586 break 2
3587 fi
3588done
Matthias Kloseb9621712010-04-24 17:59:493589 done
Thomas Wouters47b49bf2007-08-30 22:15:333590IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033591
Jack Jansendd19cf82001-12-06 22:36:173592fi
3593fi
Martin v. Löwis11437992002-04-12 09:54:033594CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:173595if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173598else
Matthias Kloseb9621712010-04-24 17:59:493599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033601fi
3602
Thomas Wouters47b49bf2007-08-30 22:15:333603
Martin v. Löwis11437992002-04-12 09:54:033604fi
3605if test -z "$ac_cv_prog_CC"; then
3606 ac_ct_CC=$CC
3607 # Extract the first word of "gcc", so it can be a program name with args.
3608set dummy gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093611if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493612 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033613else
3614 if test -n "$ac_ct_CC"; then
3615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3616else
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493622 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033624 ac_cv_prog_ac_ct_CC="gcc"
Matthias Kloseb9621712010-04-24 17:59:493625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033626 break 2
3627 fi
3628done
Matthias Kloseb9621712010-04-24 17:59:493629 done
Thomas Wouters47b49bf2007-08-30 22:15:333630IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033631
3632fi
3633fi
3634ac_ct_CC=$ac_cv_prog_ac_ct_CC
3635if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3637$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033638else
Matthias Kloseb9621712010-04-24 17:59:493639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033641fi
3642
Thomas Wouters47b49bf2007-08-30 22:15:333643 if test "x$ac_ct_CC" = x; then
3644 CC=""
3645 else
3646 case $cross_compiling:$ac_tool_warned in
3647yes:)
Matthias Kloseb9621712010-04-24 17:59:493648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333650ac_tool_warned=yes ;;
3651esac
3652 CC=$ac_ct_CC
3653 fi
Martin v. Löwis11437992002-04-12 09:54:033654else
3655 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:173656fi
3657
Jack Jansendd19cf82001-12-06 22:36:173658if test -z "$CC"; then
Thomas Wouters47b49bf2007-08-30 22:15:333659 if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Martin v. Löwis11437992002-04-12 09:54:033661set dummy ${ac_tool_prefix}cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093664if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493665 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:173666else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669else
Martin v. Löwis11437992002-04-12 09:54:033670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493675 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033677 ac_cv_prog_CC="${ac_tool_prefix}cc"
Matthias Kloseb9621712010-04-24 17:59:493678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033679 break 2
3680 fi
3681done
Matthias Kloseb9621712010-04-24 17:59:493682 done
Thomas Wouters47b49bf2007-08-30 22:15:333683IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033684
3685fi
3686fi
3687CC=$ac_cv_prog_CC
3688if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033691else
Matthias Kloseb9621712010-04-24 17:59:493692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033694fi
3695
Thomas Wouters47b49bf2007-08-30 22:15:333696
Martin v. Löwis11437992002-04-12 09:54:033697 fi
Martin v. Löwis11437992002-04-12 09:54:033698fi
3699if test -z "$CC"; then
3700 # Extract the first word of "cc", so it can be a program name with args.
3701set dummy cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093704if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493705 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033706else
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3709else
Guido van Rossum48bdbfc1996-05-28 22:53:483710 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:033711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493716 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3719 ac_prog_rejected=yes
3720 continue
3721 fi
3722 ac_cv_prog_CC="cc"
Matthias Kloseb9621712010-04-24 17:59:493723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033724 break 2
3725 fi
3726done
Matthias Kloseb9621712010-04-24 17:59:493727 done
Thomas Wouters47b49bf2007-08-30 22:15:333728IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033729
Guido van Rossum48bdbfc1996-05-28 22:53:483730if test $ac_prog_rejected = yes; then
3731 # We found a bogon in the path, so make sure we never use it.
3732 set dummy $ac_cv_prog_CC
3733 shift
Martin v. Löwis11437992002-04-12 09:54:033734 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:483735 # We chose a different compiler from the bogus one.
3736 # However, it has the same basename, so the bogon will be chosen
3737 # first if we set CC to just the basename; use the full file name.
3738 shift
Skip Montanaro6dead952003-09-25 14:50:043739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:483740 fi
3741fi
3742fi
3743fi
Martin v. Löwis11437992002-04-12 09:54:033744CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:483745if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483748else
Matthias Kloseb9621712010-04-24 17:59:493749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483751fi
3752
Thomas Wouters47b49bf2007-08-30 22:15:333753
Martin v. Löwis11437992002-04-12 09:54:033754fi
3755if test -z "$CC"; then
3756 if test -n "$ac_tool_prefix"; then
Thomas Wouters47b49bf2007-08-30 22:15:333757 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033758 do
3759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093763if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493764 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:333765else
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768else
Martin v. Löwis11437992002-04-12 09:54:033769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493774 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033778 break 2
Guido van Rossumf78abae1997-01-21 22:02:363779 fi
Martin v. Löwis11437992002-04-12 09:54:033780done
Matthias Kloseb9621712010-04-24 17:59:493781 done
Thomas Wouters47b49bf2007-08-30 22:15:333782IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033783
3784fi
3785fi
3786CC=$ac_cv_prog_CC
3787if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033790else
Matthias Kloseb9621712010-04-24 17:59:493791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173793fi
3794
Thomas Wouters47b49bf2007-08-30 22:15:333795
Martin v. Löwis11437992002-04-12 09:54:033796 test -n "$CC" && break
3797 done
3798fi
3799if test -z "$CC"; then
3800 ac_ct_CC=$CC
Thomas Wouters47b49bf2007-08-30 22:15:333801 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033802do
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093807if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493808 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033809else
3810 if test -n "$ac_ct_CC"; then
3811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493818 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033820 ac_cv_prog_ac_ct_CC="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033822 break 2
3823 fi
3824done
Matthias Kloseb9621712010-04-24 17:59:493825 done
Thomas Wouters47b49bf2007-08-30 22:15:333826IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:173827
Martin v. Löwis11437992002-04-12 09:54:033828fi
3829fi
3830ac_ct_CC=$ac_cv_prog_ac_ct_CC
3831if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3833$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033834else
Matthias Kloseb9621712010-04-24 17:59:493835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033837fi
Michael W. Hudson54241132001-12-07 15:38:263838
Thomas Wouters47b49bf2007-08-30 22:15:333839
Martin v. Löwis11437992002-04-12 09:54:033840 test -n "$ac_ct_CC" && break
3841done
Michael W. Hudson54241132001-12-07 15:38:263842
Thomas Wouters47b49bf2007-08-30 22:15:333843 if test "x$ac_ct_CC" = x; then
3844 CC=""
3845 else
3846 case $cross_compiling:$ac_tool_warned in
3847yes:)
Matthias Kloseb9621712010-04-24 17:59:493848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333850ac_tool_warned=yes ;;
3851esac
3852 CC=$ac_ct_CC
3853 fi
Martin v. Löwis11437992002-04-12 09:54:033854fi
3855
3856fi
3857
3858
Matthias Kloseb9621712010-04-24 17:59:493859test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:303861as_fn_error $? "no acceptable C compiler found in \$PATH
Victor Stinnere0be4232011-10-25 11:06:093862See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:033863
3864# Provide some information about the compiler.
Matthias Kloseb9621712010-04-24 17:59:493865$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3866set X $ac_compile
3867ac_compiler=$2
3868for ac_option in --version -v -V -qversion; do
3869 { { ac_try="$ac_compiler $ac_option >&5"
Thomas Wouters47b49bf2007-08-30 22:15:333870case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
Matthias Kloseb9621712010-04-24 17:59:493874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875$as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Martin v. Löwis11437992002-04-12 09:54:033877 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493878 if test -s conftest.err; then
3879 sed '10a\
3880... rest of stderr output deleted ...
3881 10q' conftest.err >conftest.er1
3882 cat conftest.er1 >&5
3883 fi
3884 rm -f conftest.er1 conftest.err
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }
3887done
Martin v. Löwis11437992002-04-12 09:54:033888
Matthias Kloseb9621712010-04-24 17:59:493889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:043890/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:173891
Martin v. Löwis11437992002-04-12 09:54:033892int
3893main ()
3894{
3895
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900ac_clean_files_save=$ac_clean_files
Matthias Kloseb9621712010-04-24 17:59:493901ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:033902# Try to create an executable without -o first, disregard a.out.
3903# It will help us diagnose broken compilers, and finding out an intuition
3904# of exeext.
Matthias Kloseb9621712010-04-24 17:59:493905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906$as_echo_n "checking whether the C compiler works... " >&6; }
3907ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908
3909# The possible output files:
3910ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3911
Thomas Wouters47b49bf2007-08-30 22:15:333912ac_rmfiles=
3913for ac_file in $ac_files
3914do
3915 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters47b49bf2007-08-30 22:15:333917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3918 esac
3919done
3920rm -f $ac_rmfiles
3921
Matthias Kloseb9621712010-04-24 17:59:493922if { { ac_try="$ac_link_default"
Thomas Wouters47b49bf2007-08-30 22:15:333923case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926esac
Matthias Kloseb9621712010-04-24 17:59:493927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:333929 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:033930 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:333933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3935# in a Makefile. We should not override ac_cv_exeext if it was cached,
3936# so that the user can short-circuit this test for compilers unknown to
3937# Autoconf.
3938for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:043939do
3940 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:033941 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Thomas Wouters1ba5b3b2006-06-08 14:52:473943 ;;
3944 [ab].out )
3945 # We found the default executable, but exeext='' is most
3946 # certainly right.
3947 break;;
3948 *.* )
Matthias Kloseb9621712010-04-24 17:59:493949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Thomas Wouters47b49bf2007-08-30 22:15:333950 then :; else
3951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952 fi
3953 # We set ac_cv_exeext here because the later test for it is not
3954 # safe: cross compilers may not add the suffix if given an `-o'
3955 # argument, so we may need to know it at that point already.
3956 # Even if this section looks crufty: it has the advantage of
3957 # actually working.
Thomas Wouters1ba5b3b2006-06-08 14:52:473958 break;;
3959 * )
3960 break;;
Martin v. Löwis11437992002-04-12 09:54:033961 esac
3962done
Thomas Wouters47b49bf2007-08-30 22:15:333963test "$ac_cv_exeext" = no && ac_cv_exeext=
3964
Guido van Rossume6c2cf11999-01-08 21:08:333965else
Thomas Wouters47b49bf2007-08-30 22:15:333966 ac_file=''
3967fi
Matthias Kloseb9621712010-04-24 17:59:493968if test -z "$ac_file"; then :
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:043972sed 's/^/| /' conftest.$ac_ext >&5
3973
Matthias Kloseb9621712010-04-24 17:59:493974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:303976as_fn_error 77 "C compiler cannot create executables
Victor Stinnere0be4232011-10-25 11:06:093977See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:493978else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980$as_echo "yes" >&6; }
Michael W. Hudson54241132001-12-07 15:38:263981fi
Matthias Kloseb9621712010-04-24 17:59:493982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3983$as_echo_n "checking for C compiler default output file name... " >&6; }
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3985$as_echo "$ac_file" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:473986ac_exeext=$ac_cv_exeext
Thomas Wouters1ba5b3b2006-06-08 14:52:473987
Matthias Kloseb9621712010-04-24 17:59:493988rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Thomas Wouters1ba5b3b2006-06-08 14:52:473989ac_clean_files=$ac_clean_files_save
Matthias Kloseb9621712010-04-24 17:59:493990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991$as_echo_n "checking for suffix of executables... " >&6; }
3992if { { ac_try="$ac_link"
Thomas Wouters47b49bf2007-08-30 22:15:333993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
Matthias Kloseb9621712010-04-24 17:59:493997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:333999 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034000 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
Thomas Wouters1ba5b3b2006-06-08 14:52:474003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005# work properly (i.e., refer to `conftest.exe'), while it won't with
4006# `rm'.
4007for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4009 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters1ba5b3b2006-06-08 14:52:474011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012 break;;
4013 * ) break;;
4014 esac
4015done
Guido van Rossum76be6ed1995-01-02 18:33:544016else
Matthias Kloseb9621712010-04-24 17:59:494017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304019as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Victor Stinnere0be4232011-10-25 11:06:094020See \`config.log' for more details" "$LINENO" 5; }
Michael W. Hudson54241132001-12-07 15:38:264021fi
Matthias Kloseb9621712010-04-24 17:59:494022rm -f conftest conftest$ac_cv_exeext
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024$as_echo "$ac_cv_exeext" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:474025
4026rm -f conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034027EXEEXT=$ac_cv_exeext
4028ac_exeext=$EXEEXT
Matthias Kloseb9621712010-04-24 17:59:494029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031#include <stdio.h>
4032int
4033main ()
4034{
4035FILE *f = fopen ("conftest.out", "w");
4036 return ferror (f) || fclose (f) != 0;
4037
4038 ;
4039 return 0;
4040}
Thomas Wouters1ba5b3b2006-06-08 14:52:474041_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494042ac_clean_files="$ac_clean_files conftest.out"
4043# Check that the compiler produces executables we can run. If not, either
4044# the compiler is broken, or we cross compile.
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4046$as_echo_n "checking whether we are cross compiling... " >&6; }
4047if test "$cross_compiling" != yes; then
4048 { { ac_try="$ac_link"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054$as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_link") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4059 if { ac_try='./conftest$ac_cv_exeext'
4060 { { case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_try") 2>&5
4067 ac_status=$?
4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }; }; then
4070 cross_compiling=no
4071 else
4072 if test "$cross_compiling" = maybe; then
4073 cross_compiling=yes
4074 else
4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304077as_fn_error $? "cannot run C compiled programs.
Matthias Kloseb9621712010-04-24 17:59:494078If you meant to cross compile, use \`--host'.
Victor Stinnere0be4232011-10-25 11:06:094079See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:494080 fi
4081 fi
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4084$as_echo "$cross_compiling" >&6; }
4085
4086rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4087ac_clean_files=$ac_clean_files_save
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4089$as_echo_n "checking for suffix of object files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094090if ${ac_cv_objext+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494091 $as_echo_n "(cached) " >&6
4092else
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters1ba5b3b2006-06-08 14:52:474094/* end confdefs.h. */
4095
4096int
4097main ()
4098{
4099
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.o conftest.obj
Matthias Kloseb9621712010-04-24 17:59:494105if { { ac_try="$ac_compile"
Thomas Wouters47b49bf2007-08-30 22:15:334106case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
Matthias Kloseb9621712010-04-24 17:59:494110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4111$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:334112 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034113 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:334116 for ac_file in conftest.o conftest.obj conftest.*; do
4117 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:034118 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:034120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4121 break;;
4122 esac
4123done
4124else
Matthias Kloseb9621712010-04-24 17:59:494125 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044126sed 's/^/| /' conftest.$ac_ext >&5
4127
Matthias Kloseb9621712010-04-24 17:59:494128{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304130as_fn_error $? "cannot compute suffix of object files: cannot compile
Victor Stinnere0be4232011-10-25 11:06:094131See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:034132fi
Thomas Wouters1ba5b3b2006-06-08 14:52:474133rm -f conftest.$ac_cv_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034134fi
Matthias Kloseb9621712010-04-24 17:59:494135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4136$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034137OBJEXT=$ac_cv_objext
4138ac_objext=$OBJEXT
Matthias Kloseb9621712010-04-24 17:59:494139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094141if ${ac_cv_c_compiler_gnu+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494142 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034143else
Matthias Kloseb9621712010-04-24 17:59:494144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044145/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034146
Martin v. Löwis11437992002-04-12 09:54:034147int
4148main ()
4149{
4150#ifndef __GNUC__
4151 choke me
4152#endif
4153
4154 ;
4155 return 0;
4156}
4157_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494158if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034159 ac_compiler_gnu=yes
4160else
Matthias Kloseb9621712010-04-24 17:59:494161 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:034162fi
Thomas Wouters47b49bf2007-08-30 22:15:334163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034164ac_cv_c_compiler_gnu=$ac_compiler_gnu
4165
4166fi
Matthias Kloseb9621712010-04-24 17:59:494167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4168$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4169if test $ac_compiler_gnu = yes; then
4170 GCC=yes
4171else
4172 GCC=
4173fi
Martin v. Löwis11437992002-04-12 09:54:034174ac_test_CFLAGS=${CFLAGS+set}
4175ac_save_CFLAGS=$CFLAGS
Matthias Kloseb9621712010-04-24 17:59:494176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177$as_echo_n "checking whether $CC accepts -g... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094178if ${ac_cv_prog_cc_g+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494179 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034180else
Thomas Wouters47b49bf2007-08-30 22:15:334181 ac_save_c_werror_flag=$ac_c_werror_flag
4182 ac_c_werror_flag=yes
4183 ac_cv_prog_cc_g=no
4184 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044186/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034187
Martin v. Löwis11437992002-04-12 09:54:034188int
4189main ()
4190{
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494196if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumf78abae1997-01-21 22:02:364197 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:544198else
Matthias Kloseb9621712010-04-24 17:59:494199 CFLAGS=""
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334201/* end confdefs.h. */
4202
4203int
4204main ()
4205{
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494211if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334212
Matthias Kloseb9621712010-04-24 17:59:494213else
4214 ac_c_werror_flag=$ac_save_c_werror_flag
Thomas Wouters47b49bf2007-08-30 22:15:334215 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334217/* end confdefs.h. */
4218
4219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494227if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334228 ac_cv_prog_cc_g=yes
Guido van Rossum627b2d71993-12-24 10:39:164229fi
Thomas Wouters47b49bf2007-08-30 22:15:334230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:544231fi
Thomas Wouters47b49bf2007-08-30 22:15:334232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233fi
Thomas Wouters47b49bf2007-08-30 22:15:334234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_c_werror_flag=$ac_save_c_werror_flag
4236fi
Matthias Kloseb9621712010-04-24 17:59:494237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:334239if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:034240 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:334241elif test $ac_cv_prog_cc_g = yes; then
4242 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:364243 CFLAGS="-g -O2"
4244 else
Guido van Rossume6c2cf11999-01-08 21:08:334245 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:544246 fi
4247else
Guido van Rossume6c2cf11999-01-08 21:08:334248 if test "$GCC" = yes; then
4249 CFLAGS="-O2"
4250 else
4251 CFLAGS=
4252 fi
Guido van Rossum76be6ed1995-01-02 18:33:544253fi
Matthias Kloseb9621712010-04-24 17:59:494254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4255$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094256if ${ac_cv_prog_cc_c89+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494257 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:044258else
Thomas Wouters47b49bf2007-08-30 22:15:334259 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:044260ac_save_CC=$CC
Matthias Kloseb9621712010-04-24 17:59:494261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044262/* end confdefs.h. */
4263#include <stdarg.h>
4264#include <stdio.h>
Ross Lagerwall1b863eb2012-10-29 17:31:544265struct stat;
Skip Montanaro6dead952003-09-25 14:50:044266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4267struct buf { int x; };
4268FILE * (*rcsopen) (struct buf *, struct stat *, int);
4269static char *e (p, i)
4270 char **p;
4271 int i;
4272{
4273 return p[i];
4274}
4275static char *f (char * (*g) (char **, int), char **p, ...)
4276{
4277 char *s;
4278 va_list v;
4279 va_start (v,p);
4280 s = g (p, va_arg (v,int));
4281 va_end (v);
4282 return s;
4283}
Skip Montanarof0d5f792004-08-15 14:08:234284
4285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4286 function prototypes and stuff, but not '\xHH' hex character constants.
4287 These don't provoke an error unfortunately, instead are silently treated
Thomas Wouters47b49bf2007-08-30 22:15:334288 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:234289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4290 array size at least. It's necessary to write '\x00'==0 to get something
Thomas Wouters47b49bf2007-08-30 22:15:334291 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:234292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4293
Thomas Wouters47b49bf2007-08-30 22:15:334294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4295 inside strings and character constants. */
4296#define FOO(x) 'x'
4297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4298
Skip Montanaro6dead952003-09-25 14:50:044299int test (int i, double x);
4300struct s1 {int (*f) (int a);};
4301struct s2 {int (*f) (double a);};
4302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4303int argc;
4304char **argv;
4305int
4306main ()
4307{
4308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 ;
4310 return 0;
4311}
4312_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:334313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:044315do
4316 CC="$ac_save_CC $ac_arg"
Matthias Kloseb9621712010-04-24 17:59:494317 if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334318 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:044319fi
Thomas Wouters47b49bf2007-08-30 22:15:334320rm -f core conftest.err conftest.$ac_objext
4321 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:044322done
Thomas Wouters47b49bf2007-08-30 22:15:334323rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044324CC=$ac_save_CC
4325
4326fi
Thomas Wouters47b49bf2007-08-30 22:15:334327# AC_CACHE_VAL
4328case "x$ac_cv_prog_cc_c89" in
4329 x)
Matthias Kloseb9621712010-04-24 17:59:494330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331$as_echo "none needed" >&6; } ;;
Thomas Wouters47b49bf2007-08-30 22:15:334332 xno)
Matthias Kloseb9621712010-04-24 17:59:494333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4334$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044335 *)
Thomas Wouters47b49bf2007-08-30 22:15:334336 CC="$CC $ac_cv_prog_cc_c89"
Matthias Kloseb9621712010-04-24 17:59:494337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4338$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044339esac
Matthias Kloseb9621712010-04-24 17:59:494340if test "x$ac_cv_prog_cc_c89" != xno; then :
Skip Montanaro6dead952003-09-25 14:50:044341
Matthias Kloseb9621712010-04-24 17:59:494342fi
Skip Montanaro6dead952003-09-25 14:50:044343
Martin v. Löwis11437992002-04-12 09:54:034344ac_ext=c
4345ac_cpp='$CPP $CPPFLAGS'
4346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:544349
doko@ubuntu.comd3899c12015-04-15 18:23:144350ac_ext=c
4351ac_cpp='$CPP $CPPFLAGS'
4352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356$as_echo_n "checking how to run the C preprocessor... " >&6; }
4357# On Suns, sometimes $CPP names a directory.
4358if test -n "$CPP" && test -d "$CPP"; then
4359 CPP=
4360fi
4361if test -z "$CPP"; then
4362 if ${ac_cv_prog_CPP+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364else
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4367 do
4368 ac_preproc_ok=false
4369for ac_c_preproc_warn_flag in '' yes
4370do
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h. */
4379#ifdef __STDC__
4380# include <limits.h>
4381#else
4382# include <assert.h>
4383#endif
4384 Syntax error
4385_ACEOF
4386if ac_fn_c_try_cpp "$LINENO"; then :
4387
4388else
4389 # Broken: fails on valid input.
4390continue
4391fi
4392rm -f conftest.err conftest.i conftest.$ac_ext
4393
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h. */
4398#include <ac_nonexistent.h>
4399_ACEOF
4400if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4402continue
4403else
4404 # Passes both tests.
4405ac_preproc_ok=:
4406break
4407fi
4408rm -f conftest.err conftest.i conftest.$ac_ext
4409
4410done
4411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412rm -f conftest.i conftest.err conftest.$ac_ext
4413if $ac_preproc_ok; then :
4414 break
4415fi
4416
4417 done
4418 ac_cv_prog_CPP=$CPP
4419
4420fi
4421 CPP=$ac_cv_prog_CPP
4422else
4423 ac_cv_prog_CPP=$CPP
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426$as_echo "$CPP" >&6; }
4427ac_preproc_ok=false
4428for ac_c_preproc_warn_flag in '' yes
4429do
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h. */
4438#ifdef __STDC__
4439# include <limits.h>
4440#else
4441# include <assert.h>
4442#endif
4443 Syntax error
4444_ACEOF
4445if ac_fn_c_try_cpp "$LINENO"; then :
4446
4447else
4448 # Broken: fails on valid input.
4449continue
4450fi
4451rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h. */
4457#include <ac_nonexistent.h>
4458_ACEOF
4459if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: success on invalid input.
4461continue
4462else
4463 # Passes both tests.
4464ac_preproc_ok=:
4465break
4466fi
4467rm -f conftest.err conftest.i conftest.$ac_ext
4468
4469done
4470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471rm -f conftest.i conftest.err conftest.$ac_ext
4472if $ac_preproc_ok; then :
4473
4474else
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4478See \`config.log' for more details" "$LINENO" 5; }
4479fi
4480
4481ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4488$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4489if ${ac_cv_path_GREP+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491else
4492 if test -z "$GREP"; then
4493 ac_path_GREP_found=false
4494 # Loop through the user's path and test for each of PROGNAME-LIST
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4497do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_prog in grep ggrep; do
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4503 as_fn_executable_p "$ac_path_GREP" || continue
4504# Check for GNU ac_path_GREP and select it if it is found.
4505 # Check for GNU $ac_path_GREP
4506case `"$ac_path_GREP" --version 2>&1` in
4507*GNU*)
4508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4509*)
4510 ac_count=0
4511 $as_echo_n 0123456789 >"conftest.in"
4512 while :
4513 do
4514 cat "conftest.in" "conftest.in" >"conftest.tmp"
4515 mv "conftest.tmp" "conftest.in"
4516 cp "conftest.in" "conftest.nl"
4517 $as_echo 'GREP' >> "conftest.nl"
4518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4520 as_fn_arith $ac_count + 1 && ac_count=$as_val
4521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4522 # Best one so far, save it but keep looking for a better one
4523 ac_cv_path_GREP="$ac_path_GREP"
4524 ac_path_GREP_max=$ac_count
4525 fi
4526 # 10*(2^10) chars as input seems more than enough
4527 test $ac_count -gt 10 && break
4528 done
4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530esac
4531
4532 $ac_path_GREP_found && break 3
4533 done
4534 done
4535 done
4536IFS=$as_save_IFS
4537 if test -z "$ac_cv_path_GREP"; then
4538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4539 fi
4540else
4541 ac_cv_path_GREP=$GREP
4542fi
4543
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4546$as_echo "$ac_cv_path_GREP" >&6; }
4547 GREP="$ac_cv_path_GREP"
4548
4549
Łukasz Langaa785c872016-09-10 00:37:374550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4551$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4552if ${ac_cv_path_SED+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554else
4555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4556 for ac_i in 1 2 3 4 5 6 7; do
4557 ac_script="$ac_script$as_nl$ac_script"
4558 done
4559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4560 { ac_script=; unset ac_script;}
4561 if test -z "$SED"; then
4562 ac_path_SED_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_prog in sed gsed; do
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4572 as_fn_executable_p "$ac_path_SED" || continue
4573# Check for GNU ac_path_SED and select it if it is found.
4574 # Check for GNU $ac_path_SED
4575case `"$ac_path_SED" --version 2>&1` in
4576*GNU*)
4577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4578*)
4579 ac_count=0
4580 $as_echo_n 0123456789 >"conftest.in"
4581 while :
4582 do
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 $as_echo '' >> "conftest.nl"
4587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589 as_fn_arith $ac_count + 1 && ac_count=$as_val
4590 if test $ac_count -gt ${ac_path_SED_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_SED="$ac_path_SED"
4593 ac_path_SED_max=$ac_count
4594 fi
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4597 done
4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599esac
4600
4601 $ac_path_SED_found && break 3
4602 done
4603 done
4604 done
4605IFS=$as_save_IFS
4606 if test -z "$ac_cv_path_SED"; then
4607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4608 fi
4609else
4610 ac_cv_path_SED=$SED
4611fi
4612
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4615$as_echo "$ac_cv_path_SED" >&6; }
4616 SED="$ac_cv_path_SED"
4617 rm -f conftest.sed
4618
Martin v. Löwis1d5ecb72001-08-09 10:29:444619
Thomas Wouters49fd7fa2006-04-21 10:40:584620
4621
Matthias Kloseb9621712010-04-24 17:59:494622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4623$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584624
Thomas Wouters47b49bf2007-08-30 22:15:334625# Check whether --with-cxx_main was given.
Matthias Kloseb9621712010-04-24 17:59:494626if test "${with_cxx_main+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:334627 withval=$with_cxx_main;
Thomas Wouters49fd7fa2006-04-21 10:40:584628
4629 case $withval in
4630 no) with_cxx_main=no
4631 MAINCC='$(CC)';;
4632 yes) with_cxx_main=yes
4633 MAINCC='$(CXX)';;
4634 *) with_cxx_main=yes
4635 MAINCC=$withval
4636 if test -z "$CXX"
4637 then
4638 CXX=$withval
4639 fi;;
4640 esac
4641else
4642
4643 with_cxx_main=no
4644 MAINCC='$(CC)'
4645
Thomas Wouters47b49bf2007-08-30 22:15:334646fi
4647
Matthias Kloseb9621712010-04-24 17:59:494648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4649$as_echo "$with_cxx_main" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584650
4651preset_cxx="$CXX"
4652if test -z "$CXX"
4653then
4654 case "$CC" in
doko@ubuntu.com51f65942012-06-30 12:42:464655 gcc) if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4657set dummy ${ac_tool_prefix}g++; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if ${ac_cv_path_CXX+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 case $CXX in
4664 [\\/]* | ?:[\\/]*)
4665 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4666 ;;
4667 *)
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in notfound
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464675 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679done
4680 done
4681IFS=$as_save_IFS
4682
4683 ;;
4684esac
4685fi
4686CXX=$ac_cv_path_CXX
4687if test -n "$CXX"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4689$as_echo "$CXX" >&6; }
4690else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693fi
4694
4695
4696fi
4697if test -z "$ac_cv_path_CXX"; then
4698 ac_pt_CXX=$CXX
4699 # Extract the first word of "g++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584700set dummy g++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464703if ${ac_cv_path_ac_pt_CXX+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705else
4706 case $ac_pt_CXX in
4707 [\\/]* | ?:[\\/]*)
4708 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4709 ;;
4710 *)
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in notfound
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464718 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722done
4723 done
4724IFS=$as_save_IFS
4725
4726 ;;
4727esac
4728fi
4729ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4730if test -n "$ac_pt_CXX"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4732$as_echo "$ac_pt_CXX" >&6; }
4733else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735$as_echo "no" >&6; }
4736fi
4737
4738 if test "x$ac_pt_CXX" = x; then
4739 CXX="g++"
4740 else
4741 case $cross_compiling:$ac_tool_warned in
4742yes:)
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4745ac_tool_warned=yes ;;
4746esac
4747 CXX=$ac_pt_CXX
4748 fi
4749else
4750 CXX="$ac_cv_path_CXX"
4751fi
4752 ;;
4753 cc) if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4755set dummy ${ac_tool_prefix}c++; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094758if ${ac_cv_path_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494759 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584760else
4761 case $CXX in
4762 [\\/]* | ?:[\\/]*)
4763 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4764 ;;
4765 *)
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in notfound
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494771 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Thomas Wouters49fd7fa2006-04-21 10:40:584773 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584775 break 2
4776 fi
4777done
Matthias Kloseb9621712010-04-24 17:59:494778 done
Thomas Wouters47b49bf2007-08-30 22:15:334779IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584780
Thomas Wouters49fd7fa2006-04-21 10:40:584781 ;;
4782esac
4783fi
4784CXX=$ac_cv_path_CXX
Skip Montanaroeb33e5a2007-08-17 12:57:414785if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:494786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4787$as_echo "$CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414788else
Matthias Kloseb9621712010-04-24 17:59:494789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414791fi
Thomas Wouters47b49bf2007-08-30 22:15:334792
doko@ubuntu.com51f65942012-06-30 12:42:464793
4794fi
4795if test -z "$ac_cv_path_CXX"; then
4796 ac_pt_CXX=$CXX
4797 # Extract the first word of "c++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584798set dummy c++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464801if ${ac_cv_path_ac_pt_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494802 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584803else
doko@ubuntu.com51f65942012-06-30 12:42:464804 case $ac_pt_CXX in
Thomas Wouters49fd7fa2006-04-21 10:40:584805 [\\/]* | ?:[\\/]*)
doko@ubuntu.com51f65942012-06-30 12:42:464806 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
Thomas Wouters49fd7fa2006-04-21 10:40:584807 ;;
4808 *)
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in notfound
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494814 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464816 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584818 break 2
4819 fi
4820done
Matthias Kloseb9621712010-04-24 17:59:494821 done
Thomas Wouters47b49bf2007-08-30 22:15:334822IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584823
Thomas Wouters49fd7fa2006-04-21 10:40:584824 ;;
4825esac
4826fi
doko@ubuntu.com51f65942012-06-30 12:42:464827ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4828if test -n "$ac_pt_CXX"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4830$as_echo "$ac_pt_CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414831else
Matthias Kloseb9621712010-04-24 17:59:494832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414834fi
Thomas Wouters47b49bf2007-08-30 22:15:334835
doko@ubuntu.com51f65942012-06-30 12:42:464836 if test "x$ac_pt_CXX" = x; then
4837 CXX="c++"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845 CXX=$ac_pt_CXX
4846 fi
4847else
4848 CXX="$ac_cv_path_CXX"
4849fi
Thomas Wouters49fd7fa2006-04-21 10:40:584850 ;;
doko@ubuntu.com51f65942012-06-30 12:42:464851 clang|*/clang) if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}clang++; ac_word=$2
Ned Deilycbfb9a52012-06-23 23:02:194854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_path_CXX+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 case $CXX in
4860 [\\/]* | ?:[\\/]*)
4861 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4862 ;;
4863 *)
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in notfound
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deilycbfb9a52012-06-23 23:02:194871 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876 done
4877IFS=$as_save_IFS
4878
Ned Deilycbfb9a52012-06-23 23:02:194879 ;;
4880esac
4881fi
4882CXX=$ac_cv_path_CXX
4883if test -n "$CXX"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4885$as_echo "$CXX" >&6; }
4886else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890
doko@ubuntu.com51f65942012-06-30 12:42:464891
4892fi
4893if test -z "$ac_cv_path_CXX"; then
4894 ac_pt_CXX=$CXX
4895 # Extract the first word of "clang++", so it can be a program name with args.
4896set dummy clang++; ac_word=$2
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
4899if ${ac_cv_path_ac_pt_CXX+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 case $ac_pt_CXX in
4903 [\\/]* | ?:[\\/]*)
4904 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4905 ;;
4906 *)
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in notfound
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464914 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918done
4919 done
4920IFS=$as_save_IFS
4921
4922 ;;
4923esac
4924fi
4925ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4926if test -n "$ac_pt_CXX"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4928$as_echo "$ac_pt_CXX" >&6; }
4929else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934 if test "x$ac_pt_CXX" = x; then
4935 CXX="clang++"
4936 else
4937 case $cross_compiling:$ac_tool_warned in
4938yes:)
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941ac_tool_warned=yes ;;
4942esac
4943 CXX=$ac_pt_CXX
4944 fi
4945else
4946 CXX="$ac_cv_path_CXX"
4947fi
Ned Deilycbfb9a52012-06-23 23:02:194948 ;;
Zachary Ware5af85642015-12-21 18:09:174949 icc|*/icc) if test -n "$ac_tool_prefix"; then
4950 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
4951set dummy ${ac_tool_prefix}icpc; ac_word=$2
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if ${ac_cv_path_CXX+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956else
4957 case $CXX in
4958 [\\/]* | ?:[\\/]*)
4959 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4960 ;;
4961 *)
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in notfound
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973done
4974 done
4975IFS=$as_save_IFS
4976
4977 ;;
4978esac
4979fi
4980CXX=$ac_cv_path_CXX
4981if test -n "$CXX"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4983$as_echo "$CXX" >&6; }
4984else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988
4989
4990fi
4991if test -z "$ac_cv_path_CXX"; then
4992 ac_pt_CXX=$CXX
4993 # Extract the first word of "icpc", so it can be a program name with args.
4994set dummy icpc; ac_word=$2
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996$as_echo_n "checking for $ac_word... " >&6; }
4997if ${ac_cv_path_ac_pt_CXX+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999else
5000 case $ac_pt_CXX in
5001 [\\/]* | ?:[\\/]*)
5002 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
5003 ;;
5004 *)
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in notfound
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016done
5017 done
5018IFS=$as_save_IFS
5019
5020 ;;
5021esac
5022fi
5023ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5024if test -n "$ac_pt_CXX"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5026$as_echo "$ac_pt_CXX" >&6; }
5027else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
5030fi
5031
5032 if test "x$ac_pt_CXX" = x; then
5033 CXX="icpc"
5034 else
5035 case $cross_compiling:$ac_tool_warned in
5036yes:)
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039ac_tool_warned=yes ;;
5040esac
5041 CXX=$ac_pt_CXX
5042 fi
5043else
5044 CXX="$ac_cv_path_CXX"
5045fi
5046 ;;
Thomas Wouters49fd7fa2006-04-21 10:40:585047 esac
5048 if test "$CXX" = "notfound"
5049 then
5050 CXX=""
5051 fi
5052fi
5053if test -z "$CXX"
5054then
doko@ubuntu.com51f65942012-06-30 12:42:465055 if test -n "$ac_tool_prefix"; then
5056 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5057 do
5058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:495060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095062if ${ac_cv_prog_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495063 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:585064else
5065 if test -n "$CXX"; then
5066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495073 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:545074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465075 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:495076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:585077 break 2
5078 fi
5079done
Matthias Kloseb9621712010-04-24 17:59:495080 done
Thomas Wouters47b49bf2007-08-30 22:15:335081IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:585082
5083fi
5084fi
5085CXX=$ac_cv_prog_CXX
5086if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:495087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5088$as_echo "$CXX" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585089else
Matthias Kloseb9621712010-04-24 17:59:495090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585092fi
5093
Thomas Wouters47b49bf2007-08-30 22:15:335094
doko@ubuntu.com51f65942012-06-30 12:42:465095 test -n "$CXX" && break
5096 done
5097fi
5098if test -z "$CXX"; then
5099 ac_ct_CXX=$CXX
5100 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5101do
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103set dummy $ac_prog; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 if test -n "$ac_ct_CXX"; then
5110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:575118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465119 ac_cv_prog_ac_ct_CXX="$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
Thomas Wouters49fd7fa2006-04-21 10:40:585123done
doko@ubuntu.com51f65942012-06-30 12:42:465124 done
5125IFS=$as_save_IFS
5126
5127fi
5128fi
5129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5130if test -n "$ac_ct_CXX"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5132$as_echo "$ac_ct_CXX" >&6; }
5133else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
5136fi
5137
5138
5139 test -n "$ac_ct_CXX" && break
5140done
5141
5142 if test "x$ac_ct_CXX" = x; then
5143 CXX="notfound"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146yes:)
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151 CXX=$ac_ct_CXX
5152 fi
5153fi
Thomas Wouters49fd7fa2006-04-21 10:40:585154
5155 if test "$CXX" = "notfound"
5156 then
5157 CXX=""
5158 fi
5159fi
5160if test "$preset_cxx" != "$CXX"
5161then
Christian Heimesfe32aec2013-11-20 00:18:265162 { $as_echo "$as_me:${as_lineno-$LINENO}:
Thomas Wouters49fd7fa2006-04-21 10:40:585163
5164 By default, distutils will build C++ extension modules with \"$CXX\".
5165 If this is not intended, then set CXX on the configure command line.
5166 " >&5
Christian Heimesfe32aec2013-11-20 00:18:265167$as_echo "$as_me:
Thomas Wouters49fd7fa2006-04-21 10:40:585168
5169 By default, distutils will build C++ extension modules with \"$CXX\".
5170 If this is not intended, then set CXX on the configure command line.
Christian Heimesfe32aec2013-11-20 00:18:265171 " >&6;}
Thomas Wouters49fd7fa2006-04-21 10:40:585172fi
5173
5174
doko@ubuntu.comd3899c12015-04-15 18:23:145175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5176$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5177cat >> conftest.c <<EOF
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055178#undef bfin
5179#undef cris
5180#undef fr30
doko@ubuntu.comd3899c12015-04-15 18:23:145181#undef linux
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055182#undef hppa
5183#undef hpux
doko@ubuntu.comd3899c12015-04-15 18:23:145184#undef i386
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055185#undef mips
doko@ubuntu.com9abe0492015-04-15 21:31:025186#undef powerpc
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055187#undef sparc
doko@ubuntu.comd3899c12015-04-15 18:23:145188#undef unix
doko@ubuntu.com5c38cb22016-09-01 20:05:205189#if defined(__ANDROID__)
Xavier de Gaye32cf1ac2016-12-10 16:31:285190 # Android is not a multiarch system.
doko@ubuntu.com5c38cb22016-09-01 20:05:205191#elif defined(__linux__)
doko@ubuntu.comd3899c12015-04-15 18:23:145192# if defined(__x86_64__) && defined(__LP64__)
5193 x86_64-linux-gnu
5194# elif defined(__x86_64__) && defined(__ILP32__)
5195 x86_64-linux-gnux32
5196# elif defined(__i386__)
5197 i386-linux-gnu
5198# elif defined(__aarch64__) && defined(__AARCH64EL__)
5199# if defined(__ILP32__)
5200 aarch64_ilp32-linux-gnu
5201# else
5202 aarch64-linux-gnu
5203# endif
5204# elif defined(__aarch64__) && defined(__AARCH64EB__)
5205# if defined(__ILP32__)
5206 aarch64_be_ilp32-linux-gnu
5207# else
5208 aarch64_be-linux-gnu
5209# endif
5210# elif defined(__alpha__)
5211 alpha-linux-gnu
5212# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5213# if defined(__ARMEL__)
5214 arm-linux-gnueabihf
5215# else
5216 armeb-linux-gnueabihf
5217# endif
5218# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5219# if defined(__ARMEL__)
5220 arm-linux-gnueabi
5221# else
5222 armeb-linux-gnueabi
5223# endif
5224# elif defined(__hppa__)
5225 hppa-linux-gnu
5226# elif defined(__ia64__)
5227 ia64-linux-gnu
5228# elif defined(__m68k__) && !defined(__mcoldfire__)
5229 m68k-linux-gnu
Matthias Kloseddbe9762018-04-30 17:22:165230# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
5231# if _MIPS_SIM == _ABIO32
5232 mipsisa32r6el-linux-gnu
5233# elif _MIPS_SIM == _ABIN32
5234 mipsisa64r6el-linux-gnuabin32
5235# elif _MIPS_SIM == _ABI64
5236 mipsisa64r6el-linux-gnuabi64
5237# else
5238# error unknown platform triplet
5239# endif
5240# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
5241# if _MIPS_SIM == _ABIO32
5242 mipsisa32r6-linux-gnu
5243# elif _MIPS_SIM == _ABIN32
5244 mipsisa64r6-linux-gnuabin32
5245# elif _MIPS_SIM == _ABI64
5246 mipsisa64r6-linux-gnuabi64
5247# else
5248# error unknown platform triplet
5249# endif
doko@ubuntu.comd3899c12015-04-15 18:23:145250# elif defined(__mips_hard_float) && defined(_MIPSEL)
5251# if _MIPS_SIM == _ABIO32
5252 mipsel-linux-gnu
5253# elif _MIPS_SIM == _ABIN32
5254 mips64el-linux-gnuabin32
5255# elif _MIPS_SIM == _ABI64
5256 mips64el-linux-gnuabi64
5257# else
5258# error unknown platform triplet
5259# endif
5260# elif defined(__mips_hard_float)
5261# if _MIPS_SIM == _ABIO32
5262 mips-linux-gnu
5263# elif _MIPS_SIM == _ABIN32
5264 mips64-linux-gnuabin32
5265# elif _MIPS_SIM == _ABI64
5266 mips64-linux-gnuabi64
5267# else
5268# error unknown platform triplet
5269# endif
5270# elif defined(__or1k__)
5271 or1k-linux-gnu
5272# elif defined(__powerpc__) && defined(__SPE__)
5273 powerpc-linux-gnuspe
5274# elif defined(__powerpc64__)
5275# if defined(__LITTLE_ENDIAN__)
5276 powerpc64le-linux-gnu
5277# else
5278 powerpc64-linux-gnu
5279# endif
5280# elif defined(__powerpc__)
5281 powerpc-linux-gnu
5282# elif defined(__s390x__)
5283 s390x-linux-gnu
5284# elif defined(__s390__)
5285 s390-linux-gnu
5286# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5287 sh4-linux-gnu
5288# elif defined(__sparc__) && defined(__arch64__)
5289 sparc64-linux-gnu
5290# elif defined(__sparc__)
5291 sparc-linux-gnu
Matthias Kloseddbe9762018-04-30 17:22:165292# elif defined(__riscv)
5293# if __riscv_xlen == 32
5294 riscv32-linux-gnu
5295# elif __riscv_xlen == 64
5296 riscv64-linux-gnu
5297# else
5298# error unknown platform triplet
5299# endif
doko@ubuntu.comd3899c12015-04-15 18:23:145300# else
5301# error unknown platform triplet
5302# endif
5303#elif defined(__FreeBSD_kernel__)
5304# if defined(__LP64__)
5305 x86_64-kfreebsd-gnu
5306# elif defined(__i386__)
5307 i386-kfreebsd-gnu
5308# else
5309# error unknown platform triplet
5310# endif
5311#elif defined(__gnu_hurd__)
5312 i386-gnu
Ned Deily3b812482015-04-16 00:11:475313#elif defined(__APPLE__)
5314 darwin
pxinwr32f5fdd2019-02-27 11:09:285315#elif defined(__VXWORKS__)
5316 vxworks
doko@ubuntu.comd3899c12015-04-15 18:23:145317#else
5318# error unknown platform triplet
5319#endif
5320
5321EOF
5322
Xavier de Gaye3a32bdf2016-07-30 09:28:355323if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
doko@ubuntu.comd3899c12015-04-15 18:23:145324 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5326$as_echo "$PLATFORM_TRIPLET" >&6; }
5327else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5329$as_echo "none" >&6; }
5330fi
5331rm -f conftest.c conftest.out
5332
Ned Deilydea270a2022-03-15 14:39:205333if test x$PLATFORM_TRIPLET != xdarwin; then
5334 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5335fi
5336
5337
doko@ubuntu.comd3899c12015-04-15 18:23:145338if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5339 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5340 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5341 fi
doko@ubuntu.com75b1cb12016-08-29 18:03:255342elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
5343 MULTIARCH=$PLATFORM_TRIPLET
doko@ubuntu.comd3899c12015-04-15 18:23:145344fi
doko@ubuntu.comd3899c12015-04-15 18:23:145345
doko@ubuntu.com55532312016-06-14 06:55:195346if test x$MULTIARCH != x; then
5347 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5348fi
doko@ubuntu.comd3899c12015-04-15 18:23:145349
5350
Martin v. Löwis48e14d32011-05-09 05:37:455351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5352$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5353save_LDFLAGS="$LDFLAGS"
5354LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
Martin v. Löwis11437992002-04-12 09:54:035355
Martin v. Löwis48e14d32011-05-09 05:37:455356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358
5359int
5360main ()
5361{
5362
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_link "$LINENO"; then :
5368 NO_AS_NEEDED="-Wl,--no-as-needed"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370$as_echo "yes" >&6; }
5371else
5372 NO_AS_NEEDED=""
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378LDFLAGS="$save_LDFLAGS"
5379
5380
5381
5382# checks for UNIX variants that set C preprocessor variables
Thomas Wouters47b49bf2007-08-30 22:15:335383
Matthias Kloseb9621712010-04-24 17:59:495384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5385$as_echo_n "checking for egrep... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095386if ${ac_cv_path_EGREP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495387 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:335388else
5389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5390 then ac_cv_path_EGREP="$GREP -E"
5391 else
Matthias Kloseb9621712010-04-24 17:59:495392 if test -z "$EGREP"; then
Thomas Wouters47b49bf2007-08-30 22:15:335393 ac_path_EGREP_found=false
Matthias Kloseb9621712010-04-24 17:59:495394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Thomas Wouters47b49bf2007-08-30 22:15:335396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495400 for ac_prog in egrep; do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Ross Lagerwall1b863eb2012-10-29 17:31:545403 as_fn_executable_p "$ac_path_EGREP" || continue
Matthias Kloseb9621712010-04-24 17:59:495404# Check for GNU ac_path_EGREP and select it if it is found.
Thomas Wouters47b49bf2007-08-30 22:15:335405 # Check for GNU $ac_path_EGREP
5406case `"$ac_path_EGREP" --version 2>&1` in
5407*GNU*)
5408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5409*)
5410 ac_count=0
Matthias Kloseb9621712010-04-24 17:59:495411 $as_echo_n 0123456789 >"conftest.in"
Thomas Wouters47b49bf2007-08-30 22:15:335412 while :
5413 do
5414 cat "conftest.in" "conftest.in" >"conftest.tmp"
5415 mv "conftest.tmp" "conftest.in"
5416 cp "conftest.in" "conftest.nl"
Matthias Kloseb9621712010-04-24 17:59:495417 $as_echo 'EGREP' >> "conftest.nl"
Thomas Wouters47b49bf2007-08-30 22:15:335418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Kloseb9621712010-04-24 17:59:495420 as_fn_arith $ac_count + 1 && ac_count=$as_val
Thomas Wouters47b49bf2007-08-30 22:15:335421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5422 # Best one so far, save it but keep looking for a better one
5423 ac_cv_path_EGREP="$ac_path_EGREP"
5424 ac_path_EGREP_max=$ac_count
5425 fi
5426 # 10*(2^10) chars as input seems more than enough
5427 test $ac_count -gt 10 && break
5428 done
5429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430esac
5431
Matthias Kloseb9621712010-04-24 17:59:495432 $ac_path_EGREP_found && break 3
5433 done
Thomas Wouters47b49bf2007-08-30 22:15:335434 done
Matthias Kloseb9621712010-04-24 17:59:495435 done
Thomas Wouters47b49bf2007-08-30 22:15:335436IFS=$as_save_IFS
Matthias Kloseb9621712010-04-24 17:59:495437 if test -z "$ac_cv_path_EGREP"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:305438 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:495439 fi
Thomas Wouters47b49bf2007-08-30 22:15:335440else
5441 ac_cv_path_EGREP=$EGREP
5442fi
5443
Thomas Wouters47b49bf2007-08-30 22:15:335444 fi
5445fi
Matthias Kloseb9621712010-04-24 17:59:495446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5447$as_echo "$ac_cv_path_EGREP" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:335448 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:045449
5450
Matthias Kloseb9621712010-04-24 17:59:495451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5452$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095453if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495454 $as_echo_n "(cached) " >&6
5455else
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Peterson8719ad52009-09-11 22:24:025457/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:495458#include <stdlib.h>
5459#include <stdarg.h>
5460#include <string.h>
5461#include <float.h>
5462
5463int
5464main ()
5465{
5466
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471if ac_fn_c_try_compile "$LINENO"; then :
5472 ac_cv_header_stdc=yes
5473else
5474 ac_cv_header_stdc=no
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477
5478if test $ac_cv_header_stdc = yes; then
5479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482#include <string.h>
Benjamin Peterson8719ad52009-09-11 22:24:025483
Benjamin Peterson8719ad52009-09-11 22:24:025484_ACEOF
Ronald Oussoren74f29b42009-09-20 20:09:265485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:495486 $EGREP "memchr" >/dev/null 2>&1; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535487
Ronald Oussoren74f29b42009-09-20 20:09:265488else
Matthias Kloseb9621712010-04-24 17:59:495489 ac_cv_header_stdc=no
Ronald Oussoren74f29b42009-09-20 20:09:265490fi
Matthias Klosec80c93f2010-04-24 17:04:355491rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:535492
Matthias Kloseb9621712010-04-24 17:59:495493fi
5494
5495if test $ac_cv_header_stdc = yes; then
5496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h. */
5499#include <stdlib.h>
5500
5501_ACEOF
5502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5503 $EGREP "free" >/dev/null 2>&1; then :
5504
5505else
5506 ac_cv_header_stdc=no
5507fi
5508rm -f conftest*
5509
5510fi
5511
5512if test $ac_cv_header_stdc = yes; then
5513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5514 if test "$cross_compiling" = yes; then :
5515 :
5516else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h. */
5519#include <ctype.h>
5520#include <stdlib.h>
5521#if ((' ' & 0x0FF) == 0x020)
5522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5524#else
5525# define ISLOWER(c) \
5526 (('a' <= (c) && (c) <= 'i') \
5527 || ('j' <= (c) && (c) <= 'r') \
5528 || ('s' <= (c) && (c) <= 'z'))
5529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5530#endif
5531
5532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5533int
5534main ()
5535{
5536 int i;
5537 for (i = 0; i < 256; i++)
5538 if (XOR (islower (i), ISLOWER (i))
5539 || toupper (i) != TOUPPER (i))
5540 return 2;
5541 return 0;
5542}
5543_ACEOF
5544if ac_fn_c_try_run "$LINENO"; then :
5545
5546else
5547 ac_cv_header_stdc=no
5548fi
5549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5550 conftest.$ac_objext conftest.beam conftest.$ac_ext
5551fi
5552
5553fi
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5556$as_echo "$ac_cv_header_stdc" >&6; }
5557if test $ac_cv_header_stdc = yes; then
5558
5559$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5560
5561fi
5562
5563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5565 inttypes.h stdint.h unistd.h
5566do :
5567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5569"
Ross Lagerwallb0ae53d2011-06-10 05:30:305570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Matthias Kloseb9621712010-04-24 17:59:495571 cat >>confdefs.h <<_ACEOF
5572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573_ACEOF
5574
5575fi
5576
5577done
5578
5579
5580
5581 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:095582if test "x$ac_cv_header_minix_config_h" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:495583 MINIX=yes
5584else
5585 MINIX=
5586fi
5587
5588
5589 if test "$MINIX" = yes; then
5590
5591$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5592
5593
5594$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5595
5596
5597$as_echo "#define _MINIX 1" >>confdefs.h
5598
5599 fi
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5603$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095604if ${ac_cv_safe_to_define___extensions__+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495605 $as_echo_n "(cached) " >&6
5606else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h. */
5609
Ross Lagerwall1b863eb2012-10-29 17:31:545610# define __EXTENSIONS__ 1
5611 $ac_includes_default
Matthias Kloseb9621712010-04-24 17:59:495612int
5613main ()
5614{
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_safe_to_define___extensions__=yes
5622else
5623 ac_cv_safe_to_define___extensions__=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5628$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5629 test $ac_cv_safe_to_define___extensions__ = yes &&
5630 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5631
5632 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5633
5634 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5635
5636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5637
5638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5639
5640
Alexandre Vassalotti302825b2009-07-17 07:49:535641
Xavier de Gaye95750b12016-07-09 09:05:425642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5643$as_echo_n "checking for the Android API level... " >&6; }
5644cat >> conftest.c <<EOF
5645#ifdef __ANDROID__
Xavier de Gaye2a352b62017-01-04 20:51:165646android_api = __ANDROID_API__
5647arm_arch = __ARM_ARCH
Xavier de Gaye95750b12016-07-09 09:05:425648#else
5649#error not Android
5650#endif
5651EOF
5652
5653if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
Xavier de Gaye2a352b62017-01-04 20:51:165654 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
5655 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
Xavier de Gaye95750b12016-07-09 09:05:425656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
5657$as_echo "$ANDROID_API_LEVEL" >&6; }
xdegayec06c22e2017-11-23 10:44:385658 if test -z "$ANDROID_API_LEVEL"; then
5659 echo 'Fatal: you must define __ANDROID_API__'
5660 exit 1
5661 fi
Xavier de Gaye95750b12016-07-09 09:05:425662
5663cat >>confdefs.h <<_ACEOF
5664#define ANDROID_API_LEVEL $ANDROID_API_LEVEL
5665_ACEOF
5666
Xavier de Gaye2a352b62017-01-04 20:51:165667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5669$as_echo_n "checking for the Android arm ABI... " >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5671$as_echo "$_arm_arch" >&6; }
5672 if test "$_arm_arch" = 7; then
5673 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5674 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5675 fi
Xavier de Gaye95750b12016-07-09 09:05:425676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5678$as_echo "not Android" >&6; }
5679fi
5680rm -f conftest.c conftest.out
5681
Alexandre Vassalotti302825b2009-07-17 07:49:535682# Check for unsupported systems
5683case $ac_sys_system/$ac_sys_release in
5684atheos*|Linux*/1*)
5685 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5686 echo See README for details.
5687 exit 1;;
5688esac
5689
5690
Matthias Kloseb9621712010-04-24 17:59:495691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5692$as_echo_n "checking for --with-suffix... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535693
5694# Check whether --with-suffix was given.
Matthias Kloseb9621712010-04-24 17:59:495695if test "${with_suffix+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535696 withval=$with_suffix;
5697 case $withval in
5698 no) EXEEXT=;;
5699 yes) EXEEXT=.exe;;
5700 *) EXEEXT=$withval;;
5701 esac
5702fi
5703
Matthias Kloseb9621712010-04-24 17:59:495704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5705$as_echo "$EXEEXT" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535706
5707# Test whether we're running on a non-case-sensitive system, in which
5708# case we give a warning if no ext is given
5709
Matthias Kloseb9621712010-04-24 17:59:495710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5711$as_echo_n "checking for case-insensitive build directory... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535712if test ! -d CaseSensitiveTestDir; then
5713mkdir CaseSensitiveTestDir
5714fi
5715
5716if test -d casesensitivetestdir
5717then
Matthias Kloseb9621712010-04-24 17:59:495718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719$as_echo "yes" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535720 BUILDEXEEXT=.exe
5721else
Matthias Kloseb9621712010-04-24 17:59:495722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535724 BUILDEXEEXT=$EXEEXT
5725fi
5726rmdir CaseSensitiveTestDir
5727
Alexandre Vassalotti302825b2009-07-17 07:49:535728case $ac_sys_system in
5729hp*|HP*)
5730 case $CC in
5731 cc|*/cc) CC="$CC -Ae";;
5732 esac;;
Alexandre Vassalotti302825b2009-07-17 07:49:535733esac
5734
Alexandre Vassalotti302825b2009-07-17 07:49:535735
Matthias Kloseb9621712010-04-24 17:59:495736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5737$as_echo_n "checking LIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535738if test -z "$LIBRARY"
5739then
Barry Warsawf040d7d2010-10-18 17:09:075740 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
Alexandre Vassalotti302825b2009-07-17 07:49:535741fi
Matthias Kloseb9621712010-04-24 17:59:495742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5743$as_echo "$LIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535744
5745# LDLIBRARY is the name of the library to link against (as opposed to the
5746# name of the library into which to insert object files). BLDLIBRARY is also
5747# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5748# is blank as the main program is not linked directly against LDLIBRARY.
5749# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5750# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5751# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5752# DLLLIBRARY is the shared (i.e., DLL) library.
5753#
5754# RUNSHARED is used to run shared python without installed libraries
5755#
5756# INSTSONAME is the name of the shared library that will be use to install
5757# on the system - some systems like version suffix, others don't
Barry Warsaw8cf4eae2010-10-16 01:04:075758#
5759# LDVERSION is the shared library version number, normally the Python version
5760# with the ABI build flags appended.
5761
Alexandre Vassalotti302825b2009-07-17 07:49:535762
5763
5764
5765
5766
5767
Martin v. Löwisd1fc34d2010-12-30 14:55:475768
Alexandre Vassalotti302825b2009-07-17 07:49:535769LDLIBRARY="$LIBRARY"
5770BLDLIBRARY='$(LDLIBRARY)'
5771INSTSONAME='$(LDLIBRARY)'
5772DLLLIBRARY=''
5773LDLIBRARYDIR=''
5774RUNSHARED=''
Barry Warsaw14d98ac2010-11-24 19:43:475775LDVERSION="$VERSION"
Alexandre Vassalotti302825b2009-07-17 07:49:535776
5777# LINKCC is the command that links the python executable -- default is $(CC).
5778# If CXX is set, and if it is needed to link a main function that was
5779# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5780# python might then depend on the C++ runtime
5781# This is altered for AIX in order to build the export list before
5782# linking.
5783
Matthias Kloseb9621712010-04-24 17:59:495784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5785$as_echo_n "checking LINKCC... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535786if test -z "$LINKCC"
5787then
5788 LINKCC='$(PURIFY) $(MAINCC)'
5789 case $ac_sys_system in
5790 AIX*)
5791 exp_extra="\"\""
5792 if test $ac_sys_release -ge 5 -o \
5793 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5794 exp_extra="."
5795 fi
5796 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Alexandre Vassalotti302825b2009-07-17 07:49:535797 QNX*)
5798 # qcc must be used because the other compilers do not
5799 # support -N.
5800 LINKCC=qcc;;
5801 esac
5802fi
Matthias Kloseb9621712010-04-24 17:59:495803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5804$as_echo "$LINKCC" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535805
5806# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5807# make sure we default having it set to "no": this is used by
5808# distutils.unixccompiler to know if it should add --enable-new-dtags
5809# to linker command lines, and failing to detect GNU ld simply results
5810# in the same bahaviour as before.
5811
Matthias Kloseb9621712010-04-24 17:59:495812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5813$as_echo_n "checking for GNU ld... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535814ac_prog=ld
5815if test "$GCC" = yes; then
5816 ac_prog=`$CC -print-prog-name=ld`
5817fi
5818case `"$ac_prog" -V 2>&1 < /dev/null` in
5819 *GNU*)
5820 GNULD=yes;;
5821 *)
5822 GNULD=no;;
5823esac
Matthias Kloseb9621712010-04-24 17:59:495824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5825$as_echo "$GNULD" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535826
Matthias Kloseb9621712010-04-24 17:59:495827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5828$as_echo_n "checking for --enable-shared... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535829# Check whether --enable-shared was given.
Matthias Kloseb9621712010-04-24 17:59:495830if test "${enable_shared+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535831 enableval=$enable_shared;
5832fi
5833
5834
5835if test -z "$enable_shared"
5836then
5837 case $ac_sys_system in
Antoine Pitrou6103ab12009-10-24 20:11:215838 CYGWIN*)
Alexandre Vassalotti302825b2009-07-17 07:49:535839 enable_shared="yes";;
5840 *)
5841 enable_shared="no";;
5842 esac
5843fi
Matthias Kloseb9621712010-04-24 17:59:495844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5845$as_echo "$enable_shared" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535846
Matthias Kloseb9621712010-04-24 17:59:495847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5848$as_echo_n "checking for --enable-profiling... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535849# Check whether --enable-profiling was given.
Matthias Kloseb9621712010-04-24 17:59:495850if test "${enable_profiling+set}" = set; then :
doko@ubuntu.comba015832012-06-30 14:52:055851 enableval=$enable_profiling;
5852fi
5853
5854if test "x$enable_profiling" = xyes; then
5855 ac_save_cc="$CC"
Benjamin Peterson615ea1a2013-03-26 12:55:375856 CC="$CC -pg"
Matthias Kloseb9621712010-04-24 17:59:495857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:535858/* end confdefs.h. */
5859int main() { return 0; }
5860_ACEOF
doko@ubuntu.comba015832012-06-30 14:52:055861if ac_fn_c_try_link "$LINENO"; then :
5862
Alexandre Vassalotti302825b2009-07-17 07:49:535863else
doko@ubuntu.comba015832012-06-30 14:52:055864 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535865fi
doko@ubuntu.comba015832012-06-30 14:52:055866rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 CC="$ac_save_cc"
5869else
5870 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535871fi
doko@ubuntu.comba015832012-06-30 14:52:055872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5873$as_echo "$enable_profiling" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535874
doko@ubuntu.comba015832012-06-30 14:52:055875if test "x$enable_profiling" = xyes; then
5876 BASECFLAGS="-pg $BASECFLAGS"
5877 LDFLAGS="-pg $LDFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:535878fi
5879
Matthias Kloseb9621712010-04-24 17:59:495880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5881$as_echo_n "checking LDLIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535882
5883# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5884# library that we build, but we do not want to link against it (we
5885# will find it with a -framework option). For this reason there is an
5886# extra variable BLDLIBRARY against which Python and the extension
5887# modules are linked, BLDLIBRARY. This is normally the same as
5888# LDLIBRARY, but empty for MacOSX framework builds.
5889if test "$enable_framework"
5890then
5891 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
doko@ubuntu.come5de66e2014-05-07 10:57:445892 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535893 BLDLIBRARY=''
5894else
5895 BLDLIBRARY='$(LDLIBRARY)'
5896fi
5897
5898# Other platforms follow
5899if test $enable_shared = "yes"; then
doko@python.org87421192013-01-26 10:39:315900 PY_ENABLE_SHARED=1
Alexandre Vassalotti302825b2009-07-17 07:49:535901
Matthias Kloseb9621712010-04-24 17:59:495902$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:535903
5904 case $ac_sys_system in
5905 CYGWIN*)
Barry Warsaw8cf4eae2010-10-16 01:04:075906 LDLIBRARY='libpython$(LDVERSION).dll.a'
5907 DLLLIBRARY='libpython$(LDVERSION).dll'
Alexandre Vassalotti302825b2009-07-17 07:49:535908 ;;
5909 SunOS*)
Barry Warsaw8cf4eae2010-10-16 01:04:075910 LDLIBRARY='libpython$(LDVERSION).so'
5911 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445912 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535913 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525914 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475915 then
5916 PY3LIBRARY=libpython3.so
5917 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535918 ;;
Charles-François Natali749400a2011-07-24 20:41:185919 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
Barry Warsaw8cf4eae2010-10-16 01:04:075920 LDLIBRARY='libpython$(LDVERSION).so'
5921 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445922 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535923 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525924 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475925 then
5926 PY3LIBRARY=libpython3.so
5927 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535928 ;;
5929 hp*|HP*)
5930 case `uname -m` in
5931 ia64)
Barry Warsaw8cf4eae2010-10-16 01:04:075932 LDLIBRARY='libpython$(LDVERSION).so'
Alexandre Vassalotti302825b2009-07-17 07:49:535933 ;;
5934 *)
Barry Warsaw8cf4eae2010-10-16 01:04:075935 LDLIBRARY='libpython$(LDVERSION).sl'
Alexandre Vassalotti302825b2009-07-17 07:49:535936 ;;
5937 esac
Barry Warsaw8cf4eae2010-10-16 01:04:075938 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445939 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535940 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:535941 Darwin*)
Barry Warsaw8cf4eae2010-10-16 01:04:075942 LDLIBRARY='libpython$(LDVERSION).dylib'
5943 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445944 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535945 ;;
Antoine Pitrou8e6b4072010-09-10 19:44:445946 AIX*)
Barry Warsaw8cf4eae2010-10-16 01:04:075947 LDLIBRARY='libpython$(LDVERSION).so'
doko@ubuntu.come5de66e2014-05-07 10:57:445948 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
Antoine Pitrou8e6b4072010-09-10 19:44:445949 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:535950
5951 esac
5952else # shared is disabled
doko@python.org87421192013-01-26 10:39:315953 PY_ENABLE_SHARED=0
Alexandre Vassalotti302825b2009-07-17 07:49:535954 case $ac_sys_system in
5955 CYGWIN*)
5956 BLDLIBRARY='$(LIBRARY)'
Barry Warsaw8cf4eae2010-10-16 01:04:075957 LDLIBRARY='libpython$(LDVERSION).dll.a'
Alexandre Vassalotti302825b2009-07-17 07:49:535958 ;;
5959 esac
5960fi
5961
doko@ubuntu.com1abe1c52012-06-30 18:42:455962if test "$cross_compiling" = yes; then
5963 RUNSHARED=
5964fi
5965
Matthias Kloseb9621712010-04-24 17:59:495966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5967$as_echo "$LDLIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535968
Alexandre Vassalotti302825b2009-07-17 07:49:535969
doko@ubuntu.com51f65942012-06-30 12:42:465970if test -n "$ac_tool_prefix"; then
5971 for ac_prog in ar aal
5972 do
5973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:495975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095977if ${ac_cv_prog_AR+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495978 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:535979else
5980 if test -n "$AR"; then
5981 ac_cv_prog_AR="$AR" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495988 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:545989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465990 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:495991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:535992 break 2
5993 fi
5994done
Matthias Kloseb9621712010-04-24 17:59:495995 done
Alexandre Vassalotti302825b2009-07-17 07:49:535996IFS=$as_save_IFS
5997
5998fi
5999fi
6000AR=$ac_cv_prog_AR
6001if test -n "$AR"; then
Matthias Kloseb9621712010-04-24 17:59:496002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6003$as_echo "$AR" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536004else
Matthias Kloseb9621712010-04-24 17:59:496005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536007fi
6008
6009
doko@ubuntu.com51f65942012-06-30 12:42:466010 test -n "$AR" && break
6011 done
6012fi
6013if test -z "$AR"; then
6014 ac_ct_AR=$AR
6015 for ac_prog in ar aal
6016do
6017 # Extract the first word of "$ac_prog", so it can be a program name with args.
6018set dummy $ac_prog; ac_word=$2
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020$as_echo_n "checking for $ac_word... " >&6; }
6021if ${ac_cv_prog_ac_ct_AR+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023else
6024 if test -n "$ac_ct_AR"; then
6025 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:576033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:466034 ac_cv_prog_ac_ct_AR="$ac_prog"
6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536038done
doko@ubuntu.com51f65942012-06-30 12:42:466039 done
6040IFS=$as_save_IFS
6041
6042fi
6043fi
6044ac_ct_AR=$ac_cv_prog_ac_ct_AR
6045if test -n "$ac_ct_AR"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6047$as_echo "$ac_ct_AR" >&6; }
6048else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050$as_echo "no" >&6; }
6051fi
6052
6053
6054 test -n "$ac_ct_AR" && break
6055done
6056
6057 if test "x$ac_ct_AR" = x; then
6058 AR="ar"
6059 else
6060 case $cross_compiling:$ac_tool_warned in
6061yes:)
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066 AR=$ac_ct_AR
6067 fi
6068fi
Alexandre Vassalotti302825b2009-07-17 07:49:536069
6070
6071# tweak ARFLAGS only if the user didn't set it on the command line
6072
6073if test -z "$ARFLAGS"
6074then
Benjamin Petersond15108a2017-09-29 15:42:416075 ARFLAGS="rcs"
Alexandre Vassalotti302825b2009-07-17 07:49:536076fi
6077
doko@ubuntu.com58844492012-06-30 16:25:326078if test -n "$ac_tool_prefix"; then
6079 for ac_prog in readelf
6080 do
6081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_READELF+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087else
6088 if test -n "$READELF"; then
6089 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326098 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102done
6103 done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108READELF=$ac_cv_prog_READELF
6109if test -n "$READELF"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6111$as_echo "$READELF" >&6; }
6112else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117
6118 test -n "$READELF" && break
6119 done
6120fi
6121if test -z "$READELF"; then
6122 ac_ct_READELF=$READELF
6123 for ac_prog in readelf
6124do
6125 # Extract the first word of "$ac_prog", so it can be a program name with args.
6126set dummy $ac_prog; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132 if test -n "$ac_ct_READELF"; then
6133 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326142 ac_cv_prog_ac_ct_READELF="$ac_prog"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146done
6147 done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6153if test -n "$ac_ct_READELF"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6155$as_echo "$ac_ct_READELF" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161
6162 test -n "$ac_ct_READELF" && break
6163done
6164
6165 if test "x$ac_ct_READELF" = x; then
6166 READELF=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172ac_tool_warned=yes ;;
6173esac
6174 READELF=$ac_ct_READELF
6175 fi
6176fi
6177
6178if test "$cross_compiling" = yes; then
6179 case "$READELF" in
6180 readelf|:)
6181 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6182 ;;
6183 esac
6184fi
6185
6186
Alexandre Vassalotti302825b2009-07-17 07:49:536187
Alexandre Vassalotti302825b2009-07-17 07:49:536188case $MACHDEP in
Benjamin Peterson288d1da2017-09-29 05:44:276189hp*|HP*)
6190 # install -d does not work on HP-UX
Alexandre Vassalotti302825b2009-07-17 07:49:536191 if test -z "$INSTALL"
6192 then
6193 INSTALL="${srcdir}/install-sh -c"
6194 fi
6195esac
Alexandre Vassalotti302825b2009-07-17 07:49:536196# Find a good install program. We prefer a C program (faster),
6197# so one script is as good as another. But avoid the broken or
6198# incompatible versions:
6199# SysV /etc/install, /usr/sbin/install
6200# SunOS /usr/etc/install
6201# IRIX /sbin/install
6202# AIX /bin/install
6203# AmigaOS /C/install, which installs bootblocks on floppy discs
6204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6205# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6207# OS/2's system install, which has a completely different semantic
6208# ./install, which can be erroneously created by make from ./install.sh.
Matthias Kloseb9621712010-04-24 17:59:496209# Reject install programs that cannot install multiple files.
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6211$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536212if test -z "$INSTALL"; then
Victor Stinnere0be4232011-10-25 11:06:096213if ${ac_cv_path_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496214 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:536215else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:496221 # Account for people who put trailing slashes in PATH elements.
6222case $as_dir/ in #((
6223 ./ | .// | /[cC]/* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Matthias Kloseb9621712010-04-24 17:59:496225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536226 /usr/ucb/* ) ;;
6227 *)
6228 # OSF1 and SCO ODT 3.0 have their own names for install.
6229 # Don't use installbsd from OSF since it installs stuff as root
6230 # by default.
6231 for ac_prog in ginstall scoinst install; do
6232 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546233 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:536234 if test $ac_prog = install &&
6235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6236 # AIX install. It has an incompatible calling convention.
6237 :
6238 elif test $ac_prog = install &&
6239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6240 # program-specific install script used by HP pwplus--don't use.
6241 :
6242 else
Matthias Kloseb9621712010-04-24 17:59:496243 rm -rf conftest.one conftest.two conftest.dir
6244 echo one > conftest.one
6245 echo two > conftest.two
6246 mkdir conftest.dir
6247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6248 test -s conftest.one && test -s conftest.two &&
6249 test -s conftest.dir/conftest.one &&
6250 test -s conftest.dir/conftest.two
6251 then
6252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6253 break 3
6254 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536255 fi
6256 fi
6257 done
6258 done
6259 ;;
6260esac
Matthias Kloseb9621712010-04-24 17:59:496261
6262 done
Alexandre Vassalotti302825b2009-07-17 07:49:536263IFS=$as_save_IFS
6264
Matthias Kloseb9621712010-04-24 17:59:496265rm -rf conftest.one conftest.two conftest.dir
Alexandre Vassalotti302825b2009-07-17 07:49:536266
6267fi
6268 if test "${ac_cv_path_install+set}" = set; then
6269 INSTALL=$ac_cv_path_install
6270 else
6271 # As a last resort, use the slow shell script. Don't cache a
6272 # value for INSTALL within a source directory, because that will
6273 # break other packages using the cache if that directory is
6274 # removed, or if the value is a relative name.
6275 INSTALL=$ac_install_sh
6276 fi
6277fi
Matthias Kloseb9621712010-04-24 17:59:496278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6279$as_echo "$INSTALL" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536280
6281# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6282# It thinks the first close brace ends the variable substitution.
6283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6284
6285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6286
6287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6288
Matthias Klose93a0ef12012-03-15 17:08:346289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6290$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6291if test -z "$MKDIR_P"; then
6292 if ${ac_cv_path_mkdir+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_prog in mkdir gmkdir; do
6301 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546302 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Matthias Klose93a0ef12012-03-15 17:08:346303 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6304 'mkdir (GNU coreutils) '* | \
6305 'mkdir (coreutils) '* | \
6306 'mkdir (fileutils) '4.1*)
6307 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6308 break 3;;
6309 esac
6310 done
6311 done
6312 done
6313IFS=$as_save_IFS
6314
6315fi
6316
6317 test -d ./--version && rmdir ./--version
6318 if test "${ac_cv_path_mkdir+set}" = set; then
6319 MKDIR_P="$ac_cv_path_mkdir -p"
6320 else
6321 # As a last resort, use the slow shell script. Don't cache a
6322 # value for MKDIR_P within a source directory, because that will
6323 # break other packages using the cache if that directory is
6324 # removed, or if the value is a relative name.
6325 MKDIR_P="$ac_install_sh -d"
6326 fi
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6329$as_echo "$MKDIR_P" >&6; }
6330
Alexandre Vassalotti302825b2009-07-17 07:49:536331
6332# Not every filesystem supports hard links
6333
6334if test -z "$LN" ; then
6335 case $ac_sys_system in
6336 CYGWIN*) LN="ln -s";;
Alexandre Vassalotti302825b2009-07-17 07:49:536337 *) LN=ln;;
6338 esac
6339fi
6340
Barry Warsaw35f3a2c2010-09-03 18:30:306341# For calculating the .so ABI tag.
Barry Warsaw8cf4eae2010-10-16 01:04:076342
6343ABIFLAGS=""
Barry Warsaw35f3a2c2010-09-03 18:30:306344
Alexandre Vassalotti302825b2009-07-17 07:49:536345# Check for --with-pydebug
Matthias Kloseb9621712010-04-24 17:59:496346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6347$as_echo_n "checking for --with-pydebug... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536348
6349# Check whether --with-pydebug was given.
Matthias Kloseb9621712010-04-24 17:59:496350if test "${with_pydebug+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:536351 withval=$with_pydebug;
6352if test "$withval" != no
6353then
6354
Matthias Kloseb9621712010-04-24 17:59:496355$as_echo "#define Py_DEBUG 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:536356
Matthias Kloseb9621712010-04-24 17:59:496357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358$as_echo "yes" >&6; };
Alexandre Vassalotti302825b2009-07-17 07:49:536359 Py_DEBUG='true'
Barry Warsaw8cf4eae2010-10-16 01:04:076360 ABIFLAGS="${ABIFLAGS}d"
Matthias Kloseb9621712010-04-24 17:59:496361else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }; Py_DEBUG='false'
Alexandre Vassalotti302825b2009-07-17 07:49:536363fi
6364else
Matthias Kloseb9621712010-04-24 17:59:496365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536367fi
6368
6369
Victor Stinnerf4e47032019-04-24 22:56:286370# Check for --with-trace-refs
6371# --with-trace-refs
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
6373$as_echo_n "checking for --with-trace-refs... " >&6; }
6374
6375# Check whether --with-trace-refs was given.
6376if test "${with_trace_refs+set}" = set; then :
6377 withval=$with_trace_refs;
6378else
6379 with_trace_refs=no
6380fi
6381
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
6383$as_echo "$with_trace_refs" >&6; }
6384
6385if test "$with_trace_refs" = "yes"
6386then
6387
6388$as_echo "#define Py_TRACE_REFS 1" >>confdefs.h
6389
6390fi
6391
6392# Check for --with-assertions.
6393# This allows enabling assertions without Py_DEBUG.
T. Woutersddbfa2c2017-05-22 23:30:496394assertions='false'
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6396$as_echo_n "checking for --with-assertions... " >&6; }
6397
6398# Check whether --with-assertions was given.
6399if test "${with_assertions+set}" = set; then :
6400 withval=$with_assertions;
6401if test "$withval" != no
6402then
6403 assertions='true'
6404fi
6405fi
6406
6407if test "$assertions" = 'true'; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6409$as_echo "yes" >&6; }
6410elif test "$Py_DEBUG" = 'true'; then
6411 assertions='true'
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6413$as_echo "implied by --with-pydebug" >&6; }
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
Brett Cannon63d98bc2016-09-07 00:12:406419# Enable optimization flags
6420
6421
6422Py_OPT='false'
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6424$as_echo_n "checking for --enable-optimizations... " >&6; }
6425# Check whether --enable-optimizations was given.
6426if test "${enable_optimizations+set}" = set; then :
6427 enableval=$enable_optimizations;
Alex Wang8cea5922017-03-28 12:50:516428if test "$enableval" != no
Brett Cannon63d98bc2016-09-07 00:12:406429then
6430 Py_OPT='true'
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6432$as_echo "yes" >&6; };
6433else
6434 Py_OPT='false'
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; };
6437fi
6438else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440$as_echo "no" >&6; }
6441fi
6442
6443if test "$Py_OPT" = 'true' ; then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)14c7f712016-09-08 22:38:466444 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6445 # compile working code using it and both test_distutils and test_gdb are
Brett Cannon1d8f7552016-11-03 23:20:006446 # broken when you do manage to get a toolchain that works with it. People
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)14c7f712016-09-08 22:38:466447 # who want LTO need to use --with-lto themselves.
Brett Cannon63d98bc2016-09-07 00:12:406448 DEF_MAKE_ALL_RULE="profile-opt"
Gregory P. Smith799520c2016-09-07 23:10:006449 REQUIRE_PGO="yes"
Brett Cannon63d98bc2016-09-07 00:12:406450 DEF_MAKE_RULE="build_all"
6451else
6452 DEF_MAKE_ALL_RULE="build_all"
Gregory P. Smith799520c2016-09-07 23:10:006453 REQUIRE_PGO="no"
Brett Cannon63d98bc2016-09-07 00:12:406454 DEF_MAKE_RULE="all"
6455fi
6456
Miss Islington (bot)24066722019-07-22 20:17:236457
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
6459$as_echo_n "checking PROFILE_TASK... " >&6; }
6460if test -z "$PROFILE_TASK"
6461then
6462 PROFILE_TASK='-m test --pgo'
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
6465$as_echo "$PROFILE_TASK" >&6; }
6466
serge-sans-paille5ad36f92018-10-24 23:54:226467# Make llvm-relatec checks work on systems where llvm tools are not installed with their
6468# normal names in the default $PATH (ie: Ubuntu). They exist under the
6469# non-suffixed name in their versioned llvm directory.
6470
6471llvm_bin_dir=''
6472llvm_path="${PATH}"
6473if test "${CC}" = "clang"
6474then
6475 clang_bin=`which clang`
6476 # Some systems install clang elsewhere as a symlink to the real path
6477 # which is where the related llvm tools are located.
6478 if test -L "${clang_bin}"
6479 then
6480 clang_dir=`dirname "${clang_bin}"`
6481 clang_bin=`readlink "${clang_bin}"`
6482 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6483 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6484 fi
6485fi
6486
Gregory P. Smithd82da9f2016-04-15 23:57:046487# Enable LTO flags
Gregory P. Smithd82da9f2016-04-15 23:57:046488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6489$as_echo_n "checking for --with-lto... " >&6; }
6490
6491# Check whether --with-lto was given.
6492if test "${with_lto+set}" = set; then :
6493 withval=$with_lto;
6494if test "$withval" != no
6495then
6496 Py_LTO='true'
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6498$as_echo "yes" >&6; };
6499else
6500 Py_LTO='false'
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502$as_echo "no" >&6; };
6503fi
6504else
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506$as_echo "no" >&6; }
6507fi
6508
6509if test "$Py_LTO" = 'true' ; then
6510 case $CC in
6511 *clang*)
Victor Stinner06fe77a2018-06-19 16:24:586512
Miss Islington (bot)97d7ba42019-09-13 14:50:436513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
serge-sans-paille5ad36f92018-10-24 23:54:226516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
6518if ${ac_cv_path_LLVM_AR+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520else
6521 case $LLVM_AR in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in ${llvm_path}
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537done
6538 done
6539IFS=$as_save_IFS
6540
6541 ;;
6542esac
6543fi
6544LLVM_AR=$ac_cv_path_LLVM_AR
6545if test -n "$LLVM_AR"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6547$as_echo "$LLVM_AR" >&6; }
6548else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550$as_echo "no" >&6; }
6551fi
6552
6553
Miss Islington (bot)97d7ba42019-09-13 14:50:436554fi
serge-sans-paille5ad36f92018-10-24 23:54:226555if test -z "$ac_cv_path_LLVM_AR"; then
Miss Islington (bot)97d7ba42019-09-13 14:50:436556 ac_pt_LLVM_AR=$LLVM_AR
6557 # Extract the first word of "llvm-ar", so it can be a program name with args.
serge-sans-paille5ad36f92018-10-24 23:54:226558set dummy llvm-ar; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563else
6564 case $ac_pt_LLVM_AR in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
6567 ;;
6568 *)
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in ${llvm_path}
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580done
6581 done
6582IFS=$as_save_IFS
6583
serge-sans-paille5ad36f92018-10-24 23:54:226584 ;;
6585esac
6586fi
6587ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
6588if test -n "$ac_pt_LLVM_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6590$as_echo "$ac_pt_LLVM_AR" >&6; }
6591else
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593$as_echo "no" >&6; }
6594fi
6595
Miss Islington (bot)97d7ba42019-09-13 14:50:436596 if test "x$ac_pt_LLVM_AR" = x; then
serge-sans-paille5ad36f92018-10-24 23:54:226597 LLVM_AR="''"
Miss Islington (bot)97d7ba42019-09-13 14:50:436598 else
6599 case $cross_compiling:$ac_tool_warned in
6600yes:)
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603ac_tool_warned=yes ;;
6604esac
6605 LLVM_AR=$ac_pt_LLVM_AR
serge-sans-paille5ad36f92018-10-24 23:54:226606 fi
6607else
6608 LLVM_AR="$ac_cv_path_LLVM_AR"
6609fi
6610
6611
6612 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6613 then
6614 LLVM_AR_FOUND="found"
6615 else
6616 LLVM_AR_FOUND="not-found"
6617 fi
6618 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6619 then
6620 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
6621 if test -n "${found_llvm_ar}"
6622 then
6623 LLVM_AR='/usr/bin/xcrun llvm-ar'
6624 LLVM_AR_FOUND=found
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6626$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6627 fi
6628 fi
6629 if test $LLVM_AR_FOUND = not-found
6630 then
6631 LLVM_PROFR_ERR=yes
6632 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
6633 else
6634 LLVM_AR_ERR=no
6635 fi
6636 AR="${LLVM_AR}"
6637 case $ac_sys_system in
6638 Darwin*)
6639 # Any changes made here should be reflected in the GCC+Darwin case below
6640 LTOFLAGS="-flto -Wl,-export_dynamic"
6641 ;;
6642 *)
6643 LTOFLAGS="-flto"
6644 ;;
6645 esac
6646 ;;
6647 *gcc*)
6648 case $ac_sys_system in
6649 Darwin*)
6650 LTOFLAGS="-flto -Wl,-export_dynamic"
6651 ;;
6652 *)
6653 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6654 ;;
6655 esac
6656 ;;
6657 esac
6658
6659 if test "$ac_cv_prog_cc_g" = "yes"
6660 then
6661 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6662 # to get debug symbols.
6663 LTOFLAGS="$LTOFLAGS -g"
6664 fi
6665
stratakisf92c7aa2018-12-04 14:54:016666 CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS"
stratakiscf10a752018-12-19 17:19:016667 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
serge-sans-paille5ad36f92018-10-24 23:54:226668fi
6669
6670# Enable PGO flags.
6671
6672
6673
6674
6675
6676
Miss Islington (bot)97d7ba42019-09-13 14:50:436677if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
6679set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
Gregory P. Smith799520c2016-09-07 23:10:006680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684else
6685 case $LLVM_PROFDATA in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6688 ;;
6689 *)
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in ${llvm_path}
Brett Cannon7188a3e2015-09-18 22:13:446692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Gregory P. Smith799520c2016-09-07 23:10:006697 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
Brett Cannon7188a3e2015-09-18 22:13:446698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
Gregory P. Smith799520c2016-09-07 23:10:006705 ;;
6706esac
Brett Cannon7188a3e2015-09-18 22:13:446707fi
Gregory P. Smith799520c2016-09-07 23:10:006708LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6709if test -n "$LLVM_PROFDATA"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6711$as_echo "$LLVM_PROFDATA" >&6; }
Brett Cannon7188a3e2015-09-18 22:13:446712else
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
Miss Islington (bot)97d7ba42019-09-13 14:50:436718fi
Gregory P. Smith799520c2016-09-07 23:10:006719if test -z "$ac_cv_path_LLVM_PROFDATA"; then
Miss Islington (bot)97d7ba42019-09-13 14:50:436720 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6721 # Extract the first word of "llvm-profdata", so it can be a program name with args.
Gregory P. Smith799520c2016-09-07 23:10:006722set dummy llvm-profdata; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727else
6728 case $ac_pt_LLVM_PROFDATA in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6731 ;;
6732 *)
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in ${llvm_path}
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745 done
6746IFS=$as_save_IFS
6747
Gregory P. Smith799520c2016-09-07 23:10:006748 ;;
6749esac
6750fi
6751ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6752if test -n "$ac_pt_LLVM_PROFDATA"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6754$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
Miss Islington (bot)97d7ba42019-09-13 14:50:436760 if test "x$ac_pt_LLVM_PROFDATA" = x; then
Gregory P. Smith799520c2016-09-07 23:10:006761 LLVM_PROFDATA="''"
Miss Islington (bot)97d7ba42019-09-13 14:50:436762 else
6763 case $cross_compiling:$ac_tool_warned in
6764yes:)
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767ac_tool_warned=yes ;;
6768esac
6769 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
Gregory P. Smith799520c2016-09-07 23:10:006770 fi
6771else
6772 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6773fi
6774
6775
6776if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6777then
6778 LLVM_PROF_FOUND="found"
6779else
6780 LLVM_PROF_FOUND="not-found"
6781fi
6782if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6783then
6784 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6785 if test -n "${found_llvm_profdata}"
6786 then
6787 # llvm-profdata isn't directly in $PATH in some cases.
6788 # https://apple.stackexchange.com/questions/197053/
6789 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6790 LLVM_PROF_FOUND=found
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6792$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6793 fi
6794fi
Brett Cannon7188a3e2015-09-18 22:13:446795LLVM_PROF_ERR=no
6796case $CC in
6797 *clang*)
6798 # Any changes made here should be reflected in the GCC+Darwin case below
6799 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6800 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006801 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446802 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6803 if test $LLVM_PROF_FOUND = not-found
6804 then
6805 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006806 if test "${REQUIRE_PGO}" = "yes"
6807 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426808 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith799520c2016-09-07 23:10:006809 fi
Brett Cannon7188a3e2015-09-18 22:13:446810 fi
6811 ;;
6812 *gcc*)
6813 case $ac_sys_system in
6814 Darwin*)
6815 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6816 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006817 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446818 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
Gregory P. Smith799520c2016-09-07 23:10:006819 if test "${LLVM_PROF_FOUND}" = "not-found"
Brett Cannon7188a3e2015-09-18 22:13:446820 then
6821 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006822 if test "${REQUIRE_PGO}" = "yes"
6823 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426824 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith799520c2016-09-07 23:10:006825 fi
Brett Cannon7188a3e2015-09-18 22:13:446826 fi
6827 ;;
6828 *)
6829 PGO_PROF_GEN_FLAG="-fprofile-generate"
6830 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6831 LLVM_PROF_MERGER="true"
6832 LLVM_PROF_FILE=""
6833 ;;
6834 esac
6835 ;;
Zachary Ware5af85642015-12-21 18:09:176836 *icc*)
6837 PGO_PROF_GEN_FLAG="-prof-gen"
6838 PGO_PROF_USE_FLAG="-prof-use"
6839 LLVM_PROF_MERGER="true"
6840 LLVM_PROF_FILE=""
6841 ;;
Brett Cannon7188a3e2015-09-18 22:13:446842esac
6843
Alexandre Vassalotti302825b2009-07-17 07:49:536844# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6845# merged with this chunk of code?
6846
6847# Optimizer/debugger flags
6848# ------------------------
6849# (The following bit of code is complicated enough - please keep things
6850# indented properly. Just pretend you're editing Python code. ;-)
6851
6852# There are two parallel sets of case statements below, one that checks to
6853# see if OPT was set and one that does BASECFLAGS setting based upon
6854# compiler and platform. BASECFLAGS tweaks need to be made even if the
6855# user set OPT.
6856
Victor Stinner23a683a2019-04-12 19:27:376857case $CC in
6858 *clang*)
6859 cc_is_clang=1
6860 ;;
6861 *)
6862 if $CC --version 2>&1 | grep -q clang
6863 then
6864 cc_is_clang=1
6865 else
6866 cc_is_clang=
6867 fi
6868esac
6869
Alexandre Vassalotti302825b2009-07-17 07:49:536870# tweak OPT based on compiler and platform, only if the user didn't set
6871# it on the command line
6872
Victor Stinner9ed34a82017-05-02 20:35:586873
Benjamin Peterson65b4ec52010-03-23 21:02:346874if test "${OPT-unset}" = "unset"
Alexandre Vassalotti302825b2009-07-17 07:49:536875then
6876 case $GCC in
6877 yes)
Alexandre Vassalotti302825b2009-07-17 07:49:536878 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6879 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6880 WRAP="-fwrapv"
6881 fi
Stefan Krah962055d2011-09-14 13:14:086882
Victor Stinner35f3d242017-04-21 10:35:246883 if test -n "${cc_is_clang}"
6884 then
6885 # Clang also needs -fwrapv
6886 WRAP="-fwrapv"
Victor Stinner9ed34a82017-05-02 20:35:586887 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6888 # see Makefile.pre.in for more information
Victor Stinner826f83f2017-04-28 13:07:106889 CFLAGS_ALIASING="-fno-strict-aliasing"
Victor Stinner35f3d242017-04-21 10:35:246890 fi
6891
Alexandre Vassalotti302825b2009-07-17 07:49:536892 case $ac_cv_prog_cc_g in
6893 yes)
6894 if test "$Py_DEBUG" = 'true' ; then
6895 # Optimization messes up debuggers, so turn it off for
6896 # debug builds.
Antoine Pitrou3d6c7842015-02-11 18:39:166897 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
Victor Stinner28205b22017-04-21 09:24:346898 OPT="-g -Og -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166899 else
Victor Stinner28205b22017-04-21 09:24:346900 OPT="-g -O0 -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166901 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536902 else
Victor Stinner28205b22017-04-21 09:24:346903 OPT="-g $WRAP -O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536904 fi
6905 ;;
6906 *)
Victor Stinner28205b22017-04-21 09:24:346907 OPT="-O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536908 ;;
6909 esac
Victor Stinner28205b22017-04-21 09:24:346910
Alexandre Vassalotti302825b2009-07-17 07:49:536911 case $ac_sys_system in
6912 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6913 ;;
6914 esac
6915 ;;
6916
6917 *)
6918 OPT="-O"
6919 ;;
6920 esac
Alexandre Vassalotti302825b2009-07-17 07:49:536921fi
6922
6923
6924
Benjamin Petersonacb8c522014-08-10 03:01:496925
stratakiscf10a752018-12-19 17:19:016926
Ned Deilyb29d0a52021-05-02 09:18:586927# The -arch flags for universal builds on macOS
Alexandre Vassalotti302825b2009-07-17 07:49:536928UNIVERSAL_ARCH_FLAGS=
6929
6930
6931# tweak BASECFLAGS based on compiler and platform
6932case $GCC in
6933yes)
Benjamin Peterson050af5d2016-09-11 00:53:136934 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
Benjamin Petersond1702562016-09-07 19:00:066935
Serhiy Storchakaea80ffb2016-09-11 18:56:326936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
6937$as_echo_n "checking for -Wextra... " >&6; }
6938 ac_save_cc="$CC"
6939 CC="$CC -Wextra -Werror"
6940 if ${ac_cv_extra_warnings+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942else
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
6945
6946
6947int
6948main ()
6949{
6950
6951 ;
6952 return 0;
6953}
6954
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"; then :
6957
6958 ac_cv_extra_warnings=yes
6959
6960else
6961
6962 ac_cv_extra_warnings=no
6963
6964fi
6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966fi
6967
6968 CC="$ac_save_cc"
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
6970$as_echo "$ac_cv_extra_warnings" >&6; }
6971
6972 if test $ac_cv_extra_warnings = yes
6973 then
6974 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
6975 fi
6976
Benjamin Petersone6c9d242010-03-30 17:34:476977 # Python doesn't violate C99 aliasing rules, but older versions of
6978 # GCC produce warnings for legal Python code. Enable
6979 # -fno-strict-aliasing on versions of GCC that support but produce
6980 # warnings. See Issue3326
Matthias Kloseb9621712010-04-24 17:59:496981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
6982$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536983 ac_save_cc="$CC"
6984 CC="$CC -fno-strict-aliasing"
Benjamin Petersone6c9d242010-03-30 17:34:476985 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:096986 if ${ac_cv_no_strict_aliasing+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496987 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:376988else
Matthias Kloseb9621712010-04-24 17:59:496989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:536990/* end confdefs.h. */
Gregory P. Smithe0450c62009-11-01 21:11:366991
Matthias Kloseb159a552010-04-25 21:00:446992
Gregory P. Smithe0450c62009-11-01 21:11:366993int
6994main ()
6995{
Mark Dickinson8c2b6f12010-05-11 09:23:076996
Gregory P. Smithe0450c62009-11-01 21:11:366997 ;
6998 return 0;
6999}
Matthias Kloseb159a552010-04-25 21:00:447000
Alexandre Vassalotti302825b2009-07-17 07:49:537001_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497002if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:447003
7004 CC="$ac_save_cc -fstrict-aliasing"
7005 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Petersone6c9d242010-03-30 17:34:477007/* end confdefs.h. */
7008
Mark Dickinson8c2b6f12010-05-11 09:23:077009 void f(int **x) {}
Benjamin Petersone6c9d242010-03-30 17:34:477010int
7011main ()
7012{
Mark Dickinson8c2b6f12010-05-11 09:23:077013double *x; f((int **) &x);
Benjamin Petersone6c9d242010-03-30 17:34:477014 ;
7015 return 0;
7016}
Matthias Kloseb159a552010-04-25 21:00:447017
Benjamin Petersone6c9d242010-03-30 17:34:477018_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497019if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:447020
7021 ac_cv_no_strict_aliasing=no
7022
Alexandre Vassalotti302825b2009-07-17 07:49:537023else
Matthias Kloseb159a552010-04-25 21:00:447024
7025 ac_cv_no_strict_aliasing=yes
7026
Benjamin Petersone6c9d242010-03-30 17:34:477027fi
Benjamin Petersone6c9d242010-03-30 17:34:477028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:447029
Benjamin Petersone6c9d242010-03-30 17:34:477030else
Matthias Kloseb159a552010-04-25 21:00:447031
7032 ac_cv_no_strict_aliasing=no
7033
Alexandre Vassalotti302825b2009-07-17 07:49:537034fi
Gregory P. Smithe0450c62009-11-01 21:11:367035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottib0a61d72009-07-17 23:19:377036fi
7037
Benjamin Petersone6c9d242010-03-30 17:34:477038 CFLAGS="$save_CFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:537039 CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:497040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7041$as_echo "$ac_cv_no_strict_aliasing" >&6; }
Benjamin Petersone6c9d242010-03-30 17:34:477042 if test $ac_cv_no_strict_aliasing = yes
Alexandre Vassalotti302825b2009-07-17 07:49:537043 then
7044 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7045 fi
7046
Zachary Ware5af85642015-12-21 18:09:177047 # ICC doesn't recognize the option, but only emits a warning
7048 ## XXX does it emit an unused result warning and can it be disabled?
7049 case "$CC" in
7050 *icc*)
7051 ac_cv_disable_unused_result_warning=no
7052 ;;
7053 *)
Benjamin Peterson7ddbf102011-09-23 17:23:227054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7055$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
7056 ac_save_cc="$CC"
7057 CC="$CC -Wunused-result -Werror"
7058 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:097059 if ${ac_cv_disable_unused_result_warning+:} false; then :
Benjamin Peterson7ddbf102011-09-23 17:23:227060 $as_echo_n "(cached) " >&6
7061else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h. */
7064
7065
7066int
7067main ()
7068{
7069
7070 ;
7071 return 0;
7072}
7073
7074_ACEOF
7075if ac_fn_c_try_compile "$LINENO"; then :
7076
7077 ac_cv_disable_unused_result_warning=yes
7078
7079else
7080
7081 ac_cv_disable_unused_result_warning=no
7082
7083fi
7084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085fi
7086
7087 CFLAGS="$save_CFLAGS"
7088 CC="$ac_save_cc"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7090$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
Zachary Ware5af85642015-12-21 18:09:177091 ;;
7092 esac
Benjamin Peterson7ddbf102011-09-23 17:23:227093
7094 if test $ac_cv_disable_unused_result_warning = yes
7095 then
7096 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
Serhiy Storchakaea80ffb2016-09-11 18:56:327097 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7098 fi
7099
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
7101$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
7102 ac_save_cc="$CC"
7103 CC="$CC -Wunused-parameter -Werror"
7104 if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109
7110
7111int
7112main ()
7113{
7114
7115 ;
7116 return 0;
7117}
7118
7119_ACEOF
7120if ac_fn_c_try_compile "$LINENO"; then :
7121
7122 ac_cv_disable_unused_parameter_warning=yes
7123
7124else
7125
7126 ac_cv_disable_unused_parameter_warning=no
7127
7128fi
7129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130fi
7131
7132 CC="$ac_save_cc"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7134$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7135
7136 if test $ac_cv_disable_unused_parameter_warning = yes
7137 then
7138 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7139 fi
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
7142$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
7143 ac_save_cc="$CC"
7144 CC="$CC -Wmissing-field-initializers -Werror"
7145 if ${ac_cv_disable_missing_field_initializers+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h. */
7150
7151
7152int
7153main ()
7154{
7155
7156 ;
7157 return 0;
7158}
7159
7160_ACEOF
7161if ac_fn_c_try_compile "$LINENO"; then :
7162
7163 ac_cv_disable_missing_field_initializers=yes
7164
7165else
7166
7167 ac_cv_disable_missing_field_initializers=no
7168
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172
7173 CC="$ac_save_cc"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7175$as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
7176
7177 if test $ac_cv_disable_missing_field_initializers = yes
7178 then
7179 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
Benjamin Peterson7ddbf102011-09-23 17:23:227180 fi
7181
Charles-François Natali7f9cc932014-08-01 20:57:497182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7183$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7184 ac_save_cc="$CC"
7185 CC="$CC -Wsign-compare"
7186 save_CFLAGS="$CFLAGS"
7187 if ${ac_cv_enable_sign_compare_warning+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h. */
7192
7193
7194int
7195main ()
7196{
7197
7198 ;
7199 return 0;
7200}
7201
7202_ACEOF
7203if ac_fn_c_try_compile "$LINENO"; then :
7204
7205 ac_cv_enable_sign_compare_warning=yes
7206
7207else
7208
7209 ac_cv_enable_sign_compare_warning=no
7210
7211fi
7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213fi
7214
7215 CFLAGS="$save_CFLAGS"
7216 CC="$ac_save_cc"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7218$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7219
7220 if test $ac_cv_enable_sign_compare_warning = yes
7221 then
7222 BASECFLAGS="$BASECFLAGS -Wsign-compare"
7223 fi
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7226$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7227 ac_save_cc="$CC"
7228 CC="$CC -Wunreachable-code"
7229 save_CFLAGS="$CFLAGS"
7230 if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235
7236
7237int
7238main ()
7239{
7240
7241 ;
7242 return 0;
7243}
7244
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247
7248 ac_cv_enable_unreachable_code_warning=yes
7249
7250else
7251
7252 ac_cv_enable_unreachable_code_warning=no
7253
7254fi
7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256fi
7257
7258 CFLAGS="$save_CFLAGS"
7259 CC="$ac_save_cc"
Charles-François Natali7f9cc932014-08-01 20:57:497260
7261 # Don't enable unreachable code warning in debug mode, since it usually
7262 # results in non-standard code paths.
Ned Deilybec699e2016-03-08 05:28:377263 # Issue #24324: Unfortunately, the unreachable code warning does not work
7264 # correctly on gcc and has been silently removed from the compiler.
7265 # It is supported on clang but on OS X systems gcc may be an alias
7266 # for clang. Try to determine if the compiler is not really gcc and,
7267 # if so, only then enable the warning.
7268 if test $ac_cv_enable_unreachable_code_warning = yes && \
7269 test "$Py_DEBUG" != "true" && \
7270 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
Charles-François Natali7f9cc932014-08-01 20:57:497271 then
7272 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
Ned Deilybec699e2016-03-08 05:28:377273 else
7274 ac_cv_enable_unreachable_code_warning=no
Charles-François Natali7f9cc932014-08-01 20:57:497275 fi
Ned Deilybec699e2016-03-08 05:28:377276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7277$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
Charles-François Natali7f9cc932014-08-01 20:57:497278
INADA Naokie3364842018-06-05 11:40:537279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
7280$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7281 ac_save_cc="$CC"
7282 CC="$CC -Werror -Wstrict-prototypes"
7283 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288
7289
7290int
7291main ()
7292{
7293
7294 ;
7295 return 0;
7296}
7297
7298_ACEOF
7299if ac_fn_c_try_compile "$LINENO"; then :
7300
7301 ac_cv_enable_strict_prototypes_warning=yes
7302
7303else
7304
7305 ac_cv_enable_strict_prototypes_warning=no
7306
7307fi
7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309fi
7310
7311 CC="$ac_save_cc"
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7313$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7314
7315 if test $ac_cv_enable_strict_prototypes_warning = yes
7316 then
7317 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7318 fi
7319
Victor Stinner193ee0a2017-02-06 13:24:007320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
7321$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; }
7322 ac_save_cc="$CC"
7323 CC="$CC -Werror=implicit-function-declaration"
7324 if ${ac_cv_enable_implicit_function_declaration_error+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329
7330
7331int
7332main ()
7333{
7334
7335 ;
7336 return 0;
7337}
7338
7339_ACEOF
7340if ac_fn_c_try_compile "$LINENO"; then :
7341
7342 ac_cv_enable_implicit_function_declaration_error=yes
7343
7344else
7345
7346 ac_cv_enable_implicit_function_declaration_error=no
7347
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350fi
7351
7352 CC="$ac_save_cc"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
7354$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
7355
7356 if test $ac_cv_enable_implicit_function_declaration_error = yes
7357 then
7358 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7359 fi
7360
Alexandre Vassalotti302825b2009-07-17 07:49:537361 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7362 # support. Without this, treatment of subnormals doesn't follow
7363 # the standard.
Matthias Klosedf2aecb2012-03-15 21:19:287364 case $host in
Alexandre Vassalotti302825b2009-07-17 07:49:537365 alpha*)
7366 BASECFLAGS="$BASECFLAGS -mieee"
7367 ;;
7368 esac
7369
7370 case $ac_sys_system in
7371 SCO_SV*)
7372 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7373 ;;
Ned Deily87adb6e2013-10-19 04:09:567374
Ned Deily87adb6e2013-10-19 04:09:567375 Darwin*)
7376 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7377 # used to be here, but non-Apple gcc doesn't accept them.
7378 if test "${CC}" = gcc
7379 then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
Matthias Kloseb9621712010-04-24 17:59:497381$as_echo_n "checking which compiler should be used... " >&6; }
Ned Deily87adb6e2013-10-19 04:09:567382 case "${UNIVERSALSDK}" in
7383 */MacOSX10.4u.sdk)
7384 # Build using 10.4 SDK, force usage of gcc when the
7385 # compiler is gcc, otherwise the user will get very
7386 # confusing error messages when building on OSX 10.6
7387 CC=gcc-4.0
7388 CPP=cpp-4.0
7389 ;;
7390 esac
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Matthias Kloseb9621712010-04-24 17:59:497392$as_echo "$CC" >&6; }
Ned Deily87adb6e2013-10-19 04:09:567393 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537394
Ned Deily78e55882021-05-02 10:55:047395 LIPO_INTEL64_FLAGS=""
Ned Deily87adb6e2013-10-19 04:09:567396 if test "${enable_universalsdk}"
7397 then
7398 case "$UNIVERSAL_ARCHS" in
7399 32-bit)
7400 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7401 LIPO_32BIT_FLAGS=""
7402 ARCH_RUN_32BIT=""
7403 ;;
7404 64-bit)
7405 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7406 LIPO_32BIT_FLAGS=""
7407 ARCH_RUN_32BIT="true"
7408 ;;
7409 all)
7410 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7411 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7412 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7413 ;;
Ned Deilyb29d0a52021-05-02 09:18:587414 universal2)
7415 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
7416 LIPO_32BIT_FLAGS=""
Ned Deily78e55882021-05-02 10:55:047417 LIPO_INTEL64_FLAGS="-extract x86_64"
Ned Deilyb29d0a52021-05-02 09:18:587418 ARCH_RUN_32BIT="true"
Ned Deily78e55882021-05-02 10:55:047419 ;;
Ned Deily87adb6e2013-10-19 04:09:567420 intel)
7421 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7422 LIPO_32BIT_FLAGS="-extract i386"
7423 ARCH_RUN_32BIT="/usr/bin/arch -i386"
7424 ;;
7425 intel-32)
7426 UNIVERSAL_ARCH_FLAGS="-arch i386"
7427 LIPO_32BIT_FLAGS=""
7428 ARCH_RUN_32BIT=""
7429 ;;
Ned Deily8c9bb722018-01-30 12:42:147430 intel-64)
7431 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7432 LIPO_32BIT_FLAGS=""
7433 ARCH_RUN_32BIT="true"
7434 ;;
Ned Deily87adb6e2013-10-19 04:09:567435 3-way)
7436 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7437 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7438 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7439 ;;
7440 *)
Ned Deilyb29d0a52021-05-02 09:18:587441 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
Ned Deily87adb6e2013-10-19 04:09:567442 ;;
7443 esac
Alexandre Vassalotti302825b2009-07-17 07:49:537444
Ned Deily87adb6e2013-10-19 04:09:567445 if test "${UNIVERSALSDK}" != "/"
7446 then
Ned Deily8c9bb722018-01-30 12:42:147447 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7448 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567449 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
Ned Deily8c9bb722018-01-30 12:42:147450 else
7451 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
7452 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567453 fi
7454 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537455
Ned Deily87adb6e2013-10-19 04:09:567456 # Calculate an appropriate deployment target for this build:
7457 # The deployment target value is used explicitly to enable certain
7458 # features are enabled (such as builtin libedit support for readline)
Raymond Hettinger15f44ab2016-08-30 17:47:497459 # through the use of Apple's Availability Macros and is used as a
Ned Deily87adb6e2013-10-19 04:09:567460 # component of the string returned by distutils.get_platform().
7461 #
7462 # Use the value from:
7463 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7464 # 2. the operating system version of the build machine if >= 10.6
7465 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7466 # below to pick either 10.3, 10.4, or 10.5 as the target.
7467 # 4. If we are running on OS X 10.2 or earlier, good luck!
Alexandre Vassalotti302825b2009-07-17 07:49:537468
Ned Deily87adb6e2013-10-19 04:09:567469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7470$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
Ned Deily36820b62014-06-25 20:44:227471 cur_target_major=`sw_vers -productVersion | \
7472 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7473 cur_target_minor=`sw_vers -productVersion | \
7474 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7475 cur_target="${cur_target_major}.${cur_target_minor}"
7476 if test ${cur_target_major} -eq 10 && \
7477 test ${cur_target_minor} -ge 3 && \
7478 test ${cur_target_minor} -le 5
Ned Deily87adb6e2013-10-19 04:09:567479 then
Ned Deily36820b62014-06-25 20:44:227480 # OS X 10.3 through 10.5
Ned Deily87adb6e2013-10-19 04:09:567481 cur_target=10.3
7482 if test ${enable_universalsdk}
7483 then
7484 case "$UNIVERSAL_ARCHS" in
7485 all|3-way|intel|64-bit)
7486 # These configurations were first supported in 10.5
7487 cur_target='10.5'
7488 ;;
7489 esac
7490 else
7491 if test `/usr/bin/arch` = "i386"
7492 then
7493 # 10.4 was the first release to support Intel archs
7494 cur_target="10.4"
7495 fi
7496 fi
7497 fi
7498 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
Ronald Oussoren3c064c12009-09-08 07:12:427499
Ned Deily87adb6e2013-10-19 04:09:567500 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7501 # environment with a value that is the same as what we'll use
7502 # in the Makefile to ensure that we'll get the same compiler
7503 # environment during configure and build time.
7504 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7505 export MACOSX_DEPLOYMENT_TARGET
7506 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7508$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
Ronald Oussoren3c064c12009-09-08 07:12:427509
Miss Islington (bot)6e665422020-11-22 01:54:087510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
7511$as_echo_n "checking if specified universal architectures work... " >&6; }
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h. */
7514#include <stdio.h>
7515int
7516main ()
7517{
7518printf("%d", 42);
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523if ac_fn_c_try_link "$LINENO"; then :
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7525$as_echo "yes" >&6; }
7526else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
7530
7531fi
7532rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534
Ned Deily87adb6e2013-10-19 04:09:567535 # end of Darwin* tests
7536 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537537 esac
7538 ;;
7539
7540*)
7541 case $ac_sys_system in
7542 OpenUNIX*|UnixWare*)
7543 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7544 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537545 SCO_SV*)
7546 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7547 ;;
7548 esac
7549 ;;
7550esac
7551
Zachary Ware5af85642015-12-21 18:09:177552# ICC needs -fp-model strict or floats behave badly
7553case "$CC" in
7554*icc*)
7555 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7556 ;;
7557esac
7558
T. Woutersddbfa2c2017-05-22 23:30:497559if test "$assertions" = 'true'; then
Alexandre Vassalotti302825b2009-07-17 07:49:537560 :
7561else
7562 OPT="-DNDEBUG $OPT"
7563fi
7564
7565if test "$ac_arch_flags"
7566then
7567 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7568fi
7569
Alexandre Vassalotti302825b2009-07-17 07:49:537570# On some compilers, pthreads are available without further options
7571# (e.g. MacOS X). On some of these systems, the compiler will not
7572# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7573# So we have to see first whether pthreads are available without
7574# options before we can check whether -Kpthread improves anything.
Matthias Kloseb9621712010-04-24 17:59:497575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7576$as_echo_n "checking whether pthreads are available without options... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097577if ${ac_cv_pthread_is_default+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497578 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537579else
Matthias Kloseb9621712010-04-24 17:59:497580 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537581 ac_cv_pthread_is_default=no
7582else
Matthias Kloseb9621712010-04-24 17:59:497583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537584/* end confdefs.h. */
7585
Stefan Krah7dba5942012-11-22 21:49:117586#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537587#include <pthread.h>
7588
7589void* routine(void* p){return NULL;}
7590
7591int main(){
7592 pthread_t p;
7593 if(pthread_create(&p,NULL,routine,NULL)!=0)
7594 return 1;
7595 (void)pthread_detach(p);
7596 return 0;
7597}
7598
7599_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497600if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537601
7602 ac_cv_pthread_is_default=yes
7603 ac_cv_kthread=no
7604 ac_cv_pthread=no
7605
7606else
Matthias Kloseb9621712010-04-24 17:59:497607 ac_cv_pthread_is_default=no
Alexandre Vassalotti302825b2009-07-17 07:49:537608fi
Matthias Kloseb9621712010-04-24 17:59:497609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537611fi
7612
7613
Alexandre Vassalotti302825b2009-07-17 07:49:537614fi
7615
Matthias Kloseb9621712010-04-24 17:59:497616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7617$as_echo "$ac_cv_pthread_is_default" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537618
7619
7620if test $ac_cv_pthread_is_default = yes
7621then
7622 ac_cv_kpthread=no
7623else
7624# -Kpthread, if available, provides the right #defines
7625# and linker options to make pthread_create available
7626# Some compilers won't report that they do not support -Kpthread,
7627# so we need to run a program to see whether it really made the
7628# function available.
Matthias Kloseb9621712010-04-24 17:59:497629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7630$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097631if ${ac_cv_kpthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497632 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537633else
7634 ac_save_cc="$CC"
7635CC="$CC -Kpthread"
Matthias Kloseb9621712010-04-24 17:59:497636if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537637 ac_cv_kpthread=no
7638else
Matthias Kloseb9621712010-04-24 17:59:497639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537640/* end confdefs.h. */
7641
Stefan Krah7dba5942012-11-22 21:49:117642#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537643#include <pthread.h>
7644
7645void* routine(void* p){return NULL;}
7646
7647int main(){
7648 pthread_t p;
7649 if(pthread_create(&p,NULL,routine,NULL)!=0)
7650 return 1;
7651 (void)pthread_detach(p);
7652 return 0;
7653}
7654
7655_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497656if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537657 ac_cv_kpthread=yes
7658else
Matthias Kloseb9621712010-04-24 17:59:497659 ac_cv_kpthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537660fi
Matthias Kloseb9621712010-04-24 17:59:497661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7662 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537663fi
7664
Alexandre Vassalotti302825b2009-07-17 07:49:537665CC="$ac_save_cc"
7666fi
7667
Matthias Kloseb9621712010-04-24 17:59:497668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7669$as_echo "$ac_cv_kpthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537670fi
7671
7672if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7673then
7674# -Kthread, if available, provides the right #defines
7675# and linker options to make pthread_create available
7676# Some compilers won't report that they do not support -Kthread,
7677# so we need to run a program to see whether it really made the
7678# function available.
Matthias Kloseb9621712010-04-24 17:59:497679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7680$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097681if ${ac_cv_kthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497682 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537683else
7684 ac_save_cc="$CC"
7685CC="$CC -Kthread"
Matthias Kloseb9621712010-04-24 17:59:497686if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537687 ac_cv_kthread=no
7688else
Matthias Kloseb9621712010-04-24 17:59:497689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537690/* end confdefs.h. */
7691
Stefan Krah7dba5942012-11-22 21:49:117692#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537693#include <pthread.h>
7694
7695void* routine(void* p){return NULL;}
7696
7697int main(){
7698 pthread_t p;
7699 if(pthread_create(&p,NULL,routine,NULL)!=0)
7700 return 1;
7701 (void)pthread_detach(p);
7702 return 0;
7703}
7704
7705_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497706if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537707 ac_cv_kthread=yes
7708else
Matthias Kloseb9621712010-04-24 17:59:497709 ac_cv_kthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537710fi
Matthias Kloseb9621712010-04-24 17:59:497711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7712 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537713fi
7714
Alexandre Vassalotti302825b2009-07-17 07:49:537715CC="$ac_save_cc"
7716fi
7717
Matthias Kloseb9621712010-04-24 17:59:497718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7719$as_echo "$ac_cv_kthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537720fi
7721
7722if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7723then
7724# -pthread, if available, provides the right #defines
7725# and linker options to make pthread_create available
7726# Some compilers won't report that they do not support -pthread,
7727# so we need to run a program to see whether it really made the
7728# function available.
Matthias Kloseb9621712010-04-24 17:59:497729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7730$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
doko@python.org7981f202013-01-25 14:33:257731if ${ac_cv_pthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497732 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537733else
7734 ac_save_cc="$CC"
7735CC="$CC -pthread"
Matthias Kloseb9621712010-04-24 17:59:497736if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537737 ac_cv_pthread=no
7738else
Matthias Kloseb9621712010-04-24 17:59:497739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537740/* end confdefs.h. */
7741
Stefan Krah7dba5942012-11-22 21:49:117742#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537743#include <pthread.h>
7744
7745void* routine(void* p){return NULL;}
7746
7747int main(){
7748 pthread_t p;
7749 if(pthread_create(&p,NULL,routine,NULL)!=0)
7750 return 1;
7751 (void)pthread_detach(p);
7752 return 0;
7753}
7754
7755_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497756if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537757 ac_cv_pthread=yes
7758else
Matthias Kloseb9621712010-04-24 17:59:497759 ac_cv_pthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537760fi
Matthias Kloseb9621712010-04-24 17:59:497761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7762 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537763fi
7764
Alexandre Vassalotti302825b2009-07-17 07:49:537765CC="$ac_save_cc"
7766fi
7767
Matthias Kloseb9621712010-04-24 17:59:497768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7769$as_echo "$ac_cv_pthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537770fi
7771
7772# If we have set a CC compiler flag for thread support then
7773# check if it works for CXX, too.
7774ac_cv_cxx_thread=no
7775if test ! -z "$CXX"
7776then
Matthias Kloseb9621712010-04-24 17:59:497777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7778$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537779ac_save_cxx="$CXX"
7780
7781if test "$ac_cv_kpthread" = "yes"
7782then
7783 CXX="$CXX -Kpthread"
7784 ac_cv_cxx_thread=yes
7785elif test "$ac_cv_kthread" = "yes"
7786then
7787 CXX="$CXX -Kthread"
7788 ac_cv_cxx_thread=yes
7789elif test "$ac_cv_pthread" = "yes"
7790then
7791 CXX="$CXX -pthread"
7792 ac_cv_cxx_thread=yes
7793fi
7794
7795if test $ac_cv_cxx_thread = yes
7796then
7797 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7798 $CXX -c conftest.$ac_ext 2>&5
7799 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7800 && test -s conftest$ac_exeext && ./conftest$ac_exeext
7801 then
7802 ac_cv_cxx_thread=yes
7803 else
7804 ac_cv_cxx_thread=no
7805 fi
7806 rm -fr conftest*
7807fi
Matthias Kloseb9621712010-04-24 17:59:497808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7809$as_echo "$ac_cv_cxx_thread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537810fi
7811CXX="$ac_save_cxx"
7812
7813
7814# checks for header files
Matthias Kloseb9621712010-04-24 17:59:497815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7816$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097817if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497818 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537819else
Matthias Kloseb9621712010-04-24 17:59:497820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537821/* end confdefs.h. */
7822#include <stdlib.h>
7823#include <stdarg.h>
7824#include <string.h>
7825#include <float.h>
7826
7827int
7828main ()
7829{
7830
7831 ;
7832 return 0;
7833}
7834_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497835if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537836 ac_cv_header_stdc=yes
7837else
Matthias Kloseb9621712010-04-24 17:59:497838 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537839fi
Alexandre Vassalotti302825b2009-07-17 07:49:537840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841
7842if test $ac_cv_header_stdc = yes; then
7843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537845/* end confdefs.h. */
7846#include <string.h>
7847
7848_ACEOF
7849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497850 $EGREP "memchr" >/dev/null 2>&1; then :
7851
Alexandre Vassalotti302825b2009-07-17 07:49:537852else
7853 ac_cv_header_stdc=no
7854fi
Matthias Klosec80c93f2010-04-24 17:04:357855rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537856
7857fi
7858
7859if test $ac_cv_header_stdc = yes; then
7860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537862/* end confdefs.h. */
7863#include <stdlib.h>
7864
7865_ACEOF
7866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497867 $EGREP "free" >/dev/null 2>&1; then :
7868
Alexandre Vassalotti302825b2009-07-17 07:49:537869else
7870 ac_cv_header_stdc=no
7871fi
Matthias Klosec80c93f2010-04-24 17:04:357872rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537873
7874fi
7875
7876if test $ac_cv_header_stdc = yes; then
7877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Matthias Kloseb9621712010-04-24 17:59:497878 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537879 :
7880else
Matthias Kloseb9621712010-04-24 17:59:497881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537882/* end confdefs.h. */
7883#include <ctype.h>
7884#include <stdlib.h>
7885#if ((' ' & 0x0FF) == 0x020)
7886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7888#else
7889# define ISLOWER(c) \
7890 (('a' <= (c) && (c) <= 'i') \
7891 || ('j' <= (c) && (c) <= 'r') \
7892 || ('s' <= (c) && (c) <= 'z'))
7893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7894#endif
7895
7896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7897int
7898main ()
7899{
7900 int i;
7901 for (i = 0; i < 256; i++)
7902 if (XOR (islower (i), ISLOWER (i))
7903 || toupper (i) != TOUPPER (i))
7904 return 2;
7905 return 0;
7906}
7907_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497908if ac_fn_c_try_run "$LINENO"; then :
7909
Alexandre Vassalotti302825b2009-07-17 07:49:537910else
Matthias Kloseb9621712010-04-24 17:59:497911 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537912fi
Matthias Kloseb9621712010-04-24 17:59:497913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537915fi
7916
Alexandre Vassalotti302825b2009-07-17 07:49:537917fi
7918fi
Matthias Kloseb9621712010-04-24 17:59:497919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7920$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537921if test $ac_cv_header_stdc = yes; then
7922
Matthias Kloseb9621712010-04-24 17:59:497923$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:537924
7925fi
7926
stratakise768c862018-01-23 15:11:247927for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
Thomas Wouters0e3f5912006-08-11 14:57:127928fcntl.h grp.h \
doko@ubuntu.com1a4f5612014-04-17 18:13:447929ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
Benjamin Peterson4fe55102016-09-06 18:58:017930sched.h shadow.h signal.h stropts.h termios.h \
Benjamin Petersonea137402018-09-14 04:57:317931utime.h \
Jesus Cead8b9ae62011-11-14 18:07:417932poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
Antoine Pitroubcf2b592012-02-08 22:28:367933sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
Martin v. Löwis9d6c6692012-02-03 16:44:587934sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
Benjamin Petersonfb2ae152016-12-20 07:54:257935sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
Martin v. Löwis9d6c6692012-02-03 16:44:587936sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
Georg Brandl941f9562011-02-25 15:21:477937sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
Gregory P. Smith3b1f2c32011-05-15 19:18:237938libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Benjamin Peterson93b2dee2016-09-09 17:22:457939linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
Zackery Spytz43fdbd22019-05-29 19:57:077940sys/endian.h sys/sysmacros.h linux/memfd.h sys/memfd.h sys/mman.h
Matthias Kloseb9621712010-04-24 17:59:497941do :
7942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Ross Lagerwallb0ae53d2011-06-10 05:30:307944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037945 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037947_ACEOF
7948
7949fi
7950
Guido van Rossum627b2d71993-12-24 10:39:167951done
7952
Guido van Rossum76be6ed1995-01-02 18:33:547953ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:037954for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Matthias Kloseb9621712010-04-24 17:59:497955 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7957$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097958if eval \${$as_ac_Header+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497959 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:167960else
Matthias Kloseb9621712010-04-24 17:59:497961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047962/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547963#include <sys/types.h>
7964#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:037965
Martin v. Löwis11437992002-04-12 09:54:037966int
7967main ()
7968{
7969if ((DIR *) 0)
7970return 0;
7971 ;
7972 return 0;
7973}
7974_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497975if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:037976 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:267977else
Matthias Kloseb9621712010-04-24 17:59:497978 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:547979fi
Thomas Wouters47b49bf2007-08-30 22:15:337980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:267981fi
Matthias Kloseb9621712010-04-24 17:59:497982eval ac_res=\$$as_ac_Header
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7984$as_echo "$ac_res" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:307985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037986 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497987#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037988_ACEOF
7989
7990ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:267991fi
Martin v. Löwis11437992002-04-12 09:54:037992
Guido van Rossum76be6ed1995-01-02 18:33:547993done
7994# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7995if test $ac_header_dirent = dirent.h; then
Matthias Kloseb9621712010-04-24 17:59:497996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7997$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097998if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497999 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:548000else
Martin v. Löwis11437992002-04-12 09:54:038001 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:498002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048003/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038004
Thomas Wouters47b49bf2007-08-30 22:15:338005/* Override any GCC internal prototype to avoid an error.
8006 Use char because int might match the return type of a GCC
8007 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038008#ifdef __cplusplus
8009extern "C"
8010#endif
Martin v. Löwis11437992002-04-12 09:54:038011char opendir ();
Martin v. Löwis11437992002-04-12 09:54:038012int
8013main ()
8014{
Thomas Wouters47b49bf2007-08-30 22:15:338015return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038016 ;
8017 return 0;
8018}
8019_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338020for ac_lib in '' dir; do
8021 if test -z "$ac_lib"; then
8022 ac_res="none required"
8023 else
8024 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338026 fi
Matthias Kloseb9621712010-04-24 17:59:498027 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338028 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478029fi
Matthias Kloseb9621712010-04-24 17:59:498030rm -f core conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098032 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338033 break
Skip Montanaroeb33e5a2007-08-17 12:57:418034fi
Thomas Wouters47b49bf2007-08-30 22:15:338035done
Victor Stinnere0be4232011-10-25 11:06:098036if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498037
Thomas Wouters47b49bf2007-08-30 22:15:338038else
8039 ac_cv_search_opendir=no
8040fi
8041rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038042LIBS=$ac_func_search_save_LIBS
8043fi
Matthias Kloseb9621712010-04-24 17:59:498044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8045$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338046ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498047if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:268049
Guido van Rossum76be6ed1995-01-02 18:33:548050fi
Martin v. Löwis11437992002-04-12 09:54:038051
Michael W. Hudson54241132001-12-07 15:38:268052else
Matthias Kloseb9621712010-04-24 17:59:498053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8054$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098055if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498056 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038057else
8058 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:498059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048060/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038061
Thomas Wouters47b49bf2007-08-30 22:15:338062/* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038065#ifdef __cplusplus
8066extern "C"
8067#endif
Martin v. Löwis11437992002-04-12 09:54:038068char opendir ();
Martin v. Löwis11437992002-04-12 09:54:038069int
8070main ()
8071{
Thomas Wouters47b49bf2007-08-30 22:15:338072return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038073 ;
8074 return 0;
8075}
8076_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338077for ac_lib in '' x; do
8078 if test -z "$ac_lib"; then
8079 ac_res="none required"
8080 else
8081 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338083 fi
Matthias Kloseb9621712010-04-24 17:59:498084 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338085 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478086fi
Matthias Kloseb9621712010-04-24 17:59:498087rm -f core conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098089 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338090 break
Skip Montanaroeb33e5a2007-08-17 12:57:418091fi
Thomas Wouters47b49bf2007-08-30 22:15:338092done
Victor Stinnere0be4232011-10-25 11:06:098093if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498094
Thomas Wouters47b49bf2007-08-30 22:15:338095else
8096 ac_cv_search_opendir=no
8097fi
8098rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038099LIBS=$ac_func_search_save_LIBS
8100fi
Matthias Kloseb9621712010-04-24 17:59:498101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8102$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338103ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498104if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:038106
Guido van Rossum76be6ed1995-01-02 18:33:548107fi
8108
8109fi
Guido van Rossum627b2d71993-12-24 10:39:168110
Matthias Kloseb9621712010-04-24 17:59:498111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8112$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098113if ${ac_cv_header_sys_types_h_makedev+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498114 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:308115else
Matthias Kloseb9621712010-04-24 17:59:498116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048117/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:308118#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:308119int
8120main ()
8121{
8122return makedev(0, 0);
8123 ;
8124 return 0;
8125}
8126_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498127if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:308128 ac_cv_header_sys_types_h_makedev=yes
8129else
Matthias Kloseb9621712010-04-24 17:59:498130 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:308131fi
Matthias Kloseb9621712010-04-24 17:59:498132rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:308134
8135fi
Matthias Kloseb9621712010-04-24 17:59:498136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8137$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:308138
8139if test $ac_cv_header_sys_types_h_makedev = no; then
Matthias Kloseb9621712010-04-24 17:59:498140ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098141if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048142
Matthias Kloseb9621712010-04-24 17:59:498143$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308144
8145fi
8146
8147
8148
8149 if test $ac_cv_header_sys_mkdev_h = no; then
Matthias Kloseb9621712010-04-24 17:59:498150 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098151if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048152
Matthias Kloseb9621712010-04-24 17:59:498153$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308154
8155fi
8156
8157
8158 fi
8159fi
8160
Michael W. Hudson54241132001-12-07 15:38:268161
Benjamin Peterson93b2dee2016-09-09 17:22:458162# bluetooth/bluetooth.h has been known to not compile with -std=c99.
8163# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
8164SAVE_CFLAGS=$CFLAGS
8165CFLAGS="-std=c99 $CFLAGS"
8166for ac_header in bluetooth/bluetooth.h
8167do :
8168 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8169if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8170 cat >>confdefs.h <<_ACEOF
8171#define HAVE_BLUETOOTH_BLUETOOTH_H 1
8172_ACEOF
8173
8174fi
8175
8176done
8177
8178CFLAGS=$SAVE_CFLAGS
8179
Gregory P. Smith3b1f2c32011-05-15 19:18:238180# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
8181for ac_header in net/if.h
8182do :
8183 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
8184#ifdef STDC_HEADERS
8185# include <stdlib.h>
8186# include <stddef.h>
8187#else
8188# ifdef HAVE_STDLIB_H
8189# include <stdlib.h>
8190# endif
8191#endif
8192#ifdef HAVE_SYS_SOCKET_H
8193# include <sys/socket.h>
8194#endif
8195
8196"
Victor Stinnere0be4232011-10-25 11:06:098197if test "x$ac_cv_header_net_if_h" = xyes; then :
Gregory P. Smith3b1f2c32011-05-15 19:18:238198 cat >>confdefs.h <<_ACEOF
8199#define HAVE_NET_IF_H 1
8200_ACEOF
8201
8202fi
8203
8204done
8205
8206
Martin v. Löwis11017b12006-01-14 18:12:578207# On Linux, netlink.h requires asm/types.h
Martin v. Löwis11017b12006-01-14 18:12:578208for ac_header in linux/netlink.h
Matthias Kloseb9621712010-04-24 17:59:498209do :
8210 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
Martin v. Löwis11017b12006-01-14 18:12:578211#ifdef HAVE_ASM_TYPES_H
8212#include <asm/types.h>
8213#endif
8214#ifdef HAVE_SYS_SOCKET_H
8215#include <sys/socket.h>
8216#endif
8217
Matthias Kloseb9621712010-04-24 17:59:498218"
Victor Stinnere0be4232011-10-25 11:06:098219if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
Martin v. Löwis11017b12006-01-14 18:12:578220 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498221#define HAVE_LINUX_NETLINK_H 1
Martin v. Löwis11017b12006-01-14 18:12:578222_ACEOF
8223
8224fi
8225
8226done
8227
8228
Bjorn Anderssonbb816512018-09-26 13:47:528229# On Linux, qrtr.h requires asm/types.h
8230for ac_header in linux/qrtr.h
8231do :
8232 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
8233#ifdef HAVE_ASM_TYPES_H
8234#include <asm/types.h>
8235#endif
8236#ifdef HAVE_SYS_SOCKET_H
8237#include <sys/socket.h>
8238#endif
8239
8240"
8241if test "x$ac_cv_header_linux_qrtr_h" = xyes; then :
8242 cat >>confdefs.h <<_ACEOF
8243#define HAVE_LINUX_QRTR_H 1
8244_ACEOF
8245
8246fi
8247
8248done
8249
8250
caaveryeffc12f2017-09-06 22:18:108251for ac_header in linux/vm_sockets.h
8252do :
8253 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
8254#ifdef HAVE_SYS_SOCKET_H
8255#include <sys/socket.h>
8256#endif
8257
8258"
8259if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then :
8260 cat >>confdefs.h <<_ACEOF
8261#define HAVE_LINUX_VM_SOCKETS_H 1
8262_ACEOF
8263
8264fi
8265
8266done
8267
8268
Charles-François Natali47413c12011-10-06 17:47:448269# On Linux, can.h and can/raw.h require sys/socket.h
Charles-François Natali773e42d2013-02-05 18:42:018270for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
Charles-François Natali47413c12011-10-06 17:47:448271do :
8272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8274#ifdef HAVE_SYS_SOCKET_H
8275#include <sys/socket.h>
8276#endif
8277
8278"
8279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8280 cat >>confdefs.h <<_ACEOF
8281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282_ACEOF
8283
8284fi
8285
8286done
8287
8288
Guido van Rossum627b2d71993-12-24 10:39:168289# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:298290was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:498291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8292$as_echo_n "checking for clock_t in time.h... " >&6; }
8293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048294/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548295#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:038296
8297_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498299 $EGREP "clock_t" >/dev/null 2>&1; then :
Guido van Rossumda88dad1995-01-26 00:46:298300 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:168301else
Martin v. Löwis11437992002-04-12 09:54:038302
8303
Matthias Kloseb9621712010-04-24 17:59:498304$as_echo "#define clock_t long" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:168305
Martin v. Löwisc45929e2002-04-06 10:10:498306
Guido van Rossum627b2d71993-12-24 10:39:168307fi
Matthias Klosec80c93f2010-04-24 17:04:358308rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168309
Matthias Kloseb9621712010-04-24 17:59:498310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8311$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:298312
Matthias Kloseb9621712010-04-24 17:59:498313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8314$as_echo_n "checking for makedev... " >&6; }
8315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048316/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:448317
Jesus Cea740f53a2010-04-28 11:35:308318#if defined(MAJOR_IN_MKDEV)
8319#include <sys/mkdev.h>
8320#elif defined(MAJOR_IN_SYSMACROS)
8321#include <sys/sysmacros.h>
8322#else
8323#include <sys/types.h>
8324#endif
8325
Neal Norwitz11690112002-07-30 01:08:288326int
8327main ()
8328{
Jesus Cea740f53a2010-04-28 11:35:308329
8330 makedev(0, 0)
Neal Norwitz11690112002-07-30 01:08:288331 ;
8332 return 0;
8333}
Matthias Kloseb159a552010-04-25 21:00:448334
Neal Norwitz11690112002-07-30 01:08:288335_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498336if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:288337 ac_cv_has_makedev=yes
8338else
Matthias Kloseb9621712010-04-24 17:59:498339 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:288340fi
Matthias Kloseb9621712010-04-24 17:59:498341rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8344$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:288345if test "$ac_cv_has_makedev" = "yes"; then
8346
Matthias Kloseb9621712010-04-24 17:59:498347$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:288348
8349fi
8350
Christian Heimes985ecdc2013-11-20 10:46:188351# byte swapping
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8353$as_echo_n "checking for le64toh... " >&6; }
8354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h. */
8356
8357#ifdef HAVE_ENDIAN_H
8358#include <endian.h>
8359#elif defined(HAVE_SYS_ENDIAN_H)
8360#include <sys/endian.h>
8361#endif
8362
8363int
8364main ()
8365{
8366
8367 le64toh(1)
8368 ;
8369 return 0;
8370}
8371
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"; then :
8374 ac_cv_has_le64toh=yes
8375else
8376 ac_cv_has_le64toh=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8381$as_echo "$ac_cv_has_le64toh" >&6; }
8382if test "$ac_cv_has_le64toh" = "yes"; then
8383
8384$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8385
8386fi
8387
Martin v. Löwis399a6892002-10-04 10:22:028388use_lfs=yes
doko@ubuntu.com006a56c2016-06-14 08:15:258389# Don't use largefile support for GNU/Hurd
8390case $ac_sys_system in GNU*)
8391 use_lfs=no
8392esac
8393
Martin v. Löwis399a6892002-10-04 10:22:028394if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:398395# Two defines needed to enable largefile support on various platforms
8396# These may affect some typedefs
Georg Brandl216e4042011-02-19 08:58:238397case $ac_sys_system/$ac_sys_release in
8398AIX*)
8399
8400$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8401
8402 ;;
8403esac
Guido van Rossum810cc512001-09-09 23:51:398404
Matthias Kloseb9621712010-04-24 17:59:498405$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038406
8407
Matthias Kloseb9621712010-04-24 17:59:498408$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
Guido van Rossum810cc512001-09-09 23:51:398409
Martin v. Löwis399a6892002-10-04 10:22:028410fi
Michael W. Hudson54241132001-12-07 15:38:268411
Guido van Rossum84e7b241996-08-19 21:59:008412# Add some code to confdefs.h so that the test for off_t works on SCO
8413cat >> confdefs.h <<\EOF
8414#if defined(SCO_DS)
8415#undef _OFF_T
8416#endif
8417EOF
8418
Guido van Rossumef2255b2000-03-10 22:30:298419# Type availability checks
Matthias Kloseb9621712010-04-24 17:59:498420ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098421if test "x$ac_cv_type_mode_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048422
Guido van Rossum76be6ed1995-01-02 18:33:548423else
Martin v. Löwis11437992002-04-12 09:54:038424
8425cat >>confdefs.h <<_ACEOF
8426#define mode_t int
8427_ACEOF
8428
8429fi
8430
Matthias Kloseb9621712010-04-24 17:59:498431ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098432if test "x$ac_cv_type_off_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048433
Guido van Rossum76be6ed1995-01-02 18:33:548434else
Martin v. Löwis11437992002-04-12 09:54:038435
8436cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338437#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:038438_ACEOF
8439
8440fi
8441
Matthias Kloseb9621712010-04-24 17:59:498442ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098443if test "x$ac_cv_type_pid_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048444
Guido van Rossum76be6ed1995-01-02 18:33:548445else
Martin v. Löwis11437992002-04-12 09:54:038446
8447cat >>confdefs.h <<_ACEOF
8448#define pid_t int
8449_ACEOF
8450
8451fi
8452
Guido van Rossum48bdbfc1996-05-28 22:53:488453
Martin v. Löwis11437992002-04-12 09:54:038454cat >>confdefs.h <<_ACEOF
Matthias Klosebada4c32010-04-25 21:18:488455#define RETSIGTYPE void
Martin v. Löwis11437992002-04-12 09:54:038456_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:168457
Matthias Kloseb9621712010-04-24 17:59:498458ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098459if test "x$ac_cv_type_size_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048460
Guido van Rossum76be6ed1995-01-02 18:33:548461else
Martin v. Löwis11437992002-04-12 09:54:038462
8463cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338464#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:038465_ACEOF
8466
8467fi
8468
Matthias Kloseb9621712010-04-24 17:59:498469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8470$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098471if ${ac_cv_type_uid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498472 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038473else
Matthias Kloseb9621712010-04-24 17:59:498474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048475/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548476#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:038477
8478_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498480 $EGREP "uid_t" >/dev/null 2>&1; then :
Guido van Rossum76be6ed1995-01-02 18:33:548481 ac_cv_type_uid_t=yes
8482else
Guido van Rossum76be6ed1995-01-02 18:33:548483 ac_cv_type_uid_t=no
8484fi
Matthias Klosec80c93f2010-04-24 17:04:358485rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168486
Guido van Rossum76be6ed1995-01-02 18:33:548487fi
Matthias Kloseb9621712010-04-24 17:59:498488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8489$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:268490if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:548491
Matthias Kloseb9621712010-04-24 17:59:498492$as_echo "#define uid_t int" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038493
8494
Matthias Kloseb9621712010-04-24 17:59:498495$as_echo "#define gid_t int" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:548496
8497fi
8498
Mark Dickinson983bc162012-12-02 12:11:388499
Matthias Kloseb9621712010-04-24 17:59:498500ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098501if test "x$ac_cv_type_ssize_t" = xyes; then :
Thomas Wouters47b49bf2007-08-30 22:15:338502
Matthias Kloseb9621712010-04-24 17:59:498503$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
Martin v. Löwis18e16552006-02-15 17:27:458504
8505fi
8506
Stefan Krah1919b7e2012-03-21 17:25:238507ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8508if test "x$ac_cv_type___uint128_t" = xyes; then :
8509
8510$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8511
8512fi
8513
Jack Jansendd19cf82001-12-06 22:36:178514
Michael W. Hudson54241132001-12-07 15:38:268515# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:128516# ANSI C requires sizeof(char) == 1, so no need to check it
Thomas Wouters47b49bf2007-08-30 22:15:338517# The cast to long int works around a bug in the HP C Compiler
8518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8520# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8522$as_echo_n "checking size of int... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098523if ${ac_cv_sizeof_int+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498524 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038525else
Matthias Kloseb9621712010-04-24 17:59:498526 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038527
Martin v. Löwis11437992002-04-12 09:54:038528else
Matthias Kloseb9621712010-04-24 17:59:498529 if test "$ac_cv_type_int" = yes; then
8530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308532as_fn_error 77 "cannot compute sizeof (int)
Victor Stinnere0be4232011-10-25 11:06:098533See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338534 else
8535 ac_cv_sizeof_int=0
8536 fi
Martin v. Löwis11437992002-04-12 09:54:038537fi
Matthias Kloseb9621712010-04-24 17:59:498538
Martin v. Löwis11437992002-04-12 09:54:038539fi
Matthias Kloseb9621712010-04-24 17:59:498540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8541$as_echo "$ac_cv_sizeof_int" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338542
8543
8544
Martin v. Löwis11437992002-04-12 09:54:038545cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168546#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:038547_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168548
8549
Thomas Wouters47b49bf2007-08-30 22:15:338550# The cast to long int works around a bug in the HP C Compiler
8551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8553# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8555$as_echo_n "checking size of long... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098556if ${ac_cv_sizeof_long+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498557 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038558else
Matthias Kloseb9621712010-04-24 17:59:498559 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038560
Martin v. Löwis11437992002-04-12 09:54:038561else
Matthias Kloseb9621712010-04-24 17:59:498562 if test "$ac_cv_type_long" = yes; then
8563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308565as_fn_error 77 "cannot compute sizeof (long)
Victor Stinnere0be4232011-10-25 11:06:098566See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338567 else
8568 ac_cv_sizeof_long=0
8569 fi
Martin v. Löwis11437992002-04-12 09:54:038570fi
Matthias Kloseb9621712010-04-24 17:59:498571
Martin v. Löwis11437992002-04-12 09:54:038572fi
Matthias Kloseb9621712010-04-24 17:59:498573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8574$as_echo "$ac_cv_sizeof_long" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338575
8576
8577
Martin v. Löwis11437992002-04-12 09:54:038578cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168579#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:038580_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168581
8582
Thomas Wouters47b49bf2007-08-30 22:15:338583# The cast to long int works around a bug in the HP C Compiler
8584# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8585# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8586# This bug is HP SR number 8606223364.
Benjamin Petersoned4aa832016-09-06 00:44:188587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8588$as_echo_n "checking size of long long... " >&6; }
8589if ${ac_cv_sizeof_long_long+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8593
8594else
8595 if test "$ac_cv_type_long_long" = yes; then
8596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8598as_fn_error 77 "cannot compute sizeof (long long)
8599See \`config.log' for more details" "$LINENO" 5; }
8600 else
8601 ac_cv_sizeof_long_long=0
8602 fi
8603fi
8604
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8607$as_echo "$ac_cv_sizeof_long_long" >&6; }
8608
8609
8610
8611cat >>confdefs.h <<_ACEOF
8612#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8613_ACEOF
8614
8615
8616# The cast to long int works around a bug in the HP C Compiler
8617# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8618# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8619# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8621$as_echo_n "checking size of void *... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098622if ${ac_cv_sizeof_void_p+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498623 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038624else
Matthias Kloseb9621712010-04-24 17:59:498625 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038626
Martin v. Löwis11437992002-04-12 09:54:038627else
Matthias Kloseb9621712010-04-24 17:59:498628 if test "$ac_cv_type_void_p" = yes; then
8629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308631as_fn_error 77 "cannot compute sizeof (void *)
Victor Stinnere0be4232011-10-25 11:06:098632See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338633 else
8634 ac_cv_sizeof_void_p=0
8635 fi
Martin v. Löwis11437992002-04-12 09:54:038636fi
Matthias Kloseb9621712010-04-24 17:59:498637
Martin v. Löwis11437992002-04-12 09:54:038638fi
Matthias Kloseb9621712010-04-24 17:59:498639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8640$as_echo "$ac_cv_sizeof_void_p" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338641
8642
8643
Martin v. Löwis11437992002-04-12 09:54:038644cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158645#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:038646_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158647
8648
Thomas Wouters47b49bf2007-08-30 22:15:338649# The cast to long int works around a bug in the HP C Compiler
8650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8652# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8654$as_echo_n "checking size of short... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098655if ${ac_cv_sizeof_short+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498656 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038657else
Matthias Kloseb9621712010-04-24 17:59:498658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038659
Martin v. Löwis11437992002-04-12 09:54:038660else
Matthias Kloseb9621712010-04-24 17:59:498661 if test "$ac_cv_type_short" = yes; then
8662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308664as_fn_error 77 "cannot compute sizeof (short)
Victor Stinnere0be4232011-10-25 11:06:098665See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338666 else
8667 ac_cv_sizeof_short=0
8668 fi
Martin v. Löwis11437992002-04-12 09:54:038669fi
Matthias Kloseb9621712010-04-24 17:59:498670
Martin v. Löwis11437992002-04-12 09:54:038671fi
Matthias Kloseb9621712010-04-24 17:59:498672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8673$as_echo "$ac_cv_sizeof_short" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338674
8675
8676
Martin v. Löwis11437992002-04-12 09:54:038677cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298678#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:038679_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298680
8681
Thomas Wouters47b49bf2007-08-30 22:15:338682# The cast to long int works around a bug in the HP C Compiler
8683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8685# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8687$as_echo_n "checking size of float... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098688if ${ac_cv_sizeof_float+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498689 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038690else
Matthias Kloseb9621712010-04-24 17:59:498691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038692
Martin v. Löwis11437992002-04-12 09:54:038693else
Matthias Kloseb9621712010-04-24 17:59:498694 if test "$ac_cv_type_float" = yes; then
8695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308697as_fn_error 77 "cannot compute sizeof (float)
Victor Stinnere0be4232011-10-25 11:06:098698See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338699 else
8700 ac_cv_sizeof_float=0
8701 fi
Martin v. Löwis11437992002-04-12 09:54:038702fi
Matthias Kloseb9621712010-04-24 17:59:498703
Martin v. Löwis11437992002-04-12 09:54:038704fi
Matthias Kloseb9621712010-04-24 17:59:498705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8706$as_echo "$ac_cv_sizeof_float" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338707
8708
8709
Martin v. Löwis11437992002-04-12 09:54:038710cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298711#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:038712_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298713
8714
Thomas Wouters47b49bf2007-08-30 22:15:338715# The cast to long int works around a bug in the HP C Compiler
8716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8718# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8720$as_echo_n "checking size of double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098721if ${ac_cv_sizeof_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498722 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038723else
Matthias Kloseb9621712010-04-24 17:59:498724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038725
Martin v. Löwis11437992002-04-12 09:54:038726else
Matthias Kloseb9621712010-04-24 17:59:498727 if test "$ac_cv_type_double" = yes; then
8728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308730as_fn_error 77 "cannot compute sizeof (double)
Victor Stinnere0be4232011-10-25 11:06:098731See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338732 else
8733 ac_cv_sizeof_double=0
8734 fi
Martin v. Löwis11437992002-04-12 09:54:038735fi
Matthias Kloseb9621712010-04-24 17:59:498736
Martin v. Löwis11437992002-04-12 09:54:038737fi
Matthias Kloseb9621712010-04-24 17:59:498738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8739$as_echo "$ac_cv_sizeof_double" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338740
8741
8742
Martin v. Löwis11437992002-04-12 09:54:038743cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298744#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:038745_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298746
8747
Thomas Wouters47b49bf2007-08-30 22:15:338748# The cast to long int works around a bug in the HP C Compiler
8749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8751# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8753$as_echo_n "checking size of fpos_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098754if ${ac_cv_sizeof_fpos_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498755 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038756else
Matthias Kloseb9621712010-04-24 17:59:498757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038758
Martin v. Löwis11437992002-04-12 09:54:038759else
Matthias Kloseb9621712010-04-24 17:59:498760 if test "$ac_cv_type_fpos_t" = yes; then
8761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308763as_fn_error 77 "cannot compute sizeof (fpos_t)
Victor Stinnere0be4232011-10-25 11:06:098764See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338765 else
8766 ac_cv_sizeof_fpos_t=0
8767 fi
Martin v. Löwis11437992002-04-12 09:54:038768fi
Matthias Kloseb9621712010-04-24 17:59:498769
Martin v. Löwis11437992002-04-12 09:54:038770fi
Matthias Kloseb9621712010-04-24 17:59:498771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8772$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338773
8774
8775
Martin v. Löwis11437992002-04-12 09:54:038776cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538777#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:038778_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538779
Michael W. Hudson54241132001-12-07 15:38:268780
Thomas Wouters47b49bf2007-08-30 22:15:338781# The cast to long int works around a bug in the HP C Compiler
8782# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8783# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8784# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8786$as_echo_n "checking size of size_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098787if ${ac_cv_sizeof_size_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498788 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:458789else
Matthias Kloseb9621712010-04-24 17:59:498790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Martin v. Löwis18e16552006-02-15 17:27:458791
Martin v. Löwis18e16552006-02-15 17:27:458792else
Matthias Kloseb9621712010-04-24 17:59:498793 if test "$ac_cv_type_size_t" = yes; then
8794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308796as_fn_error 77 "cannot compute sizeof (size_t)
Victor Stinnere0be4232011-10-25 11:06:098797See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338798 else
8799 ac_cv_sizeof_size_t=0
8800 fi
Martin v. Löwis18e16552006-02-15 17:27:458801fi
Matthias Kloseb9621712010-04-24 17:59:498802
Martin v. Löwis18e16552006-02-15 17:27:458803fi
Matthias Kloseb9621712010-04-24 17:59:498804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8805$as_echo "$ac_cv_sizeof_size_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338806
8807
8808
Martin v. Löwis18e16552006-02-15 17:27:458809cat >>confdefs.h <<_ACEOF
8810#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8811_ACEOF
8812
8813
Christian Heimes400adb02008-02-01 08:12:038814# The cast to long int works around a bug in the HP C Compiler
8815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8817# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8819$as_echo_n "checking size of pid_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098820if ${ac_cv_sizeof_pid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498821 $as_echo_n "(cached) " >&6
Christian Heimes400adb02008-02-01 08:12:038822else
Matthias Kloseb9621712010-04-24 17:59:498823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
Christian Heimes400adb02008-02-01 08:12:038824
Christian Heimes400adb02008-02-01 08:12:038825else
Matthias Kloseb9621712010-04-24 17:59:498826 if test "$ac_cv_type_pid_t" = yes; then
8827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308829as_fn_error 77 "cannot compute sizeof (pid_t)
Victor Stinnere0be4232011-10-25 11:06:098830See \`config.log' for more details" "$LINENO" 5; }
Christian Heimes400adb02008-02-01 08:12:038831 else
8832 ac_cv_sizeof_pid_t=0
8833 fi
8834fi
Matthias Kloseb9621712010-04-24 17:59:498835
Christian Heimes400adb02008-02-01 08:12:038836fi
Matthias Kloseb9621712010-04-24 17:59:498837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8838$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes400adb02008-02-01 08:12:038839
8840
8841
8842cat >>confdefs.h <<_ACEOF
8843#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8844_ACEOF
8845
8846
Benjamin Petersondf6ff7b2016-09-06 20:53:148847# The cast to long int works around a bug in the HP C Compiler
8848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8850# This bug is HP SR number 8606223364.
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8852$as_echo_n "checking size of uintptr_t... " >&6; }
8853if ${ac_cv_sizeof_uintptr_t+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855else
8856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8857
8858else
8859 if test "$ac_cv_type_uintptr_t" = yes; then
8860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8862as_fn_error 77 "cannot compute sizeof (uintptr_t)
8863See \`config.log' for more details" "$LINENO" 5; }
8864 else
8865 ac_cv_sizeof_uintptr_t=0
8866 fi
8867fi
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8871$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8872
8873
8874
8875cat >>confdefs.h <<_ACEOF
8876#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8877_ACEOF
8878
8879
Michael W. Hudson54241132001-12-07 15:38:268880
Travis E. Oliphant9b307842007-10-12 22:06:378881
Eitan Adler3055c942018-05-16 05:58:098882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
8883$as_echo_n "checking for long double... " >&6; }
8884if ${ac_cv_type_long_double+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886else
8887 if test "$GCC" = yes; then
8888 ac_cv_type_long_double=yes
8889 else
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891/* end confdefs.h. */
8892/* The Stardent Vistra knows sizeof (long double), but does
8893 not support it. */
8894 long double foo = 0.0L;
Travis E. Oliphant9b307842007-10-12 22:06:378895int
8896main ()
8897{
Eitan Adler3055c942018-05-16 05:58:098898static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8899 sizeof (double) <= sizeof (long double))];
8900test_array [0] = 0;
8901return test_array [0];
8902
Travis E. Oliphant9b307842007-10-12 22:06:378903 ;
8904 return 0;
8905}
8906_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498907if ac_fn_c_try_compile "$LINENO"; then :
Eitan Adler3055c942018-05-16 05:58:098908 ac_cv_type_long_double=yes
8909else
8910 ac_cv_type_long_double=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
8916$as_echo "$ac_cv_type_long_double" >&6; }
8917 if test $ac_cv_type_long_double = yes; then
Travis E. Oliphant9b307842007-10-12 22:06:378918
Matthias Kloseb9621712010-04-24 17:59:498919$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Travis E. Oliphant9b307842007-10-12 22:06:378920
Eitan Adler3055c942018-05-16 05:58:098921 fi
Travis E. Oliphant9b307842007-10-12 22:06:378922
Travis E. Oliphant9b307842007-10-12 22:06:378923# The cast to long int works around a bug in the HP C Compiler
8924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8926# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8928$as_echo_n "checking size of long double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098929if ${ac_cv_sizeof_long_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498930 $as_echo_n "(cached) " >&6
Travis E. Oliphant9b307842007-10-12 22:06:378931else
Matthias Kloseb9621712010-04-24 17:59:498932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
Travis E. Oliphant9b307842007-10-12 22:06:378933
Travis E. Oliphant9b307842007-10-12 22:06:378934else
Matthias Kloseb9621712010-04-24 17:59:498935 if test "$ac_cv_type_long_double" = yes; then
8936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308938as_fn_error 77 "cannot compute sizeof (long double)
Victor Stinnere0be4232011-10-25 11:06:098939See \`config.log' for more details" "$LINENO" 5; }
Travis E. Oliphant9b307842007-10-12 22:06:378940 else
8941 ac_cv_sizeof_long_double=0
8942 fi
8943fi
Matthias Kloseb9621712010-04-24 17:59:498944
Travis E. Oliphant9b307842007-10-12 22:06:378945fi
Matthias Kloseb9621712010-04-24 17:59:498946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8947$as_echo "$ac_cv_sizeof_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378948
8949
8950
8951cat >>confdefs.h <<_ACEOF
8952#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8953_ACEOF
8954
8955
Travis E. Oliphant9b307842007-10-12 22:06:378956
Thomas Wouters47b49bf2007-08-30 22:15:338957# The cast to long int works around a bug in the HP C Compiler
8958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8960# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8962$as_echo_n "checking size of _Bool... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098963if ${ac_cv_sizeof__Bool+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498964 $as_echo_n "(cached) " >&6
Thomas Woutersb2137042007-02-01 18:02:278965else
Matthias Kloseb9621712010-04-24 17:59:498966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
Thomas Woutersb2137042007-02-01 18:02:278967
Thomas Woutersb2137042007-02-01 18:02:278968else
Matthias Kloseb9621712010-04-24 17:59:498969 if test "$ac_cv_type__Bool" = yes; then
8970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308972as_fn_error 77 "cannot compute sizeof (_Bool)
Victor Stinnere0be4232011-10-25 11:06:098973See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338974 else
8975 ac_cv_sizeof__Bool=0
8976 fi
Thomas Woutersb2137042007-02-01 18:02:278977fi
Matthias Kloseb9621712010-04-24 17:59:498978
Thomas Woutersb2137042007-02-01 18:02:278979fi
Matthias Kloseb9621712010-04-24 17:59:498980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8981$as_echo "$ac_cv_sizeof__Bool" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338982
8983
8984
Thomas Woutersb2137042007-02-01 18:02:278985cat >>confdefs.h <<_ACEOF
8986#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8987_ACEOF
8988
8989
Thomas Woutersb2137042007-02-01 18:02:278990
Alexandre Vassalottib0a61d72009-07-17 23:19:378991# The cast to long int works around a bug in the HP C Compiler
8992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8994# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8996$as_echo_n "checking size of off_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098997if ${ac_cv_sizeof_off_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498998 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:378999else
Matthias Kloseb9621712010-04-24 17:59:499000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379001#ifdef HAVE_SYS_TYPES_H
9002#include <sys/types.h>
9003#endif
9004
Matthias Kloseb9621712010-04-24 17:59:499005"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379006
Alexandre Vassalottib0a61d72009-07-17 23:19:379007else
Matthias Kloseb9621712010-04-24 17:59:499008 if test "$ac_cv_type_off_t" = yes; then
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309011as_fn_error 77 "cannot compute sizeof (off_t)
Victor Stinnere0be4232011-10-25 11:06:099012See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379013 else
9014 ac_cv_sizeof_off_t=0
9015 fi
Guido van Rossumf98e2a71999-01-06 18:53:349016fi
Matthias Kloseb9621712010-04-24 17:59:499017
Guido van Rossumf98e2a71999-01-06 18:53:349018fi
Matthias Kloseb9621712010-04-24 17:59:499019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9020$as_echo "$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039021
Alexandre Vassalottib0a61d72009-07-17 23:19:379022
9023
Martin v. Löwis11437992002-04-12 09:54:039024cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:349025#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:039026_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:349027
Michael W. Hudson54241132001-12-07 15:38:269028
Alexandre Vassalottib0a61d72009-07-17 23:19:379029
Matthias Kloseb9621712010-04-24 17:59:499030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
9031$as_echo_n "checking whether to enable large file support... " >&6; }
Mark Dickinson2df5d282009-12-31 21:22:509032if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
Guido van Rossum96f2eb91999-04-10 16:02:189033 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:349034
Matthias Kloseb9621712010-04-24 17:59:499035$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039036
Matthias Kloseb9621712010-04-24 17:59:499037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9038$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:349039else
Matthias Kloseb9621712010-04-24 17:59:499040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:349042fi
9043
Alexandre Vassalottib0a61d72009-07-17 23:19:379044# The cast to long int works around a bug in the HP C Compiler
9045# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9046# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9047# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:499048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9049$as_echo_n "checking size of time_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099050if ${ac_cv_sizeof_time_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499051 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379052else
Matthias Kloseb9621712010-04-24 17:59:499053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379054#ifdef HAVE_SYS_TYPES_H
9055#include <sys/types.h>
9056#endif
9057#ifdef HAVE_TIME_H
9058#include <time.h>
9059#endif
9060
Matthias Kloseb9621712010-04-24 17:59:499061"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379062
Alexandre Vassalottib0a61d72009-07-17 23:19:379063else
Matthias Kloseb9621712010-04-24 17:59:499064 if test "$ac_cv_type_time_t" = yes; then
9065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309067as_fn_error 77 "cannot compute sizeof (time_t)
Victor Stinnere0be4232011-10-25 11:06:099068See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379069 else
9070 ac_cv_sizeof_time_t=0
9071 fi
Guido van Rossumb9a22a12000-06-30 02:48:539072fi
Matthias Kloseb9621712010-04-24 17:59:499073
Guido van Rossumb9a22a12000-06-30 02:48:539074fi
Matthias Kloseb9621712010-04-24 17:59:499075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9076$as_echo "$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039077
Alexandre Vassalottib0a61d72009-07-17 23:19:379078
9079
Martin v. Löwis11437992002-04-12 09:54:039080cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539081#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:039082_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539083
Michael W. Hudson54241132001-12-07 15:38:269084
9085
Trent Mick635f6fb2000-08-23 21:33:059086# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:109087ac_save_cc="$CC"
9088if test "$ac_cv_kpthread" = "yes"
9089then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:309090elif test "$ac_cv_kthread" = "yes"
9091then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:519092elif test "$ac_cv_pthread" = "yes"
9093then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:109094fi
Alexandre Vassalottib0a61d72009-07-17 23:19:379095
Matthias Kloseb9621712010-04-24 17:59:499096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9097$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:059098have_pthread_t=no
Matthias Kloseb9621712010-04-24 17:59:499099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049100/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:449101
9102 #include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:039103int
9104main ()
9105{
Guido van Rossum12580492000-09-24 16:47:199106pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:039107 ;
9108 return 0;
9109}
Matthias Kloseb159a552010-04-25 21:00:449110
Martin v. Löwis11437992002-04-12 09:54:039111_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499112if ac_fn_c_try_compile "$LINENO"; then :
Trent Mick635f6fb2000-08-23 21:33:059113 have_pthread_t=yes
Trent Mick635f6fb2000-08-23 21:33:059114fi
Thomas Wouters47b49bf2007-08-30 22:15:339115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:499116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9117$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:059118if test "$have_pthread_t" = yes ; then
Matthias Kloseb9621712010-04-24 17:59:499119 # The cast to long int works around a bug in the HP C Compiler
Alexandre Vassalottib0a61d72009-07-17 23:19:379120# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9121# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9122# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:499123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9124$as_echo_n "checking size of pthread_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099125if ${ac_cv_sizeof_pthread_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499126 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379127else
Matthias Kloseb9621712010-04-24 17:59:499128 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379129#ifdef HAVE_PTHREAD_H
9130#include <pthread.h>
9131#endif
9132
Matthias Kloseb9621712010-04-24 17:59:499133"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379134
Alexandre Vassalottib0a61d72009-07-17 23:19:379135else
Matthias Kloseb9621712010-04-24 17:59:499136 if test "$ac_cv_type_pthread_t" = yes; then
9137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309139as_fn_error 77 "cannot compute sizeof (pthread_t)
Victor Stinnere0be4232011-10-25 11:06:099140See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379141 else
9142 ac_cv_sizeof_pthread_t=0
9143 fi
Trent Mick635f6fb2000-08-23 21:33:059144fi
Matthias Kloseb9621712010-04-24 17:59:499145
Trent Mick635f6fb2000-08-23 21:33:059146fi
Matthias Kloseb9621712010-04-24 17:59:499147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9148$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039149
Alexandre Vassalottib0a61d72009-07-17 23:19:379150
9151
Martin v. Löwis11437992002-04-12 09:54:039152cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059153#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:039154_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059155
Alexandre Vassalottib0a61d72009-07-17 23:19:379156
Trent Mick635f6fb2000-08-23 21:33:059157fi
Masayuki Yamamoto731e1892017-10-06 10:41:349158
9159# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
9160# This checking will be unnecessary after removing deprecated TLS API.
9161# The cast to long int works around a bug in the HP C Compiler
9162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9164# This bug is HP SR number 8606223364.
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
9166$as_echo_n "checking size of pthread_key_t... " >&6; }
9167if ${ac_cv_sizeof_pthread_key_t+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169else
9170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
9171"; then :
9172
9173else
9174 if test "$ac_cv_type_pthread_key_t" = yes; then
9175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9177as_fn_error 77 "cannot compute sizeof (pthread_key_t)
9178See \`config.log' for more details" "$LINENO" 5; }
9179 else
9180 ac_cv_sizeof_pthread_key_t=0
9181 fi
9182fi
9183
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
9186$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; }
9187
9188
9189
9190cat >>confdefs.h <<_ACEOF
9191#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t
9192_ACEOF
9193
9194
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
9196$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; }
9197if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h. */
9200#include <pthread.h>
9201int
9202main ()
9203{
9204pthread_key_t k; k * 1;
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"; then :
9210 ac_pthread_key_t_is_arithmetic_type=yes
9211else
9212 ac_pthread_key_t_is_arithmetic_type=no
9213
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
9217$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; }
9218 if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then
9219
9220$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
9221
9222 fi
9223else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
9226fi
Martin v. Löwis123cbd22001-07-19 14:21:109227CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:059228
Michael W. Hudson54241132001-12-07 15:38:269229
Guido van Rossum54ecc3d1999-01-27 17:53:119230case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589231 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:479232 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9233 ;;
9234 Darwin/*)
9235 OTHER_LIBTOOL_OPT=""
9236 ;;
9237esac
9238
9239
Ronald Oussoren5bbab3e2009-09-06 11:01:159240
Bob Ippolito7026a0a2005-03-28 23:23:479241case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589242 Darwin/[01567]\..*)
Thomas Wouters477c8d52006-05-27 19:21:479243 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9244 if test "${enable_universalsdk}"; then
9245 :
9246 else
Ronald Oussorene3da75a2010-02-11 13:38:589247 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
Thomas Wouters477c8d52006-05-27 19:21:479248 fi
Jack Jansenb36687a2004-07-16 08:43:479249 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129250 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:359251 Darwin/*)
Ronald Oussoren9812a6c2010-02-07 11:53:189252 gcc_version=`gcc -dumpversion`
Bob Ippolito7026a0a2005-03-28 23:23:479253 if test ${gcc_version} '<' 4.0
9254 then
9255 LIBTOOL_CRUFT="-lcc_dynamic"
9256 else
9257 LIBTOOL_CRUFT=""
9258 fi
Matthias Kloseb9621712010-04-24 17:59:499259 if test "$cross_compiling" = yes; then :
Ronald Oussoren3c064c12009-09-08 07:12:429260 ac_osx_32bit=yes
Ronald Oussoren5bbab3e2009-09-06 11:01:159261else
Matthias Kloseb9621712010-04-24 17:59:499262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159263/* end confdefs.h. */
Ronald Oussoren3c064c12009-09-08 07:12:429264
Ronald Oussoren5bbab3e2009-09-06 11:01:159265 #include <unistd.h>
9266 int main(int argc, char*argv[])
9267 {
9268 if (sizeof(long) == 4) {
9269 return 0;
9270 } else {
9271 return 1;
9272 }
Ronald Oussoren3c064c12009-09-08 07:12:429273 }
9274
Ronald Oussoren5bbab3e2009-09-06 11:01:159275_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499276if ac_fn_c_try_run "$LINENO"; then :
Ronald Oussoren5bbab3e2009-09-06 11:01:159277 ac_osx_32bit=yes
9278else
Matthias Kloseb9621712010-04-24 17:59:499279 ac_osx_32bit=no
Ronald Oussoren5bbab3e2009-09-06 11:01:159280fi
Matthias Kloseb9621712010-04-24 17:59:499281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9282 conftest.$ac_objext conftest.beam conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159283fi
9284
9285
Ronald Oussoren5bbab3e2009-09-06 11:01:159286 if test "${ac_osx_32bit}" = "yes"; then
Ronald Oussorene3da75a2010-02-11 13:38:589287 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159288 i386)
9289 MACOSX_DEFAULT_ARCH="i386"
9290 ;;
9291 ppc)
9292 MACOSX_DEFAULT_ARCH="ppc"
9293 ;;
9294 *)
Ned Deilyb29d0a52021-05-02 09:18:589295 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159296 ;;
9297 esac
9298 else
Ronald Oussorene3da75a2010-02-11 13:38:589299 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159300 i386)
9301 MACOSX_DEFAULT_ARCH="x86_64"
9302 ;;
9303 ppc)
9304 MACOSX_DEFAULT_ARCH="ppc64"
Ned Deilyb29d0a52021-05-02 09:18:589305 ;;
9306 arm64)
9307 MACOSX_DEFAULT_ARCH="arm64"
Ronald Oussoren5bbab3e2009-09-06 11:01:159308 ;;
9309 *)
Ned Deilyb29d0a52021-05-02 09:18:589310 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159311 ;;
9312 esac
9313
Ronald Oussoren5bbab3e2009-09-06 11:01:159314 fi
9315
9316 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
Jack Jansenb36687a2004-07-16 08:43:479317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149318 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:119319esac
Matthias Kloseb9621712010-04-24 17:59:499320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9321$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:149322if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:119323then
Skip Montanarodecc6a42003-01-01 20:07:499324 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:039325 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:149326 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:119327
Matthias Kloseb9621712010-04-24 17:59:499328$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039329
Matthias Kloseb9621712010-04-24 17:59:499330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9331$as_echo "yes" >&6; }
Ronald Oussoren99aab652009-06-08 21:22:579332 if test $enable_shared = "yes"
9333 then
Ross Lagerwallb0ae53d2011-06-10 05:30:309334 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
Ronald Oussoren99aab652009-06-08 21:22:579335 fi
Guido van Rossum54ecc3d1999-01-27 17:53:119336else
Matthias Kloseb9621712010-04-24 17:59:499337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:119339fi
9340
Matthias Kloseb9621712010-04-24 17:59:499341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9342$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149343case $ac_sys_system/$ac_sys_release in
9344 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:119345
Matthias Kloseb9621712010-04-24 17:59:499346$as_echo "#define WITH_DYLD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039347
Matthias Kloseb9621712010-04-24 17:59:499348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9349$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149350 ;;
9351 *)
Matthias Kloseb9621712010-04-24 17:59:499352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:149354 ;;
Jack Jansen9a66b6d2001-08-08 13:56:149355esac
Guido van Rossum54ecc3d1999-01-27 17:53:119356
Guido van Rossum0a516c91994-09-12 10:58:409357# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:409358
Michael W. Hudson54241132001-12-07 15:38:269359
9360
9361
9362
Benjamin Peterson99f03762010-04-11 22:15:289363
Thomas Wouters477c8d52006-05-27 19:21:479364
doko@ubuntu.comd5537d02013-03-21 20:21:499365# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9366# -- usually .so, .sl on HP-UX, .dll on Cygwin
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9368$as_echo_n "checking the extension of shared libraries... " >&6; }
9369if test -z "$SHLIB_SUFFIX"; then
9370 case $ac_sys_system in
9371 hp*|HP*)
9372 case `uname -m` in
9373 ia64) SHLIB_SUFFIX=.so;;
9374 *) SHLIB_SUFFIX=.sl;;
9375 esac
9376 ;;
9377 CYGWIN*) SHLIB_SUFFIX=.dll;;
9378 *) SHLIB_SUFFIX=.so;;
9379 esac
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9382$as_echo "$SHLIB_SUFFIX" >&6; }
Thomas Wouters477c8d52006-05-27 19:21:479383
Guido van Rossum0a516c91994-09-12 10:58:409384# LDSHARED is the ld *command* used to create shared library
Benjamin Peterson06930632017-09-04 23:36:059385# -- "cc -G" on SunOS 5.x.
Guido van Rossum54ecc3d1999-01-27 17:53:119386# (Shared libraries in this instance are shared modules to be loaded into
9387# Python, as opposed to building Python itself as a shared library.)
Matthias Kloseb9621712010-04-24 17:59:499388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9389$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409390if test -z "$LDSHARED"
9391then
Guido van Rossum76be6ed1995-01-02 18:33:549392 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549393 AIX*)
Martin Panter395733d2016-11-20 07:56:379394 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Martin Panter5de141f2016-08-27 04:00:199395 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:549396 ;;
Martin v. Löwis11437992002-04-12 09:54:039397 SunOS/5*)
Benjamin Peterson99f03762010-04-11 22:15:289398 if test "$GCC" = "yes" ; then
9399 LDSHARED='$(CC) -shared'
9400 LDCXXSHARED='$(CXX) -shared'
9401 else
9402 LDSHARED='$(CC) -G'
9403 LDCXXSHARED='$(CXX) -G'
Greg Ward57c9a6632000-05-26 12:22:549404 fi ;;
Thomas Hellerf44b9a12008-04-04 10:18:239405 hp*|HP*)
Benjamin Peterson99f03762010-04-11 22:15:289406 if test "$GCC" = "yes" ; then
9407 LDSHARED='$(CC) -shared'
9408 LDCXXSHARED='$(CXX) -shared'
9409 else
Rob Boehne9d25bd12017-12-06 17:58:179410 LDSHARED='$(CC) -b'
Benjamin Peterson62ed6be2017-12-22 05:43:099411 LDCXXSHARED='$(CXX) -b'
Thomas Hellerf44b9a12008-04-04 10:18:239412 fi ;;
Jack Jansen418c3b12001-11-14 10:59:579413 Darwin/1.3*)
Antoine Pitroud4958c22010-10-13 17:01:109414 LDSHARED='$(CC) -bundle'
9415 LDCXXSHARED='$(CXX) -bundle'
Jack Jansena3891ea2001-09-07 14:25:129416 if test "$enable_framework" ; then
9417 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229418 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9419 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289420 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129421 else
9422 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:579423 LDSHARED="$LDSHARED -undefined suppress"
Benjamin Peterson99f03762010-04-11 22:15:289424 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:129425 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459426 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Antoine Pitroud4958c22010-10-13 17:01:109427 LDSHARED='$(CC) -bundle'
9428 LDCXXSHARED='$(CXX) -bundle'
Jack Jansene578a632001-08-15 01:27:149429 if test "$enable_framework" ; then
9430 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229431 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9432 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289433 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149434 else
Michael W. Hudson594bc802002-03-07 09:59:159435 # No framework, use the Python app as bundle-loader
9436 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:439437 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289438 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:119439 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459440 Darwin/*)
9441 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9442 # This allows an extension to be used in any Python
Thomas Wouters89d996e2007-09-08 17:39:289443
Ned Deily36820b62014-06-25 20:44:229444 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9445 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9446 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9447 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9448 if test ${dep_target_major} -eq 10 && \
9449 test ${dep_target_minor} -le 2
Jack Jansen6b08a402004-06-03 12:41:459450 then
Ned Deily36820b62014-06-25 20:44:229451 # building for OS X 10.0 through 10.2
Antoine Pitroud4958c22010-10-13 17:01:109452 LDSHARED='$(CC) -bundle'
9453 LDCXXSHARED='$(CXX) -bundle'
Jack Jansen6b08a402004-06-03 12:41:459454 if test "$enable_framework" ; then
9455 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229456 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9457 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289458 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:459459 else
9460 # No framework, use the Python app as bundle-loader
9461 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9462 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289463 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Jack Jansen6b08a402004-06-03 12:41:459464 fi
Ned Deily36820b62014-06-25 20:44:229465 else
9466 # building for OS X 10.3 and later
9467 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9468 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9469 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:459470 fi
9471 ;;
pxinwr32f5fdd2019-02-27 11:09:289472 Linux*|GNU*|QNX*|VxWorks*)
Benjamin Peterson99f03762010-04-11 22:15:289473 LDSHARED='$(CC) -shared'
9474 LDCXXSHARED='$(CXX) -shared';;
Thomas Wouters1ba5b3b2006-06-08 14:52:479475 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:359476 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:499477 then
Antoine Pitroud4958c22010-10-13 17:01:109478 LDSHARED='$(CC) -shared'
9479 LDCXXSHARED='$(CXX) -shared'
Guido van Rossum0286ae82000-08-29 15:06:499480 else
Antoine Pitroud4958c22010-10-13 17:01:109481 LDSHARED="ld -Bshareable"
Guido van Rossum0286ae82000-08-29 15:06:499482 fi;;
Thomas Wouters1ba5b3b2006-06-08 14:52:479483 OpenBSD*)
9484 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9485 then
Antoine Pitroud4958c22010-10-13 17:01:109486 LDSHARED='$(CC) -shared $(CCSHARED)'
9487 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479488 else
9489 case `uname -r` in
9490 [01].* | 2.[0-7] | 2.[0-7].*)
9491 LDSHARED="ld -Bshareable ${LDFLAGS}"
9492 ;;
9493 *)
Antoine Pitroud4958c22010-10-13 17:01:109494 LDSHARED='$(CC) -shared $(CCSHARED)'
9495 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479496 ;;
9497 esac
9498 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289499 NetBSD*|DragonFly*)
Antoine Pitrouece919e2011-01-02 20:45:219500 LDSHARED='$(CC) -shared'
9501 LDCXXSHARED='$(CXX) -shared';;
Martin v. Löwis25ae43b2001-10-07 08:39:189502 OpenUNIX*|UnixWare*)
Benjamin Peterson99f03762010-04-11 22:15:289503 if test "$GCC" = "yes" ; then
9504 LDSHARED='$(CC) -shared'
9505 LDCXXSHARED='$(CXX) -shared'
9506 else
9507 LDSHARED='$(CC) -G'
9508 LDCXXSHARED='$(CXX) -G'
Martin v. Löwisbec19582001-03-21 15:57:549509 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289510 SCO_SV*)
9511 LDSHARED='$(CC) -Wl,-G,-Bexport'
9512 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9513 CYGWIN*)
9514 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9515 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:409516 *) LDSHARED="ld";;
9517 esac
Guido van Rossum0a516c91994-09-12 10:58:409518fi
Matthias Kloseb9621712010-04-24 17:59:499519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9520$as_echo "$LDSHARED" >&6; }
Benjamin Peterson99f03762010-04-11 22:15:289521LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
Neil Schemenauer4a7bbcb2001-02-16 03:37:549522BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:409523# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:119524# library (module) -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9526$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409527if test -z "$CCSHARED"
9528then
Guido van Rossum07397971997-04-29 21:49:509529 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:499530 SunOS*) if test "$GCC" = yes;
Skip Montanaroeb33e5a2007-08-17 12:57:419531 then CCSHARED="-fPIC";
9532 elif test `uname -p` = sparc;
9533 then CCSHARED="-xcode=pic32";
9534 else CCSHARED="-Kpic";
9535 fi;;
Guido van Rossumaf07a441995-02-13 19:45:279536 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:529537 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:279538 else CCSHARED="+z";
9539 fi;;
Xavier de Gaye2a352b62017-01-04 20:51:169540 Linux-android*) ;;
Martin v. Löwisa6e97582002-01-01 18:41:339541 Linux*|GNU*) CCSHARED="-fPIC";;
Martin v. Löwis86d66262006-02-17 08:40:119542 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:189543 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:549544 if test "$GCC" = "yes"
9545 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:419546 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:549547 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:489548 SCO_SV*)
9549 if test "$GCC" = "yes"
9550 then CCSHARED="-fPIC"
9551 else CCSHARED="-Kpic -belf"
9552 fi;;
pxinwr32f5fdd2019-02-27 11:09:289553 VxWorks*)
9554 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
Guido van Rossum0a516c91994-09-12 10:58:409555 esac
Guido van Rossum0a516c91994-09-12 10:58:409556fi
Matthias Kloseb9621712010-04-24 17:59:499557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9558$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409559# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:289560# the python executable -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9562$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409563if test -z "$LINKFORSHARED"
9564then
Guido van Rossum07397971997-04-29 21:49:509565 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549566 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:169567 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:319568 LINKFORSHARED="-Wl,-E -Wl,+s";;
9569# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Xavier de Gaye2a352b62017-01-04 20:51:169570 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:339571 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:119572 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:039573 Darwin/*)
Benjamin Peterson9c80cac2009-05-23 16:34:239574 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
Miss Islington (bot)bd92b942019-07-02 07:31:079575
9576 # Issue #18075: the default maximum stack size (8MBytes) is too
9577 # small for the default recursion limit. Increase the stack size
9578 # to ensure that tests don't crash
Miss Islington (bot)83996412019-08-01 14:38:579579 # Note: This matches the value of THREAD_STACK_SIZE in
9580 # thread_pthread.h
Miss Islington (bot)bd92b942019-07-02 07:31:079581 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9582
Jack Jansene578a632001-08-15 01:27:149583 if test "$enable_framework"
9584 then
Jack Jansenda49e192005-01-07 13:08:229585 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149586 fi
Anthony Baxtereef2d3b2004-11-06 04:45:339587 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:189588 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:489589 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:469590 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:119591 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:419592 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9593 then
9594 LINKFORSHARED="-Wl,--export-dynamic"
9595 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:099596 SunOS/5*) case $CC in
9597 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:369598 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:199599 then
9600 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:099601 fi;;
9602 esac;;
Jason Tishler30765592003-09-04 11:04:069603 CYGWIN*)
9604 if test $enable_shared = "no"
9605 then
9606 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9607 fi;;
Benjamin Petersonde9c8692008-07-01 18:23:099608 QNX*)
9609 # -Wl,-E causes the symbols to be added to the dynamic
9610 # symbol table so that they can be found when a module
9611 # is loaded. -N 2048K causes the stack size to be set
9612 # to 2048 kilobytes so that the stack doesn't overflow
9613 # when running test_compile.py.
9614 LINKFORSHARED='-Wl,-E -N 2048K';;
pxinwr32f5fdd2019-02-27 11:09:289615 VxWorks*)
9616 LINKFORSHARED='--export-dynamic';;
Guido van Rossum0a516c91994-09-12 10:58:409617 esac
Guido van Rossum0a516c91994-09-12 10:58:409618fi
Matthias Kloseb9621712010-04-24 17:59:499619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9620$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409621
Michael W. Hudson54241132001-12-07 15:38:269622
Benjamin Peterson8f95cc22008-07-16 02:23:259623
Matthias Kloseb9621712010-04-24 17:59:499624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9625$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209626if test ! "$LIBRARY" = "$LDLIBRARY"
9627then
Neil Schemenauer0c6141f2001-01-27 21:40:549628 case $ac_sys_system in
9629 CYGWIN*)
9630 # Cygwin needs CCSHARED when building extension DLLs
9631 # but not when building the interpreter DLL.
9632 CFLAGSFORSHARED='';;
9633 *)
9634 CFLAGSFORSHARED='$(CCSHARED)'
9635 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:209636fi
Matthias Kloseb9621712010-04-24 17:59:499637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9638$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209639
Martin v. Löwisf90ae202002-06-11 06:22:319640# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9641# library (with --enable-shared).
9642# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:509643# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9644# if it is not required, since it creates a dependency of the shared library
9645# to LIBS. This, in turn, means that applications linking the shared libpython
9646# don't need to link LIBS explicitly. The default should be only changed
9647# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:319648
Matthias Kloseb9621712010-04-24 17:59:499649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9650$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319651case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:319652 *)
Martin v. Löwisd6359c52002-08-04 12:38:509653 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:319654esac
Matthias Kloseb9621712010-04-24 17:59:499655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9656$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319657
9658
Guido van Rossum627b2d71993-12-24 10:39:169659# checks for libraries
Georg Brandl941f9562011-02-25 15:21:479660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9661$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099662if ${ac_cv_lib_sendfile_sendfile+:} false; then :
Georg Brandl941f9562011-02-25 15:21:479663 $as_echo_n "(cached) " >&6
9664else
9665 ac_check_lib_save_LIBS=$LIBS
9666LIBS="-lsendfile $LIBS"
9667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h. */
9669
9670/* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673#ifdef __cplusplus
9674extern "C"
9675#endif
9676char sendfile ();
9677int
9678main ()
9679{
9680return sendfile ();
9681 ;
9682 return 0;
9683}
9684_ACEOF
9685if ac_fn_c_try_link "$LINENO"; then :
9686 ac_cv_lib_sendfile_sendfile=yes
9687else
9688 ac_cv_lib_sendfile_sendfile=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692LIBS=$ac_check_lib_save_LIBS
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9695$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099696if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
Georg Brandl941f9562011-02-25 15:21:479697 cat >>confdefs.h <<_ACEOF
9698#define HAVE_LIBSENDFILE 1
9699_ACEOF
9700
9701 LIBS="-lsendfile $LIBS"
9702
9703fi
9704
Matthias Kloseb9621712010-04-24 17:59:499705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9706$as_echo_n "checking for dlopen in -ldl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099707if ${ac_cv_lib_dl_dlopen+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499708 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549709else
Martin v. Löwis11437992002-04-12 09:54:039710 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289711LIBS="-ldl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049713/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039714
Thomas Wouters47b49bf2007-08-30 22:15:339715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039718#ifdef __cplusplus
9719extern "C"
9720#endif
Martin v. Löwis11437992002-04-12 09:54:039721char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039722int
9723main ()
9724{
Thomas Wouters47b49bf2007-08-30 22:15:339725return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039726 ;
9727 return 0;
9728}
9729_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499730if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039731 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:549732else
Matthias Kloseb9621712010-04-24 17:59:499733 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:169734fi
Matthias Kloseb9621712010-04-24 17:59:499735rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039737LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169738fi
Matthias Kloseb9621712010-04-24 17:59:499739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099741if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039742 cat >>confdefs.h <<_ACEOF
9743#define HAVE_LIBDL 1
9744_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169745
Guido van Rossum8ddd0ad1995-06-14 23:10:289746 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:309747
Guido van Rossum76be6ed1995-01-02 18:33:549748fi
9749 # Dynamic linking for SunOS/Solaris and SYSV
Matthias Kloseb9621712010-04-24 17:59:499750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9751$as_echo_n "checking for shl_load in -ldld... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099752if ${ac_cv_lib_dld_shl_load+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499753 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549754else
Martin v. Löwis11437992002-04-12 09:54:039755 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289756LIBS="-ldld $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049758/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039759
Thomas Wouters47b49bf2007-08-30 22:15:339760/* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039763#ifdef __cplusplus
9764extern "C"
9765#endif
Martin v. Löwis11437992002-04-12 09:54:039766char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039767int
9768main ()
9769{
Thomas Wouters47b49bf2007-08-30 22:15:339770return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039771 ;
9772 return 0;
9773}
9774_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499775if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039776 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:549777else
Matthias Kloseb9621712010-04-24 17:59:499778 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:169779fi
Matthias Kloseb9621712010-04-24 17:59:499780rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039782LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169783fi
Matthias Kloseb9621712010-04-24 17:59:499784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9785$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099786if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039787 cat >>confdefs.h <<_ACEOF
9788#define HAVE_LIBDLD 1
9789_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169790
Guido van Rossum8ddd0ad1995-06-14 23:10:289791 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:549792
Guido van Rossum76be6ed1995-01-02 18:33:549793fi
9794 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:479795
Michael Felt0d3ccb42017-12-30 21:39:209796# checks for uuid.h location
9797for ac_header in uuid/uuid.h uuid.h
9798do :
9799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9802 cat >>confdefs.h <<_ACEOF
9803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9804_ACEOF
9805
9806fi
9807
9808done
9809
9810
Berker Peksag9a10ff42017-11-08 20:09:169811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
9812$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
9813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h. */
9815#include <uuid/uuid.h>
9816int
9817main ()
9818{
9819
9820#ifndef uuid_generate_time_safe
Berker Peksag0e163d22017-11-08 21:43:149821void *x = uuid_generate_time_safe
Berker Peksag9a10ff42017-11-08 20:09:169822#endif
9823
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"; then :
9829
9830$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9833$as_echo "yes" >&6; }
9834else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836$as_echo "no" >&6; }
9837
9838fi
9839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840
Michael Felt0d3ccb42017-12-30 21:39:209841# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
David Carlierb4ebaa72018-01-09 19:38:079842# FreeBSD and OpenBSD provides support as well
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
9844$as_echo_n "checking for uuid_create... " >&6; }
Michael Felt0d3ccb42017-12-30 21:39:209845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h. */
9847#include <uuid.h>
9848int
9849main ()
9850{
9851
9852#ifndef uuid_create
9853void *x = uuid_create
9854#endif
9855
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_compile "$LINENO"; then :
9861
9862$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9865$as_echo "yes" >&6; }
9866else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868$as_echo "no" >&6; }
9869
9870fi
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872
Serhiy Storchaka17d88302018-05-24 22:45:099873# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
9874# stream in big-endian byte-order
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
9876$as_echo_n "checking for uuid_enc_be... " >&6; }
9877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879#include <uuid.h>
9880int
9881main ()
9882{
9883
9884#ifndef uuid_enc_be
Ned Deilyced0adb2018-06-09 22:19:579885void *x = uuid_enc_be
Serhiy Storchaka17d88302018-05-24 22:45:099886#endif
9887
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892if ac_fn_c_try_compile "$LINENO"; then :
9893
9894$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h
9895
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9897$as_echo "yes" >&6; }
9898else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
9901
9902fi
9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904
Serhiy Storchaka9e78dc22017-11-11 17:18:289905# 'Real Time' functions on Solaris
9906# posix4 on Solaris 2.6
9907# pthread (first!) on Linux
Berker Peksag7e666ee2017-11-06 16:06:059908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
Matthias Kloseb9621712010-04-24 17:59:499909$as_echo_n "checking for library containing sem_init... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099910if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499911 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:589912else
Martin v. Löwis82c19a72002-10-06 11:48:099913 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:499914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049915/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039916
Thomas Wouters47b49bf2007-08-30 22:15:339917/* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039920#ifdef __cplusplus
9921extern "C"
9922#endif
Martin v. Löwis11437992002-04-12 09:54:039923char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039924int
9925main ()
9926{
Thomas Wouters47b49bf2007-08-30 22:15:339927return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039928 ;
9929 return 0;
9930}
9931_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:339932for ac_lib in '' pthread rt posix4; do
9933 if test -z "$ac_lib"; then
9934 ac_res="none required"
9935 else
9936 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:419937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:339938 fi
Matthias Kloseb9621712010-04-24 17:59:499939 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:339940 ac_cv_search_sem_init=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:479941fi
Matthias Kloseb9621712010-04-24 17:59:499942rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:099944 if ${ac_cv_search_sem_init+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:339945 break
Skip Montanaroeb33e5a2007-08-17 12:57:419946fi
Thomas Wouters47b49bf2007-08-30 22:15:339947done
Victor Stinnere0be4232011-10-25 11:06:099948if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499949
Thomas Wouters47b49bf2007-08-30 22:15:339950else
9951 ac_cv_search_sem_init=no
9952fi
9953rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:099954LIBS=$ac_func_search_save_LIBS
9955fi
Matthias Kloseb9621712010-04-24 17:59:499956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9957$as_echo "$ac_cv_search_sem_init" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:339958ac_res=$ac_cv_search_sem_init
Matthias Kloseb9621712010-04-24 17:59:499959if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:339960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:589961
Martin v. Löwis41933dd2002-03-21 15:10:589962fi
Serhiy Storchaka9e78dc22017-11-11 17:18:289963
Martin v. Löwis519adae2003-09-20 10:47:479964
Martin v. Löwis19d17342003-06-14 21:03:059965# check if we need libintl for locale functions
Matthias Kloseb9621712010-04-24 17:59:499966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9967$as_echo_n "checking for textdomain in -lintl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099968if ${ac_cv_lib_intl_textdomain+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499969 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:059970else
9971 ac_check_lib_save_LIBS=$LIBS
9972LIBS="-lintl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049974/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:059975
Thomas Wouters47b49bf2007-08-30 22:15:339976/* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:059979#ifdef __cplusplus
9980extern "C"
9981#endif
Martin v. Löwis19d17342003-06-14 21:03:059982char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059983int
9984main ()
9985{
Thomas Wouters47b49bf2007-08-30 22:15:339986return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059987 ;
9988 return 0;
9989}
9990_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499991if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis19d17342003-06-14 21:03:059992 ac_cv_lib_intl_textdomain=yes
9993else
Matthias Kloseb9621712010-04-24 17:59:499994 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:059995fi
Matthias Kloseb9621712010-04-24 17:59:499996rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:059998LIBS=$ac_check_lib_save_LIBS
9999fi
Matthias Kloseb9621712010-04-24 17:59:4910000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
10001$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910002if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
Martin v. Löwis19d17342003-06-14 21:03:0510003
Matthias Kloseb9621712010-04-24 17:59:4910004$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
Martin v. Löwis19d17342003-06-14 21:03:0510005
Brett Cannonc6d936e2009-06-07 20:09:5310006 LIBS="-lintl $LIBS"
Martin v. Löwis19d17342003-06-14 21:03:0510007fi
10008
Guido van Rossum0eefa3f1999-11-16 15:57:3710009
10010# checks for system dependent C++ extensions support
10011case "$ac_sys_system" in
Matthias Kloseb9621712010-04-24 17:59:4910012 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
10013$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410015/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4410016
Georg Brandl59e87bd2011-02-15 19:48:5910017 #include <load.h>
Martin v. Löwis11437992002-04-12 09:54:0310018int
10019main ()
10020{
Guido van Rossum0eefa3f1999-11-16 15:57:3710021loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:0310022 ;
10023 return 0;
10024}
Matthias Kloseb159a552010-04-25 21:00:4410025
Martin v. Löwis11437992002-04-12 09:54:0310026_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910027if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum0eefa3f1999-11-16 15:57:3710028
Matthias Kloseb159a552010-04-25 21:00:4410029
Matthias Kloseb9621712010-04-24 17:59:4910030$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0310031
Matthias Kloseb159a552010-04-25 21:00:4410032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4910033$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4410034
Guido van Rossum0eefa3f1999-11-16 15:57:3710035else
Matthias Kloseb159a552010-04-25 21:00:4410036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:4910038$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4410039
Guido van Rossum0eefa3f1999-11-16 15:57:3710040fi
Matthias Kloseb9621712010-04-24 17:59:4910041rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:3710043 *) ;;
10044esac
10045
Christian Heimes985ecdc2013-11-20 10:46:1810046# check for systems that require aligned memory access
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
10048$as_echo_n "checking aligned memory access is required... " >&6; }
Benjamin Petersone4f961b2017-04-14 16:36:4510049if ${ac_cv_aligned_required+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051else
10052 if test "$cross_compiling" = yes; then :
10053 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:1810054else
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056/* end confdefs.h. */
10057
10058int main()
10059{
10060 char s[16];
10061 int i, *p1, *p2;
10062 for (i=0; i < 16; i++)
10063 s[i] = i;
10064 p1 = (int*)(s+1);
10065 p2 = (int*)(s+2);
10066 if (*p1 == *p2)
10067 return 1;
10068 return 0;
10069}
Christian Heimes985ecdc2013-11-20 10:46:1810070_ACEOF
10071if ac_fn_c_try_run "$LINENO"; then :
Benjamin Petersone4f961b2017-04-14 16:36:4510072 ac_cv_aligned_required=no
Christian Heimes985ecdc2013-11-20 10:46:1810073else
Benjamin Petersone4f961b2017-04-14 16:36:4510074 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:1810075fi
10076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10077 conftest.$ac_objext conftest.beam conftest.$ac_ext
10078fi
10079
10080
Benjamin Petersone4f961b2017-04-14 16:36:4510081fi
10082
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
10084$as_echo "$ac_cv_aligned_required" >&6; }
10085if test "$ac_cv_aligned_required" = yes ; then
Christian Heimes985ecdc2013-11-20 10:46:1810086
10087$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
10088
10089fi
Christian Heimes985ecdc2013-11-20 10:46:1810090
10091# str, bytes and memoryview hash algorithm
10092
10093
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
10095$as_echo_n "checking for --with-hash-algorithm... " >&6; }
10096
10097# Check whether --with-hash_algorithm was given.
10098if test "${with_hash_algorithm+set}" = set; then :
10099 withval=$with_hash_algorithm;
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10101$as_echo "$withval" >&6; }
10102case "$withval" in
10103 siphash24)
10104 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
10105
10106 ;;
10107 fnv)
10108 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
10109
10110 ;;
10111 *)
10112 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
10113 ;;
10114esac
10115
10116else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
10118$as_echo "default" >&6; }
10119fi
10120
10121
Charles-François Natalid30b0222014-05-08 22:08:5110122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
10123$as_echo_n "checking for --with-address-sanitizer... " >&6; }
10124
10125# Check whether --with-address_sanitizer was given.
10126if test "${with_address_sanitizer+set}" = set; then :
10127 withval=$with_address_sanitizer;
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10129$as_echo "$withval" >&6; }
10130BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
10131LDFLAGS="-fsanitize=address $LDFLAGS"
Gregory P. Smith1584a002018-11-12 20:07:1410132# ASan works by controlling memory allocation, our own malloc interferes.
10133with_pymalloc="no"
10134
10135else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
10138fi
10139
10140
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
10142$as_echo_n "checking for --with-memory-sanitizer... " >&6; }
10143
10144# Check whether --with-memory_sanitizer was given.
10145if test "${with_memory_sanitizer+set}" = set; then :
10146 withval=$with_memory_sanitizer;
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10148$as_echo "$withval" >&6; }
10149BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
10150LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
10151# MSan works by controlling memory allocation, our own malloc interferes.
10152with_pymalloc="no"
10153
10154else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156$as_echo "no" >&6; }
10157fi
10158
10159
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
10161$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
10162
10163# Check whether --with-undefined_behavior_sanitizer was given.
10164if test "${with_undefined_behavior_sanitizer+set}" = set; then :
10165 withval=$with_undefined_behavior_sanitizer;
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10167$as_echo "$withval" >&6; }
10168BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
10169LDFLAGS="-fsanitize=undefined $LDFLAGS"
Charles-François Natalid30b0222014-05-08 22:08:5110170
10171else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173$as_echo "no" >&6; }
10174fi
10175
10176
Guido van Rossum70c7f481998-03-26 18:44:1010177# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Matthias Kloseb9621712010-04-24 17:59:4910178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10179$as_echo_n "checking for t_open in -lnsl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910180if ${ac_cv_lib_nsl_t_open+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910181 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:4210182else
Martin v. Löwis11437992002-04-12 09:54:0310183 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810184LIBS="-lnsl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410186/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310187
Thomas Wouters47b49bf2007-08-30 22:15:3310188/* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310191#ifdef __cplusplus
10192extern "C"
10193#endif
Martin v. Löwis11437992002-04-12 09:54:0310194char t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310195int
10196main ()
10197{
Thomas Wouters47b49bf2007-08-30 22:15:3310198return t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310199 ;
10200 return 0;
10201}
10202_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910203if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310204 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:4210205else
Matthias Kloseb9621712010-04-24 17:59:4910206 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:4210207fi
Matthias Kloseb9621712010-04-24 17:59:4910208rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310210LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:4210211fi
Matthias Kloseb9621712010-04-24 17:59:4910212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10213$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910214if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
Guido van Rossum79dddcb1995-01-12 12:25:4210215 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:4210216fi
Guido van Rossum0ddb0281995-01-17 16:46:1410217 # SVR4
Matthias Kloseb9621712010-04-24 17:59:4910218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10219$as_echo_n "checking for socket in -lsocket... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910220if ${ac_cv_lib_socket_socket+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910221 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410222else
Martin v. Löwis11437992002-04-12 09:54:0310223 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810224LIBS="-lsocket $LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410226/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310227
Thomas Wouters47b49bf2007-08-30 22:15:3310228/* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310231#ifdef __cplusplus
10232extern "C"
10233#endif
Martin v. Löwis11437992002-04-12 09:54:0310234char socket ();
Martin v. Löwis11437992002-04-12 09:54:0310235int
10236main ()
10237{
Thomas Wouters47b49bf2007-08-30 22:15:3310238return socket ();
Martin v. Löwis11437992002-04-12 09:54:0310239 ;
10240 return 0;
10241}
10242_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910243if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310244 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:5610245else
Matthias Kloseb9621712010-04-24 17:59:4910246 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:5610247fi
Matthias Kloseb9621712010-04-24 17:59:4910248rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310250LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:5610251fi
Matthias Kloseb9621712010-04-24 17:59:4910252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10253$as_echo "$ac_cv_lib_socket_socket" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910254if test "x$ac_cv_lib_socket_socket" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:1510255 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:1510256fi
10257 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:1310258
Matthias Kloseb9621712010-04-24 17:59:4910259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10260$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310261
Thomas Wouters47b49bf2007-08-30 22:15:3310262# Check whether --with-libs was given.
Matthias Kloseb9621712010-04-24 17:59:4910263if test "${with_libs+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310264 withval=$with_libs;
Matthias Kloseb9621712010-04-24 17:59:4910265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10266$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:3910267LIBS="$withval $LIBS"
10268
10269else
Matthias Kloseb9621712010-04-24 17:59:4910270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3310272fi
10273
Guido van Rossum7f43da71994-08-01 12:15:3010274
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:0810275
10276
10277
10278
10279
10280
Victor Stinner23a683a2019-04-12 19:27:3710281
Chih-Hsuan Yen03c0d2e2018-05-24 06:37:0810282if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10283 if test -n "$ac_tool_prefix"; then
10284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10285set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287$as_echo_n "checking for $ac_word... " >&6; }
10288if ${ac_cv_path_PKG_CONFIG+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290else
10291 case $PKG_CONFIG in
10292 [\\/]* | ?:[\\/]*)
10293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10294 ;;
10295 *)
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $PATH
10298do
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10306 fi
10307done
10308 done
10309IFS=$as_save_IFS
10310
10311 ;;
10312esac
10313fi
10314PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10315if test -n "$PKG_CONFIG"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10317$as_echo "$PKG_CONFIG" >&6; }
10318else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324fi
10325if test -z "$ac_cv_path_PKG_CONFIG"; then
10326 ac_pt_PKG_CONFIG=$PKG_CONFIG
10327 # Extract the first word of "pkg-config", so it can be a program name with args.
10328set dummy pkg-config; ac_word=$2
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333else
10334 case $ac_pt_PKG_CONFIG in
10335 [\\/]* | ?:[\\/]*)
10336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10337 ;;
10338 *)
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340for as_dir in $PATH
10341do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350done
10351 done
10352IFS=$as_save_IFS
10353
10354 ;;
10355esac
10356fi
10357ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10358if test -n "$ac_pt_PKG_CONFIG"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10360$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10361else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
10364fi
10365
10366 if test "x$ac_pt_PKG_CONFIG" = x; then
10367 PKG_CONFIG=""
10368 else
10369 case $cross_compiling:$ac_tool_warned in
10370yes:)
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10373ac_tool_warned=yes ;;
10374esac
10375 PKG_CONFIG=$ac_pt_PKG_CONFIG
10376 fi
10377else
10378 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10379fi
10380
10381fi
10382if test -n "$PKG_CONFIG"; then
10383 _pkg_min_version=0.9.0
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10385$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10386 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388$as_echo "yes" >&6; }
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392 PKG_CONFIG=""
10393 fi
10394fi
Benjamin Peterson0f64b0b2010-03-09 21:49:5210395
10396# Check for use of the system expat library
Matthias Kloseb9621712010-04-24 17:59:4910397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10398$as_echo_n "checking for --with-system-expat... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210399
10400# Check whether --with-system_expat was given.
Matthias Kloseb9621712010-04-24 17:59:4910401if test "${with_system_expat+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210402 withval=$with_system_expat;
Benjamin Peterson79263252010-10-31 16:50:4410403else
10404 with_system_expat="no"
Benjamin Peterson0f64b0b2010-03-09 21:49:5210405fi
10406
10407
Matthias Kloseb9621712010-04-24 17:59:4910408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10409$as_echo "$with_system_expat" >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210410
10411# Check for use of the system libffi library
Matthias Kloseb9621712010-04-24 17:59:4910412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10413$as_echo_n "checking for --with-system-ffi... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210414
10415# Check whether --with-system_ffi was given.
Matthias Kloseb9621712010-04-24 17:59:4910416if test "${with_system_ffi+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210417 withval=$with_system_ffi;
10418fi
10419
10420
Zachary Waref40d4dd2016-09-17 06:25:2410421if test "$ac_sys_system" = "Darwin"
10422then
10423 case "$with_system_ffi" in
10424 "")
10425 with_system_ffi="no"
10426 ;;
10427 yes|no)
10428 ;;
10429 *)
10430 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10431 ;;
10432 esac
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10434$as_echo "$with_system_ffi" >&6; }
10435else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10437$as_echo "yes" >&6; }
10438 if test "$with_system_ffi" != ""
10439 then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
10441$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
10442 fi
10443 with_system_ffi="yes"
10444fi
Zachary Ware935043d2016-09-10 00:01:2110445
Benjamin Peterson0f64b0b2010-03-09 21:49:5210446if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
Benjamin Petersond78735d2010-01-01 16:04:2310447 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10448else
10449 LIBFFI_INCLUDEDIR=""
10450fi
10451
10452
Stefan Krah60187b52012-03-23 18:06:2710453# Check for use of the system libmpdec library
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10455$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10456
10457# Check whether --with-system_libmpdec was given.
10458if test "${with_system_libmpdec+set}" = set; then :
10459 withval=$with_system_libmpdec;
10460else
10461 with_system_libmpdec="no"
10462fi
10463
10464
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10466$as_echo "$with_system_libmpdec" >&6; }
10467
Stefan Krah4d701242020-02-29 21:16:3210468# Check whether _decimal should use a coroutine-local or thread-local context
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
10470$as_echo_n "checking for --with-decimal-contextvar... " >&6; }
10471
10472# Check whether --with-decimal_contextvar was given.
10473if test "${with_decimal_contextvar+set}" = set; then :
10474 withval=$with_decimal_contextvar;
10475else
10476 with_decimal_contextvar="yes"
10477fi
10478
10479
10480if test "$with_decimal_contextvar" != "no"
10481then
10482
10483$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
10484
10485fi
10486
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
10488$as_echo "$with_decimal_contextvar" >&6; }
10489
Benjamin Peterson076ed002010-10-31 17:11:0210490# Check for support for loadable sqlite extensions
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10492$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10493# Check whether --enable-loadable-sqlite-extensions was given.
10494if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10495 enableval=$enable_loadable_sqlite_extensions;
10496else
10497 enable_loadable_sqlite_extensions="no"
10498fi
10499
10500
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10502$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10503
Ned Deilyd819b932013-09-06 08:07:0510504# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10505
10506
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10508$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10509
10510# Check whether --with-tcltk-includes was given.
10511if test "${with_tcltk_includes+set}" = set; then :
10512 withval=$with_tcltk_includes;
10513else
10514 with_tcltk_includes="default"
10515fi
10516
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10518$as_echo "$with_tcltk_includes" >&6; }
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10520$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10521
10522# Check whether --with-tcltk-libs was given.
10523if test "${with_tcltk_libs+set}" = set; then :
10524 withval=$with_tcltk_libs;
10525else
10526 with_tcltk_libs="default"
10527fi
10528
10529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10530$as_echo "$with_tcltk_libs" >&6; }
10531if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10532then
10533 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10534 then
10535 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10536 fi
10537 TCLTK_INCLUDES=""
10538 TCLTK_LIBS=""
10539else
10540 TCLTK_INCLUDES="$with_tcltk_includes"
10541 TCLTK_LIBS="$with_tcltk_libs"
10542fi
10543
Matthias Klose55708cc2009-04-30 08:06:4910544# Check for --with-dbmliborder
Matthias Kloseb9621712010-04-24 17:59:4910545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10546$as_echo_n "checking for --with-dbmliborder... " >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910547
10548# Check whether --with-dbmliborder was given.
Matthias Kloseb9621712010-04-24 17:59:4910549if test "${with_dbmliborder+set}" = set; then :
Matthias Klose55708cc2009-04-30 08:06:4910550 withval=$with_dbmliborder;
10551if test x$with_dbmliborder = xyes
10552then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010553as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910554else
10555 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10556 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10557 then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010558 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910559 fi
10560 done
10561fi
10562fi
10563
Matthias Kloseb9621712010-04-24 17:59:4910564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10565$as_echo "$with_dbmliborder" >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910566
Martin v. Löwis11437992002-04-12 09:54:0310567# Templates for things AC_DEFINEd more than once.
10568# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:0110569
10570
Antoine Pitroua6a4dc82017-09-07 16:56:2410571if test "$ac_cv_pthread_is_default" = yes
Barry Warsawc0d24d8b2000-06-29 16:12:0010572then
Martin v. Löwisa5f73f92001-10-15 08:06:2910573 # Defining _REENTRANT on system with POSIX threads should not hurt.
Matthias Kloseb9621712010-04-24 17:59:4910574 $as_echo "#define _REENTRANT 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:2910575
10576 posix_threads=yes
Miss Islington (bot)8750bce2019-09-28 02:20:3110577 if test "$ac_sys_system" = "SunOS"; then
10578 CFLAGS="$CFLAGS -D_REENTRANT"
10579 fi
Martin v. Löwis130fb172001-07-19 11:00:4110580elif test "$ac_cv_kpthread" = "yes"
10581then
10582 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:4710583 if test "$ac_cv_cxx_thread" = "yes"; then
10584 CXX="$CXX -Kpthread"
10585 fi
Guido van Rossumd0b69ec2001-09-10 14:10:5410586 posix_threads=yes
Martin v. Löwis5f433f02003-05-05 05:05:3010587elif test "$ac_cv_kthread" = "yes"
10588then
10589 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:4710590 if test "$ac_cv_cxx_thread" = "yes"; then
10591 CXX="$CXX -Kthread"
10592 fi
Martin v. Löwis5f433f02003-05-05 05:05:3010593 posix_threads=yes
Martin v. Löwis4ee6eef2003-05-26 05:37:5110594elif test "$ac_cv_pthread" = "yes"
10595then
10596 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:4710597 if test "$ac_cv_cxx_thread" = "yes"; then
10598 CXX="$CXX -pthread"
10599 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:5110600 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110601else
Martin v. Löwis130fb172001-07-19 11:00:4110602 if test ! -z "$withval" -a -d "$withval"
10603 then LDFLAGS="$LDFLAGS -L$withval"
10604 fi
Martin v. Löwis69c0ff32001-10-15 14:34:4210605
10606 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:5110607 # define _POSIX_THREADS in unistd.h. Some apparently don't
10608 # (e.g. gnu pth with pthread emulation)
Matthias Kloseb9621712010-04-24 17:59:4910609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10610$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410612/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:1510613
Martin v. Löwis69c0ff32001-10-15 14:34:4210614#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:1510615#ifdef _POSIX_THREADS
10616yes
10617#endif
Martin v. Löwis11437992002-04-12 09:54:0310618
10619_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:4210620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4910621 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis69c0ff32001-10-15 14:34:4210622 unistd_defines_pthreads=yes
10623else
Martin v. Löwis69c0ff32001-10-15 14:34:4210624 unistd_defines_pthreads=no
10625fi
Matthias Klosec80c93f2010-04-24 17:04:3510626rm -f conftest*
Martin v. Löwis69c0ff32001-10-15 14:34:4210627
Matthias Kloseb9621712010-04-24 17:59:4910628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10629$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:4210630
Matthias Kloseb9621712010-04-24 17:59:4910631 $as_echo "#define _REENTRANT 1" >>confdefs.h
Guido van Rossum9caf77a1996-08-01 00:52:2610632
Martin v. Löwis8158b5a2001-10-08 13:17:2810633 # Just looking for pthread_create in libpthread is not enough:
10634 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10635 # So we really have to include pthread.h, and then link.
10636 _libs=$LIBS
10637 LIBS="$LIBS -lpthread"
Matthias Kloseb9621712010-04-24 17:59:4910638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10639$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410641/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110642
10643#include <stdio.h>
Martin v. Löwis8158b5a2001-10-08 13:17:2810644#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:3110645
Martin v. Löwis8158b5a2001-10-08 13:17:2810646void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:0310647int
10648main ()
10649{
Martin v. Löwis8158b5a2001-10-08 13:17:2810650
10651pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:0310652 ;
10653 return 0;
10654}
10655_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910656if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310657
Matthias Kloseb9621712010-04-24 17:59:4910658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10659$as_echo "yes" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:4210660 posix_threads=yes
Antoine Pitroua6a4dc82017-09-07 16:56:2410661
Guido van Rossum02a1c402000-02-25 19:26:3110662else
Martin v. Löwis11437992002-04-12 09:54:0310663
Martin v. Löwis8158b5a2001-10-08 13:17:2810664 LIBS=$_libs
Matthias Kloseb9621712010-04-24 17:59:4910665 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
Victor Stinnere0be4232011-10-25 11:06:0910666if test "x$ac_cv_func_pthread_detach" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:1510667
Martin v. Löwis69c0ff32001-10-15 14:34:4210668 posix_threads=yes
Antoine Pitroua6a4dc82017-09-07 16:56:2410669
Guido van Rossumad678af1998-10-02 14:42:1510670else
Guido van Rossumad678af1998-10-02 14:42:1510671
Matthias Kloseb9621712010-04-24 17:59:4910672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10673$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910674if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910675 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410676else
Martin v. Löwis11437992002-04-12 09:54:0310677 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810678LIBS="-lpthreads $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410680/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310681
Thomas Wouters47b49bf2007-08-30 22:15:3310682/* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310685#ifdef __cplusplus
10686extern "C"
10687#endif
Martin v. Löwis11437992002-04-12 09:54:0310688char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310689int
10690main ()
10691{
Thomas Wouters47b49bf2007-08-30 22:15:3310692return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310693 ;
10694 return 0;
10695}
10696_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910697if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310698 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:0910699else
Matthias Kloseb9621712010-04-24 17:59:4910700 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:0910701fi
Matthias Kloseb9621712010-04-24 17:59:4910702rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310704LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:0910705fi
Matthias Kloseb9621712010-04-24 17:59:4910706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10707$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910708if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
Greg Steinadf63d62000-07-05 10:38:0910709
Guido van Rossumd0b69ec2001-09-10 14:10:5410710 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110711 LIBS="$LIBS -lpthreads"
Antoine Pitroua6a4dc82017-09-07 16:56:2410712
Greg Steinadf63d62000-07-05 10:38:0910713else
Greg Steinadf63d62000-07-05 10:38:0910714
Matthias Kloseb9621712010-04-24 17:59:4910715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10716$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910717if ${ac_cv_lib_c_r_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910718 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:0910719else
Martin v. Löwis11437992002-04-12 09:54:0310720 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:0910721LIBS="-lc_r $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410723/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310724
Thomas Wouters47b49bf2007-08-30 22:15:3310725/* Override any GCC internal prototype to avoid an error.
10726 Use char because int might match the return type of a GCC
10727 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310728#ifdef __cplusplus
10729extern "C"
10730#endif
Martin v. Löwis11437992002-04-12 09:54:0310731char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310732int
10733main ()
10734{
Thomas Wouters47b49bf2007-08-30 22:15:3310735return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310736 ;
10737 return 0;
10738}
10739_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910740if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310741 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:2910742else
Matthias Kloseb9621712010-04-24 17:59:4910743 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:2910744fi
Matthias Kloseb9621712010-04-24 17:59:4910745rm -f core conftest.err conftest.$ac_objext \
10746 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310747LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:2910748fi
Matthias Kloseb9621712010-04-24 17:59:4910749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10750$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910751if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
Guido van Rossum49545951997-12-02 19:28:2910752
Guido van Rossumd0b69ec2001-09-10 14:10:5410753 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110754 LIBS="$LIBS -lc_r"
Antoine Pitroua6a4dc82017-09-07 16:56:2410755
Guido van Rossum07bd90e2000-05-08 13:41:3810756else
Guido van Rossum07bd90e2000-05-08 13:41:3810757
Matthias Kloseb9621712010-04-24 17:59:4910758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10759$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910760if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910761 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:0710762else
Martin v. Löwis11437992002-04-12 09:54:0310763 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710764LIBS="-lpthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410766/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310767
Thomas Wouters47b49bf2007-08-30 22:15:3310768/* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310771#ifdef __cplusplus
10772extern "C"
10773#endif
Martin v. Löwis11437992002-04-12 09:54:0310774char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310775int
10776main ()
10777{
Thomas Wouters47b49bf2007-08-30 22:15:3310778return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310779 ;
10780 return 0;
10781}
10782_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910783if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310784 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:0710785else
Matthias Kloseb9621712010-04-24 17:59:4910786 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:0710787fi
Matthias Kloseb9621712010-04-24 17:59:4910788rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310790LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710791fi
Matthias Kloseb9621712010-04-24 17:59:4910792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10793$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910794if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
Guido van Rossum8d6e8af2000-10-30 17:45:0710795
Guido van Rossumd0b69ec2001-09-10 14:10:5410796 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110797 LIBS="$LIBS -lpthread"
Antoine Pitroua6a4dc82017-09-07 16:56:2410798
Guido van Rossum8d6e8af2000-10-30 17:45:0710799else
Guido van Rossum8d6e8af2000-10-30 17:45:0710800
Matthias Kloseb9621712010-04-24 17:59:4910801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10802$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910803if ${ac_cv_lib_cma_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910804 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:3210805else
Martin v. Löwis11437992002-04-12 09:54:0310806 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210807LIBS="-lcma $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410809/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310810
Thomas Wouters47b49bf2007-08-30 22:15:3310811/* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310814#ifdef __cplusplus
10815extern "C"
10816#endif
Martin v. Löwis11437992002-04-12 09:54:0310817char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310818int
10819main ()
10820{
Thomas Wouters47b49bf2007-08-30 22:15:3310821return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310822 ;
10823 return 0;
10824}
10825_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910826if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310827 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:3210828else
Matthias Kloseb9621712010-04-24 17:59:4910829 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:3210830fi
Matthias Kloseb9621712010-04-24 17:59:4910831rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310833LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210834fi
Matthias Kloseb9621712010-04-24 17:59:4910835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10836$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910837if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
Guido van Rossumb93a8621998-05-07 13:27:3210838
Guido van Rossumd0b69ec2001-09-10 14:10:5410839 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110840 LIBS="$LIBS -lcma"
Antoine Pitroua6a4dc82017-09-07 16:56:2410841
Guido van Rossumb93a8621998-05-07 13:27:3210842else
Thomas Wouters0db2b2b2000-08-26 11:33:4310843
Antoine Pitroua6a4dc82017-09-07 16:56:2410844 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
10845
Guido van Rossum2d38f911996-06-26 19:47:0110846fi
10847
Guido van Rossum627b2d71993-12-24 10:39:1610848
Guido van Rossum7b3853f1996-07-30 18:09:3510849fi
10850
Guido van Rossum0be3e491997-05-22 20:33:3310851fi
10852
Guido van Rossum49545951997-12-02 19:28:2910853fi
10854
Guido van Rossumb93a8621998-05-07 13:27:3210855fi
10856
Martin v. Löwisf90ae202002-06-11 06:22:3110857fi
Matthias Kloseb9621712010-04-24 17:59:4910858rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2610860
Matthias Kloseb9621712010-04-24 17:59:4910861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10862$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910863if ${ac_cv_lib_mpc_usconfig+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910864 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410865else
Martin v. Löwis11437992002-04-12 09:54:0310866 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810867LIBS="-lmpc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410869/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310870
Thomas Wouters47b49bf2007-08-30 22:15:3310871/* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310874#ifdef __cplusplus
10875extern "C"
10876#endif
Martin v. Löwis11437992002-04-12 09:54:0310877char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310878int
10879main ()
10880{
Thomas Wouters47b49bf2007-08-30 22:15:3310881return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310882 ;
10883 return 0;
10884}
10885_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910886if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310887 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410888else
Matthias Kloseb9621712010-04-24 17:59:4910889 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:1610890fi
Matthias Kloseb9621712010-04-24 17:59:4910891rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310893LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410894fi
Matthias Kloseb9621712010-04-24 17:59:4910895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10896$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910897if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
Guido van Rossum627b2d71993-12-24 10:39:1610898
Martin v. Löwis130fb172001-07-19 11:00:4110899 LIBS="$LIBS -lmpc"
Antoine Pitroua6a4dc82017-09-07 16:56:2410900
Guido van Rossum627b2d71993-12-24 10:39:1610901fi
10902
Martin v. Löwis3d2b5492002-03-15 13:48:2110903
Martin v. Löwis4ee6eef2003-05-26 05:37:5110904fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410905
Martin v. Löwis4ee6eef2003-05-26 05:37:5110906if test "$posix_threads" = "yes"; then
10907 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:2410908
Matthias Kloseb9621712010-04-24 17:59:4910909$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110910
10911 fi
10912
10913 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10914 case $ac_sys_system/$ac_sys_release in
Charles-François Natali996f6062011-07-21 17:45:3110915 SunOS/5.6)
Matthias Kloseb9621712010-04-24 17:59:4910916$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
Martin v. Löwisa7a76d32002-10-04 07:21:2410917
Martin v. Löwis4ee6eef2003-05-26 05:37:5110918 ;;
10919 SunOS/5.8)
Matthias Kloseb9621712010-04-24 17:59:4910920$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110921
10922 ;;
Charles-François Natali996f6062011-07-21 17:45:3110923 AIX/*)
Matthias Kloseb9621712010-04-24 17:59:4910924$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Christian Heimes7b3ce6a2008-01-31 14:31:4510925
10926 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:5110927 esac
10928
Matthias Kloseb9621712010-04-24 17:59:4910929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10930$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910931 if ${ac_cv_pthread_system_supported+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910932 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5110933else
Matthias Kloseb9621712010-04-24 17:59:4910934 if test "$cross_compiling" = yes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110935 ac_cv_pthread_system_supported=no
10936else
Matthias Kloseb9621712010-04-24 17:59:4910937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410938/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110939
10940 #include <stdio.h>
10941 #include <pthread.h>
Martin v. Löwis4ee6eef2003-05-26 05:37:5110942 void *foo(void *parm) {
10943 return NULL;
10944 }
10945 main() {
10946 pthread_attr_t attr;
10947 pthread_t id;
Miss Islington (bot)9feda9f2020-12-13 22:01:5910948 if (pthread_attr_init(&attr)) return (-1);
10949 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
10950 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
10951 return (0);
Martin v. Löwis4ee6eef2003-05-26 05:37:5110952 }
10953_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910954if ac_fn_c_try_run "$LINENO"; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110955 ac_cv_pthread_system_supported=yes
10956else
Matthias Kloseb9621712010-04-24 17:59:4910957 ac_cv_pthread_system_supported=no
Martin v. Löwis4ee6eef2003-05-26 05:37:5110958fi
Matthias Kloseb9621712010-04-24 17:59:4910959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10960 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:5110961fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410962
Thomas Wouters47b49bf2007-08-30 22:15:3310963
Guido van Rossum627b2d71993-12-24 10:39:1610964fi
10965
Matthias Kloseb9621712010-04-24 17:59:4910966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10967$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5110968 if test "$ac_cv_pthread_system_supported" = "yes"; then
10969
Matthias Kloseb9621712010-04-24 17:59:4910970$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110971
10972 fi
Matthias Kloseb9621712010-04-24 17:59:4910973 for ac_func in pthread_sigmask
10974do :
10975 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
Victor Stinnere0be4232011-10-25 11:06:0910976if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110977 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910978#define HAVE_PTHREAD_SIGMASK 1
Martin v. Löwis4ee6eef2003-05-26 05:37:5110979_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:4910980 case $ac_sys_system in
10981 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:5110982
Matthias Kloseb9621712010-04-24 17:59:4910983$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
Jason Tishlerfac083d2003-07-22 15:20:4910984
10985 ;;
10986 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:5110987fi
10988done
10989
pdoxe14679c2017-10-05 07:01:5610990 for ac_func in pthread_getcpuclockid
10991do :
10992 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
10993if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then :
10994 cat >>confdefs.h <<_ACEOF
10995#define HAVE_PTHREAD_GETCPUCLOCKID 1
10996_ACEOF
10997
10998fi
10999done
11000
Martin v. Löwis4ee6eef2003-05-26 05:37:5111001fi
11002
11003
Martin v. Löwisa2ac6022001-08-09 11:40:1411004# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:0311005
Matthias Kloseb9621712010-04-24 17:59:4911006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
11007$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3311008# Check whether --enable-ipv6 was given.
Matthias Kloseb9621712010-04-24 17:59:4911009if test "${enable_ipv6+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311010 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:1411011 no)
Matthias Kloseb9621712010-04-24 17:59:4911012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411014 ipv6=no
11015 ;;
Matthias Kloseb9621712010-04-24 17:59:4911016 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017$as_echo "yes" >&6; }
11018 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa2ac6022001-08-09 11:40:1411019
11020 ipv6=yes
11021 ;;
Martin v. Löwis11437992002-04-12 09:54:0311022 esac
Martin v. Löwisa2ac6022001-08-09 11:40:1411023else
Martin v. Löwis11437992002-04-12 09:54:0311024
Matthias Kloseb9621712010-04-24 17:59:4911025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411026/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:1411027 /* AF_INET6 available check */
11028#include <sys/types.h>
11029#include <sys/socket.h>
Charles-François Natalif6fd7942013-01-08 18:49:4211030int
11031main ()
Martin v. Löwisa2ac6022001-08-09 11:40:1411032{
Charles-François Natalif6fd7942013-01-08 18:49:4211033int domain = AF_INET6;
11034 ;
11035 return 0;
Martin v. Löwisa2ac6022001-08-09 11:40:1411036}
Martin v. Löwis11437992002-04-12 09:54:0311037_ACEOF
Charles-François Natalif6fd7942013-01-08 18:49:4211038if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4411039
Matthias Kloseb9621712010-04-24 17:59:4911040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11041$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411042 ipv6=yes
Matthias Kloseb159a552010-04-25 21:00:4411043
Martin v. Löwisa2ac6022001-08-09 11:40:1411044else
Matthias Kloseb159a552010-04-25 21:00:4411045
Matthias Kloseb9621712010-04-24 17:59:4911046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411048 ipv6=no
Matthias Kloseb159a552010-04-25 21:00:4411049
Martin v. Löwisa2ac6022001-08-09 11:40:1411050fi
Charles-François Natalif6fd7942013-01-08 18:49:4211051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3311052
Martin v. Löwisa5f8bb52001-09-05 08:22:3411053if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
11055$as_echo_n "checking if RFC2553 API is available... " >&6; }
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411057/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4411058
11059 #include <sys/types.h>
Martin v. Löwisa5f8bb52001-09-05 08:22:3411060#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:0311061int
11062main ()
11063{
Martin v. Löwisa5f8bb52001-09-05 08:22:3411064struct sockaddr_in6 x;
Matthias Kloseb159a552010-04-25 21:00:4411065 x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:0311066 ;
11067 return 0;
11068}
Matthias Kloseb159a552010-04-25 21:00:4411069
Martin v. Löwis11437992002-04-12 09:54:0311070_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911071if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4411072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911074$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4411075 ipv6=yes
11076
Martin v. Löwisa5f8bb52001-09-05 08:22:3411077else
Matthias Kloseb159a552010-04-25 21:00:4411078
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:4911080$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4411081 ipv6=no
11082
Martin v. Löwisa5f8bb52001-09-05 08:22:3411083fi
Thomas Wouters47b49bf2007-08-30 22:15:3311084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:3411085fi
11086
11087if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911088 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa5f8bb52001-09-05 08:22:3411089
11090fi
11091
Thomas Wouters47b49bf2007-08-30 22:15:3311092fi
11093
Martin v. Löwisa2ac6022001-08-09 11:40:1411094
11095ipv6type=unknown
11096ipv6lib=none
11097ipv6trylibc=no
11098
11099if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
11101$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:1111102 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11103 do
Martin v. Löwisa2ac6022001-08-09 11:40:1411104 case $i in
11105 inria)
Matthias Kloseb9621712010-04-24 17:59:4911106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411107/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911108
Martin v. Löwisa2ac6022001-08-09 11:40:1411109#include <netinet/in.h>
11110#ifdef IPV6_INRIA_VERSION
11111yes
11112#endif
Martin v. Löwis11437992002-04-12 09:54:0311113_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911115 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis44ddbde2001-12-02 10:15:3711116 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:1411117fi
Matthias Klosec80c93f2010-04-24 17:04:3511118rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411119
11120 ;;
11121 kame)
Matthias Kloseb9621712010-04-24 17:59:4911122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411123/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911124
Martin v. Löwisa2ac6022001-08-09 11:40:1411125#include <netinet/in.h>
11126#ifdef __KAME__
11127yes
11128#endif
Martin v. Löwis11437992002-04-12 09:54:0311129_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911131 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411132 ipv6type=$i;
11133 ipv6lib=inet6
11134 ipv6libdir=/usr/local/v6/lib
11135 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411136fi
Matthias Klosec80c93f2010-04-24 17:04:3511137rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411138
11139 ;;
11140 linux-glibc)
Matthias Kloseb9621712010-04-24 17:59:4911141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411142/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911143
Martin v. Löwisa2ac6022001-08-09 11:40:1411144#include <features.h>
11145#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11146yes
11147#endif
Martin v. Löwis11437992002-04-12 09:54:0311148_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911150 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411151 ipv6type=$i;
11152 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411153fi
Matthias Klosec80c93f2010-04-24 17:04:3511154rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411155
11156 ;;
11157 linux-inet6)
11158 if test -d /usr/inet6; then
11159 ipv6type=$i
11160 ipv6lib=inet6
11161 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:4911162 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411163 fi
11164 ;;
11165 solaris)
11166 if test -f /etc/netconfig; then
Antoine Pitrouf3fcd9f2011-01-03 18:53:5011167 if $GREP -q tcp6 /etc/netconfig; then
Martin v. Löwisa2ac6022001-08-09 11:40:1411168 ipv6type=$i
11169 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411170 fi
11171 fi
11172 ;;
11173 toshiba)
Matthias Kloseb9621712010-04-24 17:59:4911174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411175/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911176
Martin v. Löwisa2ac6022001-08-09 11:40:1411177#include <sys/param.h>
11178#ifdef _TOSHIBA_INET6
11179yes
11180#endif
Martin v. Löwis11437992002-04-12 09:54:0311181_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911183 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411184 ipv6type=$i;
11185 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711186 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411187fi
Matthias Klosec80c93f2010-04-24 17:04:3511188rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411189
11190 ;;
11191 v6d)
Matthias Kloseb9621712010-04-24 17:59:4911192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411193/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911194
Martin v. Löwisa2ac6022001-08-09 11:40:1411195#include </usr/local/v6/include/sys/v6config.h>
11196#ifdef __V6D__
11197yes
11198#endif
Martin v. Löwis11437992002-04-12 09:54:0311199_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911201 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411202 ipv6type=$i;
11203 ipv6lib=v6;
11204 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:4911205 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411206fi
Matthias Klosec80c93f2010-04-24 17:04:3511207rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411208
11209 ;;
11210 zeta)
Matthias Kloseb9621712010-04-24 17:59:4911211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411212/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911213
Martin v. Löwisa2ac6022001-08-09 11:40:1411214#include <sys/param.h>
11215#ifdef _ZETA_MINAMI_INET6
11216yes
11217#endif
Martin v. Löwis11437992002-04-12 09:54:0311218_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911220 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411221 ipv6type=$i;
11222 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711223 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411224fi
Matthias Klosec80c93f2010-04-24 17:04:3511225rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411226
11227 ;;
11228 esac
11229 if test "$ipv6type" != "unknown"; then
11230 break
11231 fi
11232 done
Matthias Kloseb9621712010-04-24 17:59:4911233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11234$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411235fi
11236
11237if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11238 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11239 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11240 echo "using lib$ipv6lib"
11241 else
11242 if test $ipv6trylibc = "yes"; then
11243 echo "using libc"
11244 else
11245 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11246 echo "You need to fetch lib$ipv6lib.a from appropriate"
11247 echo 'ipv6 kit and compile beforehand.'
11248 exit 1
11249 fi
11250 fi
11251fi
11252
Larry Hastingsa6cc5512015-04-13 21:48:4011253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11254$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h. */
11257 /* CAN_RAW_FD_FRAMES available check */
11258#include <linux/can/raw.h>
11259int
11260main ()
11261{
11262int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_compile "$LINENO"; then :
11268
11269
11270$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11271
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273$as_echo "yes" >&6; }
11274
11275else
11276
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279
11280fi
11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282
Martin v. Löwisa3fb4f72002-06-09 13:33:5411283# Check for --with-doc-strings
Matthias Kloseb9621712010-04-24 17:59:4911284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11285$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411286
Thomas Wouters47b49bf2007-08-30 22:15:3311287# Check whether --with-doc-strings was given.
Matthias Kloseb9621712010-04-24 17:59:4911288if test "${with_doc_strings+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311289 withval=$with_doc_strings;
11290fi
Martin v. Löwisa3fb4f72002-06-09 13:33:5411291
Martin v. Löwisa3fb4f72002-06-09 13:33:5411292
11293if test -z "$with_doc_strings"
11294then with_doc_strings="yes"
11295fi
11296if test "$with_doc_strings" != "no"
11297then
11298
Matthias Kloseb9621712010-04-24 17:59:4911299$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
Martin v. Löwisa3fb4f72002-06-09 13:33:5411300
11301fi
Matthias Kloseb9621712010-04-24 17:59:4911302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11303$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411304
Martin v. Löwisf30d60e2004-06-08 08:17:4411305# Check for Python-specific malloc support
Matthias Kloseb9621712010-04-24 17:59:4911306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11307$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0311308
Thomas Wouters47b49bf2007-08-30 22:15:3311309# Check whether --with-pymalloc was given.
Matthias Kloseb9621712010-04-24 17:59:4911310if test "${with_pymalloc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311311 withval=$with_pymalloc;
11312fi
Michael W. Hudson54241132001-12-07 15:38:2611313
Neil Schemenauera35c6882001-02-27 04:45:0511314
Neil Schemenauer16c22972002-03-22 15:34:4911315if test -z "$with_pymalloc"
Barry Warsaw35f3a2c2010-09-03 18:30:3011316then
11317 with_pymalloc="yes"
Neil Schemenauer16c22972002-03-22 15:34:4911318fi
11319if test "$with_pymalloc" != "no"
11320then
Martin v. Löwis11437992002-04-12 09:54:0311321
Matthias Kloseb9621712010-04-24 17:59:4911322$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
Neil Schemenauer16c22972002-03-22 15:34:4911323
11324fi
Matthias Kloseb9621712010-04-24 17:59:4911325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11326$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:4911327
Nick Coghlan6ea41862017-06-11 03:16:1511328# Check for --with-c-locale-coercion
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
11330$as_echo_n "checking for --with-c-locale-coercion... " >&6; }
11331
11332# Check whether --with-c-locale-coercion was given.
11333if test "${with_c_locale_coercion+set}" = set; then :
11334 withval=$with_c_locale_coercion;
11335fi
11336
11337
11338if test -z "$with_c_locale_coercion"
11339then
11340 with_c_locale_coercion="yes"
11341fi
11342if test "$with_c_locale_coercion" != "no"
11343then
11344
11345$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
11346
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
11349$as_echo "$with_c_locale_coercion" >&6; }
11350
Benjamin Peterson05159c42009-12-03 03:01:2711351# Check for Valgrind support
Matthias Kloseb9621712010-04-24 17:59:4911352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11353$as_echo_n "checking for --with-valgrind... " >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711354
11355# Check whether --with-valgrind was given.
Matthias Kloseb9621712010-04-24 17:59:4911356if test "${with_valgrind+set}" = set; then :
Benjamin Peterson05159c42009-12-03 03:01:2711357 withval=$with_valgrind;
11358else
11359 with_valgrind=no
11360fi
11361
Matthias Kloseb9621712010-04-24 17:59:4911362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11363$as_echo "$with_valgrind" >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711364if test "$with_valgrind" != no; then
Matthias Kloseb9621712010-04-24 17:59:4911365 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0911366if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
Benjamin Peterson05159c42009-12-03 03:01:2711367
Matthias Kloseb9621712010-04-24 17:59:4911368$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
Benjamin Peterson05159c42009-12-03 03:01:2711369
11370else
Ross Lagerwallb0ae53d2011-06-10 05:30:3011371 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
Benjamin Peterson05159c42009-12-03 03:01:2711372
11373fi
11374
11375
Jeffrey Yasskin39370832010-05-03 19:29:3411376 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
Benjamin Peterson05159c42009-12-03 03:01:2711377fi
11378
Łukasz Langaa785c872016-09-10 00:37:3711379# Check for DTrace support
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11381$as_echo_n "checking for --with-dtrace... " >&6; }
11382
11383# Check whether --with-dtrace was given.
11384if test "${with_dtrace+set}" = set; then :
11385 withval=$with_dtrace;
11386else
11387 with_dtrace=no
11388fi
11389
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11391$as_echo "$with_dtrace" >&6; }
11392
11393
11394
11395
11396
11397DTRACE=
11398DFLAGS=
11399DTRACE_HEADERS=
11400DTRACE_OBJS=
11401
11402if test "$with_dtrace" = "yes"
11403then
11404 # Extract the first word of "dtrace", so it can be a program name with args.
11405set dummy dtrace; ac_word=$2
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407$as_echo_n "checking for $ac_word... " >&6; }
11408if ${ac_cv_path_DTRACE+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410else
11411 case $DTRACE in
11412 [\\/]* | ?:[\\/]*)
11413 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
11414 ;;
11415 *)
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417for as_dir in $PATH
11418do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11426 fi
11427done
11428 done
11429IFS=$as_save_IFS
11430
11431 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11432 ;;
11433esac
11434fi
11435DTRACE=$ac_cv_path_DTRACE
11436if test -n "$DTRACE"; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11438$as_echo "$DTRACE" >&6; }
11439else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441$as_echo "no" >&6; }
11442fi
11443
11444
11445 if test "$DTRACE" = "not found"; then
11446 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
11447 fi
11448
11449$as_echo "#define WITH_DTRACE 1" >>confdefs.h
11450
11451 DTRACE_HEADERS="Include/pydtrace_probes.h"
11452
11453 # On OS X, DTrace providers do not need to be explicitly compiled and
11454 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
11455 # generation flag '-G'. We check for presence of this flag, rather than
11456 # hardcoding support by OS, in the interest of robustness.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11458$as_echo_n "checking whether DTrace probes require linking... " >&6; }
11459if ${ac_cv_dtrace_link+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461else
11462 ac_cv_dtrace_link=no
Jakub Kulík5c8f5372019-01-24 17:29:4811463 echo 'BEGIN{}' > conftest.d
Łukasz Langaa785c872016-09-10 00:37:3711464 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11465 ac_cv_dtrace_link=yes
11466
11467fi
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11469$as_echo "$ac_cv_dtrace_link" >&6; }
11470 if test "$ac_cv_dtrace_link" = "yes"; then
11471 DTRACE_OBJS="Python/pydtrace.o"
11472 fi
11473fi
11474
Guido van Rossum48bdbfc1996-05-28 22:53:4811475# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:3011476
Guido van Rossum98935bf2001-09-05 19:13:1611477DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:3011478
Guido van Rossume97ee181999-12-20 21:27:2211479# the dlopen() function means we might want to use dynload_shlib.o. some
11480# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:5111481for ac_func in dlopen
Matthias Kloseb9621712010-04-24 17:59:4911482do :
11483 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Victor Stinnere0be4232011-10-25 11:06:0911484if test "x$ac_cv_func_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311485 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911486#define HAVE_DLOPEN 1
Martin v. Löwis11437992002-04-12 09:54:0311487_ACEOF
Guido van Rossume97ee181999-12-20 21:27:2211488
Guido van Rossume97ee181999-12-20 21:27:2211489fi
Thomas Wouters3a584202000-08-05 23:28:5111490done
Guido van Rossume97ee181999-12-20 21:27:2211491
Michael W. Hudson54241132001-12-07 15:38:2611492
Guido van Rossume97ee181999-12-20 21:27:2211493# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11494# loading of modules.
11495
Matthias Kloseb9621712010-04-24 17:59:4911496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11497$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211498if test -z "$DYNLOADFILE"
11499then
11500 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:4411501 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
11502 if test "$ac_cv_func_dlopen" = yes
11503 then DYNLOADFILE="dynload_shlib.o"
11504 else DYNLOADFILE="dynload_aix.o"
11505 fi
11506 ;;
Guido van Rossume97ee181999-12-20 21:27:2211507 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Guido van Rossume97ee181999-12-20 21:27:2211508 *)
11509 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11510 # out any dynamic loading
11511 if test "$ac_cv_func_dlopen" = yes
11512 then DYNLOADFILE="dynload_shlib.o"
11513 else DYNLOADFILE="dynload_stub.o"
11514 fi
11515 ;;
11516 esac
11517fi
Matthias Kloseb9621712010-04-24 17:59:4911518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11519$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211520if test "$DYNLOADFILE" != "dynload_stub.o"
11521then
Martin v. Löwis11437992002-04-12 09:54:0311522
Matthias Kloseb9621712010-04-24 17:59:4911523$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
Guido van Rossume97ee181999-12-20 21:27:2211524
11525fi
11526
Neil Schemenauer4e425612001-06-19 15:44:1511527# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11528
Michael W. Hudson54241132001-12-07 15:38:2611529
Matthias Kloseb9621712010-04-24 17:59:4911530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11531$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:1511532if test -z "$MACHDEP_OBJS"
11533then
Jack Jansene578a632001-08-15 01:27:1411534 MACHDEP_OBJS=$extra_machdep_objs
11535else
11536 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:1511537fi
doko@ubuntu.com9c7817e2012-06-30 15:05:1311538if test -z "$MACHDEP_OBJS"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11540$as_echo "none" >&6; }
11541else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11543$as_echo "$MACHDEP_OBJS" >&6; }
11544fi
Neil Schemenauer4e425612001-06-19 15:44:1511545
Guido van Rossum627b2d71993-12-24 10:39:1611546# checks for library functions
Antoine Pitroub1c54962010-10-14 15:05:3811547for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
Pablo Galindoaac4d032019-05-31 18:39:4711548 clock confstr copy_file_range ctermid dup3 execv explicit_bzero explicit_memset \
11549 faccessat fchmod fchmodat fchown fchownat \
Miss Islington (bot)84eb42e2019-09-12 11:19:2111550 fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
Victor Stinner4d6a3d62014-12-21 00:16:3811551 futimens futimes gai_strerror getentropy \
William Grzybowski23e65b22018-09-07 12:06:1511552 getgrgid_r getgrnam_r \
Ross Lagerwallb0ae53d2011-06-10 05:30:3011553 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
William Grzybowski23e65b22018-09-07 12:06:1511554 getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \
xdegaye5ad7ef82017-11-23 10:13:2211555 if_nameindex \
Miss Islington (bot)12acb5b2019-09-09 13:01:4111556 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
Antoine Pitrouf0effe62011-11-26 00:11:0211557 memrchr mbrtowc mkdirat mkfifo \
Inada Naokibee31ce2019-05-30 07:35:4111558 madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
Joannah Nanjekye92b83222019-01-16 13:29:2611559 posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \
Inada Naoki001fee12019-02-20 01:00:0911560 pthread_condattr_setclock pthread_init pthread_kill putenv pwrite pwritev pwritev2 \
11561 readlink readlinkat readv realpath renameat \
Benjamin Petersona2344852017-09-04 17:21:4211562 sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
Antoine Pitrou061cfb52011-02-28 22:25:2211563 setgid sethostname \
Giampaolo Rodolà18e8bcb2011-02-25 20:57:5411564 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
Charles-François Nataliea0d5fc2011-09-06 17:03:3511565 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11566 sched_rr_get_interval \
Antoine Pitrou9d3627e2018-05-04 11:00:5011567 sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \
Michael Osipov48ce4892018-08-23 13:27:1911568 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy strsignal symlinkat sync \
Michael W. Hudson34f20ea2002-05-27 15:08:2411569 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Ross Lagerwall7807c352011-03-17 18:20:3011570 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
pxinwrf2d7ac72019-05-21 10:46:3711571 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn
Matthias Kloseb9621712010-04-24 17:59:4911572do :
11573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3011575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0311576 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0311578_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3811579
Guido van Rossumd0b69ec2001-09-10 14:10:5411580fi
11581done
11582
Michael W. Hudson54241132001-12-07 15:38:2611583
Benjamin Peterson40caa052018-09-12 22:52:4011584# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11585# links. Some libc implementations have a stub lchmod implementation that always
11586# returns an error.
11587if test "$MACHDEP" != linux; then
Benjamin Petersoned709d52018-09-13 00:22:1111588 for ac_func in lchmod
11589do :
Benjamin Peterson40caa052018-09-12 22:52:4011590 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11591if test "x$ac_cv_func_lchmod" = xyes; then :
Benjamin Petersoned709d52018-09-13 00:22:1111592 cat >>confdefs.h <<_ACEOF
11593#define HAVE_LCHMOD 1
11594_ACEOF
Benjamin Peterson40caa052018-09-12 22:52:4011595
11596fi
Benjamin Petersoned709d52018-09-13 00:22:1111597done
Benjamin Peterson40caa052018-09-12 22:52:4011598
11599fi
11600
Gregory P. Smithdf300d52012-01-22 02:20:1511601ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11602 #include <dirent.h>
11603"
11604if test "x$ac_cv_have_decl_dirfd" = xyes; then :
11605
11606$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
11607
11608fi
11609
11610
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511611# For some functions, having a definition is not sufficient, since
11612# we want to take their address.
Matthias Kloseb9621712010-04-24 17:59:4911613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11614$as_echo_n "checking for chroot... " >&6; }
11615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411616/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511617#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511618int
11619main ()
11620{
11621void *x=chroot
11622 ;
11623 return 0;
11624}
11625_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911626if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511627
Matthias Kloseb9621712010-04-24 17:59:4911628$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511629
Matthias Kloseb159a552010-04-25 21:00:4411630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911631$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511632else
Matthias Kloseb9621712010-04-24 17:59:4911633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511635
11636fi
Thomas Wouters47b49bf2007-08-30 22:15:3311637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11639$as_echo_n "checking for link... " >&6; }
11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411641/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511642#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511643int
11644main ()
11645{
11646void *x=link
11647 ;
11648 return 0;
11649}
11650_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911651if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511652
Matthias Kloseb9621712010-04-24 17:59:4911653$as_echo "#define HAVE_LINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511654
Matthias Kloseb159a552010-04-25 21:00:4411655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911656$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511657else
Matthias Kloseb9621712010-04-24 17:59:4911658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511660
11661fi
Thomas Wouters47b49bf2007-08-30 22:15:3311662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11664$as_echo_n "checking for symlink... " >&6; }
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411666/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511667#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511668int
11669main ()
11670{
11671void *x=symlink
11672 ;
11673 return 0;
11674}
11675_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911676if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511677
Matthias Kloseb9621712010-04-24 17:59:4911678$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511679
Matthias Kloseb159a552010-04-25 21:00:4411680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911681$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511682else
Matthias Kloseb9621712010-04-24 17:59:4911683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511685
11686fi
Thomas Wouters47b49bf2007-08-30 22:15:3311687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11689$as_echo_n "checking for fchdir... " >&6; }
11690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411691/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011692#include <unistd.h>
11693int
11694main ()
11695{
11696void *x=fchdir
11697 ;
11698 return 0;
11699}
11700_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911701if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011702
Matthias Kloseb9621712010-04-24 17:59:4911703$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011704
Matthias Kloseb159a552010-04-25 21:00:4411705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911706$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011707else
Matthias Kloseb9621712010-04-24 17:59:4911708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011710
11711fi
Thomas Wouters47b49bf2007-08-30 22:15:3311712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11714$as_echo_n "checking for fsync... " >&6; }
11715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411716/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011717#include <unistd.h>
11718int
11719main ()
11720{
11721void *x=fsync
11722 ;
11723 return 0;
11724}
11725_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911726if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011727
Matthias Kloseb9621712010-04-24 17:59:4911728$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011729
Matthias Kloseb159a552010-04-25 21:00:4411730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911731$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011732else
Matthias Kloseb9621712010-04-24 17:59:4911733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011735
11736fi
Thomas Wouters47b49bf2007-08-30 22:15:3311737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11739$as_echo_n "checking for fdatasync... " >&6; }
11740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411741/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011742#include <unistd.h>
11743int
11744main ()
11745{
11746void *x=fdatasync
11747 ;
11748 return 0;
11749}
11750_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911751if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011752
Matthias Kloseb9621712010-04-24 17:59:4911753$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011754
Matthias Kloseb159a552010-04-25 21:00:4411755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911756$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011757else
Matthias Kloseb9621712010-04-24 17:59:4911758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011760
11761fi
Thomas Wouters47b49bf2007-08-30 22:15:3311762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11764$as_echo_n "checking for epoll... " >&6; }
11765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511766/* end confdefs.h. */
11767#include <sys/epoll.h>
11768int
11769main ()
11770{
11771void *x=epoll_create
11772 ;
11773 return 0;
11774}
11775_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911776if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511777
Matthias Kloseb9621712010-04-24 17:59:4911778$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511779
Matthias Kloseb159a552010-04-25 21:00:4411780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911781$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511782else
Matthias Kloseb9621712010-04-24 17:59:4911783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511785
11786fi
Christian Heimes4fbc72b2008-03-22 00:47:3511787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Peterson95c16622011-12-27 21:36:3211788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11789$as_echo_n "checking for epoll_create1... " >&6; }
11790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h. */
11792#include <sys/epoll.h>
11793int
11794main ()
11795{
11796void *x=epoll_create1
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801if ac_fn_c_try_compile "$LINENO"; then :
11802
11803$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806$as_echo "yes" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810
11811fi
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11814$as_echo_n "checking for kqueue... " >&6; }
11815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511816/* end confdefs.h. */
11817
11818#include <sys/types.h>
11819#include <sys/event.h>
11820
11821int
11822main ()
11823{
11824int x=kqueue()
11825 ;
11826 return 0;
11827}
11828_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911829if ac_fn_c_try_compile "$LINENO"; then :
Christian Heimes4fbc72b2008-03-22 00:47:3511830
Matthias Kloseb9621712010-04-24 17:59:4911831$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511832
Matthias Kloseb159a552010-04-25 21:00:4411833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911834$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511835else
Matthias Kloseb9621712010-04-24 17:59:4911836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511838
11839fi
Christian Heimes4fbc72b2008-03-22 00:47:3511840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimesb7bd5df2013-10-22 09:21:5411841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11842$as_echo_n "checking for prlimit... " >&6; }
11843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h. */
11845
11846#include <sys/time.h>
11847#include <sys/resource.h>
11848
11849int
11850main ()
11851{
11852void *x=prlimit
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_compile "$LINENO"; then :
11858
11859$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11862$as_echo "yes" >&6; }
11863else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865$as_echo "no" >&6; }
11866
11867fi
11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Ned Deilyb29d0a52021-05-02 09:18:5811869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
11870$as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; }
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h. */
11873#include <mach-o/dyld.h>
11874int
11875main ()
11876{
11877void *x=_dyld_shared_cache_contains_path
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882if ac_fn_c_try_compile "$LINENO"; then :
11883
11884$as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887$as_echo "yes" >&6; }
11888else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
11891
11892fi
11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimesb7bd5df2013-10-22 09:21:5411894
Zackery Spytz43fdbd22019-05-29 19:57:0711895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
11896$as_echo_n "checking for memfd_create... " >&6; }
11897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898/* end confdefs.h. */
11899
11900#ifdef HAVE_SYS_MMAN_H
11901#include <sys/mman.h>
11902#endif
11903#ifdef HAVE_SYS_MEMFD_H
11904#include <sys/memfd.h>
11905#endif
11906
11907int
11908main ()
11909{
11910void *x=memfd_create
11911 ;
11912 return 0;
11913}
11914_ACEOF
11915if ac_fn_c_try_compile "$LINENO"; then :
11916
11917$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920$as_echo "yes" >&6; }
11921else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
11924
11925fi
11926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927
Martin v. Löwisd5843682002-11-21 20:41:2811928# On some systems (eg. FreeBSD 5), we would find a definition of the
11929# functions ctermid_r, setgroups in the library, but no prototype
11930# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
11931# address to avoid compiler warnings and potential miscompilations
11932# because of the missing prototypes.
11933
Matthias Kloseb9621712010-04-24 17:59:4911934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11935$as_echo_n "checking for ctermid_r... " >&6; }
11936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411937/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2811938
Martin v. Löwisd5843682002-11-21 20:41:2811939#include <stdio.h>
11940
Martin v. Löwisd5843682002-11-21 20:41:2811941int
11942main ()
11943{
11944void* p = ctermid_r
11945 ;
11946 return 0;
11947}
11948_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911949if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2811950
Matthias Kloseb9621712010-04-24 17:59:4911951$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2811952
Matthias Kloseb159a552010-04-25 21:00:4411953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911954$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811955else
Matthias Kloseb9621712010-04-24 17:59:4911956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811958
11959fi
Thomas Wouters47b49bf2007-08-30 22:15:3311960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961
Antoine Pitroua4e4ae22010-09-10 18:39:0011962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11963$as_echo_n "checking for flock declaration... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911964if ${ac_cv_flock_decl+:} false; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011965 $as_echo_n "(cached) " >&6
11966else
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411968/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911969#include <sys/file.h>
Martin v. Löwisf26d63b2003-03-30 17:23:4911970int
11971main ()
11972{
11973void* p = flock
Antoine Pitroua4e4ae22010-09-10 18:39:0011974
Martin v. Löwisf26d63b2003-03-30 17:23:4911975 ;
11976 return 0;
11977}
11978_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911979if ac_fn_c_try_compile "$LINENO"; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011980 ac_cv_flock_decl=yes
11981else
11982 ac_cv_flock_decl=no
Martin v. Löwisf26d63b2003-03-30 17:23:4911983
11984fi
Thomas Wouters47b49bf2007-08-30 22:15:3311985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Antoine Pitroua3000072010-09-07 14:52:4211986
Antoine Pitroua4e4ae22010-09-10 18:39:0011987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11989$as_echo "$ac_cv_flock_decl" >&6; }
11990if test "x${ac_cv_flock_decl}" = xyes; then
11991 for ac_func in flock
11992do :
11993 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
Victor Stinnere0be4232011-10-25 11:06:0911994if test "x$ac_cv_func_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011995 cat >>confdefs.h <<_ACEOF
11996#define HAVE_FLOCK 1
Antoine Pitroua3000072010-09-07 14:52:4211997_ACEOF
Antoine Pitroua4e4ae22010-09-10 18:39:0011998
Antoine Pitroua3000072010-09-07 14:52:4211999else
Antoine Pitroua4e4ae22010-09-10 18:39:0012000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
Antoine Pitroua3000072010-09-07 14:52:4212001$as_echo_n "checking for flock in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912002if ${ac_cv_lib_bsd_flock+:} false; then :
Antoine Pitroua3000072010-09-07 14:52:4212003 $as_echo_n "(cached) " >&6
12004else
12005 ac_check_lib_save_LIBS=$LIBS
12006LIBS="-lbsd $LIBS"
12007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008/* end confdefs.h. */
12009
12010/* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013#ifdef __cplusplus
12014extern "C"
12015#endif
12016char flock ();
12017int
12018main ()
12019{
12020return flock ();
12021 ;
12022 return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_bsd_flock=yes
12027else
12028 ac_cv_lib_bsd_flock=no
12029fi
12030rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032LIBS=$ac_check_lib_save_LIBS
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
12035$as_echo "$ac_cv_lib_bsd_flock" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912036if test "x$ac_cv_lib_bsd_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0012037 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
Antoine Pitroua3000072010-09-07 14:52:4212038
12039
12040$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
12041
12042
12043fi
12044
12045
12046fi
Antoine Pitroua4e4ae22010-09-10 18:39:0012047done
12048
Antoine Pitroua3000072010-09-07 14:52:4212049fi
Thomas Wouters47b49bf2007-08-30 22:15:3312050
Matthias Kloseb9621712010-04-24 17:59:4912051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
12052$as_echo_n "checking for getpagesize... " >&6; }
12053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412054/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4912055
Martin v. Löwisf26d63b2003-03-30 17:23:4912056#include <unistd.h>
12057
Martin v. Löwisf26d63b2003-03-30 17:23:4912058int
12059main ()
12060{
12061void* p = getpagesize
12062 ;
12063 return 0;
12064}
12065_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912066if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisf26d63b2003-03-30 17:23:4912067
Matthias Kloseb9621712010-04-24 17:59:4912068$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
Martin v. Löwisf26d63b2003-03-30 17:23:4912069
Matthias Kloseb159a552010-04-25 21:00:4412070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912071$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4912072else
Matthias Kloseb9621712010-04-24 17:59:4912073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4912075
12076fi
Thomas Wouters47b49bf2007-08-30 22:15:3312077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:4912078
Victor Stinner984890f2011-11-24 12:53:3812079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
12080$as_echo_n "checking for broken unsetenv... " >&6; }
12081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h. */
12083
12084#include <stdlib.h>
12085
12086int
12087main ()
12088{
12089int res = unsetenv("DUMMY")
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
12097else
12098
12099$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
12100
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102$as_echo "yes" >&6; }
12103
12104fi
12105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106
Martin v. Löwis4ee6eef2003-05-26 05:37:5112107for ac_prog in true
12108do
12109 # Extract the first word of "$ac_prog", so it can be a program name with args.
12110set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:4912111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912113if ${ac_cv_prog_TRUE+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912114 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5112115else
12116 if test -n "$TRUE"; then
12117 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
12118else
12119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4912124 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:5412125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis4ee6eef2003-05-26 05:37:5112126 ac_cv_prog_TRUE="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:4912127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:5112128 break 2
12129 fi
12130done
Matthias Kloseb9621712010-04-24 17:59:4912131 done
Thomas Wouters47b49bf2007-08-30 22:15:3312132IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:5112133
12134fi
12135fi
12136TRUE=$ac_cv_prog_TRUE
12137if test -n "$TRUE"; then
Matthias Kloseb9621712010-04-24 17:59:4912138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
12139$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5112140else
Matthias Kloseb9621712010-04-24 17:59:4912141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5112143fi
12144
Thomas Wouters47b49bf2007-08-30 22:15:3312145
Martin v. Löwis4ee6eef2003-05-26 05:37:5112146 test -n "$TRUE" && break
12147done
12148test -n "$TRUE" || TRUE="/bin/true"
12149
12150
Matthias Kloseb9621712010-04-24 17:59:4912151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12152$as_echo_n "checking for inet_aton in -lc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912153if ${ac_cv_lib_c_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912154 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4812155else
12156 ac_check_lib_save_LIBS=$LIBS
12157LIBS="-lc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412159/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4812160
Thomas Wouters47b49bf2007-08-30 22:15:3312161/* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4812164#ifdef __cplusplus
12165extern "C"
12166#endif
Martin v. Löwis95c419b2003-05-03 12:10:4812167char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812168int
12169main ()
12170{
Thomas Wouters47b49bf2007-08-30 22:15:3312171return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812172 ;
12173 return 0;
12174}
12175_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912176if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812177 ac_cv_lib_c_inet_aton=yes
12178else
Matthias Kloseb9621712010-04-24 17:59:4912179 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4812180fi
Matthias Kloseb9621712010-04-24 17:59:4912181rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4812183LIBS=$ac_check_lib_save_LIBS
12184fi
Matthias Kloseb9621712010-04-24 17:59:4912185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12186$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912187if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5112188 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:4812189else
Matthias Kloseb9621712010-04-24 17:59:4912190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12191$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912192if ${ac_cv_lib_resolv_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912193 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4812194else
12195 ac_check_lib_save_LIBS=$LIBS
12196LIBS="-lresolv $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412198/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4812199
Thomas Wouters47b49bf2007-08-30 22:15:3312200/* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4812203#ifdef __cplusplus
12204extern "C"
12205#endif
Martin v. Löwis95c419b2003-05-03 12:10:4812206char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812207int
12208main ()
12209{
Thomas Wouters47b49bf2007-08-30 22:15:3312210return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812211 ;
12212 return 0;
12213}
12214_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912215if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812216 ac_cv_lib_resolv_inet_aton=yes
12217else
Matthias Kloseb9621712010-04-24 17:59:4912218 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4812219fi
Matthias Kloseb9621712010-04-24 17:59:4912220rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4812222LIBS=$ac_check_lib_save_LIBS
12223fi
Matthias Kloseb9621712010-04-24 17:59:4912224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12225$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912226if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812227 cat >>confdefs.h <<_ACEOF
12228#define HAVE_LIBRESOLV 1
12229_ACEOF
12230
12231 LIBS="-lresolv $LIBS"
12232
12233fi
12234
12235
12236fi
12237
12238
Christian Heimesd0764e22007-12-04 15:00:3312239# On Tru64, chflags seems to be present, but calling it will
12240# exit Python
Matthias Kloseb9621712010-04-24 17:59:4912241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12242$as_echo_n "checking for chflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912243if ${ac_cv_have_chflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912244 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712245else
Matthias Kloseb9621712010-04-24 17:59:4912246 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312247 ac_cv_have_chflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312248else
Matthias Kloseb9621712010-04-24 17:59:4912249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312250/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812251
Christian Heimesd0764e22007-12-04 15:00:3312252#include <sys/stat.h>
12253#include <unistd.h>
12254int main(int argc, char*argv[])
12255{
12256 if(chflags(argv[0], 0) != 0)
12257 return 1;
12258 return 0;
12259}
Ned Deily3eb67d52011-06-28 07:00:2812260
Christian Heimesd0764e22007-12-04 15:00:3312261_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912262if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712263 ac_cv_have_chflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212264else
Matthias Kloseb9621712010-04-24 17:59:4912265 ac_cv_have_chflags=no
Alexandre Vassalotti19142282009-07-17 23:11:5212266fi
Matthias Kloseb9621712010-04-24 17:59:4912267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12268 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5312269fi
12270
Alexandre Vassalotti19142282009-07-17 23:11:5212271
Alexandre Vassalottib0a61d72009-07-17 23:19:3712272fi
Matthias Kloseb9621712010-04-24 17:59:4912273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12274$as_echo "$ac_cv_have_chflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312275if test "$ac_cv_have_chflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912276 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
Victor Stinnere0be4232011-10-25 11:06:0912277if test "x$ac_cv_func_chflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312278 ac_cv_have_chflags="yes"
12279else
12280 ac_cv_have_chflags="no"
12281fi
12282
12283fi
12284if test "$ac_cv_have_chflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712285
Matthias Kloseb9621712010-04-24 17:59:4912286$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712287
12288fi
12289
Matthias Kloseb9621712010-04-24 17:59:4912290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12291$as_echo_n "checking for lchflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912292if ${ac_cv_have_lchflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912293 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712294else
Matthias Kloseb9621712010-04-24 17:59:4912295 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312296 ac_cv_have_lchflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312297else
Matthias Kloseb9621712010-04-24 17:59:4912298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312299/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812300
Christian Heimesd0764e22007-12-04 15:00:3312301#include <sys/stat.h>
12302#include <unistd.h>
12303int main(int argc, char*argv[])
12304{
12305 if(lchflags(argv[0], 0) != 0)
12306 return 1;
12307 return 0;
12308}
Ned Deily3eb67d52011-06-28 07:00:2812309
Christian Heimesd0764e22007-12-04 15:00:3312310_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912311if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712312 ac_cv_have_lchflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212313else
Matthias Kloseb9621712010-04-24 17:59:4912314 ac_cv_have_lchflags=no
Christian Heimesd0764e22007-12-04 15:00:3312315fi
Matthias Kloseb9621712010-04-24 17:59:4912316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12317 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti19142282009-07-17 23:11:5212318fi
12319
12320
Alexandre Vassalottib0a61d72009-07-17 23:19:3712321fi
Matthias Kloseb9621712010-04-24 17:59:4912322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12323$as_echo "$ac_cv_have_lchflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312324if test "$ac_cv_have_lchflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912325 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
Victor Stinnere0be4232011-10-25 11:06:0912326if test "x$ac_cv_func_lchflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312327 ac_cv_have_lchflags="yes"
12328else
12329 ac_cv_have_lchflags="no"
12330fi
12331
12332fi
12333if test "$ac_cv_have_lchflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712334
Matthias Kloseb9621712010-04-24 17:59:4912335$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712336
12337fi
12338
Thomas Wouters0e3f5912006-08-11 14:57:1212339case $ac_sys_system/$ac_sys_release in
12340Darwin/*)
12341 _CUR_CFLAGS="${CFLAGS}"
12342 _CUR_LDFLAGS="${LDFLAGS}"
12343 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12344 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12345 ;;
12346esac
12347
Matthias Kloseb9621712010-04-24 17:59:4912348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12349$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912350if ${ac_cv_lib_z_inflateCopy+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912351 $as_echo_n "(cached) " >&6
Thomas Wouters0e3f5912006-08-11 14:57:1212352else
12353 ac_check_lib_save_LIBS=$LIBS
12354LIBS="-lz $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212356/* end confdefs.h. */
12357
Thomas Wouters47b49bf2007-08-30 22:15:3312358/* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
Thomas Wouters0e3f5912006-08-11 14:57:1212361#ifdef __cplusplus
12362extern "C"
12363#endif
12364char inflateCopy ();
12365int
12366main ()
12367{
Thomas Wouters47b49bf2007-08-30 22:15:3312368return inflateCopy ();
Thomas Wouters0e3f5912006-08-11 14:57:1212369 ;
12370 return 0;
12371}
12372_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912373if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212374 ac_cv_lib_z_inflateCopy=yes
12375else
Matthias Kloseb9621712010-04-24 17:59:4912376 ac_cv_lib_z_inflateCopy=no
Thomas Wouters0e3f5912006-08-11 14:57:1212377fi
Matthias Kloseb9621712010-04-24 17:59:4912378rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212380LIBS=$ac_check_lib_save_LIBS
12381fi
Matthias Kloseb9621712010-04-24 17:59:4912382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12383$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912384if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212385
Matthias Kloseb9621712010-04-24 17:59:4912386$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1212387
12388fi
12389
12390
12391case $ac_sys_system/$ac_sys_release in
12392Darwin/*)
12393 CFLAGS="${_CUR_CFLAGS}"
12394 LDFLAGS="${_CUR_LDFLAGS}"
12395 ;;
12396esac
12397
Matthias Kloseb9621712010-04-24 17:59:4912398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12399$as_echo_n "checking for hstrerror... " >&6; }
12400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412401/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512402
Martin v. Löwise9416172003-05-03 10:12:4512403#include <netdb.h>
12404
Martin v. Löwise9416172003-05-03 10:12:4512405int
12406main ()
12407{
Martin v. Löwis95c419b2003-05-03 12:10:4812408void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:4512409 ;
12410 return 0;
12411}
12412_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912413if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512414
Matthias Kloseb9621712010-04-24 17:59:4912415$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512416
Matthias Kloseb159a552010-04-25 21:00:4412417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912418$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512419else
Matthias Kloseb9621712010-04-24 17:59:4912420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512422
12423fi
Matthias Kloseb9621712010-04-24 17:59:4912424rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312426
Matthias Kloseb9621712010-04-24 17:59:4912427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12428$as_echo_n "checking for inet_aton... " >&6; }
12429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412430/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512431
Martin v. Löwis86d66262006-02-17 08:40:1112432#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512433#include <sys/socket.h>
12434#include <netinet/in.h>
12435#include <arpa/inet.h>
12436
Martin v. Löwise9416172003-05-03 10:12:4512437int
12438main ()
12439{
Martin v. Löwis95c419b2003-05-03 12:10:4812440void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:4512441 ;
12442 return 0;
12443}
12444_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912445if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512446
Matthias Kloseb9621712010-04-24 17:59:4912447$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512448
Matthias Kloseb159a552010-04-25 21:00:4412449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912450$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512451else
Matthias Kloseb9621712010-04-24 17:59:4912452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512454
12455fi
Matthias Kloseb9621712010-04-24 17:59:4912456rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312458
Matthias Kloseb9621712010-04-24 17:59:4912459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12460$as_echo_n "checking for inet_pton... " >&6; }
12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412462/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512463
Martin v. Löwisf2e488d2003-05-05 22:00:1112464#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512465#include <sys/socket.h>
12466#include <netinet/in.h>
12467#include <arpa/inet.h>
12468
Martin v. Löwise9416172003-05-03 10:12:4512469int
12470main ()
12471{
12472void* p = inet_pton
12473 ;
12474 return 0;
12475}
12476_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912477if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512478
Matthias Kloseb9621712010-04-24 17:59:4912479$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512480
Matthias Kloseb159a552010-04-25 21:00:4412481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912482$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512483else
Matthias Kloseb9621712010-04-24 17:59:4912484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512486
12487fi
Thomas Wouters47b49bf2007-08-30 22:15:3312488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:4512489
Martin v. Löwisd6640d42003-07-06 09:29:5212490# On some systems, setgroups is in unistd.h, on others, in grp.h
Matthias Kloseb9621712010-04-24 17:59:4912491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12492$as_echo_n "checking for setgroups... " >&6; }
12493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412494/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2812495
Martin v. Löwisf2e488d2003-05-05 22:00:1112496#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:5212497#ifdef HAVE_GRP_H
12498#include <grp.h>
12499#endif
Martin v. Löwisd5843682002-11-21 20:41:2812500
Martin v. Löwisd5843682002-11-21 20:41:2812501int
12502main ()
12503{
12504void* p = setgroups
12505 ;
12506 return 0;
12507}
12508_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912509if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2812510
Matthias Kloseb9621712010-04-24 17:59:4912511$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2812512
Matthias Kloseb159a552010-04-25 21:00:4412513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912514$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812515else
Matthias Kloseb9621712010-04-24 17:59:4912516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812518
12519fi
Thomas Wouters47b49bf2007-08-30 22:15:3312520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:2812521
Guido van Rossumd0b69ec2001-09-10 14:10:5412522# check for openpty and forkpty
12523
12524for ac_func in openpty
Matthias Kloseb9621712010-04-24 17:59:4912525do :
12526 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Victor Stinnere0be4232011-10-25 11:06:0912527if test "x$ac_cv_func_openpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312528 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912529#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312530_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:5412531
Guido van Rossumd0b69ec2001-09-10 14:10:5412532else
Matthias Kloseb9621712010-04-24 17:59:4912533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12534$as_echo_n "checking for openpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912535if ${ac_cv_lib_util_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912536 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812537else
Martin v. Löwis11437992002-04-12 09:54:0312538 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812539LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412541/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312542
Thomas Wouters47b49bf2007-08-30 22:15:3312543/* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312546#ifdef __cplusplus
12547extern "C"
12548#endif
Martin v. Löwis11437992002-04-12 09:54:0312549char openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312550int
12551main ()
12552{
Thomas Wouters47b49bf2007-08-30 22:15:3312553return openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312554 ;
12555 return 0;
12556}
12557_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912558if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312559 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812560else
Matthias Kloseb9621712010-04-24 17:59:4912561 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812562fi
Matthias Kloseb9621712010-04-24 17:59:4912563rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312565LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812566fi
Matthias Kloseb9621712010-04-24 17:59:4912567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12568$as_echo "$ac_cv_lib_util_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912569if test "x$ac_cv_lib_util_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912570 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812571 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312572else
Matthias Kloseb9621712010-04-24 17:59:4912573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12574$as_echo_n "checking for openpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912575if ${ac_cv_lib_bsd_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912576 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312577else
12578 ac_check_lib_save_LIBS=$LIBS
12579LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312581/* end confdefs.h. */
12582
Thomas Wouters47b49bf2007-08-30 22:15:3312583/* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312586#ifdef __cplusplus
12587extern "C"
12588#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312589char openpty ();
12590int
12591main ()
12592{
Thomas Wouters47b49bf2007-08-30 22:15:3312593return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312594 ;
12595 return 0;
12596}
12597_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912598if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312599 ac_cv_lib_bsd_openpty=yes
12600else
Matthias Kloseb9621712010-04-24 17:59:4912601 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812602fi
Matthias Kloseb9621712010-04-24 17:59:4912603rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312605LIBS=$ac_check_lib_save_LIBS
12606fi
Matthias Kloseb9621712010-04-24 17:59:4912607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12608$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912609if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912610 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312611 LIBS="$LIBS -lbsd"
12612fi
12613
12614
12615fi
12616
Fred Drake8cef4cf2000-06-28 16:40:3812617
12618fi
12619done
12620
12621for ac_func in forkpty
Matthias Kloseb9621712010-04-24 17:59:4912622do :
12623 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
Victor Stinnere0be4232011-10-25 11:06:0912624if test "x$ac_cv_func_forkpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312625 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912626#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312627_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3812628
Fred Drake8cef4cf2000-06-28 16:40:3812629else
Matthias Kloseb9621712010-04-24 17:59:4912630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12631$as_echo_n "checking for forkpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912632if ${ac_cv_lib_util_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912633 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812634else
Martin v. Löwis11437992002-04-12 09:54:0312635 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812636LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412638/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312639
Thomas Wouters47b49bf2007-08-30 22:15:3312640/* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312643#ifdef __cplusplus
12644extern "C"
12645#endif
Martin v. Löwis11437992002-04-12 09:54:0312646char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312647int
12648main ()
12649{
Thomas Wouters47b49bf2007-08-30 22:15:3312650return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312651 ;
12652 return 0;
12653}
12654_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912655if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312656 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812657else
Matthias Kloseb9621712010-04-24 17:59:4912658 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812659fi
Matthias Kloseb9621712010-04-24 17:59:4912660rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312662LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812663fi
Matthias Kloseb9621712010-04-24 17:59:4912664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12665$as_echo "$ac_cv_lib_util_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912666if test "x$ac_cv_lib_util_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912667 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812668 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312669else
Matthias Kloseb9621712010-04-24 17:59:4912670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12671$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912672if ${ac_cv_lib_bsd_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912673 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312674else
12675 ac_check_lib_save_LIBS=$LIBS
12676LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312678/* end confdefs.h. */
12679
Thomas Wouters47b49bf2007-08-30 22:15:3312680/* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312683#ifdef __cplusplus
12684extern "C"
12685#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312686char forkpty ();
12687int
12688main ()
12689{
Thomas Wouters47b49bf2007-08-30 22:15:3312690return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312691 ;
12692 return 0;
12693}
12694_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912695if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312696 ac_cv_lib_bsd_forkpty=yes
12697else
Matthias Kloseb9621712010-04-24 17:59:4912698 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812699fi
Matthias Kloseb9621712010-04-24 17:59:4912700rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312702LIBS=$ac_check_lib_save_LIBS
12703fi
Matthias Kloseb9621712010-04-24 17:59:4912704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12705$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912706if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912707 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312708 LIBS="$LIBS -lbsd"
12709fi
12710
12711
12712fi
12713
Fred Drake8cef4cf2000-06-28 16:40:3812714
12715fi
12716done
12717
Jack Jansendd19cf82001-12-06 22:36:1712718
Michael W. Hudson54241132001-12-07 15:38:2612719# check for long file support functions
Fred Drake8cef4cf2000-06-28 16:40:3812720for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
Matthias Kloseb9621712010-04-24 17:59:4912721do :
12722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12723ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3012724if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0312725 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0312727_ACEOF
Michael W. Hudson54241132001-12-07 15:38:2612728
Guido van Rossum76be6ed1995-01-02 18:33:5412729fi
Guido van Rossum627b2d71993-12-24 10:39:1612730done
12731
Michael W. Hudson54241132001-12-07 15:38:2612732
Ross Lagerwallb0ae53d2011-06-10 05:30:3012733ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
Victor Stinnere0be4232011-10-25 11:06:0912734if test "x$ac_cv_func_dup2" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012735 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
Martin v. Löwis1142de32002-03-29 16:28:3112736
Martin v. Löwis1142de32002-03-29 16:28:3112737else
Thomas Wouters47b49bf2007-08-30 22:15:3312738 case " $LIBOBJS " in
Ross Lagerwallb0ae53d2011-06-10 05:30:3012739 *" dup2.$ac_objext "* ) ;;
12740 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
Thomas Wouters47b49bf2007-08-30 22:15:3312741 ;;
Skip Montanarof0d5f792004-08-15 14:08:2312742esac
12743
Martin v. Löwis1142de32002-03-29 16:28:3112744fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3012745
Ross Lagerwallb0ae53d2011-06-10 05:30:3012746ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
Victor Stinnere0be4232011-10-25 11:06:0912747if test "x$ac_cv_func_strdup" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012748 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12749
12750else
12751 case " $LIBOBJS " in
12752 *" strdup.$ac_objext "* ) ;;
12753 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12754 ;;
12755esac
12756
12757fi
Martin v. Löwis1142de32002-03-29 16:28:3112758
12759
12760for ac_func in getpgrp
Matthias Kloseb9621712010-04-24 17:59:4912761do :
12762 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912763if test "x$ac_cv_func_getpgrp" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312764 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912765#define HAVE_GETPGRP 1
Martin v. Löwis11437992002-04-12 09:54:0312766_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412768/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412769#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:0312770int
12771main ()
12772{
Guido van Rossum76be6ed1995-01-02 18:33:5412773getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:0312774 ;
12775 return 0;
12776}
12777_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912778if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312779
Matthias Kloseb9621712010-04-24 17:59:4912780$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412781
Guido van Rossum627b2d71993-12-24 10:39:1612782fi
Thomas Wouters47b49bf2007-08-30 22:15:3312783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912784
Guido van Rossum627b2d71993-12-24 10:39:1612785fi
Thomas Wouters3a584202000-08-05 23:28:5112786done
Guido van Rossum627b2d71993-12-24 10:39:1612787
Jack Jansen150753c2003-03-29 22:07:4712788for ac_func in setpgrp
Matthias Kloseb9621712010-04-24 17:59:4912789do :
12790 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912791if test "x$ac_cv_func_setpgrp" = xyes; then :
Jack Jansen150753c2003-03-29 22:07:4712792 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912793#define HAVE_SETPGRP 1
Jack Jansen150753c2003-03-29 22:07:4712794_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412796/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:4712797#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:4712798int
12799main ()
12800{
12801setpgrp(0,0);
12802 ;
12803 return 0;
12804}
12805_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912806if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312807
Matthias Kloseb9621712010-04-24 17:59:4912808$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412809
Guido van Rossum8eee56f1994-10-20 22:18:3712810fi
Thomas Wouters47b49bf2007-08-30 22:15:3312811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:4712812
12813fi
12814done
Guido van Rossum8eee56f1994-10-20 22:18:3712815
Thomas Wouters3a584202000-08-05 23:28:5112816for ac_func in gettimeofday
Matthias Kloseb9621712010-04-24 17:59:4912817do :
12818 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Victor Stinnere0be4232011-10-25 11:06:0912819if test "x$ac_cv_func_gettimeofday" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312820 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912821#define HAVE_GETTIMEOFDAY 1
Martin v. Löwis11437992002-04-12 09:54:0312822_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412824/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1612825#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:0312826int
12827main ()
12828{
Guido van Rossum76be6ed1995-01-02 18:33:5412829gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:0312830 ;
12831 return 0;
12832}
12833_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912834if ac_fn_c_try_compile "$LINENO"; then :
12835
Guido van Rossum627b2d71993-12-24 10:39:1612836else
Skip Montanaro6dead952003-09-25 14:50:0412837
Matthias Kloseb9621712010-04-24 17:59:4912838$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1612839
Martin v. Löwis11437992002-04-12 09:54:0312840
Guido van Rossum627b2d71993-12-24 10:39:1612841fi
Thomas Wouters47b49bf2007-08-30 22:15:3312842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912843
Guido van Rossum76be6ed1995-01-02 18:33:5412844fi
Thomas Wouters3a584202000-08-05 23:28:5112845done
Guido van Rossum76be6ed1995-01-02 18:33:5412846
Michael W. Hudson54241132001-12-07 15:38:2612847
Gregory P. Smith387512c2018-12-30 23:42:3212848# We search for both crypt and crypt_r as one or the other may be defined
12849# This gets us our -lcrypt in LIBS when required on the target platform.
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12851$as_echo_n "checking for library containing crypt... " >&6; }
12852if ${ac_cv_search_crypt+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854else
12855 ac_func_search_save_LIBS=$LIBS
12856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h. */
12858
12859/* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862#ifdef __cplusplus
12863extern "C"
12864#endif
12865char crypt ();
12866int
12867main ()
12868{
12869return crypt ();
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874for ac_lib in '' crypt; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12877 else
12878 ac_res=-l$ac_lib
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 fi
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 ac_cv_search_crypt=$ac_res
12883fi
12884rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext
12886 if ${ac_cv_search_crypt+:} false; then :
12887 break
12888fi
12889done
12890if ${ac_cv_search_crypt+:} false; then :
12891
12892else
12893 ac_cv_search_crypt=no
12894fi
12895rm conftest.$ac_ext
12896LIBS=$ac_func_search_save_LIBS
12897fi
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12899$as_echo "$ac_cv_search_crypt" >&6; }
12900ac_res=$ac_cv_search_crypt
12901if test "$ac_res" != no; then :
12902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12903
12904fi
12905
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
12907$as_echo_n "checking for library containing crypt_r... " >&6; }
12908if ${ac_cv_search_crypt_r+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910else
12911 ac_func_search_save_LIBS=$LIBS
12912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h. */
12914
12915/* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918#ifdef __cplusplus
12919extern "C"
12920#endif
12921char crypt_r ();
12922int
12923main ()
12924{
12925return crypt_r ();
12926 ;
12927 return 0;
12928}
12929_ACEOF
12930for ac_lib in '' crypt; do
12931 if test -z "$ac_lib"; then
12932 ac_res="none required"
12933 else
12934 ac_res=-l$ac_lib
12935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12936 fi
12937 if ac_fn_c_try_link "$LINENO"; then :
12938 ac_cv_search_crypt_r=$ac_res
12939fi
12940rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext
12942 if ${ac_cv_search_crypt_r+:} false; then :
12943 break
12944fi
12945done
12946if ${ac_cv_search_crypt_r+:} false; then :
12947
12948else
12949 ac_cv_search_crypt_r=no
12950fi
12951rm conftest.$ac_ext
12952LIBS=$ac_func_search_save_LIBS
12953fi
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
12955$as_echo "$ac_cv_search_crypt_r" >&6; }
12956ac_res=$ac_cv_search_crypt_r
12957if test "$ac_res" != no; then :
12958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959
12960fi
12961
12962
12963ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
12964if test "x$ac_cv_func_crypt_r" = xyes; then :
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h. */
12967
12968#define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */
12969#include <crypt.h>
12970
12971int
12972main ()
12973{
12974
12975struct crypt_data d;
12976char *r = crypt_r("", "", &d);
12977
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982if ac_fn_c_try_compile "$LINENO"; then :
12983
12984$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
12985
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988
12989fi
12990
12991
Victor Stinnere0be4232011-10-25 11:06:0912992for ac_func in clock_gettime
12993do :
12994 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12995if test "x$ac_cv_func_clock_gettime" = xyes; then :
12996 cat >>confdefs.h <<_ACEOF
12997#define HAVE_CLOCK_GETTIME 1
12998_ACEOF
12999
13000else
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13003$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13004if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006else
13007 ac_check_lib_save_LIBS=$LIBS
13008LIBS="-lrt $LIBS"
13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h. */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char clock_gettime ();
13019int
13020main ()
13021{
13022return clock_gettime ();
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027if ac_fn_c_try_link "$LINENO"; then :
13028 ac_cv_lib_rt_clock_gettime=yes
13029else
13030 ac_cv_lib_rt_clock_gettime=no
13031fi
13032rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034LIBS=$ac_check_lib_save_LIBS
13035fi
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13037$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13038if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13039
Victor Stinner7efb8332014-08-29 13:41:0813040 LIBS="$LIBS -lrt"
Victor Stinnere0be4232011-10-25 11:06:0913041 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13042
13043
13044$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
13045
13046
13047fi
13048
13049
13050fi
13051done
13052
13053
13054for ac_func in clock_getres
13055do :
13056 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
13057if test "x$ac_cv_func_clock_getres" = xyes; then :
13058 cat >>confdefs.h <<_ACEOF
13059#define HAVE_CLOCK_GETRES 1
13060_ACEOF
13061
13062else
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
13065$as_echo_n "checking for clock_getres in -lrt... " >&6; }
13066if ${ac_cv_lib_rt_clock_getres+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068else
13069 ac_check_lib_save_LIBS=$LIBS
13070LIBS="-lrt $LIBS"
13071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h. */
13073
13074/* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13077#ifdef __cplusplus
13078extern "C"
13079#endif
13080char clock_getres ();
13081int
13082main ()
13083{
13084return clock_getres ();
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089if ac_fn_c_try_link "$LINENO"; then :
13090 ac_cv_lib_rt_clock_getres=yes
13091else
13092 ac_cv_lib_rt_clock_getres=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
13099$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
13100if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
13101
13102 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
13103
13104
13105fi
13106
13107
13108fi
13109done
13110
13111
Benjamin Peterson37098cd2016-09-14 05:55:0913112for ac_func in clock_settime
13113do :
13114 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
13115if test "x$ac_cv_func_clock_settime" = xyes; then :
13116 cat >>confdefs.h <<_ACEOF
13117#define HAVE_CLOCK_SETTIME 1
13118_ACEOF
13119
13120else
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
13123$as_echo_n "checking for clock_settime in -lrt... " >&6; }
13124if ${ac_cv_lib_rt_clock_settime+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126else
13127 ac_check_lib_save_LIBS=$LIBS
13128LIBS="-lrt $LIBS"
13129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130/* end confdefs.h. */
13131
13132/* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13135#ifdef __cplusplus
13136extern "C"
13137#endif
13138char clock_settime ();
13139int
13140main ()
13141{
13142return clock_settime ();
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147if ac_fn_c_try_link "$LINENO"; then :
13148 ac_cv_lib_rt_clock_settime=yes
13149else
13150 ac_cv_lib_rt_clock_settime=no
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154LIBS=$ac_check_lib_save_LIBS
13155fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
13157$as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
13158if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
13159
13160 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
13161
13162
13163fi
13164
13165
13166fi
13167done
13168
13169
Matthias Kloseb9621712010-04-24 17:59:4913170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
13171$as_echo_n "checking for major... " >&6; }
13172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413173/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:3013174
Neal Norwitz6eb37f02003-02-23 23:28:1513175#if defined(MAJOR_IN_MKDEV)
13176#include <sys/mkdev.h>
13177#elif defined(MAJOR_IN_SYSMACROS)
13178#include <sys/sysmacros.h>
13179#else
13180#include <sys/types.h>
13181#endif
Martin v. Löwisdbe3f762002-10-10 14:27:3013182
Martin v. Löwisdbe3f762002-10-10 14:27:3013183int
13184main ()
13185{
13186
13187 makedev(major(0),minor(0));
13188
13189 ;
13190 return 0;
13191}
13192_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913193if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:3013194
13195
Matthias Kloseb9621712010-04-24 17:59:4913196$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:3013197
Matthias Kloseb9621712010-04-24 17:59:4913198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13199$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3013200
13201else
Skip Montanaro6dead952003-09-25 14:50:0413202
Matthias Kloseb9621712010-04-24 17:59:4913203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3013205
13206fi
Matthias Kloseb9621712010-04-24 17:59:4913207rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2613209
Martin v. Löwis861a65b2001-10-24 14:36:0013210# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:0313211# for [no]getaddrinfo in netdb.h.
Matthias Kloseb9621712010-04-24 17:59:4913212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13213$as_echo_n "checking for getaddrinfo... " >&6; }
13214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413215/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:0013216
Martin v. Löwisc010b6d2001-11-09 17:50:5213217#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:0013218#include <sys/socket.h>
13219#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:5213220#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1313221
Martin v. Löwis11437992002-04-12 09:54:0313222int
13223main ()
13224{
Martin v. Löwis861a65b2001-10-24 14:36:0013225getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:0313226 ;
13227 return 0;
13228}
13229_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913230if ac_fn_c_try_link "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3713231 have_getaddrinfo=yes
13232else
Matthias Kloseb9621712010-04-24 17:59:4913233 have_getaddrinfo=no
Alexandre Vassalottib0a61d72009-07-17 23:19:3713234fi
Matthias Kloseb9621712010-04-24 17:59:4913235rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
13238$as_echo "$have_getaddrinfo" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3713239if test $have_getaddrinfo = yes
13240then
Matthias Kloseb9621712010-04-24 17:59:4913241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
13242$as_echo_n "checking getaddrinfo bug... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913243 if ${ac_cv_buggy_getaddrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913244 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3713245else
Matthias Kloseb9621712010-04-24 17:59:4913246 if test "$cross_compiling" = yes; then :
Matthias Klose96350132012-03-15 19:42:2313247
13248if test "${enable_ipv6+set}" = set; then
13249 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13250else
Alexandre Vassalottib0a61d72009-07-17 23:19:3713251 ac_cv_buggy_getaddrinfo=yes
Matthias Klose96350132012-03-15 19:42:2313252fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313253else
Matthias Kloseb9621712010-04-24 17:59:4913254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413255/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313256
Stefan Krah19c21392012-11-22 22:47:3213257#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1313258#include <sys/types.h>
13259#include <netdb.h>
13260#include <string.h>
13261#include <sys/socket.h>
13262#include <netinet/in.h>
13263
Alexandre Vassalottib0a61d72009-07-17 23:19:3713264int main()
Martin v. Löwis01dfdb32001-06-23 16:30:1313265{
13266 int passive, gaierr, inet4 = 0, inet6 = 0;
13267 struct addrinfo hints, *ai, *aitop;
13268 char straddr[INET6_ADDRSTRLEN], strport[16];
13269
13270 for (passive = 0; passive <= 1; passive++) {
13271 memset(&hints, 0, sizeof(hints));
13272 hints.ai_family = AF_UNSPEC;
13273 hints.ai_flags = passive ? AI_PASSIVE : 0;
13274 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:3113275 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:1313276 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13277 (void)gai_strerror(gaierr);
13278 goto bad;
13279 }
13280 for (ai = aitop; ai; ai = ai->ai_next) {
13281 if (ai->ai_addr == NULL ||
13282 ai->ai_addrlen == 0 ||
13283 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13284 straddr, sizeof(straddr), strport, sizeof(strport),
13285 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13286 goto bad;
13287 }
13288 switch (ai->ai_family) {
13289 case AF_INET:
13290 if (strcmp(strport, "54321") != 0) {
13291 goto bad;
13292 }
13293 if (passive) {
13294 if (strcmp(straddr, "0.0.0.0") != 0) {
13295 goto bad;
13296 }
13297 } else {
13298 if (strcmp(straddr, "127.0.0.1") != 0) {
13299 goto bad;
13300 }
13301 }
13302 inet4++;
13303 break;
13304 case AF_INET6:
13305 if (strcmp(strport, "54321") != 0) {
13306 goto bad;
13307 }
13308 if (passive) {
13309 if (strcmp(straddr, "::") != 0) {
13310 goto bad;
13311 }
13312 } else {
13313 if (strcmp(straddr, "::1") != 0) {
13314 goto bad;
13315 }
13316 }
13317 inet6++;
13318 break;
13319 case AF_UNSPEC:
13320 goto bad;
13321 break;
13322 default:
13323 /* another family support? */
13324 break;
13325 }
13326 }
Benjamin Peterson01c340d2016-09-06 22:54:2413327 freeaddrinfo(aitop);
13328 aitop = NULL;
Martin v. Löwis01dfdb32001-06-23 16:30:1313329 }
13330
13331 if (!(inet4 == 0 || inet4 == 2))
13332 goto bad;
13333 if (!(inet6 == 0 || inet6 == 2))
13334 goto bad;
13335
13336 if (aitop)
13337 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713338 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:1313339
13340 bad:
13341 if (aitop)
13342 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713343 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:1313344}
13345
Martin v. Löwis11437992002-04-12 09:54:0313346_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913347if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3713348 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313349else
Matthias Kloseb9621712010-04-24 17:59:4913350 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:1313351fi
Matthias Kloseb9621712010-04-24 17:59:4913352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13353 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1313354fi
Thomas Wouters47b49bf2007-08-30 22:15:3313355
Alexandre Vassalottib0a61d72009-07-17 23:19:3713356fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313357
Martin v. Löwis861a65b2001-10-24 14:36:0013358fi
Thomas Wouters47b49bf2007-08-30 22:15:3313359
Benjamin Petersond4694ed2010-11-01 01:44:3013360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13361$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
13362
doko@ubuntu.com9c7817e2012-06-30 15:05:1313363if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
Alexandre Vassalottib0a61d72009-07-17 23:19:3713364then
13365 if test $ipv6 = yes
13366 then
Martin v. Löwis01dfdb32001-06-23 16:30:1313367 echo 'Fatal: You must get working getaddrinfo() function.'
13368 echo ' or you can specify "--disable-ipv6"'.
13369 exit 1
13370 fi
Martin v. Löwis861a65b2001-10-24 14:36:0013371else
Martin v. Löwis11437992002-04-12 09:54:0313372
Matthias Kloseb9621712010-04-24 17:59:4913373$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
Martin v. Löwis861a65b2001-10-24 14:36:0013374
Martin v. Löwis01dfdb32001-06-23 16:30:1313375fi
Benjamin Petersond4694ed2010-11-01 01:44:3013376
Jack Jansen9a66b6d2001-08-08 13:56:1413377for ac_func in getnameinfo
Matthias Kloseb9621712010-04-24 17:59:4913378do :
13379 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
Victor Stinnere0be4232011-10-25 11:06:0913380if test "x$ac_cv_func_getnameinfo" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313381 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913382#define HAVE_GETNAMEINFO 1
Martin v. Löwis11437992002-04-12 09:54:0313383_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:1313384
Martin v. Löwis01dfdb32001-06-23 16:30:1313385fi
13386done
13387
Michael W. Hudson54241132001-12-07 15:38:2613388
Guido van Rossum76be6ed1995-01-02 18:33:5413389# checks for structures
Matthias Kloseb9621712010-04-24 17:59:4913390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13391$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913392if ${ac_cv_header_time+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913393 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413394else
Matthias Kloseb9621712010-04-24 17:59:4913395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413396/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413397#include <sys/types.h>
13398#include <sys/time.h>
13399#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313400
Martin v. Löwis11437992002-04-12 09:54:0313401int
13402main ()
13403{
13404if ((struct tm *) 0)
13405return 0;
13406 ;
13407 return 0;
13408}
13409_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913410if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413411 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:1613412else
Matthias Kloseb9621712010-04-24 17:59:4913413 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:1613414fi
Thomas Wouters47b49bf2007-08-30 22:15:3313415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413416fi
Matthias Kloseb9621712010-04-24 17:59:4913417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13418$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613419if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313420
Matthias Kloseb9621712010-04-24 17:59:4913421$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413422
13423fi
13424
Matthias Kloseb9621712010-04-24 17:59:4913425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13426$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913427if ${ac_cv_struct_tm+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913428 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413429else
Matthias Kloseb9621712010-04-24 17:59:4913430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413431/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413432#include <sys/types.h>
13433#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313434
Martin v. Löwis11437992002-04-12 09:54:0313435int
13436main ()
13437{
Thomas Wouters47b49bf2007-08-30 22:15:3313438struct tm tm;
13439 int *p = &tm.tm_sec;
Matthias Kloseb9621712010-04-24 17:59:4913440 return !p;
Martin v. Löwis11437992002-04-12 09:54:0313441 ;
13442 return 0;
13443}
13444_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913445if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413446 ac_cv_struct_tm=time.h
13447else
Matthias Kloseb9621712010-04-24 17:59:4913448 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:5413449fi
Thomas Wouters47b49bf2007-08-30 22:15:3313450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413451fi
Matthias Kloseb9621712010-04-24 17:59:4913452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13453$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613454if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:0313455
Matthias Kloseb9621712010-04-24 17:59:4913456$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413457
13458fi
13459
Matthias Kloseb9621712010-04-24 17:59:4913460ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
Guido van Rossum76be6ed1995-01-02 18:33:5413461#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:0313462
Matthias Kloseb9621712010-04-24 17:59:4913463"
Victor Stinnere0be4232011-10-25 11:06:0913464if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313465
13466cat >>confdefs.h <<_ACEOF
13467#define HAVE_STRUCT_TM_TM_ZONE 1
13468_ACEOF
13469
13470
Guido van Rossum76be6ed1995-01-02 18:33:5413471fi
Guido van Rossum48bdbfc1996-05-28 22:53:4813472
Martin v. Löwis11437992002-04-12 09:54:0313473if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13474
Matthias Kloseb9621712010-04-24 17:59:4913475$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413476
13477else
Matthias Kloseb9621712010-04-24 17:59:4913478 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13479"
Victor Stinnere0be4232011-10-25 11:06:0913480if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4913481 ac_have_decl=1
Thomas Wouters47b49bf2007-08-30 22:15:3313482else
Matthias Kloseb9621712010-04-24 17:59:4913483 ac_have_decl=0
Thomas Wouters47b49bf2007-08-30 22:15:3313484fi
13485
Thomas Wouters47b49bf2007-08-30 22:15:3313486cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913487#define HAVE_DECL_TZNAME $ac_have_decl
Thomas Wouters47b49bf2007-08-30 22:15:3313488_ACEOF
13489
Matthias Kloseb9621712010-04-24 17:59:4913490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13491$as_echo_n "checking for tzname... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913492if ${ac_cv_var_tzname+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913493 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:3313494else
Matthias Kloseb9621712010-04-24 17:59:4913495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413496/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1613497#include <time.h>
Thomas Wouters47b49bf2007-08-30 22:15:3313498#if !HAVE_DECL_TZNAME
13499extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:1613500#endif
Martin v. Löwis11437992002-04-12 09:54:0313501
Martin v. Löwis11437992002-04-12 09:54:0313502int
13503main ()
13504{
Thomas Wouters47b49bf2007-08-30 22:15:3313505return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:0313506 ;
13507 return 0;
13508}
13509_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913510if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413511 ac_cv_var_tzname=yes
13512else
Matthias Kloseb9621712010-04-24 17:59:4913513 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:1613514fi
Matthias Kloseb9621712010-04-24 17:59:4913515rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:1613517fi
Matthias Kloseb9621712010-04-24 17:59:4913518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13519$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613520 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313521
Matthias Kloseb9621712010-04-24 17:59:4913522$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1613523
Guido van Rossum76be6ed1995-01-02 18:33:5413524 fi
13525fi
13526
Matthias Kloseb9621712010-04-24 17:59:4913527ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913528if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313529
13530cat >>confdefs.h <<_ACEOF
13531#define HAVE_STRUCT_STAT_ST_RDEV 1
13532_ACEOF
13533
13534
Guido van Rossum98bf58f2001-10-18 20:34:2513535fi
13536
Matthias Kloseb9621712010-04-24 17:59:4913537ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913538if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713539
Martin v. Löwis11437992002-04-12 09:54:0313540cat >>confdefs.h <<_ACEOF
13541#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13542_ACEOF
13543
13544
Guido van Rossum98bf58f2001-10-18 20:34:2513545fi
13546
Matthias Kloseb9621712010-04-24 17:59:4913547ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913548if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
Hye-Shik Chang5f937a72005-06-02 13:09:3013549
13550cat >>confdefs.h <<_ACEOF
13551#define HAVE_STRUCT_STAT_ST_FLAGS 1
13552_ACEOF
13553
13554
13555fi
13556
Matthias Kloseb9621712010-04-24 17:59:4913557ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913558if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913559
13560cat >>confdefs.h <<_ACEOF
13561#define HAVE_STRUCT_STAT_ST_GEN 1
13562_ACEOF
13563
13564
13565fi
13566
Matthias Kloseb9621712010-04-24 17:59:4913567ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913568if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913569
13570cat >>confdefs.h <<_ACEOF
13571#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13572_ACEOF
13573
13574
13575fi
13576
Matthias Kloseb9621712010-04-24 17:59:4913577ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913578if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713579
Martin v. Löwis11437992002-04-12 09:54:0313580cat >>confdefs.h <<_ACEOF
13581#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13582_ACEOF
13583
13584
Guido van Rossum98bf58f2001-10-18 20:34:2513585fi
13586
Stefan Krah267b6392016-04-25 23:09:1813587ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
13588 #include <sys/types.h>
13589 #include <pwd.h>
13590
13591"
13592if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
13593
13594cat >>confdefs.h <<_ACEOF
13595#define HAVE_STRUCT_PASSWD_PW_GECOS 1
13596_ACEOF
13597
13598
13599fi
13600ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
13601 #include <sys/types.h>
13602 #include <pwd.h>
13603
13604"
13605if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
13606
13607cat >>confdefs.h <<_ACEOF
13608#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
13609_ACEOF
13610
13611
13612fi
13613
Zachary Ware6a6967e2016-10-01 05:47:2713614# Issue #21085: In Cygwin, siginfo_t does not have si_band field.
13615ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
13616"
13617if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
13618
13619cat >>confdefs.h <<_ACEOF
13620#define HAVE_SIGINFO_T_SI_BAND 1
13621_ACEOF
13622
13623
13624fi
13625
Michael W. Hudson54241132001-12-07 15:38:2613626
Matthias Kloseb9621712010-04-24 17:59:4913627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13628$as_echo_n "checking for time.h that defines altzone... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913629if ${ac_cv_header_time_altzone+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913630 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413631else
Matthias Kloseb159a552010-04-25 21:00:4413632
Matthias Kloseb9621712010-04-24 17:59:4913633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413634/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013635#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313636int
13637main ()
13638{
Guido van Rossum76be6ed1995-01-02 18:33:5413639return altzone;
Martin v. Löwis11437992002-04-12 09:54:0313640 ;
13641 return 0;
13642}
13643_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913644if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413645 ac_cv_header_time_altzone=yes
13646else
Matthias Kloseb9621712010-04-24 17:59:4913647 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:3013648fi
Thomas Wouters47b49bf2007-08-30 22:15:3313649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:4413650
Thomas Wouters47b49bf2007-08-30 22:15:3313651fi
13652
Matthias Kloseb9621712010-04-24 17:59:4913653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13654$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413655if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313656
Matthias Kloseb9621712010-04-24 17:59:4913657$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413658
13659fi
13660
Guido van Rossumda88dad1995-01-26 00:46:2913661was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:4913662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13663$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413665/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013666
13667#include <sys/types.h>
13668#include <sys/select.h>
13669#include <sys/time.h>
13670
Martin v. Löwis11437992002-04-12 09:54:0313671int
13672main ()
13673{
Guido van Rossum76be6ed1995-01-02 18:33:5413674;
Martin v. Löwis11437992002-04-12 09:54:0313675 ;
13676 return 0;
13677}
13678_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913679if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313680
13681
Matthias Kloseb9621712010-04-24 17:59:4913682$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313683
Martin v. Löwisc45929e2002-04-06 10:10:4913684 was_it_defined=yes
13685
Thomas Wouters47b49bf2007-08-30 22:15:3313686fi
Thomas Wouters47b49bf2007-08-30 22:15:3313687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13689$as_echo "$was_it_defined" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3313690
Matthias Kloseb9621712010-04-24 17:59:4913691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13692$as_echo_n "checking for addrinfo... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913693if ${ac_cv_struct_addrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913694 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313695else
Matthias Kloseb9621712010-04-24 17:59:4913696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413697/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4413698#include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313699int
13700main ()
13701{
Martin v. Löwis01dfdb32001-06-23 16:30:1313702struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:0313703 ;
13704 return 0;
13705}
13706_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913707if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313708 ac_cv_struct_addrinfo=yes
13709else
Matthias Kloseb9621712010-04-24 17:59:4913710 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313711fi
Thomas Wouters47b49bf2007-08-30 22:15:3313712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713fi
13714
Matthias Kloseb9621712010-04-24 17:59:4913715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13716$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313717if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313718
Matthias Kloseb9621712010-04-24 17:59:4913719$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313720
13721fi
13722
Matthias Kloseb9621712010-04-24 17:59:4913723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13724$as_echo_n "checking for sockaddr_storage... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913725if ${ac_cv_struct_sockaddr_storage+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913726 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313727else
Matthias Kloseb9621712010-04-24 17:59:4913728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413729/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313730
13731# include <sys/types.h>
13732# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0313733int
13734main ()
13735{
Martin v. Löwis01dfdb32001-06-23 16:30:1313736struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:0313737 ;
13738 return 0;
13739}
13740_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913741if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313742 ac_cv_struct_sockaddr_storage=yes
13743else
Matthias Kloseb9621712010-04-24 17:59:4913744 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313745fi
Thomas Wouters47b49bf2007-08-30 22:15:3313746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747fi
13748
Matthias Kloseb9621712010-04-24 17:59:4913749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13750$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313751if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313752
Matthias Kloseb9621712010-04-24 17:59:4913753$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313754
13755fi
13756
Christian Heimesdffa3942016-09-05 21:54:4113757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
13758$as_echo_n "checking for sockaddr_alg... " >&6; }
13759if ${ac_cv_struct_sockaddr_alg+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h. */
13764
13765# include <sys/types.h>
13766# include <sys/socket.h>
13767# include <linux/if_alg.h>
13768int
13769main ()
13770{
13771struct sockaddr_alg s
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776if ac_fn_c_try_compile "$LINENO"; then :
13777 ac_cv_struct_sockaddr_alg=yes
13778else
13779 ac_cv_struct_sockaddr_alg=no
13780fi
13781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782fi
13783
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
13785$as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
13786if test $ac_cv_struct_sockaddr_alg = yes; then
13787
13788$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
13789
13790fi
13791
Guido van Rossum627b2d71993-12-24 10:39:1613792# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:3013793
Matthias Kloseb9621712010-04-24 17:59:4913794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13795$as_echo_n "checking whether char is unsigned... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913796if ${ac_cv_c_char_unsigned+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913797 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:1713798else
Matthias Kloseb9621712010-04-24 17:59:4913799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413800/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0313801$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0313802int
13803main ()
13804{
13805static int test_array [1 - 2 * !(((char) -1) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:5413806test_array [0] = 0;
13807return test_array [0];
Martin v. Löwis11437992002-04-12 09:54:0313808
13809 ;
13810 return 0;
Michael W. Hudson54241132001-12-07 15:38:2613811}
Martin v. Löwis11437992002-04-12 09:54:0313812_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913813if ac_fn_c_try_compile "$LINENO"; then :
Michael W. Hudson54241132001-12-07 15:38:2613814 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:0313815else
Matthias Kloseb9621712010-04-24 17:59:4913816 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:5413817fi
Thomas Wouters47b49bf2007-08-30 22:15:3313818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2613819fi
Matthias Kloseb9621712010-04-24 17:59:4913820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13821$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413822if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Matthias Kloseb9621712010-04-24 17:59:4913823 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413824
13825fi
Guido van Rossum7f43da71994-08-01 12:15:3013826
Matthias Kloseb9621712010-04-24 17:59:4913827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13828$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913829if ${ac_cv_c_const+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913830 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0313831else
Matthias Kloseb9621712010-04-24 17:59:4913832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413833/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413834
Martin v. Löwis11437992002-04-12 09:54:0313835int
13836main ()
13837{
Ross Lagerwall1b863eb2012-10-29 17:31:5413838
Martin v. Löwis11437992002-04-12 09:54:0313839#ifndef __cplusplus
Ross Lagerwall1b863eb2012-10-29 17:31:5413840 /* Ultrix mips cc rejects this sort of thing. */
Martin v. Löwis11437992002-04-12 09:54:0313841 typedef int charset[2];
Ross Lagerwall1b863eb2012-10-29 17:31:5413842 const charset cs = { 0, 0 };
Martin v. Löwis11437992002-04-12 09:54:0313843 /* SunOS 4.1.1 cc rejects this. */
Thomas Wouters47b49bf2007-08-30 22:15:3313844 char const *const *pcpcc;
13845 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:0313846 /* NEC SVR4.0.2 mips cc rejects this. */
13847 struct point {int x, y;};
13848 static struct point const zero = {0,0};
13849 /* AIX XL C 1.02.0.0 rejects this.
13850 It does not let you subtract one const X* pointer from another in
13851 an arm of an if-expression whose if-part is not a constant
13852 expression */
13853 const char *g = "string";
Thomas Wouters47b49bf2007-08-30 22:15:3313854 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:0313855 /* HPUX 7.0 cc rejects these. */
Thomas Wouters47b49bf2007-08-30 22:15:3313856 ++pcpcc;
13857 ppc = (char**) pcpcc;
13858 pcpcc = (char const *const *) ppc;
Ross Lagerwall1b863eb2012-10-29 17:31:5413859 { /* SCO 3.2v4 cc rejects this sort of thing. */
13860 char tx;
13861 char *t = &tx;
Martin v. Löwis11437992002-04-12 09:54:0313862 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:5413863
Martin v. Löwis11437992002-04-12 09:54:0313864 *t++ = 0;
Thomas Wouters47b49bf2007-08-30 22:15:3313865 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313866 }
13867 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13868 int x[] = {25, 17};
13869 const int *foo = &x[0];
13870 ++foo;
13871 }
13872 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13873 typedef const int *iptr;
13874 iptr p = 0;
13875 ++p;
13876 }
Ross Lagerwall1b863eb2012-10-29 17:31:5413877 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Martin v. Löwis11437992002-04-12 09:54:0313878 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Ross Lagerwall1b863eb2012-10-29 17:31:5413879 struct s { int j; const int *ap[3]; } bx;
13880 struct s *b = &bx; b->j = 5;
Martin v. Löwis11437992002-04-12 09:54:0313881 }
13882 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13883 const int foo = 10;
Thomas Wouters47b49bf2007-08-30 22:15:3313884 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313885 }
Thomas Wouters47b49bf2007-08-30 22:15:3313886 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:0313887#endif
Guido van Rossum627b2d71993-12-24 10:39:1613888
Martin v. Löwis11437992002-04-12 09:54:0313889 ;
13890 return 0;
Guido van Rossum627b2d71993-12-24 10:39:1613891}
Martin v. Löwis11437992002-04-12 09:54:0313892_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913893if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413894 ac_cv_c_const=yes
13895else
Matthias Kloseb9621712010-04-24 17:59:4913896 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:5413897fi
Thomas Wouters47b49bf2007-08-30 22:15:3313898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413899fi
Matthias Kloseb9621712010-04-24 17:59:4913900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13901$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413902if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:0313903
Matthias Kloseb9621712010-04-24 17:59:4913904$as_echo "#define const /**/" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413905
13906fi
13907
Michael W. Hudson54241132001-12-07 15:38:2613908
Guido van Rossumda88dad1995-01-26 00:46:2913909works=no
Matthias Kloseb9621712010-04-24 17:59:4913910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13911$as_echo_n "checking for working signed char... " >&6; }
13912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413913/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:2713914
Martin v. Löwis11437992002-04-12 09:54:0313915int
13916main ()
13917{
Guido van Rossum76be6ed1995-01-02 18:33:5413918signed char c;
Martin v. Löwis11437992002-04-12 09:54:0313919 ;
13920 return 0;
13921}
13922_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913923if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2913924 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:2713925else
Skip Montanaro6dead952003-09-25 14:50:0413926
Matthias Kloseb9621712010-04-24 17:59:4913927$as_echo "#define signed /**/" >>confdefs.h
Guido van Rossum7f43da71994-08-01 12:15:3013928
Martin v. Löwisc45929e2002-04-06 10:10:4913929
Guido van Rossum7f43da71994-08-01 12:15:3013930fi
Thomas Wouters47b49bf2007-08-30 22:15:3313931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13933$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3013934
Guido van Rossumda88dad1995-01-26 00:46:2913935have_prototypes=no
Matthias Kloseb9621712010-04-24 17:59:4913936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13937$as_echo_n "checking for prototypes... " >&6; }
13938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413939/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013940int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:0313941int
13942main ()
13943{
Guido van Rossum76be6ed1995-01-02 18:33:5413944return foo(10);
Martin v. Löwis11437992002-04-12 09:54:0313945 ;
13946 return 0;
13947}
13948_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913949if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313950
Matthias Kloseb9621712010-04-24 17:59:4913951$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313952
Matthias Kloseb159a552010-04-25 21:00:4413953 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:3013954fi
Thomas Wouters47b49bf2007-08-30 22:15:3313955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13957$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413958
Guido van Rossumda88dad1995-01-26 00:46:2913959works=no
Matthias Kloseb9621712010-04-24 17:59:4913960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13961$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413963/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013964
13965#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:5713966int foo(int x, ...) {
13967 va_list va;
13968 va_start(va, x);
13969 va_arg(va, int);
13970 va_arg(va, char *);
13971 va_arg(va, double);
13972 return 0;
13973}
Guido van Rossum7f43da71994-08-01 12:15:3013974
Martin v. Löwis11437992002-04-12 09:54:0313975int
13976main ()
13977{
Guido van Rossum90eea071996-08-30 20:58:5713978return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:0313979 ;
13980 return 0;
13981}
13982_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913983if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313984
13985
Matthias Kloseb9621712010-04-24 17:59:4913986$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313987
Martin v. Löwisc45929e2002-04-06 10:10:4913988 works=yes
13989
Guido van Rossum627b2d71993-12-24 10:39:1613990fi
Thomas Wouters47b49bf2007-08-30 22:15:3313991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13993$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413994
Martin v. Löwisd6320502004-08-12 13:45:0813995# check for socketpair
Matthias Kloseb9621712010-04-24 17:59:4913996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13997$as_echo_n "checking for socketpair... " >&6; }
13998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0813999/* end confdefs.h. */
14000
14001#include <sys/types.h>
14002#include <sys/socket.h>
14003
14004int
14005main ()
14006{
14007void *x=socketpair
14008 ;
14009 return 0;
14010}
14011_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914012if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd6320502004-08-12 13:45:0814013
Matthias Kloseb9621712010-04-24 17:59:4914014$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:0814015
Matthias Kloseb159a552010-04-25 21:00:4414016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4914017$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0814018else
Matthias Kloseb9621712010-04-24 17:59:4914019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0814021
14022fi
Thomas Wouters47b49bf2007-08-30 22:15:3314023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0814024
Martin v. Löwis01dfdb32001-06-23 16:30:1314025# check if sockaddr has sa_len member
Matthias Kloseb9621712010-04-24 17:59:4914026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
14027$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
14028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414029/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1314030#include <sys/types.h>
14031#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0314032int
14033main ()
14034{
Martin v. Löwis01dfdb32001-06-23 16:30:1314035struct sockaddr x;
14036x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:0314037 ;
14038 return 0;
14039}
14040_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914041if ac_fn_c_try_compile "$LINENO"; then :
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14043$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314044
Matthias Kloseb9621712010-04-24 17:59:4914045$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1314046
14047else
Matthias Kloseb9621712010-04-24 17:59:4914048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4414050
Martin v. Löwis01dfdb32001-06-23 16:30:1314051fi
Thomas Wouters47b49bf2007-08-30 22:15:3314052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1314053
Guido van Rossuma96f0ba1999-03-22 21:49:5114054# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:0314055
14056
Matthias Kloseb9621712010-04-24 17:59:4914057ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
Victor Stinnere0be4232011-10-25 11:06:0914058if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314059
Matthias Kloseb9621712010-04-24 17:59:4914060 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Martin v. Löwis4ddc78a2006-01-29 09:53:4414061
Matthias Kloseb9621712010-04-24 17:59:4914062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
14063$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:5114064 OLD_CFLAGS=$CFLAGS
14065 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4914066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414067/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5114068
14069# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0314070
Martin v. Löwis11437992002-04-12 09:54:0314071int
14072main ()
14073{
Guido van Rossuma96f0ba1999-03-22 21:49:5114074
14075 char *name;
14076 struct hostent *he, *res;
14077 char buffer[2048];
14078 int buflen = 2048;
14079 int h_errnop;
14080
14081 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0314082
14083 ;
14084 return 0;
14085}
14086_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914087if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314088
Matthias Kloseb9621712010-04-24 17:59:4914089 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3314090
Martin v. Löwis11437992002-04-12 09:54:0314091
Matthias Kloseb9621712010-04-24 17:59:4914092$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5114093
Matthias Kloseb9621712010-04-24 17:59:4914094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14095$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314096
Guido van Rossuma96f0ba1999-03-22 21:49:5114097else
Skip Montanaro6dead952003-09-25 14:50:0414098
Matthias Kloseb9621712010-04-24 17:59:4914099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
14102$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414104/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5114105
Guido van Rossuma96f0ba1999-03-22 21:49:5114106# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0314107
Martin v. Löwis11437992002-04-12 09:54:0314108int
14109main ()
14110{
Guido van Rossuma96f0ba1999-03-22 21:49:5114111
14112 char *name;
14113 struct hostent *he;
Matthias Kloseb159a552010-04-25 21:00:4414114 char buffer[2048];
14115 int buflen = 2048;
14116 int h_errnop;
Guido van Rossuma96f0ba1999-03-22 21:49:5114117
Matthias Kloseb159a552010-04-25 21:00:4414118 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0314119
14120 ;
14121 return 0;
14122}
14123_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914124if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314125
Matthias Kloseb9621712010-04-24 17:59:4914126 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3314127
Martin v. Löwis11437992002-04-12 09:54:0314128
Matthias Kloseb159a552010-04-25 21:00:4414129$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5114130
Matthias Kloseb9621712010-04-24 17:59:4914131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314133
Guido van Rossuma96f0ba1999-03-22 21:49:5114134else
Skip Montanaro6dead952003-09-25 14:50:0414135
Matthias Kloseb9621712010-04-24 17:59:4914136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4414138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
14139$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h. */
14142
14143# include <netdb.h>
14144
14145int
14146main ()
14147{
14148
14149 char *name;
14150 struct hostent *he;
14151 struct hostent_data data;
14152
14153 (void) gethostbyname_r(name, he, &data);
14154
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159if ac_fn_c_try_compile "$LINENO"; then :
14160
14161 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14162
14163
14164$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14167$as_echo "yes" >&6; }
14168
14169else
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314173
Guido van Rossuma96f0ba1999-03-22 21:49:5114174fi
Thomas Wouters47b49bf2007-08-30 22:15:3314175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314176
Guido van Rossuma96f0ba1999-03-22 21:49:5114177fi
Thomas Wouters47b49bf2007-08-30 22:15:3314178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314179
Guido van Rossuma96f0ba1999-03-22 21:49:5114180fi
Thomas Wouters47b49bf2007-08-30 22:15:3314181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:5114182 CFLAGS=$OLD_CFLAGS
14183
14184else
Guido van Rossuma96f0ba1999-03-22 21:49:5114185
Matthias Kloseb9621712010-04-24 17:59:4914186 for ac_func in gethostbyname
14187do :
14188 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Victor Stinnere0be4232011-10-25 11:06:0914189if test "x$ac_cv_func_gethostbyname" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314190 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914191#define HAVE_GETHOSTBYNAME 1
Martin v. Löwis11437992002-04-12 09:54:0314192_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:5114193
Guido van Rossuma96f0ba1999-03-22 21:49:5114194fi
Thomas Wouters3a584202000-08-05 23:28:5114195done
Guido van Rossuma96f0ba1999-03-22 21:49:5114196
Michael W. Hudson54241132001-12-07 15:38:2614197
Guido van Rossuma96f0ba1999-03-22 21:49:5114198fi
14199
Michael W. Hudson54241132001-12-07 15:38:2614200
14201
14202
14203
14204
14205
Guido van Rossum627b2d71993-12-24 10:39:1614206# checks for system services
14207# (none yet)
14208
Guido van Rossum76be6ed1995-01-02 18:33:5414209# Linux requires this for correct f.p. operations
Matthias Kloseb9621712010-04-24 17:59:4914210ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
Victor Stinnere0be4232011-10-25 11:06:0914211if test "x$ac_cv_func___fpu_control" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4914212
Jeremy Hyltonbe28f5b2000-07-27 21:03:0414213else
Matthias Kloseb9621712010-04-24 17:59:4914214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
14215$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914216if ${ac_cv_lib_ieee___fpu_control+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914217 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5414218else
Martin v. Löwis11437992002-04-12 09:54:0314219 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2814220LIBS="-lieee $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4914221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414222/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0314223
Thomas Wouters47b49bf2007-08-30 22:15:3314224/* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0314227#ifdef __cplusplus
14228extern "C"
14229#endif
Martin v. Löwis11437992002-04-12 09:54:0314230char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314231int
14232main ()
14233{
Thomas Wouters47b49bf2007-08-30 22:15:3314234return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314235 ;
14236 return 0;
14237}
14238_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914239if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314240 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:1614241else
Matthias Kloseb9621712010-04-24 17:59:4914242 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:1614243fi
Matthias Kloseb9621712010-04-24 17:59:4914244rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314246LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5414247fi
Matthias Kloseb9621712010-04-24 17:59:4914248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14249$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914250if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314251 cat >>confdefs.h <<_ACEOF
14252#define HAVE_LIBIEEE 1
14253_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5414254
Guido van Rossum8ddd0ad1995-06-14 23:10:2814255 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:5414256
Guido van Rossum627b2d71993-12-24 10:39:1614257fi
14258
Michael W. Hudson54241132001-12-07 15:38:2614259
Jeremy Hyltonbe28f5b2000-07-27 21:03:0414260fi
14261
Michael W. Hudson54241132001-12-07 15:38:2614262
Guido van Rossum7f43da71994-08-01 12:15:3014263# check for --with-libm=...
14264
Guido van Rossum563e7081996-09-10 18:20:4814265case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:0614266Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:4814267*) LIBM=-lm
14268esac
Matthias Kloseb9621712010-04-24 17:59:4914269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14270$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314271
Thomas Wouters47b49bf2007-08-30 22:15:3314272# Check whether --with-libm was given.
Matthias Kloseb9621712010-04-24 17:59:4914273if test "${with_libm+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314274 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:4814275if test "$withval" = no
14276then LIBM=
Matthias Kloseb9621712010-04-24 17:59:4914277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14278$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814279elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014280then LIBM=$withval
Matthias Kloseb9621712010-04-24 17:59:4914281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14282$as_echo "set LIBM=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014283else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014284fi
Guido van Rossum7f253911997-05-09 02:42:4814285else
Matthias Kloseb9621712010-04-24 17:59:4914286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14287$as_echo "default LIBM=\"$LIBM\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314288fi
14289
Guido van Rossum7f43da71994-08-01 12:15:3014290
14291# check for --with-libc=...
14292
Matthias Kloseb9621712010-04-24 17:59:4914293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14294$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314295
Thomas Wouters47b49bf2007-08-30 22:15:3314296# Check whether --with-libc was given.
Matthias Kloseb9621712010-04-24 17:59:4914297if test "${with_libc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314298 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:4814299if test "$withval" = no
14300then LIBC=
Matthias Kloseb9621712010-04-24 17:59:4914301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14302$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814303elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014304then LIBC=$withval
Matthias Kloseb9621712010-04-24 17:59:4914305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14306$as_echo "set LIBC=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014307else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014308fi
Guido van Rossum7f253911997-05-09 02:42:4814309else
Matthias Kloseb9621712010-04-24 17:59:4914310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14311$as_echo "default LIBC=\"$LIBC\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314312fi
14313
Guido van Rossum7f43da71994-08-01 12:15:3014314
Stefan Krah1919b7e2012-03-21 17:25:2314315# **************************************
14316# * Check for gcc x64 inline assembler *
14317# **************************************
14318
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14320$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h. */
14323
14324int
14325main ()
14326{
14327
14328 __asm__ __volatile__ ("movq %rcx, %rax");
14329
14330 ;
14331 return 0;
14332}
14333_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614334if ac_fn_c_try_link "$LINENO"; then :
Stefan Krah1919b7e2012-03-21 17:25:2314335 have_gcc_asm_for_x64=yes
14336else
14337 have_gcc_asm_for_x64=no
14338fi
Stefan Krahe31db2a2015-07-02 18:27:5614339rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
Stefan Krah1919b7e2012-03-21 17:25:2314341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14342$as_echo "$have_gcc_asm_for_x64" >&6; }
14343if test "$have_gcc_asm_for_x64" = yes
14344then
14345
14346$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
14347
14348fi
14349
Mark Dickinsonb08a53a2009-04-16 19:52:0914350# **************************************************
14351# * Check for various properties of floating point *
14352# **************************************************
Christian Heimes81ee3ef2008-05-04 22:42:0114353
Benjamin Petersonb3b8cb42018-09-19 06:49:0514354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
14355$as_echo_n "checking whether float word ordering is bigendian... " >&6; }
14356if ${ax_cv_c_float_words_bigendian+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914357 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914358else
14359
Benjamin Petersonb3b8cb42018-09-19 06:49:0514360
14361ax_cv_c_float_words_bigendian=unknown
14362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914363/* end confdefs.h. */
14364
Benjamin Petersonb3b8cb42018-09-19 06:49:0514365
14366double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
14367
Mark Dickinsonb08a53a2009-04-16 19:52:0914368
14369_ACEOF
Benjamin Petersonb3b8cb42018-09-19 06:49:0514370if ac_fn_c_try_compile "$LINENO"; then :
14371
14372
Christian Heimese5162902021-03-27 21:47:1114373if grep noonsees conftest.$ac_objext >/dev/null ; then
Benjamin Petersonb3b8cb42018-09-19 06:49:0514374 ax_cv_c_float_words_bigendian=yes
Mark Dickinsonb08a53a2009-04-16 19:52:0914375fi
Christian Heimese5162902021-03-27 21:47:1114376if grep seesnoon conftest.$ac_objext >/dev/null ; then
Benjamin Petersonb3b8cb42018-09-19 06:49:0514377 if test "$ax_cv_c_float_words_bigendian" = unknown; then
14378 ax_cv_c_float_words_bigendian=no
14379 else
14380 ax_cv_c_float_words_bigendian=unknown
14381 fi
Mark Dickinsonb08a53a2009-04-16 19:52:0914382fi
14383
Mark Dickinsonb08a53a2009-04-16 19:52:0914384
14385fi
Benjamin Petersonb3b8cb42018-09-19 06:49:0514386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914387fi
Benjamin Petersonb3b8cb42018-09-19 06:49:0514388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
14389$as_echo "$ax_cv_c_float_words_bigendian" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914390
Benjamin Petersonb3b8cb42018-09-19 06:49:0514391case $ax_cv_c_float_words_bigendian in
14392 yes)
Mark Dickinsonb08a53a2009-04-16 19:52:0914393
Benjamin Petersonb3b8cb42018-09-19 06:49:0514394$as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
14395 ;;
14396 no)
14397 ;;
14398 *)
14399 as_fn_error $? "
14400
14401Unknown float word ordering. You need to manually preset
14402ax_cv_c_float_words_bigendian=no (or yes) according to your system.
14403
14404 " "$LINENO" 5 ;;
14405esac
14406
14407
14408if test "$ax_cv_c_float_words_bigendian" = "yes"
Mark Dickinsonb08a53a2009-04-16 19:52:0914409then
14410
Matthias Kloseb9621712010-04-24 17:59:4914411$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914412
Benjamin Petersonb3b8cb42018-09-19 06:49:0514413elif test "$ax_cv_c_float_words_bigendian" = "no"
Mark Dickinsonb08a53a2009-04-16 19:52:0914414then
14415
Benjamin Petersonb3b8cb42018-09-19 06:49:0514416$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
14417
14418else
14419 # Some ARM platforms use a mixed-endian representation for doubles.
14420 # While Python doesn't currently have full support for these platforms
14421 # (see e.g., issue 1762561), we can at least make sure that float <-> string
14422 # conversions work.
14423 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big
14424 # or little, then it must be this?
14425
Matthias Kloseb9621712010-04-24 17:59:4914426$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914427
14428fi
14429
Mark Dickinson7abf8d42009-04-18 20:17:5214430# The short float repr introduced in Python 3.1 requires the
Mark Dickinson10683072009-04-18 21:18:1914431# correctly-rounded string <-> double conversion functions from
Mark Dickinson7abf8d42009-04-18 20:17:5214432# Python/dtoa.c, which in turn require that the FPU uses 53-bit
Mark Dickinson10683072009-04-18 21:18:1914433# rounding; this is a problem on x86, where the x87 FPU has a default
Mark Dickinsonf4243f62009-11-15 13:47:2714434# rounding precision of 64 bits. For gcc/x86, we can fix this by
Mark Dickinson10683072009-04-18 21:18:1914435# using inline assembler to get and set the x87 FPU control word.
Mark Dickinsonf4243f62009-11-15 13:47:2714436
14437# This inline assembler syntax may also work for suncc and icc,
14438# so we try it on all platforms.
14439
Matthias Kloseb9621712010-04-24 17:59:4914440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
14441$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
14442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914443/* end confdefs.h. */
14444
14445int
14446main ()
14447{
14448
Mark Dickinsonf4243f62009-11-15 13:47:2714449 unsigned short cw;
14450 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
14451 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
Mark Dickinsonb08a53a2009-04-16 19:52:0914452
14453 ;
14454 return 0;
14455}
14456_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614457if ac_fn_c_try_link "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914458 have_gcc_asm_for_x87=yes
14459else
Matthias Kloseb9621712010-04-24 17:59:4914460 have_gcc_asm_for_x87=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914461fi
Stefan Krahe31db2a2015-07-02 18:27:5614462rm -f core conftest.err conftest.$ac_objext \
14463 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14465$as_echo "$have_gcc_asm_for_x87" >&6; }
Mark Dickinsonf4243f62009-11-15 13:47:2714466if test "$have_gcc_asm_for_x87" = yes
14467then
Mark Dickinsonb08a53a2009-04-16 19:52:0914468
Matthias Kloseb9621712010-04-24 17:59:4914469$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914470
Mark Dickinsonb08a53a2009-04-16 19:52:0914471fi
Martin v. Löwis11437992002-04-12 09:54:0314472
Benjamin Peterson8bdeb162014-04-17 04:00:3114473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
14474$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
14475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h. */
14477
14478int
14479main ()
14480{
14481
14482 unsigned int fpcr;
14483 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
14484 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
14485
14486 ;
14487 return 0;
14488}
14489_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614490if ac_fn_c_try_link "$LINENO"; then :
Benjamin Peterson8bdeb162014-04-17 04:00:3114491 have_gcc_asm_for_mc68881=yes
14492else
14493 have_gcc_asm_for_mc68881=no
14494fi
Stefan Krahe31db2a2015-07-02 18:27:5614495rm -f core conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
Benjamin Peterson8bdeb162014-04-17 04:00:3114497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14498$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14499if test "$have_gcc_asm_for_mc68881" = yes
14500then
14501
14502$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14503
14504fi
14505
Mark Dickinson3dc7c6a2009-01-04 15:09:0214506# Detect whether system arithmetic is subject to x87-style double
14507# rounding issues. The result of this test has little meaning on non
14508# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
14509# mode is round-to-nearest and double rounding issues are present, and
14510# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Matthias Kloseb9621712010-04-24 17:59:4914511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14512$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914513# $BASECFLAGS may affect the result
14514ac_save_cc="$CC"
14515CC="$CC $BASECFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4914516if test "$cross_compiling" = yes; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214517 ac_cv_x87_double_rounding=no
14518else
Matthias Kloseb9621712010-04-24 17:59:4914519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214520/* end confdefs.h. */
14521
14522#include <stdlib.h>
14523#include <math.h>
14524int main() {
14525 volatile double x, y, z;
14526 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14527 x = 0.99999999999999989; /* 1-2**-53 */
14528 y = 1./x;
14529 if (y != 1.)
14530 exit(0);
14531 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14532 x = 1e16;
14533 y = 2.99999;
14534 z = x + y;
14535 if (z != 1e16+4.)
14536 exit(0);
14537 /* both tests show evidence of double rounding */
14538 exit(1);
14539}
14540
14541_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914542if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214543 ac_cv_x87_double_rounding=no
14544else
Matthias Kloseb9621712010-04-24 17:59:4914545 ac_cv_x87_double_rounding=yes
Mark Dickinson3dc7c6a2009-01-04 15:09:0214546fi
Matthias Kloseb9621712010-04-24 17:59:4914547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14548 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214549fi
14550
Mark Dickinsonb08a53a2009-04-16 19:52:0914551CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:4914552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14553$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson3dc7c6a2009-01-04 15:09:0214554if test "$ac_cv_x87_double_rounding" = yes
14555then
14556
Matthias Kloseb9621712010-04-24 17:59:4914557$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
Mark Dickinson3dc7c6a2009-01-04 15:09:0214558
14559fi
14560
Mark Dickinsonb08a53a2009-04-16 19:52:0914561# ************************************
14562# * Check for mathematical functions *
14563# ************************************
14564
14565LIBS_SAVE=$LIBS
14566LIBS="$LIBS $LIBM"
14567
Mark Dickinsonec0d3552010-11-20 10:29:1214568for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14569do :
14570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014572if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214573 cat >>confdefs.h <<_ACEOF
14574#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578done
14579
Victor Stinner8f9f8d62011-05-09 10:45:4114580for ac_func in hypot lgamma log1p log2 round tgamma
Mark Dickinsonec0d3552010-11-20 10:29:1214581do :
14582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14583ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014584if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214585 cat >>confdefs.h <<_ACEOF
14586#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587_ACEOF
14588
14589fi
14590done
14591
14592ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14593"
Victor Stinnere0be4232011-10-25 11:06:0914594if test "x$ac_cv_have_decl_isinf" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214595 ac_have_decl=1
14596else
14597 ac_have_decl=0
14598fi
14599
14600cat >>confdefs.h <<_ACEOF
14601#define HAVE_DECL_ISINF $ac_have_decl
14602_ACEOF
14603ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14604"
Victor Stinnere0be4232011-10-25 11:06:0914605if test "x$ac_cv_have_decl_isnan" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214606 ac_have_decl=1
14607else
14608 ac_have_decl=0
14609fi
14610
14611cat >>confdefs.h <<_ACEOF
14612#define HAVE_DECL_ISNAN $ac_have_decl
14613_ACEOF
14614ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14615"
Victor Stinnere0be4232011-10-25 11:06:0914616if test "x$ac_cv_have_decl_isfinite" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214617 ac_have_decl=1
14618else
14619 ac_have_decl=0
14620fi
14621
14622cat >>confdefs.h <<_ACEOF
14623#define HAVE_DECL_ISFINITE $ac_have_decl
14624_ACEOF
14625
14626
Mark Dickinsona614f042009-11-28 12:48:4314627# For multiprocessing module, check that sem_open
14628# actually works. For FreeBSD versions <= 7.2,
14629# the kernel module that provides POSIX semaphores
14630# isn't loaded by default, so an attempt to call
14631# sem_open results in a 'Signal 12' error.
Matthias Kloseb9621712010-04-24 17:59:4914632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14633$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914634if ${ac_cv_posix_semaphores_enabled+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914635 $as_echo_n "(cached) " >&6
Mark Dickinsona614f042009-11-28 12:48:4314636else
Matthias Kloseb9621712010-04-24 17:59:4914637 if test "$cross_compiling" = yes; then :
Mark Dickinsona614f042009-11-28 12:48:4314638 ac_cv_posix_semaphores_enabled=yes
14639else
Matthias Kloseb9621712010-04-24 17:59:4914640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314641/* end confdefs.h. */
14642
14643#include <unistd.h>
14644#include <fcntl.h>
14645#include <stdio.h>
14646#include <semaphore.h>
14647#include <sys/stat.h>
14648
14649int main(void) {
14650 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
14651 if (a == SEM_FAILED) {
14652 perror("sem_open");
14653 return 1;
14654 }
14655 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714656 sem_unlink("/autoconf");
Mark Dickinsona614f042009-11-28 12:48:4314657 return 0;
14658}
14659
14660_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914661if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsona614f042009-11-28 12:48:4314662 ac_cv_posix_semaphores_enabled=yes
14663else
Matthias Kloseb9621712010-04-24 17:59:4914664 ac_cv_posix_semaphores_enabled=no
Mark Dickinsona614f042009-11-28 12:48:4314665fi
Matthias Kloseb9621712010-04-24 17:59:4914666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14667 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314668fi
14669
14670
Mark Dickinsona614f042009-11-28 12:48:4314671fi
14672
Matthias Kloseb9621712010-04-24 17:59:4914673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14674$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
Mark Dickinsona614f042009-11-28 12:48:4314675if test $ac_cv_posix_semaphores_enabled = no
14676then
14677
Matthias Kloseb9621712010-04-24 17:59:4914678$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
Mark Dickinsona614f042009-11-28 12:48:4314679
14680fi
14681
Mark Dickinson10683072009-04-18 21:18:1914682# Multiprocessing check for broken sem_getvalue
Matthias Kloseb9621712010-04-24 17:59:4914683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14684$as_echo_n "checking for broken sem_getvalue... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914685if ${ac_cv_broken_sem_getvalue+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914686 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3714687else
Matthias Kloseb9621712010-04-24 17:59:4914688 if test "$cross_compiling" = yes; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714689 ac_cv_broken_sem_getvalue=yes
Mark Dickinson10683072009-04-18 21:18:1914690else
Matthias Kloseb9621712010-04-24 17:59:4914691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson10683072009-04-18 21:18:1914692/* end confdefs.h. */
14693
14694#include <unistd.h>
14695#include <fcntl.h>
14696#include <stdio.h>
14697#include <semaphore.h>
14698#include <sys/stat.h>
14699
14700int main(void){
Mark Dickinsonba79b352009-12-13 21:10:5714701 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
Mark Dickinson10683072009-04-18 21:18:1914702 int count;
14703 int res;
14704 if(a==SEM_FAILED){
14705 perror("sem_open");
14706 return 1;
14707
14708 }
14709 res = sem_getvalue(a, &count);
14710 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714711 sem_unlink("/autocftw");
Mark Dickinson10683072009-04-18 21:18:1914712 return res==-1 ? 1 : 0;
14713}
14714
Mark Dickinson10683072009-04-18 21:18:1914715_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914716if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714717 ac_cv_broken_sem_getvalue=no
Mark Dickinson10683072009-04-18 21:18:1914718else
Matthias Kloseb9621712010-04-24 17:59:4914719 ac_cv_broken_sem_getvalue=yes
Alexandre Vassalotti19142282009-07-17 23:11:5214720fi
Matthias Kloseb9621712010-04-24 17:59:4914721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14722 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5314723fi
14724
Alexandre Vassalotti19142282009-07-17 23:11:5214725
Alexandre Vassalottib0a61d72009-07-17 23:19:3714726fi
14727
Matthias Kloseb9621712010-04-24 17:59:4914728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14729$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3714730if test $ac_cv_broken_sem_getvalue = yes
14731then
14732
Matthias Kloseb9621712010-04-24 17:59:4914733$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3714734
14735fi
14736
Serhiy Storchakac2f7d872016-05-04 06:44:4414737ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
14738"
14739if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
14740 ac_have_decl=1
14741else
14742 ac_have_decl=0
14743fi
14744
14745cat >>confdefs.h <<_ACEOF
14746#define HAVE_DECL_RTLD_LAZY $ac_have_decl
14747_ACEOF
14748ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
14749"
14750if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
14751 ac_have_decl=1
14752else
14753 ac_have_decl=0
14754fi
14755
14756cat >>confdefs.h <<_ACEOF
14757#define HAVE_DECL_RTLD_NOW $ac_have_decl
14758_ACEOF
14759ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
14760"
14761if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
14762 ac_have_decl=1
14763else
14764 ac_have_decl=0
14765fi
14766
14767cat >>confdefs.h <<_ACEOF
14768#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
14769_ACEOF
14770ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
14771"
14772if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
14773 ac_have_decl=1
14774else
14775 ac_have_decl=0
14776fi
14777
14778cat >>confdefs.h <<_ACEOF
14779#define HAVE_DECL_RTLD_LOCAL $ac_have_decl
14780_ACEOF
14781ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
14782"
14783if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
14784 ac_have_decl=1
14785else
14786 ac_have_decl=0
14787fi
14788
14789cat >>confdefs.h <<_ACEOF
14790#define HAVE_DECL_RTLD_NODELETE $ac_have_decl
14791_ACEOF
14792ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
14793"
14794if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
14795 ac_have_decl=1
14796else
14797 ac_have_decl=0
14798fi
14799
14800cat >>confdefs.h <<_ACEOF
14801#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
14802_ACEOF
14803ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
14804"
14805if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
14806 ac_have_decl=1
14807else
14808 ac_have_decl=0
14809fi
14810
14811cat >>confdefs.h <<_ACEOF
14812#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
14813_ACEOF
Michael Feltc5ae1692017-12-19 12:58:4914814ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
14815"
14816if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then :
14817 ac_have_decl=1
14818else
14819 ac_have_decl=0
14820fi
14821
14822cat >>confdefs.h <<_ACEOF
14823#define HAVE_DECL_RTLD_MEMBER $ac_have_decl
14824_ACEOF
Serhiy Storchakac2f7d872016-05-04 06:44:4414825
14826
Mark Dickinsonbd792642009-03-18 20:06:1214827# determine what size digit to use for Python's longs
Matthias Kloseb9621712010-04-24 17:59:4914828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14829$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214830# Check whether --enable-big-digits was given.
Matthias Kloseb9621712010-04-24 17:59:4914831if test "${enable_big_digits+set}" = set; then :
Mark Dickinsonbd792642009-03-18 20:06:1214832 enableval=$enable_big_digits; case $enable_big_digits in
14833yes)
14834 enable_big_digits=30 ;;
14835no)
14836 enable_big_digits=15 ;;
1483715|30)
14838 ;;
14839*)
Victor Stinnere0be4232011-10-25 11:06:0914840 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
Mark Dickinsonbd792642009-03-18 20:06:1214841esac
Matthias Kloseb9621712010-04-24 17:59:4914842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14843$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214844
14845cat >>confdefs.h <<_ACEOF
14846#define PYLONG_BITS_IN_DIGIT $enable_big_digits
14847_ACEOF
14848
14849
14850else
Matthias Kloseb9621712010-04-24 17:59:4914851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14852$as_echo "no value specified" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214853fi
14854
14855
Guido van Rossumef2255b2000-03-10 22:30:2914856# check for wchar.h
Matthias Kloseb9621712010-04-24 17:59:4914857ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0914858if test "x$ac_cv_header_wchar_h" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314859
14860
Matthias Kloseb9621712010-04-24 17:59:4914861$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314862
Martin v. Löwisc45929e2002-04-06 10:10:4914863 wchar_h="yes"
14864
Guido van Rossumef2255b2000-03-10 22:30:2914865else
Martin v. Löwis11437992002-04-12 09:54:0314866 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:2914867
14868fi
14869
Michael W. Hudson54241132001-12-07 15:38:2614870
Martin v. Löwis11437992002-04-12 09:54:0314871
Martin v. Löwis0ba70cc2001-06-26 22:22:3714872# determine wchar_t size
14873if test "$wchar_h" = yes
14874then
Matthias Kloseb9621712010-04-24 17:59:4914875 # The cast to long int works around a bug in the HP C Compiler
Thomas Wouters47b49bf2007-08-30 22:15:3314876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14878# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:4914879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14880$as_echo_n "checking size of wchar_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914881if ${ac_cv_sizeof_wchar_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914882 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0314883else
Matthias Kloseb9621712010-04-24 17:59:4914884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
14885"; then :
Martin v. Löwis11437992002-04-12 09:54:0314886
Martin v. Löwis11437992002-04-12 09:54:0314887else
Matthias Kloseb9621712010-04-24 17:59:4914888 if test "$ac_cv_type_wchar_t" = yes; then
14889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:3014891as_fn_error 77 "cannot compute sizeof (wchar_t)
Victor Stinnere0be4232011-10-25 11:06:0914892See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:3314893 else
14894 ac_cv_sizeof_wchar_t=0
14895 fi
Martin v. Löwis11437992002-04-12 09:54:0314896fi
Matthias Kloseb9621712010-04-24 17:59:4914897
Martin v. Löwis11437992002-04-12 09:54:0314898fi
Matthias Kloseb9621712010-04-24 17:59:4914899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14900$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314901
14902
14903
Martin v. Löwis11437992002-04-12 09:54:0314904cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714905#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:0314906_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714907
Michael W. Hudson54241132001-12-07 15:38:2614908
Martin v. Löwis0ba70cc2001-06-26 22:22:3714909fi
14910
Matthias Kloseb9621712010-04-24 17:59:4914911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14912$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414913have_ucs4_tcl=no
Matthias Kloseb9621712010-04-24 17:59:4914914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414915/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:5414916
14917#include <tcl.h>
14918#if TCL_UTF_MAX != 6
14919# error "NOT UCS4_TCL"
14920#endif
14921int
14922main ()
14923{
14924
14925 ;
14926 return 0;
14927}
14928_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914929if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisfa3bdea2003-09-04 18:50:5414930
14931
Matthias Kloseb9621712010-04-24 17:59:4914932$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
Martin v. Löwisfa3bdea2003-09-04 18:50:5414933
14934 have_ucs4_tcl=yes
14935
Martin v. Löwisfa3bdea2003-09-04 18:50:5414936fi
Thomas Wouters47b49bf2007-08-30 22:15:3314937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14939$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414940
Skip Montanaro6dead952003-09-25 14:50:0414941# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:4014942if test "$wchar_h" = yes
14943then
14944 # check whether wchar_t is signed or not
Matthias Kloseb9621712010-04-24 17:59:4914945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14946$as_echo_n "checking whether wchar_t is signed... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914947 if ${ac_cv_wchar_t_signed+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914948 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:4014949else
14950
Matthias Kloseb9621712010-04-24 17:59:4914951 if test "$cross_compiling" = yes; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4014952 ac_cv_wchar_t_signed=yes
14953else
Matthias Kloseb9621712010-04-24 17:59:4914954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414955/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:4014956
14957 #include <wchar.h>
14958 int main()
14959 {
Thomas Wouters49fd7fa2006-04-21 10:40:5814960 /* Success: exit code 0 */
Miss Islington (bot)9feda9f2020-12-13 22:01:5914961 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:4014962 }
14963
14964_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914965if ac_fn_c_try_run "$LINENO"; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4014966 ac_cv_wchar_t_signed=yes
14967else
Matthias Kloseb9621712010-04-24 17:59:4914968 ac_cv_wchar_t_signed=no
Marc-André Lemburgd7160f82003-09-22 11:14:4014969fi
Matthias Kloseb9621712010-04-24 17:59:4914970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14971 conftest.$ac_objext conftest.beam conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:4014972fi
14973
Marc-André Lemburgd7160f82003-09-22 11:14:4014974fi
14975
Matthias Kloseb9621712010-04-24 17:59:4914976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
14977$as_echo "$ac_cv_wchar_t_signed" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314978fi
14979
Michael Osipov3738fad2018-08-24 16:17:1914980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
14981$as_echo_n "checking whether wchar_t is usable... " >&6; }
Georg Brandl52d168a2008-01-07 18:10:2414982# wchar_t is only usable if it maps to an unsigned type
Martin v. Löwisd63a3b82011-09-28 05:41:5414983if test "$ac_cv_sizeof_wchar_t" -ge 2 \
Matthias Klose7dbeed72004-12-24 08:22:1714984 -a "$ac_cv_wchar_t_signed" = "no"
Georg Brandl52d168a2008-01-07 18:10:2414985then
Martin v. Löwis0ba70cc2001-06-26 22:22:3714986
Matthias Kloseb9621712010-04-24 17:59:4914987$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314988
Michael Osipov3738fad2018-08-24 16:17:1914989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14990$as_echo "yes" >&6; }
Georg Brandl52d168a2008-01-07 18:10:2414991else
Michael Osipov3738fad2018-08-24 16:17:1914992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993$as_echo "no" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:3714994fi
Guido van Rossumef2255b2000-03-10 22:30:2914995
14996# check for endianness
Matthias Kloseb9621712010-04-24 17:59:4914997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14998$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914999if ${ac_cv_c_bigendian+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915000 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:2915001else
Matthias Kloseb9621712010-04-24 17:59:4915002 ac_cv_c_bigendian=unknown
15003 # See if we're dealing with a universal compiler.
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005/* end confdefs.h. */
15006#ifndef __APPLE_CC__
15007 not a universal capable compiler
15008 #endif
15009 typedef int dummy;
15010
Skip Montanaro6dead952003-09-25 14:50:0415011_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915012if ac_fn_c_try_compile "$LINENO"; then :
15013
15014 # Check for potential -arch flags. It is not universal unless
15015 # there are at least two -arch flags with different values.
15016 ac_arch=
15017 ac_prev=
15018 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15019 if test -n "$ac_prev"; then
15020 case $ac_word in
15021 i?86 | x86_64 | ppc | ppc64)
15022 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15023 ac_arch=$ac_word
15024 else
15025 ac_cv_c_bigendian=universal
15026 break
15027 fi
15028 ;;
15029 esac
15030 ac_prev=
15031 elif test "x$ac_word" = "x-arch"; then
15032 ac_prev=arch
15033 fi
15034 done
15035fi
15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 if test $ac_cv_c_bigendian = unknown; then
15038 # See if sys/param.h defines the BYTE_ORDER macro.
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415040/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2915041#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4915042 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2915043
Martin v. Löwis11437992002-04-12 09:54:0315044int
15045main ()
15046{
Matthias Kloseb9621712010-04-24 17:59:4915047#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15048 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15049 && LITTLE_ENDIAN)
15050 bogus endian macros
15051 #endif
Martin v. Löwis11437992002-04-12 09:54:0315052
15053 ;
15054 return 0;
15055}
15056_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915057if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915058 # It does; now see whether it defined to BIG_ENDIAN or not.
Matthias Kloseb9621712010-04-24 17:59:4915059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415060/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2915061#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4915062 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2915063
Martin v. Löwis11437992002-04-12 09:54:0315064int
15065main ()
15066{
Guido van Rossumef2255b2000-03-10 22:30:2915067#if BYTE_ORDER != BIG_ENDIAN
Matthias Kloseb9621712010-04-24 17:59:4915068 not big endian
15069 #endif
Martin v. Löwis11437992002-04-12 09:54:0315070
15071 ;
15072 return 0;
15073}
15074_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915075if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915076 ac_cv_c_bigendian=yes
15077else
Matthias Kloseb9621712010-04-24 17:59:4915078 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:2915079fi
Thomas Wouters47b49bf2007-08-30 22:15:3315080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4915081fi
15082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 if test $ac_cv_c_bigendian = unknown; then
15085 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415087/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:4915088#include <limits.h>
15089
Martin v. Löwis11437992002-04-12 09:54:0315090int
15091main ()
15092{
Matthias Kloseb9621712010-04-24 17:59:4915093#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15094 bogus endian macros
15095 #endif
15096
Martin v. Löwis11437992002-04-12 09:54:0315097 ;
15098 return 0;
15099}
15100_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915101if ac_fn_c_try_compile "$LINENO"; then :
15102 # It does; now see whether it defined to _BIG_ENDIAN or not.
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h. */
15105#include <limits.h>
15106
15107int
15108main ()
15109{
15110#ifndef _BIG_ENDIAN
15111 not big endian
15112 #endif
15113
15114 ;
15115 return 0;
15116}
15117_ACEOF
15118if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315119 ac_cv_c_bigendian=yes
Benjamin Peterson8719ad52009-09-11 22:24:0215120else
Matthias Kloseb9621712010-04-24 17:59:4915121 ac_cv_c_bigendian=no
Martin v. Löwis11437992002-04-12 09:54:0315122fi
Matthias Kloseb9621712010-04-24 17:59:4915123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124fi
15125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126 fi
15127 if test $ac_cv_c_bigendian = unknown; then
15128 # Compile a test program.
15129 if test "$cross_compiling" = yes; then :
15130 # Try to guess by grepping values from an object file.
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h. */
15133short int ascii_mm[] =
15134 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15135 short int ascii_ii[] =
15136 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15137 int use_ascii (int i) {
15138 return ascii_mm[i] + ascii_ii[i];
15139 }
15140 short int ebcdic_ii[] =
15141 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15142 short int ebcdic_mm[] =
15143 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15144 int use_ebcdic (int i) {
15145 return ebcdic_mm[i] + ebcdic_ii[i];
15146 }
15147 extern int foo;
Thomas Wouters47b49bf2007-08-30 22:15:3315148
Matthias Kloseb9621712010-04-24 17:59:4915149int
15150main ()
15151{
15152return use_ascii (foo) == use_ebcdic (foo);
15153 ;
15154 return 0;
15155}
15156_ACEOF
15157if ac_fn_c_try_compile "$LINENO"; then :
15158 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15159 ac_cv_c_bigendian=yes
15160 fi
15161 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15162 if test "$ac_cv_c_bigendian" = unknown; then
15163 ac_cv_c_bigendian=no
15164 else
15165 # finding both strings is unlikely to happen, but who knows?
15166 ac_cv_c_bigendian=unknown
15167 fi
15168 fi
15169fi
Thomas Wouters47b49bf2007-08-30 22:15:3315170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315171else
Matthias Kloseb9621712010-04-24 17:59:4915172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415173/* end confdefs.h. */
Thomas Wouters47b49bf2007-08-30 22:15:3315174$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0315175int
15176main ()
15177{
Thomas Wouters47b49bf2007-08-30 22:15:3315178
Matthias Kloseb9621712010-04-24 17:59:4915179 /* Are we little or big endian? From Harbison&Steele. */
15180 union
15181 {
15182 long int l;
15183 char c[sizeof (long int)];
15184 } u;
15185 u.l = 1;
15186 return u.c[sizeof (long int) - 1] == 1;
Thomas Wouters47b49bf2007-08-30 22:15:3315187
15188 ;
15189 return 0;
Guido van Rossumef2255b2000-03-10 22:30:2915190}
Martin v. Löwis11437992002-04-12 09:54:0315191_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915192if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915193 ac_cv_c_bigendian=no
15194else
Matthias Kloseb9621712010-04-24 17:59:4915195 ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:2915196fi
Matthias Kloseb9621712010-04-24 17:59:4915197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15198 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:2915199fi
Thomas Wouters47b49bf2007-08-30 22:15:3315200
Matthias Kloseb9621712010-04-24 17:59:4915201 fi
Martin v. Löwis11437992002-04-12 09:54:0315202fi
Matthias Kloseb9621712010-04-24 17:59:4915203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15204$as_echo "$ac_cv_c_bigendian" >&6; }
15205 case $ac_cv_c_bigendian in #(
15206 yes)
15207 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15208;; #(
15209 no)
15210 ;; #(
15211 universal)
Ronald Oussoren74f29b42009-09-20 20:09:2615212
Matthias Kloseb9621712010-04-24 17:59:4915213$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benjamin Peterson8719ad52009-09-11 22:24:0215214
Matthias Kloseb9621712010-04-24 17:59:4915215 ;; #(
15216 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:3015217 as_fn_error $? "unknown endianness
Victor Stinnere0be4232011-10-25 11:06:0915218 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Matthias Kloseb9621712010-04-24 17:59:4915219 esac
Guido van Rossumef2255b2000-03-10 22:30:2915220
Michael W. Hudson54241132001-12-07 15:38:2615221
Barry Warsaw35f3a2c2010-09-03 18:30:3015222# ABI version string for Python extension modules. This appears between the
15223# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
15224# from the following attributes which affect the ABI of this Python build (in
15225# this order):
15226#
15227# * The Python implementation (always 'cpython-' for us)
15228# * The major and minor version numbers
15229# * --with-pydebug (adds a 'd')
Barry Warsaw35f3a2c2010-09-03 18:30:3015230#
15231# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
Benjamin Petersond7f73e92010-09-05 00:09:0715232# would get a shared library ABI version tag of 'cpython-32dmu' and shared
15233# libraries would be named 'foo.cpython-32dmu.so'.
Victor Stinner6c44fde2019-04-24 14:10:0915234#
15235# In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
15236# In Python 3.7 and older, --with-pymalloc added a 'm' flag.
Barry Warsaw35f3a2c2010-09-03 18:30:3015237
Barry Warsaw8cf4eae2010-10-16 01:04:0715238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15239$as_echo_n "checking ABIFLAGS... " >&6; }
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15241$as_echo "$ABIFLAGS" >&6; }
Barry Warsaw35f3a2c2010-09-03 18:30:3015242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15243$as_echo_n "checking SOABI... " >&6; }
doko@ubuntu.comd3899c12015-04-15 18:23:1415244SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
Barry Warsaw35f3a2c2010-09-03 18:30:3015245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15246$as_echo "$SOABI" >&6; }
15247
Victor Stinner6d13e5b2019-04-26 16:56:1915248# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI
15249if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
Victor Stinner5422e3c2019-04-25 23:40:0015250 # Similar to SOABI but remove "d" flag from ABIFLAGS
15251
15252 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15253
15254cat >>confdefs.h <<_ACEOF
15255#define ALT_SOABI "${ALT_SOABI}"
15256_ACEOF
15257
15258fi
15259
Christian Heimese5162902021-03-27 21:47:1115260
Miss Islington (bot)b01091a2020-12-20 03:17:4215261EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
doko@ubuntu.comd5537d02013-03-21 20:21:4915262
Barry Warsaw8cf4eae2010-10-16 01:04:0715263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15264$as_echo_n "checking LDVERSION... " >&6; }
15265LDVERSION='$(VERSION)$(ABIFLAGS)'
15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15267$as_echo "$LDVERSION" >&6; }
15268
E. M. Brayc994c8f2019-05-24 15:33:4715269# On Android and Cygwin the shared libraries must be linked with libpython.
xdegaye254b3092019-04-29 07:27:4015270
E. M. Brayb1fc4172019-05-24 16:39:3915271if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
xdegaye254b3092019-04-29 07:27:4015272 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
E. M. Brayb1fc4172019-05-24 16:39:3915273else
15274 LIBPYTHON=''
xdegaye254b3092019-04-29 07:27:4015275fi
15276
doko@python.org87421192013-01-26 10:39:3115277
doko@ubuntu.com55532312016-06-14 06:55:1915278if test x$PLATFORM_TRIPLET = x; then
15279 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
15280else
15281 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15282fi
doko@python.org87421192013-01-26 10:39:3115283
15284
Vladimir Marangozov676aa882000-07-12 03:02:4315285# Check whether right shifting a negative integer extends the sign bit
15286# or fills with zeros (like the Cray J90, according to Tim Peters).
Matthias Kloseb9621712010-04-24 17:59:4915287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15288$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915289if ${ac_cv_rshift_extends_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915290 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:0615291else
Martin v. Löwis11437992002-04-12 09:54:0315292
Matthias Kloseb9621712010-04-24 17:59:4915293if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415294 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:4315295else
Matthias Kloseb9621712010-04-24 17:59:4915296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415297/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:4315298
15299int main()
15300{
Miss Islington (bot)9feda9f2020-12-13 22:01:5915301 return (((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:4315302}
15303
Martin v. Löwis11437992002-04-12 09:54:0315304_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915305if ac_fn_c_try_run "$LINENO"; then :
Vladimir Marangozova6180282000-07-12 05:05:0615306 ac_cv_rshift_extends_sign=yes
15307else
Matthias Kloseb9621712010-04-24 17:59:4915308 ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:0615309fi
Matthias Kloseb9621712010-04-24 17:59:4915310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15311 conftest.$ac_objext conftest.beam conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:0615312fi
15313
Thomas Wouters47b49bf2007-08-30 22:15:3315314fi
15315
Matthias Kloseb9621712010-04-24 17:59:4915316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15317$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:0615318if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:4315319then
Martin v. Löwis11437992002-04-12 09:54:0315320
Matthias Kloseb9621712010-04-24 17:59:4915321$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
Vladimir Marangozov676aa882000-07-12 03:02:4315322
Vladimir Marangozov676aa882000-07-12 03:02:4315323fi
15324
Guido van Rossumcadfaec2001-01-05 14:45:4915325# check for getc_unlocked and related locking functions
Matthias Kloseb9621712010-04-24 17:59:4915326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15327$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915328if ${ac_cv_have_getc_unlocked+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915329 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:4915330else
Martin v. Löwis11437992002-04-12 09:54:0315331
Matthias Kloseb9621712010-04-24 17:59:4915332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415333/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:4915334#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:0315335int
15336main ()
15337{
Guido van Rossumcadfaec2001-01-05 14:45:4915338
15339 FILE *f = fopen("/dev/null", "r");
15340 flockfile(f);
15341 getc_unlocked(f);
15342 funlockfile(f);
15343
Martin v. Löwis11437992002-04-12 09:54:0315344 ;
15345 return 0;
15346}
15347_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915348if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossumcadfaec2001-01-05 14:45:4915349 ac_cv_have_getc_unlocked=yes
15350else
Matthias Kloseb9621712010-04-24 17:59:4915351 ac_cv_have_getc_unlocked=no
15352fi
15353rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:4915355fi
Thomas Wouters47b49bf2007-08-30 22:15:3315356
Matthias Kloseb9621712010-04-24 17:59:4915357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15358$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:4915359if test "$ac_cv_have_getc_unlocked" = yes
15360then
Martin v. Löwis11437992002-04-12 09:54:0315361
Matthias Kloseb9621712010-04-24 17:59:4915362$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
Guido van Rossumcadfaec2001-01-05 14:45:4915363
15364fi
Vladimir Marangozov676aa882000-07-12 03:02:4315365
Neal Norwitzfe8e3d92006-01-07 21:07:2015366# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:3015367# save the value of LIBS so we don't actually link Python with readline
15368LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:2015369
Gregory P. Smith18820942008-09-07 06:24:4915370# On some systems we need to link readline to a termcap compatible
15371# library. NOTE: Keep the precedence of listed libraries synchronised
15372# with setup.py.
15373py_cv_lib_readline=no
Matthias Kloseb9621712010-04-24 17:59:4915374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15375$as_echo_n "checking how to link readline libs... " >&6; }
doko@ubuntu.comf2967c72012-06-30 15:32:2315376for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
Gregory P. Smith18820942008-09-07 06:24:4915377 if test -z "$py_libtermcap"; then
15378 READLINE_LIBS="-lreadline"
15379 else
15380 READLINE_LIBS="-lreadline -l$py_libtermcap"
15381 fi
15382 LIBS="$READLINE_LIBS $LIBS_no_readline"
Matthias Kloseb9621712010-04-24 17:59:4915383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitzfe8e3d92006-01-07 21:07:2015384/* end confdefs.h. */
15385
Thomas Wouters47b49bf2007-08-30 22:15:3315386/* Override any GCC internal prototype to avoid an error.
15387 Use char because int might match the return type of a GCC
15388 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:2015389#ifdef __cplusplus
15390extern "C"
15391#endif
Neal Norwitzfe8e3d92006-01-07 21:07:2015392char readline ();
15393int
15394main ()
15395{
Thomas Wouters47b49bf2007-08-30 22:15:3315396return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:2015397 ;
15398 return 0;
15399}
15400_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915401if ac_fn_c_try_link "$LINENO"; then :
Gregory P. Smith18820942008-09-07 06:24:4915402 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:2015403fi
Matthias Kloseb9621712010-04-24 17:59:4915404rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smith18820942008-09-07 06:24:4915406 if test $py_cv_lib_readline = yes; then
15407 break
15408 fi
15409done
15410# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
15411#AC_SUBST([READLINE_LIBS])
Gregory P. Smith3856c372008-09-07 19:24:0015412if test $py_cv_lib_readline = no; then
Matthias Kloseb9621712010-04-24 17:59:4915413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15414$as_echo "none" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915415else
Matthias Kloseb9621712010-04-24 17:59:4915416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15417$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915418
Matthias Kloseb9621712010-04-24 17:59:4915419$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
Neal Norwitzfe8e3d92006-01-07 21:07:2015420
Neal Norwitzfe8e3d92006-01-07 21:07:2015421fi
15422
Guido van Rossumfaf5e4d2002-12-30 16:25:4115423# check for readline 2.2
Matthias Kloseb9621712010-04-24 17:59:4915424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415425/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115426#include <readline/readline.h>
15427_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915428if ac_fn_c_try_cpp "$LINENO"; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115429 have_readline=yes
15430else
Guido van Rossumfaf5e4d2002-12-30 16:25:4115431 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415432
Guido van Rossumfaf5e4d2002-12-30 16:25:4115433fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015434rm -f conftest.err conftest.i conftest.$ac_ext
Guido van Rossumfaf5e4d2002-12-30 16:25:4115435if test $have_readline = yes
15436then
Matthias Kloseb9621712010-04-24 17:59:4915437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415438/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115439#include <readline/readline.h>
15440
15441_ACEOF
15442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915443 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115444
Matthias Kloseb9621712010-04-24 17:59:4915445$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
Guido van Rossumfaf5e4d2002-12-30 16:25:4115446
15447fi
Matthias Klosec80c93f2010-04-24 17:04:3515448rm -f conftest*
Guido van Rossumfaf5e4d2002-12-30 16:25:4115449
Matthias Kloseb9621712010-04-24 17:59:4915450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroud5131772009-10-26 19:22:1415451/* end confdefs.h. */
15452#include <readline/readline.h>
15453
15454_ACEOF
15455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915456 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
Antoine Pitroud5131772009-10-26 19:22:1415457
Matthias Kloseb9621712010-04-24 17:59:4915458$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
Antoine Pitroud5131772009-10-26 19:22:1415459
15460fi
Matthias Klosec80c93f2010-04-24 17:04:3515461rm -f conftest*
Antoine Pitroud5131772009-10-26 19:22:1415462
Guido van Rossumfaf5e4d2002-12-30 16:25:4115463fi
15464
Martin v. Löwis0daad592001-09-30 21:09:5915465# check for readline 4.0
Matthias Kloseb9621712010-04-24 17:59:4915466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15467$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915468if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915469 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:3215470else
Martin v. Löwis11437992002-04-12 09:54:0315471 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915472LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415474/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315475
Thomas Wouters47b49bf2007-08-30 22:15:3315476/* Override any GCC internal prototype to avoid an error.
15477 Use char because int might match the return type of a GCC
15478 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315479#ifdef __cplusplus
15480extern "C"
15481#endif
Martin v. Löwis11437992002-04-12 09:54:0315482char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315483int
15484main ()
15485{
Thomas Wouters47b49bf2007-08-30 22:15:3315486return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315487 ;
15488 return 0;
15489}
15490_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915491if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315492 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:5915493else
Matthias Kloseb9621712010-04-24 17:59:4915494 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:5915495fi
Matthias Kloseb9621712010-04-24 17:59:4915496rm -f core conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315498LIBS=$ac_check_lib_save_LIBS
15499fi
Matthias Kloseb9621712010-04-24 17:59:4915500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15501$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915502if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615503
Matthias Kloseb9621712010-04-24 17:59:4915504$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
Martin v. Löwis0daad592001-09-30 21:09:5915505
Martin v. Löwis0daad592001-09-30 21:09:5915506fi
15507
Michael W. Hudson54241132001-12-07 15:38:2615508
Thomas Wouters89d996e2007-09-08 17:39:2815509# also in 4.0
Matthias Kloseb9621712010-04-24 17:59:4915510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
15511$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915512if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915513 $as_echo_n "(cached) " >&6
Thomas Wouters89d996e2007-09-08 17:39:2815514else
15515 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915516LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815518/* end confdefs.h. */
15519
15520/* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523#ifdef __cplusplus
15524extern "C"
15525#endif
15526char rl_completion_display_matches_hook ();
15527int
15528main ()
15529{
15530return rl_completion_display_matches_hook ();
15531 ;
15532 return 0;
15533}
15534_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915535if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters89d996e2007-09-08 17:39:2815536 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
15537else
Matthias Kloseb9621712010-04-24 17:59:4915538 ac_cv_lib_readline_rl_completion_display_matches_hook=no
Thomas Wouters89d996e2007-09-08 17:39:2815539fi
Matthias Kloseb9621712010-04-24 17:59:4915540rm -f core conftest.err conftest.$ac_objext \
15541 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815542LIBS=$ac_check_lib_save_LIBS
15543fi
Matthias Kloseb9621712010-04-24 17:59:4915544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
15545$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915546if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
Thomas Wouters89d996e2007-09-08 17:39:2815547
Matthias Kloseb9621712010-04-24 17:59:4915548$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
Thomas Wouters89d996e2007-09-08 17:39:2815549
15550fi
15551
15552
Martin Panter5dbbf1a2016-04-03 02:54:5815553# also in 4.0, but not in editline
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15555$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15556if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558else
15559 ac_check_lib_save_LIBS=$LIBS
15560LIBS="-lreadline $READLINE_LIBS $LIBS"
15561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h. */
15563
15564/* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply. */
15567#ifdef __cplusplus
15568extern "C"
15569#endif
15570char rl_resize_terminal ();
15571int
15572main ()
15573{
15574return rl_resize_terminal ();
15575 ;
15576 return 0;
15577}
15578_ACEOF
15579if ac_fn_c_try_link "$LINENO"; then :
15580 ac_cv_lib_readline_rl_resize_terminal=yes
15581else
15582 ac_cv_lib_readline_rl_resize_terminal=no
15583fi
15584rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586LIBS=$ac_check_lib_save_LIBS
15587fi
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15589$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
15590if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
15591
15592$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
15593
15594fi
15595
15596
Martin v. Löwis0daad592001-09-30 21:09:5915597# check for readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15599$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915600if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915601 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:5915602else
Martin v. Löwis11437992002-04-12 09:54:0315603 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915604LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415606/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315607
Thomas Wouters47b49bf2007-08-30 22:15:3315608/* Override any GCC internal prototype to avoid an error.
15609 Use char because int might match the return type of a GCC
15610 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315611#ifdef __cplusplus
15612extern "C"
15613#endif
Martin v. Löwis11437992002-04-12 09:54:0315614char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315615int
15616main ()
15617{
Thomas Wouters47b49bf2007-08-30 22:15:3315618return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315619 ;
15620 return 0;
15621}
15622_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915623if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315624 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:3215625else
Matthias Kloseb9621712010-04-24 17:59:4915626 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:3215627fi
Matthias Kloseb9621712010-04-24 17:59:4915628rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315630LIBS=$ac_check_lib_save_LIBS
15631fi
Matthias Kloseb9621712010-04-24 17:59:4915632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15633$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915634if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615635
Matthias Kloseb9621712010-04-24 17:59:4915636$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
Guido van Rossum353ae582001-07-10 16:45:3215637
Guido van Rossum353ae582001-07-10 16:45:3215638fi
15639
Jack Jansendd19cf82001-12-06 22:36:1715640
Michael W. Hudson30ea2f22004-07-07 17:44:1215641# also in readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215643/* end confdefs.h. */
15644#include <readline/readline.h>
15645_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915646if ac_fn_c_try_cpp "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215647 have_readline=yes
15648else
Michael W. Hudson30ea2f22004-07-07 17:44:1215649 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415650
Michael W. Hudson30ea2f22004-07-07 17:44:1215651fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015652rm -f conftest.err conftest.i conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215653if test $have_readline = yes
15654then
Matthias Kloseb9621712010-04-24 17:59:4915655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215656/* end confdefs.h. */
15657#include <readline/readline.h>
15658
15659_ACEOF
15660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915661 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215662
Matthias Kloseb9621712010-04-24 17:59:4915663$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1215664
15665fi
Matthias Klosec80c93f2010-04-24 17:04:3515666rm -f conftest*
Michael W. Hudson30ea2f22004-07-07 17:44:1215667
15668fi
15669
Benjamin Petersond1e22ba2014-11-26 20:35:1215670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15671$as_echo_n "checking for append_history in -lreadline... " >&6; }
15672if ${ac_cv_lib_readline_append_history+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674else
15675 ac_check_lib_save_LIBS=$LIBS
15676LIBS="-lreadline $READLINE_LIBS $LIBS"
15677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678/* end confdefs.h. */
15679
15680/* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15683#ifdef __cplusplus
15684extern "C"
15685#endif
15686char append_history ();
15687int
15688main ()
15689{
15690return append_history ();
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695if ac_fn_c_try_link "$LINENO"; then :
15696 ac_cv_lib_readline_append_history=yes
15697else
15698 ac_cv_lib_readline_append_history=no
15699fi
15700rm -f core conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
15702LIBS=$ac_check_lib_save_LIBS
15703fi
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15705$as_echo "$ac_cv_lib_readline_append_history" >&6; }
15706if test "x$ac_cv_lib_readline_append_history" = xyes; then :
15707
15708$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
15709
15710fi
15711
15712
Martin v. Löwis82bca632006-02-10 20:49:3015713# End of readline checks: restore LIBS
15714LIBS=$LIBS_no_readline
15715
Matthias Kloseb9621712010-04-24 17:59:4915716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15717$as_echo_n "checking for broken nice()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915718if ${ac_cv_broken_nice+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915719 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:2615720else
Martin v. Löwis11437992002-04-12 09:54:0315721
Matthias Kloseb9621712010-04-24 17:59:4915722if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415723 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115724else
Matthias Kloseb9621712010-04-24 17:59:4915725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415726/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:3115727
Benjamin Petersonb84df2d2019-02-26 05:37:5915728#include <stdlib.h>
15729#include <unistd.h>
Thomas Wouterse38b2f12001-07-11 22:35:3115730int main()
15731{
15732 int val1 = nice(1);
15733 if (val1 != -1 && val1 == nice(2))
15734 exit(0);
15735 exit(1);
15736}
15737
Martin v. Löwis11437992002-04-12 09:54:0315738_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915739if ac_fn_c_try_run "$LINENO"; then :
Thomas Wouterse38b2f12001-07-11 22:35:3115740 ac_cv_broken_nice=yes
15741else
Matthias Kloseb9621712010-04-24 17:59:4915742 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115743fi
Matthias Kloseb9621712010-04-24 17:59:4915744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15745 conftest.$ac_objext conftest.beam conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:3115746fi
15747
Thomas Wouters47b49bf2007-08-30 22:15:3315748fi
15749
Matthias Kloseb9621712010-04-24 17:59:4915750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15751$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:3115752if test "$ac_cv_broken_nice" = yes
15753then
Martin v. Löwis11437992002-04-12 09:54:0315754
Matthias Kloseb9621712010-04-24 17:59:4915755$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
Thomas Wouterse38b2f12001-07-11 22:35:3115756
15757fi
15758
Matthias Kloseb9621712010-04-24 17:59:4915759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15760$as_echo_n "checking for broken poll()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915761if ${ac_cv_broken_poll+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915762 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3715763else
Matthias Kloseb9621712010-04-24 17:59:4915764 if test "$cross_compiling" = yes; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215765 ac_cv_broken_poll=no
15766else
Matthias Kloseb9621712010-04-24 17:59:4915767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215768/* end confdefs.h. */
15769
15770#include <poll.h>
Miss Islington (bot)9feda9f2020-12-13 22:01:5915771#include <unistd.h>
Nicholas Bastine62c5c82004-03-21 23:45:4215772
Alexandre Vassalottib0a61d72009-07-17 23:19:3715773int main()
15774{
Nicholas Bastine62c5c82004-03-21 23:45:4215775 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalottib0a61d72009-07-17 23:19:3715776 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:4215777
15778 close (42);
15779
Alexandre Vassalottib0a61d72009-07-17 23:19:3715780 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:4215781 if (poll_test < 0)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715782 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215783 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715784 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215785 else
Alexandre Vassalottib0a61d72009-07-17 23:19:3715786 return 1;
15787}
Nicholas Bastine62c5c82004-03-21 23:45:4215788
15789_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915790if ac_fn_c_try_run "$LINENO"; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215791 ac_cv_broken_poll=yes
15792else
Matthias Kloseb9621712010-04-24 17:59:4915793 ac_cv_broken_poll=no
Nicholas Bastine62c5c82004-03-21 23:45:4215794fi
Matthias Kloseb9621712010-04-24 17:59:4915795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15796 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215797fi
Thomas Wouters47b49bf2007-08-30 22:15:3315798
Alexandre Vassalottib0a61d72009-07-17 23:19:3715799fi
15800
Matthias Kloseb9621712010-04-24 17:59:4915801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15802$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:4215803if test "$ac_cv_broken_poll" = yes
15804then
15805
Matthias Kloseb9621712010-04-24 17:59:4915806$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
Nicholas Bastine62c5c82004-03-21 23:45:4215807
15808fi
15809
Martin v. Löwis1d459062005-03-14 21:23:3315810# check tzset(3) exists and works like we expect it to
Matthias Kloseb9621712010-04-24 17:59:4915811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15812$as_echo_n "checking for working tzset()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915813if ${ac_cv_working_tzset+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915814 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:3615815else
15816
Matthias Kloseb9621712010-04-24 17:59:4915817if test "$cross_compiling" = yes; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615818 ac_cv_working_tzset=no
15819else
Matthias Kloseb9621712010-04-24 17:59:4915820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415821/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:3615822
15823#include <stdlib.h>
15824#include <time.h>
Brett Cannon18367812003-09-19 00:59:1615825#include <string.h>
Brett Cannon43802422005-02-10 20:48:0315826
15827#if HAVE_TZNAME
15828extern char *tzname[];
15829#endif
15830
Guido van Rossumd11b62e2003-03-14 21:51:3615831int main()
15832{
Brett Cannon18367812003-09-19 00:59:1615833 /* Note that we need to ensure that not only does tzset(3)
15834 do 'something' with localtime, but it works as documented
15835 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:3315836 This includes making sure that tzname is set properly if
15837 tm->tm_zone does not exist since it is the alternative way
15838 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:1615839
15840 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:3315841 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:1615842 */
15843
Martin v. Löwis1d459062005-03-14 21:23:3315844 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:1615845 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
15846
Neal Norwitz7f2588c2003-04-11 15:35:5315847 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:3615848 tzset();
Brett Cannon18367812003-09-19 00:59:1615849 if (localtime(&groundhogday)->tm_hour != 0)
15850 exit(1);
Brett Cannon43802422005-02-10 20:48:0315851#if HAVE_TZNAME
15852 /* For UTC, tzname[1] is sometimes "", sometimes " " */
15853 if (strcmp(tzname[0], "UTC") ||
15854 (tzname[1][0] != 0 && tzname[1][0] != ' '))
15855 exit(1);
15856#endif
Brett Cannon18367812003-09-19 00:59:1615857
Neal Norwitz7f2588c2003-04-11 15:35:5315858 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:3615859 tzset();
Brett Cannon18367812003-09-19 00:59:1615860 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:3615861 exit(1);
Brett Cannon43802422005-02-10 20:48:0315862#if HAVE_TZNAME
15863 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
15864 exit(1);
15865#endif
Brett Cannon18367812003-09-19 00:59:1615866
15867 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15868 tzset();
15869 if (localtime(&groundhogday)->tm_hour != 11)
15870 exit(1);
Brett Cannon43802422005-02-10 20:48:0315871#if HAVE_TZNAME
15872 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
15873 exit(1);
15874#endif
15875
15876#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:1615877 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15878 exit(1);
15879 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15880 exit(1);
Brett Cannon43802422005-02-10 20:48:0315881#endif
Brett Cannon18367812003-09-19 00:59:1615882
Guido van Rossumd11b62e2003-03-14 21:51:3615883 exit(0);
15884}
15885
15886_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915887if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615888 ac_cv_working_tzset=yes
15889else
Matthias Kloseb9621712010-04-24 17:59:4915890 ac_cv_working_tzset=no
Guido van Rossumd11b62e2003-03-14 21:51:3615891fi
Matthias Kloseb9621712010-04-24 17:59:4915892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15893 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:3615894fi
15895
Thomas Wouters47b49bf2007-08-30 22:15:3315896fi
15897
Matthias Kloseb9621712010-04-24 17:59:4915898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15899$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:3615900if test "$ac_cv_working_tzset" = yes
15901then
15902
Matthias Kloseb9621712010-04-24 17:59:4915903$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
Guido van Rossumd11b62e2003-03-14 21:51:3615904
15905fi
15906
Martin v. Löwis94717ed2002-09-09 14:24:1615907# Look for subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15909$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915910if ${ac_cv_stat_tv_nsec+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915911 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:1615912else
Matthias Kloseb9621712010-04-24 17:59:4915913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415914/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:1615915#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:1615916int
15917main ()
15918{
15919
15920struct stat st;
15921st.st_mtim.tv_nsec = 1;
15922
15923 ;
15924 return 0;
15925}
15926_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915927if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa32c9942002-09-09 16:17:4715928 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:1615929else
Matthias Kloseb9621712010-04-24 17:59:4915930 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:1615931fi
Thomas Wouters47b49bf2007-08-30 22:15:3315932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933fi
15934
Matthias Kloseb9621712010-04-24 17:59:4915935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15936$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:1615937if test "$ac_cv_stat_tv_nsec" = yes
15938then
15939
Matthias Kloseb9621712010-04-24 17:59:4915940$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
Martin v. Löwis94717ed2002-09-09 14:24:1615941
15942fi
15943
Martin v. Löwisebd9d5b2005-08-09 15:00:5915944# Look for BSD style subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15946$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915947if ${ac_cv_stat_tv_nsec2+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915948 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:5915949else
Matthias Kloseb9621712010-04-24 17:59:4915950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:5915951/* end confdefs.h. */
15952#include <sys/stat.h>
15953int
15954main ()
15955{
15956
15957struct stat st;
15958st.st_mtimespec.tv_nsec = 1;
15959
15960 ;
15961 return 0;
15962}
15963_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915964if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5915965 ac_cv_stat_tv_nsec2=yes
15966else
Matthias Kloseb9621712010-04-24 17:59:4915967 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:5915968fi
Thomas Wouters47b49bf2007-08-30 22:15:3315969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970fi
15971
Matthias Kloseb9621712010-04-24 17:59:4915972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15973$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:5915974if test "$ac_cv_stat_tv_nsec2" = yes
15975then
15976
Matthias Kloseb9621712010-04-24 17:59:4915977$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
Martin v. Löwisebd9d5b2005-08-09 15:00:5915978
15979fi
15980
doko@ubuntu.com1a4f5612014-04-17 18:13:4415981# first curses header check
doko@ubuntu.com9dc823d2012-07-07 01:06:4215982ac_save_cppflags="$CPPFLAGS"
Xavier de Gayee13c3202016-12-13 15:04:1415983if test "$cross_compiling" = no; then
15984 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15985fi
doko@ubuntu.com1a4f5612014-04-17 18:13:4415986
15987for ac_header in curses.h ncurses.h
15988do :
15989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15992 cat >>confdefs.h <<_ACEOF
15993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15994_ACEOF
15995
15996fi
15997
15998done
15999
16000
16001# On Solaris, term.h requires curses.h
16002for ac_header in term.h
16003do :
16004 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
16005#ifdef HAVE_CURSES_H
16006#include <curses.h>
16007#endif
16008
16009"
16010if test "x$ac_cv_header_term_h" = xyes; then :
16011 cat >>confdefs.h <<_ACEOF
16012#define HAVE_TERM_H 1
16013_ACEOF
16014
16015fi
16016
16017done
16018
16019
Jack Jansen666b1e72001-10-31 12:11:4816020# On HP/UX 11.0, mvwdelch is a block with a return statement
Matthias Kloseb9621712010-04-24 17:59:4916021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
16022$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916023if ${ac_cv_mvwdelch_is_expression+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916024 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4816025else
Matthias Kloseb9621712010-04-24 17:59:4916026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0416027/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:4816028#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:0316029int
16030main ()
16031{
Jack Jansen666b1e72001-10-31 12:11:4816032
16033 int rtn;
16034 rtn = mvwdelch(0,0,0);
16035
Martin v. Löwis11437992002-04-12 09:54:0316036 ;
16037 return 0;
16038}
16039_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916040if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4816041 ac_cv_mvwdelch_is_expression=yes
16042else
Matthias Kloseb9621712010-04-24 17:59:4916043 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:4816044fi
Thomas Wouters47b49bf2007-08-30 22:15:3316045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16046fi
16047
Matthias Kloseb9621712010-04-24 17:59:4916048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
16049$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:4816050
16051if test "$ac_cv_mvwdelch_is_expression" = yes
16052then
Martin v. Löwis11437992002-04-12 09:54:0316053
Matthias Kloseb9621712010-04-24 17:59:4916054$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816055
16056fi
16057
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616058# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
16059# structs since version 5.7. If the macro is defined as zero before including
16060# [n]curses.h, ncurses will expose fields of the structs regardless of the
16061# configuration.
Matthias Kloseb9621712010-04-24 17:59:4916062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16063$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916064if ${ac_cv_window_has_flags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916065 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4816066else
Matthias Kloseb9621712010-04-24 17:59:4916067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0416068/* end confdefs.h. */
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616069
16070 #define NCURSES_OPAQUE 0
16071 #include <curses.h>
16072
Martin v. Löwis11437992002-04-12 09:54:0316073int
16074main ()
16075{
Jack Jansen666b1e72001-10-31 12:11:4816076
16077 WINDOW *w;
16078 w->_flags = 0;
16079
Martin v. Löwis11437992002-04-12 09:54:0316080 ;
16081 return 0;
16082}
16083_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916084if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4816085 ac_cv_window_has_flags=yes
16086else
Matthias Kloseb9621712010-04-24 17:59:4916087 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:4816088fi
Thomas Wouters47b49bf2007-08-30 22:15:3316089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090fi
16091
Matthias Kloseb9621712010-04-24 17:59:4916092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
16093$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2616094
Jack Jansen666b1e72001-10-31 12:11:4816095
16096if test "$ac_cv_window_has_flags" = yes
16097then
Martin v. Löwis11437992002-04-12 09:54:0316098
Matthias Kloseb9621712010-04-24 17:59:4916099$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816100
16101fi
16102
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16104$as_echo_n "checking for is_pad... " >&6; }
16105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h. */
16107#include <curses.h>
16108int
16109main ()
16110{
16111
16112#ifndef is_pad
16113void *x=is_pad
16114#endif
16115
16116 ;
16117 return 0;
16118}
16119_ACEOF
16120if ac_fn_c_try_compile "$LINENO"; then :
16121
16122$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
16123
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125$as_echo "yes" >&6; }
16126else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128$as_echo "no" >&6; }
16129
16130fi
16131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132
Matthias Kloseb9621712010-04-24 17:59:4916133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16134$as_echo_n "checking for is_term_resized... " >&6; }
16135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216136/* end confdefs.h. */
16137#include <curses.h>
16138int
16139main ()
16140{
16141void *x=is_term_resized
16142 ;
16143 return 0;
16144}
16145_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916146if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis24a880b2002-12-31 12:55:1516147
Matthias Kloseb9621712010-04-24 17:59:4916148$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216149
Matthias Kloseb159a552010-04-25 21:00:4416150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916151$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216152else
Matthias Kloseb9621712010-04-24 17:59:4916153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216155
16156fi
Thomas Wouters47b49bf2007-08-30 22:15:3316157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158
Matthias Kloseb9621712010-04-24 17:59:4916159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16160$as_echo_n "checking for resize_term... " >&6; }
16161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216162/* end confdefs.h. */
16163#include <curses.h>
16164int
16165main ()
16166{
16167void *x=resize_term
16168 ;
16169 return 0;
16170}
16171_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916172if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216173
Matthias Kloseb9621712010-04-24 17:59:4916174$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216175
Matthias Kloseb159a552010-04-25 21:00:4416176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916177$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216178else
Matthias Kloseb9621712010-04-24 17:59:4916179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216181
16182fi
Thomas Wouters47b49bf2007-08-30 22:15:3316183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184
Matthias Kloseb9621712010-04-24 17:59:4916185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16186$as_echo_n "checking for resizeterm... " >&6; }
16187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216188/* end confdefs.h. */
16189#include <curses.h>
16190int
16191main ()
16192{
16193void *x=resizeterm
16194 ;
16195 return 0;
16196}
16197_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916198if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216199
Matthias Kloseb9621712010-04-24 17:59:4916200$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216201
Matthias Kloseb159a552010-04-25 21:00:4416202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916203$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216204else
Matthias Kloseb9621712010-04-24 17:59:4916205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216207
16208fi
Thomas Wouters47b49bf2007-08-30 22:15:3316209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Serhiy Storchakabaac01e2017-10-31 11:56:4416210
16211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16212$as_echo_n "checking for immedok... " >&6; }
16213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h. */
16215#include <curses.h>
16216int
16217main ()
16218{
16219
16220#ifndef immedok
16221void *x=immedok
16222#endif
16223
16224 ;
16225 return 0;
16226}
16227_ACEOF
16228if ac_fn_c_try_compile "$LINENO"; then :
16229
16230$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
16231
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16233$as_echo "yes" >&6; }
16234else
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16236$as_echo "no" >&6; }
16237
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16242$as_echo_n "checking for syncok... " >&6; }
16243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h. */
16245#include <curses.h>
16246int
16247main ()
16248{
16249
16250#ifndef syncok
16251void *x=syncok
16252#endif
16253
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258if ac_fn_c_try_compile "$LINENO"; then :
16259
16260$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16263$as_echo "yes" >&6; }
16264else
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266$as_echo "no" >&6; }
16267
16268fi
16269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270
Serhiy Storchaka894ebd02017-11-01 12:34:2016271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16272$as_echo_n "checking for wchgat... " >&6; }
16273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h. */
16275#include <curses.h>
16276int
16277main ()
16278{
16279
16280#ifndef wchgat
16281void *x=wchgat
16282#endif
16283
16284 ;
16285 return 0;
16286}
16287_ACEOF
16288if ac_fn_c_try_compile "$LINENO"; then :
16289
16290$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16293$as_echo "yes" >&6; }
16294else
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296$as_echo "no" >&6; }
16297
16298fi
16299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300
Serhiy Storchakabaac01e2017-10-31 11:56:4416301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16302$as_echo_n "checking for filter... " >&6; }
16303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304/* end confdefs.h. */
16305#include <curses.h>
16306int
16307main ()
16308{
16309
16310#ifndef filter
16311void *x=filter
16312#endif
16313
16314 ;
16315 return 0;
16316}
16317_ACEOF
16318if ac_fn_c_try_compile "$LINENO"; then :
16319
16320$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323$as_echo "yes" >&6; }
16324else
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16326$as_echo "no" >&6; }
16327
16328fi
16329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16332$as_echo_n "checking for has_key... " >&6; }
16333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334/* end confdefs.h. */
16335#include <curses.h>
16336int
16337main ()
16338{
16339
16340#ifndef has_key
16341void *x=has_key
16342#endif
16343
16344 ;
16345 return 0;
16346}
16347_ACEOF
16348if ac_fn_c_try_compile "$LINENO"; then :
16349
16350$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16353$as_echo "yes" >&6; }
16354else
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356$as_echo "no" >&6; }
16357
16358fi
16359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16362$as_echo_n "checking for typeahead... " >&6; }
16363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h. */
16365#include <curses.h>
16366int
16367main ()
16368{
16369
16370#ifndef typeahead
16371void *x=typeahead
16372#endif
16373
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378if ac_fn_c_try_compile "$LINENO"; then :
16379
16380$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16383$as_echo "yes" >&6; }
16384else
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386$as_echo "no" >&6; }
16387
16388fi
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16392$as_echo_n "checking for use_env... " >&6; }
16393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h. */
16395#include <curses.h>
16396int
16397main ()
16398{
16399
16400#ifndef use_env
16401void *x=use_env
16402#endif
16403
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408if ac_fn_c_try_compile "$LINENO"; then :
16409
16410$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
16411
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413$as_echo "yes" >&6; }
16414else
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416$as_echo "no" >&6; }
16417
16418fi
16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
doko@ubuntu.com9dc823d2012-07-07 01:06:4216420# last curses configure check
16421CPPFLAGS=$ac_save_cppflags
Thomas Wouters47b49bf2007-08-30 22:15:3316422
doko@ubuntu.comb457b9b2012-06-30 17:28:1616423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16424$as_echo "$as_me: checking for device files" >&6;}
16425
16426if test "x$cross_compiling" = xyes; then
16427 if test "${ac_cv_file__dev_ptmx+set}" != set; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16429$as_echo_n "checking for /dev/ptmx... " >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16431$as_echo "not set" >&6; }
16432 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16433 fi
16434 if test "${ac_cv_file__dev_ptc+set}" != set; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16436$as_echo_n "checking for /dev/ptc... " >&6; }
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16438$as_echo "not set" >&6; }
16439 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16440 fi
16441fi
16442
Matthias Kloseb9621712010-04-24 17:59:4916443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16444$as_echo_n "checking for /dev/ptmx... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616445if ${ac_cv_file__dev_ptmx+:} false; then :
16446 $as_echo_n "(cached) " >&6
16447else
16448 test "$cross_compiling" = yes &&
16449 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16450if test -r "/dev/ptmx"; then
16451 ac_cv_file__dev_ptmx=yes
16452else
16453 ac_cv_file__dev_ptmx=no
16454fi
16455fi
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16457$as_echo "$ac_cv_file__dev_ptmx" >&6; }
16458if test "x$ac_cv_file__dev_ptmx" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016459
doko@ubuntu.comb457b9b2012-06-30 17:28:1616460fi
16461
16462if test "x$ac_cv_file__dev_ptmx" = xyes; then
Martin v. Löwis24a880b2002-12-31 12:55:1516463
Matthias Kloseb9621712010-04-24 17:59:4916464$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
Martin v. Löwis24a880b2002-12-31 12:55:1516465
Martin v. Löwis24a880b2002-12-31 12:55:1516466fi
Matthias Kloseb9621712010-04-24 17:59:4916467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16468$as_echo_n "checking for /dev/ptc... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616469if ${ac_cv_file__dev_ptc+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471else
16472 test "$cross_compiling" = yes &&
16473 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16474if test -r "/dev/ptc"; then
16475 ac_cv_file__dev_ptc=yes
16476else
16477 ac_cv_file__dev_ptc=no
16478fi
16479fi
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16481$as_echo "$ac_cv_file__dev_ptc" >&6; }
16482if test "x$ac_cv_file__dev_ptc" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016483
doko@ubuntu.comb457b9b2012-06-30 17:28:1616484fi
16485
16486if test "x$ac_cv_file__dev_ptc" = xyes; then
Neal Norwitz865400f2003-03-21 01:42:5816487
Matthias Kloseb9621712010-04-24 17:59:4916488$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
Neal Norwitz865400f2003-03-21 01:42:5816489
Neal Norwitz865400f2003-03-21 01:42:5816490fi
16491
Ronald Oussoren3c1928a2009-11-19 17:15:3116492if test $ac_sys_system = Darwin
16493then
16494 LIBS="$LIBS -framework CoreFoundation"
16495fi
Mark Dickinson6ce4a9a2009-11-16 17:00:1116496
Matthias Kloseb9621712010-04-24 17:59:4916497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16498$as_echo_n "checking for %zd printf() format support... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916499if ${ac_cv_have_size_t_format+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916500 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716501else
Matthias Kloseb9621712010-04-24 17:59:4916502 if test "$cross_compiling" = yes; then :
Benjamin Peterson8f326b22009-12-13 02:10:3616503 ac_cv_have_size_t_format="cross -- assuming yes"
16504
Thomas Wouters477c8d52006-05-27 19:21:4716505else
Matthias Kloseb9621712010-04-24 17:59:4916506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters477c8d52006-05-27 19:21:4716507/* end confdefs.h. */
Alexandre Vassalottib0a61d72009-07-17 23:19:3716508
Thomas Wouters477c8d52006-05-27 19:21:4716509#include <stdio.h>
16510#include <stddef.h>
16511#include <string.h>
16512
Christian Heimes2c181612007-12-17 20:04:1316513#ifdef HAVE_SYS_TYPES_H
16514#include <sys/types.h>
16515#endif
Thomas Wouters89f507f2006-12-13 04:49:3016516
16517#ifdef HAVE_SSIZE_T
16518typedef ssize_t Py_ssize_t;
16519#elif SIZEOF_VOID_P == SIZEOF_LONG
16520typedef long Py_ssize_t;
16521#else
16522typedef int Py_ssize_t;
16523#endif
Thomas Wouters477c8d52006-05-27 19:21:4716524
Christian Heimes2c181612007-12-17 20:04:1316525int main()
16526{
16527 char buffer[256];
16528
Thomas Wouters477c8d52006-05-27 19:21:4716529 if(sprintf(buffer, "%zd", (size_t)123) < 0)
16530 return 1;
16531
Thomas Wouters89f507f2006-12-13 04:49:3016532 if (strcmp(buffer, "123"))
16533 return 1;
16534
16535 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16536 return 1;
16537
16538 if (strcmp(buffer, "-123"))
Thomas Wouters477c8d52006-05-27 19:21:4716539 return 1;
16540
16541 return 0;
16542}
Alexandre Vassalottib0a61d72009-07-17 23:19:3716543
Thomas Wouters477c8d52006-05-27 19:21:4716544_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916545if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3716546 ac_cv_have_size_t_format=yes
Alexandre Vassalotti19142282009-07-17 23:11:5216547else
Matthias Kloseb9621712010-04-24 17:59:4916548 ac_cv_have_size_t_format=no
Alexandre Vassalotti19142282009-07-17 23:11:5216549fi
Matthias Kloseb9621712010-04-24 17:59:4916550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16551 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5316552fi
16553
Alexandre Vassalottib0a61d72009-07-17 23:19:3716554fi
Matthias Kloseb9621712010-04-24 17:59:4916555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16556$as_echo "$ac_cv_have_size_t_format" >&6; }
Benjamin Peterson8f326b22009-12-13 02:10:3616557if test "$ac_cv_have_size_t_format" != no ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3716558
Matthias Kloseb9621712010-04-24 17:59:4916559$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3716560
16561fi
16562
Matthias Kloseb9621712010-04-24 17:59:4916563ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
Martin v. Löwis01c04012002-11-11 14:58:4416564#ifdef HAVE_SYS_TYPES_H
16565#include <sys/types.h>
16566#endif
16567#ifdef HAVE_SYS_SOCKET_H
16568#include <sys/socket.h>
16569#endif
16570
Matthias Kloseb9621712010-04-24 17:59:4916571"
Victor Stinnere0be4232011-10-25 11:06:0916572if test "x$ac_cv_type_socklen_t" = xyes; then :
Martin v. Löwis01c04012002-11-11 14:58:4416573
Martin v. Löwis11437992002-04-12 09:54:0316574else
Guido van Rossum95713eb2000-05-18 20:53:3116575
Matthias Kloseb9621712010-04-24 17:59:4916576$as_echo "#define socklen_t int" >>confdefs.h
Guido van Rossum95713eb2000-05-18 20:53:3116577
16578fi
16579
Michael W. Hudson54241132001-12-07 15:38:2616580
Matthias Kloseb9621712010-04-24 17:59:4916581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16582$as_echo_n "checking for broken mbstowcs... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916583if ${ac_cv_broken_mbstowcs+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916584 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716585else
Matthias Kloseb9621712010-04-24 17:59:4916586 if test "$cross_compiling" = yes; then :
Antoine Pitroufff95302008-09-03 18:58:5116587 ac_cv_broken_mbstowcs=no
16588else
Matthias Kloseb9621712010-04-24 17:59:4916589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116590/* end confdefs.h. */
16591
Stefan Krah19c21392012-11-22 22:47:3216592#include <stdio.h>
Antoine Pitroufff95302008-09-03 18:58:5116593#include<stdlib.h>
16594int main() {
16595 size_t len = -1;
16596 const char *str = "text";
16597 len = mbstowcs(NULL, str, 0);
16598 return (len != 4);
16599}
16600
16601_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916602if ac_fn_c_try_run "$LINENO"; then :
Antoine Pitroufff95302008-09-03 18:58:5116603 ac_cv_broken_mbstowcs=no
16604else
Matthias Kloseb9621712010-04-24 17:59:4916605 ac_cv_broken_mbstowcs=yes
Antoine Pitroufff95302008-09-03 18:58:5116606fi
Matthias Kloseb9621712010-04-24 17:59:4916607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608 conftest.$ac_objext conftest.beam conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116609fi
16610
Alexandre Vassalottib0a61d72009-07-17 23:19:3716611fi
16612
Matthias Kloseb9621712010-04-24 17:59:4916613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16614$as_echo "$ac_cv_broken_mbstowcs" >&6; }
Antoine Pitroufff95302008-09-03 18:58:5116615if test "$ac_cv_broken_mbstowcs" = yes
16616then
16617
Matthias Kloseb9621712010-04-24 17:59:4916618$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
Antoine Pitroufff95302008-09-03 18:58:5116619
16620fi
16621
Antoine Pitroub52ec782009-01-25 16:34:2316622# Check for --with-computed-gotos
Matthias Kloseb9621712010-04-24 17:59:4916623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16624$as_echo_n "checking for --with-computed-gotos... " >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316625
16626# Check whether --with-computed-gotos was given.
Matthias Kloseb9621712010-04-24 17:59:4916627if test "${with_computed_gotos+set}" = set; then :
Antoine Pitroub52ec782009-01-25 16:34:2316628 withval=$with_computed_gotos;
Antoine Pitrou042b1282010-08-13 21:15:5816629if test "$withval" = yes
Antoine Pitroub52ec782009-01-25 16:34:2316630then
16631
Matthias Kloseb9621712010-04-24 17:59:4916632$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
Antoine Pitroub52ec782009-01-25 16:34:2316633
Matthias Kloseb9621712010-04-24 17:59:4916634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16635$as_echo "yes" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316636fi
Antoine Pitrou042b1282010-08-13 21:15:5816637if test "$withval" = no
16638then
16639
16640$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
16641
Matthias Kloseb9621712010-04-24 17:59:4916642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643$as_echo "no" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316644fi
16645
Antoine Pitrou042b1282010-08-13 21:15:5816646else
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16648$as_echo "no value specified" >&6; }
16649fi
16650
Antoine Pitroub52ec782009-01-25 16:34:2316651
Matthias Kloseb17289e2012-03-15 18:51:3416652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16653$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
16654if ${ac_cv_computed_gotos+:} false; then :
16655 $as_echo_n "(cached) " >&6
16656else
16657 if test "$cross_compiling" = yes; then :
16658 if test "${with_computed_gotos+set}" = set; then
16659 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16660 else
16661 ac_cv_computed_gotos=no
16662 fi
16663else
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h. */
16666
16667int main(int argc, char **argv)
16668{
16669 static void *targets[1] = { &&LABEL1 };
16670 goto LABEL2;
16671LABEL1:
16672 return 0;
16673LABEL2:
16674 goto *targets[0];
16675 return 1;
16676}
16677
16678_ACEOF
16679if ac_fn_c_try_run "$LINENO"; then :
16680 ac_cv_computed_gotos=yes
16681else
16682 ac_cv_computed_gotos=no
16683fi
16684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16685 conftest.$ac_objext conftest.beam conftest.$ac_ext
16686fi
16687
16688fi
16689
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16691$as_echo "$ac_cv_computed_gotos" >&6; }
16692case "$ac_cv_computed_gotos" in yes*)
16693
16694$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
16695
16696esac
16697
Benjamin Petersond8d835b2010-10-15 23:14:4616698case $ac_sys_system in
16699AIX*)
16700
16701$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
16702 ;;
16703esac
Antoine Pitroub52ec782009-01-25 16:34:2316704
Michael W. Hudson54241132001-12-07 15:38:2616705
Mark Dickinsonb2153e92010-05-05 22:31:3616706
16707
Martin v. Löwis06f15bb2001-12-02 13:02:3216708for h in `(cd $srcdir;echo Python/thread_*.h)`
16709do
16710 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16711done
16712
Michael W. Hudson54241132001-12-07 15:38:2616713
Victor Stinner21a74a92019-04-11 20:28:1216714SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
Matthias Kloseb9621712010-04-24 17:59:4916715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16716$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:2816717for dir in $SRCDIRS; do
16718 if test ! -d $dir; then
16719 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:5316720 fi
Neil Schemenauerd32c2492001-01-24 17:25:2816721done
Matthias Kloseb9621712010-04-24 17:59:4916722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16723$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:3516724
Stefan Krah1919b7e2012-03-21 17:25:2316725# Availability of -O2:
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16727$as_echo_n "checking for -O2... " >&6; }
16728saved_cflags="$CFLAGS"
16729CFLAGS="-O2"
16730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h. */
16732
16733int
16734main ()
16735{
16736
16737
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742if ac_fn_c_try_compile "$LINENO"; then :
16743 have_O2=yes
16744else
16745 have_O2=no
16746fi
16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16749$as_echo "$have_O2" >&6; }
16750CFLAGS="$saved_cflags"
16751
16752# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16753# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16755$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16756saved_cflags="$CFLAGS"
16757CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16758if test "$have_O2" = no; then
16759 CFLAGS=""
16760fi
16761if test "$cross_compiling" = yes; then :
16762 have_glibc_memmove_bug=undefined
16763else
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h. */
16766
16767#include <stdio.h>
16768#include <stdlib.h>
16769#include <string.h>
16770void foo(void *p, void *q) { memmove(p, q, 19); }
16771int main() {
16772 char a[32] = "123456789000000000";
16773 foo(&a[9], a);
16774 if (strcmp(a, "123456789123456789000000000") != 0)
16775 return 1;
16776 foo(a, &a[9]);
16777 if (strcmp(a, "123456789000000000") != 0)
16778 return 1;
16779 return 0;
16780}
16781
16782_ACEOF
16783if ac_fn_c_try_run "$LINENO"; then :
16784 have_glibc_memmove_bug=no
16785else
16786 have_glibc_memmove_bug=yes
16787fi
16788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16789 conftest.$ac_objext conftest.beam conftest.$ac_ext
16790fi
16791
16792CFLAGS="$saved_cflags"
16793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16794$as_echo "$have_glibc_memmove_bug" >&6; }
16795if test "$have_glibc_memmove_bug" = yes; then
16796
16797$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
16798
16799fi
16800
16801if test "$have_gcc_asm_for_x87" = yes; then
16802 # Some versions of gcc miscompile inline asm:
16803 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16804 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16805 case $CC in
16806 *gcc*)
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16808$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16809 saved_cflags="$CFLAGS"
16810 CFLAGS="-O2"
16811 if test "$cross_compiling" = yes; then :
16812 have_ipa_pure_const_bug=undefined
16813else
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815/* end confdefs.h. */
16816
16817 __attribute__((noinline)) int
16818 foo(int *p) {
16819 int r;
16820 asm ( "movl \$6, (%1)\n\t"
16821 "xorl %0, %0\n\t"
16822 : "=r" (r) : "r" (p) : "memory"
16823 );
16824 return r;
16825 }
16826 int main() {
16827 int p = 8;
16828 if ((foo(&p) ? : p) != 6)
16829 return 1;
16830 return 0;
16831 }
16832
16833_ACEOF
16834if ac_fn_c_try_run "$LINENO"; then :
16835 have_ipa_pure_const_bug=no
16836else
16837 have_ipa_pure_const_bug=yes
16838fi
16839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16840 conftest.$ac_objext conftest.beam conftest.$ac_ext
16841fi
16842
16843 CFLAGS="$saved_cflags"
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16845$as_echo "$have_ipa_pure_const_bug" >&6; }
16846 if test "$have_ipa_pure_const_bug" = yes; then
16847
16848$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
16849
16850 fi
16851 ;;
16852 esac
16853fi
16854
Victor Stinner4f5366e2015-01-09 01:13:1916855# Check for stdatomic.h
16856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16857$as_echo_n "checking for stdatomic.h... " >&6; }
16858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859/* end confdefs.h. */
16860
16861
16862 #include <stdatomic.h>
Miss Skeleton (bot)dbcea392019-10-22 20:19:3216863 atomic_int int_var;
16864 atomic_uintptr_t uintptr_var;
Victor Stinner4f5366e2015-01-09 01:13:1916865 int main() {
Miss Skeleton (bot)dbcea392019-10-22 20:19:3216866 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
16867 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
16868 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
Victor Stinner4f5366e2015-01-09 01:13:1916869 return 0;
16870 }
16871
16872
16873_ACEOF
16874if ac_fn_c_try_link "$LINENO"; then :
16875 have_stdatomic_h=yes
16876else
16877 have_stdatomic_h=no
16878fi
16879rm -f core conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16883$as_echo "$have_stdatomic_h" >&6; }
16884
16885if test "$have_stdatomic_h" = yes; then
16886
16887$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
16888
16889fi
16890
16891# Check for GCC >= 4.7 __atomic builtins
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16893$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h. */
16896
16897
16898 volatile int val = 1;
16899 int main() {
16900 __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16901 return 0;
16902 }
16903
16904
16905_ACEOF
16906if ac_fn_c_try_link "$LINENO"; then :
16907 have_builtin_atomic=yes
16908else
16909 have_builtin_atomic=no
16910fi
16911rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16913
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16915$as_echo "$have_builtin_atomic" >&6; }
16916
16917if test "$have_builtin_atomic" = yes; then
16918
16919$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
16920
16921fi
16922
Ned Deily322f5ba2013-11-22 07:01:5916923# ensurepip option
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16925$as_echo_n "checking for ensurepip... " >&6; }
16926
16927# Check whether --with-ensurepip was given.
16928if test "${with_ensurepip+set}" = set; then :
16929 withval=$with_ensurepip;
16930else
16931 with_ensurepip=upgrade
16932fi
16933
16934case $with_ensurepip in #(
16935 yes|upgrade) :
16936 ENSUREPIP=upgrade ;; #(
16937 install) :
16938 ENSUREPIP=install ;; #(
16939 no) :
16940 ENSUREPIP=no ;; #(
16941 *) :
16942 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16943esac
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16945$as_echo "$ENSUREPIP" >&6; }
16946
16947
Victor Stinner35a97c02015-03-08 01:59:0916948# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16950$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
16951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952/* end confdefs.h. */
16953
16954
16955 #include <dirent.h>
16956
16957 int main() {
16958 struct dirent entry;
16959 return entry.d_type == DT_UNKNOWN;
16960 }
16961
16962
16963_ACEOF
16964if ac_fn_c_try_link "$LINENO"; then :
16965 have_dirent_d_type=yes
16966else
16967 have_dirent_d_type=no
16968fi
16969rm -f core conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16972$as_echo "$have_dirent_d_type" >&6; }
16973
16974if test "$have_dirent_d_type" = yes; then
16975
16976$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16977
16978fi
16979
Victor Stinner9eb57c52015-03-19 21:21:4916980# check if the Linux getrandom() syscall is available
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
16982$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
16983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h. */
16985
16986
Victor Stinner1b80b242016-04-12 20:34:5816987 #include <unistd.h>
Victor Stinner9eb57c52015-03-19 21:21:4916988 #include <sys/syscall.h>
Victor Stinnerdddf4842016-06-07 09:21:4216989 #include <linux/random.h>
Victor Stinner9eb57c52015-03-19 21:21:4916990
16991 int main() {
Victor Stinner9eb57c52015-03-19 21:21:4916992 char buffer[1];
Victor Stinner3abf44e2015-09-18 13:38:3716993 const size_t buflen = sizeof(buffer);
Victor Stinnerdddf4842016-06-07 09:21:4216994 const int flags = GRND_NONBLOCK;
16995 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
Victor Stinner3abf44e2015-09-18 13:38:3716996 (void)syscall(SYS_getrandom, buffer, buflen, flags);
Victor Stinner9eb57c52015-03-19 21:21:4916997 return 0;
16998 }
16999
17000
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003 have_getrandom_syscall=yes
17004else
17005 have_getrandom_syscall=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
17010$as_echo "$have_getrandom_syscall" >&6; }
17011
17012if test "$have_getrandom_syscall" = yes; then
17013
17014$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
17015
17016fi
17017
Victor Stinner3abf44e2015-09-18 13:38:3717018# check if the getrandom() function is available
17019# the test was written for the Solaris function of <sys/random.h>
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
17021$as_echo_n "checking for the getrandom() function... " >&6; }
17022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023/* end confdefs.h. */
17024
17025
17026 #include <sys/random.h>
17027
17028 int main() {
17029 char buffer[1];
17030 const size_t buflen = sizeof(buffer);
17031 const int flags = 0;
17032 /* ignore the result, Python checks for ENOSYS at runtime */
17033 (void)getrandom(buffer, buflen, flags);
17034 return 0;
17035 }
17036
17037
17038_ACEOF
17039if ac_fn_c_try_link "$LINENO"; then :
17040 have_getrandom=yes
17041else
17042 have_getrandom=no
17043fi
17044rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
17047$as_echo "$have_getrandom" >&6; }
17048
17049if test "$have_getrandom" = yes; then
17050
17051$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
17052
17053fi
17054
Neil Schemenauer5741c452019-02-08 18:48:4617055# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
17056# shm_* may only be available if linking against librt
17057save_LIBS="$LIBS"
17058save_includes_default="$ac_includes_default"
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
17060$as_echo_n "checking for library containing shm_open... " >&6; }
17061if ${ac_cv_search_shm_open+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063else
17064 ac_func_search_save_LIBS=$LIBS
17065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066/* end confdefs.h. */
17067
17068/* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17071#ifdef __cplusplus
17072extern "C"
17073#endif
17074char shm_open ();
17075int
17076main ()
17077{
17078return shm_open ();
17079 ;
17080 return 0;
17081}
17082_ACEOF
17083for ac_lib in '' rt; do
17084 if test -z "$ac_lib"; then
17085 ac_res="none required"
17086 else
17087 ac_res=-l$ac_lib
17088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17089 fi
17090 if ac_fn_c_try_link "$LINENO"; then :
17091 ac_cv_search_shm_open=$ac_res
17092fi
17093rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext
17095 if ${ac_cv_search_shm_open+:} false; then :
17096 break
17097fi
17098done
17099if ${ac_cv_search_shm_open+:} false; then :
17100
17101else
17102 ac_cv_search_shm_open=no
17103fi
17104rm conftest.$ac_ext
17105LIBS=$ac_func_search_save_LIBS
17106fi
17107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
17108$as_echo "$ac_cv_search_shm_open" >&6; }
17109ac_res=$ac_cv_search_shm_open
17110if test "$ac_res" != no; then :
17111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17112
17113fi
17114
17115if test "$ac_cv_search_shm_open" = "-lrt"; then
17116
17117$as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h
17118
17119fi
17120for ac_header in sys/mman.h
17121do :
17122 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17123if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17124 cat >>confdefs.h <<_ACEOF
17125#define HAVE_SYS_MMAN_H 1
17126_ACEOF
17127
17128fi
17129
17130done
17131
17132# temporarily override ac_includes_default for AC_CHECK_FUNCS below
17133ac_includes_default="\
17134${ac_includes_default}
17135#ifndef __cplusplus
17136# ifdef HAVE_SYS_MMAN_H
17137# include <sys/mman.h>
17138# endif
17139#endif
17140"
17141for ac_func in shm_open shm_unlink
17142do :
17143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17144ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17145if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17146 cat >>confdefs.h <<_ACEOF
17147#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17148_ACEOF
17149
17150fi
17151done
17152
17153# we don't want to link with librt always, restore LIBS
17154LIBS="$save_LIBS"
17155ac_includes_default="$save_includes_default"
17156
Christian Heimesff5be6e2018-01-20 12:19:2117157# Check for usable OpenSSL
17158
17159 found=false
17160
17161# Check whether --with-openssl was given.
17162if test "${with_openssl+set}" = set; then :
17163 withval=$with_openssl;
17164 case "$withval" in
17165 "" | y | ye | yes | n | no)
17166 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
17167 ;;
17168 *) ssldirs="$withval"
17169 ;;
17170 esac
17171
17172else
17173
17174 # if pkg-config is installed and openssl has installed a .pc file,
17175 # then use that information and don't search ssldirs
17176 if test -n "$ac_tool_prefix"; then
17177 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17180$as_echo_n "checking for $ac_word... " >&6; }
17181if ${ac_cv_prog_PKG_CONFIG+:} false; then :
17182 $as_echo_n "(cached) " >&6
17183else
17184 if test -n "$PKG_CONFIG"; then
17185 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17186else
17187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17188for as_dir in $PATH
17189do
17190 IFS=$as_save_IFS
17191 test -z "$as_dir" && as_dir=.
17192 for ac_exec_ext in '' $ac_executable_extensions; do
17193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17194 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17196 break 2
17197 fi
17198done
17199 done
17200IFS=$as_save_IFS
17201
17202fi
17203fi
17204PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17205if test -n "$PKG_CONFIG"; then
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17207$as_echo "$PKG_CONFIG" >&6; }
17208else
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17210$as_echo "no" >&6; }
17211fi
17212
17213
17214fi
17215if test -z "$ac_cv_prog_PKG_CONFIG"; then
17216 ac_ct_PKG_CONFIG=$PKG_CONFIG
17217 # Extract the first word of "pkg-config", so it can be a program name with args.
17218set dummy pkg-config; ac_word=$2
17219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17220$as_echo_n "checking for $ac_word... " >&6; }
17221if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
17222 $as_echo_n "(cached) " >&6
17223else
17224 if test -n "$ac_ct_PKG_CONFIG"; then
17225 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17226else
17227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17228for as_dir in $PATH
17229do
17230 IFS=$as_save_IFS
17231 test -z "$as_dir" && as_dir=.
17232 for ac_exec_ext in '' $ac_executable_extensions; do
17233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17234 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17236 break 2
17237 fi
17238done
17239 done
17240IFS=$as_save_IFS
17241
17242fi
17243fi
17244ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17245if test -n "$ac_ct_PKG_CONFIG"; then
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17247$as_echo "$ac_ct_PKG_CONFIG" >&6; }
17248else
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17250$as_echo "no" >&6; }
17251fi
17252
17253 if test "x$ac_ct_PKG_CONFIG" = x; then
17254 PKG_CONFIG=""
17255 else
17256 case $cross_compiling:$ac_tool_warned in
17257yes:)
17258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17260ac_tool_warned=yes ;;
17261esac
17262 PKG_CONFIG=$ac_ct_PKG_CONFIG
17263 fi
17264else
17265 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17266fi
17267
17268 if test x"$PKG_CONFIG" != x""; then
17269 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17270 if test $? = 0; then
17271 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17272 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17273 found=true
17274 fi
17275 fi
17276
17277 # no such luck; use some default ssldirs
17278 if ! $found; then
17279 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
17280 fi
17281
17282
17283fi
17284
17285
17286
17287 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
17288 # an 'openssl' subdirectory
17289
17290 if ! $found; then
17291 OPENSSL_INCLUDES=
17292 for ssldir in $ssldirs; do
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17294$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17295 if test -f "$ssldir/include/openssl/ssl.h"; then
17296 OPENSSL_INCLUDES="-I$ssldir/include"
17297 OPENSSL_LDFLAGS="-L$ssldir/lib"
17298 OPENSSL_LIBS="-lssl -lcrypto"
17299 found=true
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17301$as_echo "yes" >&6; }
17302 break
17303 else
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17305$as_echo "no" >&6; }
17306 fi
17307 done
17308
17309 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
17310 # it will just work!
17311 fi
17312
17313 # try the preprocessor and linker with our new flags,
17314 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
17315
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
17317$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
17318 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
17319 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
17320
17321 save_LIBS="$LIBS"
17322 save_LDFLAGS="$LDFLAGS"
17323 save_CPPFLAGS="$CPPFLAGS"
17324 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17325 LIBS="$OPENSSL_LIBS $LIBS"
17326 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329#include <openssl/ssl.h>
17330int
17331main ()
17332{
17333SSL_new(NULL)
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338if ac_fn_c_try_link "$LINENO"; then :
17339
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341$as_echo "yes" >&6; }
17342 have_openssl=yes
17343
17344else
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347$as_echo "no" >&6; }
17348 have_openssl=no
17349
17350fi
17351rm -f core conftest.err conftest.$ac_objext \
17352 conftest$ac_exeext conftest.$ac_ext
17353 CPPFLAGS="$save_CPPFLAGS"
17354 LDFLAGS="$save_LDFLAGS"
17355 LIBS="$save_LIBS"
17356
17357
17358
17359
17360
17361
17362if test "$have_openssl" = yes; then
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5
17364$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; }
17365
17366 save_LIBS="$LIBS"
17367 save_LDFLAGS="$LDFLAGS"
17368 save_CPPFLAGS="$CPPFLAGS"
17369 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17370 LIBS="$OPENSSL_LIBS $LIBS"
17371 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17372
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h. */
17375
17376 #include <openssl/x509_vfy.h>
17377
17378int
17379main ()
17380{
17381
17382 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
17383 X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
17384 X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1");
17385 X509_VERIFY_PARAM_set_hostflags(p, 0);
17386
17387 ;
17388 return 0;
17389}
17390
17391_ACEOF
17392if ac_fn_c_try_link "$LINENO"; then :
17393
17394 ac_cv_has_x509_verify_param_set1_host=yes
17395
17396else
17397
17398 ac_cv_has_x509_verify_param_set1_host=no
17399
17400fi
17401rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5
17404$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; }
17405 if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then
17406
17407$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
17408
17409 fi
17410
17411 CPPFLAGS="$save_CPPFLAGS"
17412 LDFLAGS="$save_LDFLAGS"
17413 LIBS="$save_LIBS"
17414fi
17415
Christian Heimes892d66e2018-01-29 13:10:1817416# ssl module default cipher suite string
17417
17418
17419
17420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
17421$as_echo_n "checking for --with-ssl-default-suites... " >&6; }
17422
17423# Check whether --with-ssl-default-suites was given.
17424if test "${with_ssl_default_suites+set}" = set; then :
17425 withval=$with_ssl_default_suites;
17426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17427$as_echo "$withval" >&6; }
17428case "$withval" in
17429 python)
17430 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17431
17432 ;;
17433 openssl)
17434 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
17435
17436 ;;
17437 *)
17438 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
17439
17440 cat >>confdefs.h <<_ACEOF
17441#define PY_SSL_DEFAULT_CIPHER_STRING "$withval"
17442_ACEOF
17443
17444 ;;
17445esac
17446
17447else
17448
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
17450$as_echo "python" >&6; }
17451$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17452
17453
17454fi
17455
17456
17457
Guido van Rossum627b2d71993-12-24 10:39:1617458# generate output files
Victor Stinner0a8e5722019-05-23 01:30:2317459ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
Martin v. Löwis88afe662002-10-26 13:47:4417460
Antoine Pitrou8e6b4072010-09-10 19:44:4417461ac_config_files="$ac_config_files Modules/ld_so_aix"
17462
Martin v. Löwis11437992002-04-12 09:54:0317463cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5417464# This file is a shell script that caches the results of configure
17465# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:0317466# scripts and configure runs, see configure's option --config-cache.
17467# It is not useful on other systems. If it contains results you don't
17468# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:5417469#
Martin v. Löwis11437992002-04-12 09:54:0317470# config.status only pays attention to the cache file if you give it
17471# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:5417472#
Skip Montanaro6dead952003-09-25 14:50:0417473# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:0317474# loading this file, other *unset* `ac_cv_foo' will be assigned the
17475# following values.
17476
17477_ACEOF
17478
Guido van Rossumf78abae1997-01-21 22:02:3617479# The following way of writing the cache mishandles newlines in values,
17480# but we know of no workaround that is simple, portable, and efficient.
Thomas Wouters47b49bf2007-08-30 22:15:3317481# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:2817482# Ultrix sh set writes to stderr and can't be redirected directly,
17483# and sets the high bit in the cache file unless we assign to the vars.
Thomas Wouters47b49bf2007-08-30 22:15:3317484(
17485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17486 eval ac_val=\$$ac_var
17487 case $ac_val in #(
17488 *${as_nl}*)
17489 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:4917490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317492 esac
17493 case $ac_var in #(
17494 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:4917495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17496 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317497 esac ;;
17498 esac
17499 done
17500
Martin v. Löwis11437992002-04-12 09:54:0317501 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:3317502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17503 *${as_nl}ac_space=\ *)
Matthias Kloseb9621712010-04-24 17:59:4917504 # `set' does not quote correctly, so add quotes: double-quote
17505 # substitution turns \\\\ into \\, and sed turns \\ into \.
Martin v. Löwis11437992002-04-12 09:54:0317506 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:2317507 "s/'/'\\\\''/g;
17508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Thomas Wouters47b49bf2007-08-30 22:15:3317509 ;; #(
Martin v. Löwis11437992002-04-12 09:54:0317510 *)
17511 # `set' quotes correctly as required by POSIX, so do not add quotes.
Thomas Wouters47b49bf2007-08-30 22:15:3317512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:0317513 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317514 esac |
17515 sort
17516) |
Martin v. Löwis11437992002-04-12 09:54:0317517 sed '
Thomas Wouters47b49bf2007-08-30 22:15:3317518 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:0317519 t clear
Thomas Wouters47b49bf2007-08-30 22:15:3317520 :clear
Martin v. Löwis11437992002-04-12 09:54:0317521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17522 t end
Thomas Wouters47b49bf2007-08-30 22:15:3317523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17524 :end' >>confcache
17525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17526 if test -w "$cache_file"; then
Victor Stinnere0be4232011-10-25 11:06:0917527 if test "x$cache_file" != "x/dev/null"; then
Matthias Kloseb9621712010-04-24 17:59:4917528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17529$as_echo "$as_me: updating cache $cache_file" >&6;}
Victor Stinnere0be4232011-10-25 11:06:0917530 if test ! -f "$cache_file" || test -h "$cache_file"; then
17531 cat confcache >"$cache_file"
17532 else
17533 case $cache_file in #(
17534 */* | ?:*)
17535 mv -f confcache "$cache_file"$$ &&
17536 mv -f "$cache_file"$$ "$cache_file" ;; #(
17537 *)
17538 mv -f confcache "$cache_file" ;;
17539 esac
17540 fi
17541 fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817542 else
Matthias Kloseb9621712010-04-24 17:59:4917543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17544$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:2817545 fi
Guido van Rossum76be6ed1995-01-02 18:33:5417546fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817547rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:4017548
Guido van Rossum76be6ed1995-01-02 18:33:5417549test "x$prefix" = xNONE && prefix=$ac_default_prefix
17550# Let make expand exec_prefix.
17551test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:4017552
Guido van Rossum76be6ed1995-01-02 18:33:5417553DEFS=-DHAVE_CONFIG_H
17554
Skip Montanaro6dead952003-09-25 14:50:0417555ac_libobjs=
17556ac_ltlibobjs=
Ross Lagerwallb0ae53d2011-06-10 05:30:3017557U=
Skip Montanaro6dead952003-09-25 14:50:0417558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17559 # 1. Remove the extension, and $U if already installed.
Thomas Wouters47b49bf2007-08-30 22:15:3317560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Matthias Kloseb9621712010-04-24 17:59:4917561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Thomas Wouters47b49bf2007-08-30 22:15:3317562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17563 # will be set to the directory where LIBOBJS objects are built.
Matthias Kloseb9621712010-04-24 17:59:4917564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:0417566done
17567LIBOBJS=$ac_libobjs
17568
17569LTLIBOBJS=$ac_ltlibobjs
17570
17571
Martin v. Löwis11437992002-04-12 09:54:0317572
Matthias Kloseb9621712010-04-24 17:59:4917573
Victor Stinnere0be4232011-10-25 11:06:0917574: "${CONFIG_STATUS=./config.status}"
Matthias Kloseb9621712010-04-24 17:59:4917575ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:0317576ac_clean_files_save=$ac_clean_files
17577ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Matthias Kloseb9621712010-04-24 17:59:4917578{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17579$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17580as_write_fail=0
17581cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317582#! $SHELL
17583# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:1617584# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:5417585# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:0317586# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:1617587
Martin v. Löwis11437992002-04-12 09:54:0317588debug=false
Skip Montanaro6dead952003-09-25 14:50:0417589ac_cs_recheck=false
17590ac_cs_silent=false
Jack Jansendd19cf82001-12-06 22:36:1717591
Matthias Kloseb9621712010-04-24 17:59:4917592SHELL=\${CONFIG_SHELL-$SHELL}
17593export SHELL
17594_ASEOF
17595cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17596## -------------------- ##
17597## M4sh Initialization. ##
17598## -------------------- ##
Jack Jansendd19cf82001-12-06 22:36:1717599
Thomas Wouters47b49bf2007-08-30 22:15:3317600# Be more Bourne compatible
17601DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:4917602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0317603 emulate sh
17604 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:4917605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0417606 # is contrary to our usage. Disable this feature.
17607 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:3317608 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:4117609else
Matthias Kloseb9621712010-04-24 17:59:4917610 case `(set -o) 2>/dev/null` in #(
17611 *posix*) :
17612 set -o posix ;; #(
17613 *) :
17614 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317615esac
Michael W. Hudson54241132001-12-07 15:38:2617616fi
Thomas Wouters89f507f2006-12-13 04:49:3017617
17618
Matthias Kloseb9621712010-04-24 17:59:4917619as_nl='
17620'
17621export as_nl
17622# Printing a long string crashes Solaris 7 /usr/bin/printf.
17623as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17626# Prefer a ksh shell builtin over an external printf program on Solaris,
17627# but without wasting forks for bash or zsh.
17628if test -z "$BASH_VERSION$ZSH_VERSION" \
17629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17630 as_echo='print -r --'
17631 as_echo_n='print -rn --'
17632elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17633 as_echo='printf %s\n'
17634 as_echo_n='printf %s'
17635else
17636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17638 as_echo_n='/usr/ucb/echo -n'
17639 else
17640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17641 as_echo_n_body='eval
17642 arg=$1;
17643 case $arg in #(
17644 *"$as_nl"*)
17645 expr "X$arg" : "X\\(.*\\)$as_nl";
17646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17647 esac;
17648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17649 '
17650 export as_echo_n_body
17651 as_echo_n='sh -c $as_echo_n_body as_echo'
17652 fi
17653 export as_echo_body
17654 as_echo='sh -c $as_echo_body as_echo'
17655fi
Martin v. Löwis11437992002-04-12 09:54:0317656
17657# The user is always right.
17658if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:4917659 PATH_SEPARATOR=:
17660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17662 PATH_SEPARATOR=';'
17663 }
Thomas Wouters47b49bf2007-08-30 22:15:3317664fi
Martin v. Löwis11437992002-04-12 09:54:0317665
Thomas Wouters47b49bf2007-08-30 22:15:3317666
17667# IFS
17668# We need space, tab and new line, in precisely that order. Quoting is
17669# there to prevent editors from complaining about space-tab.
17670# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17671# splitting by setting IFS to empty value.)
Thomas Wouters47b49bf2007-08-30 22:15:3317672IFS=" "" $as_nl"
17673
17674# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 11:06:0917675as_myself=
Matthias Kloseb9621712010-04-24 17:59:4917676case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:3317677 *[\\/]* ) as_myself=$0 ;;
17678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0317679for as_dir in $PATH
17680do
17681 IFS=$as_save_IFS
17682 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4917683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17684 done
Thomas Wouters47b49bf2007-08-30 22:15:3317685IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:0317686
Thomas Wouters47b49bf2007-08-30 22:15:3317687 ;;
17688esac
17689# We did not find ourselves, most probably we were run as `sh COMMAND'
17690# in which case we are not to be found in the path.
17691if test "x$as_myself" = x; then
17692 as_myself=$0
17693fi
17694if test ! -f "$as_myself"; then
Matthias Kloseb9621712010-04-24 17:59:4917695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17696 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:3317697fi
17698
Matthias Kloseb9621712010-04-24 17:59:4917699# Unset variables that we do not need and which cause bugs (e.g. in
17700# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17701# suppresses any "Segmentation fault" message there. '((' could
17702# trigger a bug in pdksh 5.2.14.
17703for as_var in BASH_ENV ENV MAIL MAILPATH
17704do eval test x\${$as_var+set} = xset \
17705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Thomas Wouters47b49bf2007-08-30 22:15:3317706done
17707PS1='$ '
17708PS2='> '
17709PS4='+ '
17710
17711# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:4917712LC_ALL=C
17713export LC_ALL
17714LANGUAGE=C
17715export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:3317716
Matthias Kloseb9621712010-04-24 17:59:4917717# CDPATH.
17718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17719
17720
Ross Lagerwallb0ae53d2011-06-10 05:30:3017721# as_fn_error STATUS ERROR [LINENO LOG_FD]
17722# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:4917723# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17724# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Ross Lagerwallb0ae53d2011-06-10 05:30:3017725# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:4917726as_fn_error ()
17727{
Ross Lagerwallb0ae53d2011-06-10 05:30:3017728 as_status=$1; test $as_status -eq 0 && as_status=1
17729 if test "$4"; then
17730 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Kloseb9621712010-04-24 17:59:4917732 fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3017733 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:4917734 as_fn_exit $as_status
17735} # as_fn_error
17736
17737
17738# as_fn_set_status STATUS
17739# -----------------------
17740# Set $? to STATUS, without forking.
17741as_fn_set_status ()
17742{
17743 return $1
17744} # as_fn_set_status
17745
17746# as_fn_exit STATUS
17747# -----------------
17748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17749as_fn_exit ()
17750{
17751 set +e
17752 as_fn_set_status $1
17753 exit $1
17754} # as_fn_exit
17755
17756# as_fn_unset VAR
17757# ---------------
17758# Portably unset VAR.
17759as_fn_unset ()
17760{
17761 { eval $1=; unset $1;}
17762}
17763as_unset=as_fn_unset
17764# as_fn_append VAR VALUE
17765# ----------------------
17766# Append the text in VALUE to the end of the definition contained in VAR. Take
17767# advantage of any shell optimizations that allow amortized linear growth over
17768# repeated appends, instead of the typical quadratic growth present in naive
17769# implementations.
17770if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17771 eval 'as_fn_append ()
17772 {
17773 eval $1+=\$2
17774 }'
17775else
17776 as_fn_append ()
17777 {
17778 eval $1=\$$1\$2
17779 }
17780fi # as_fn_append
17781
17782# as_fn_arith ARG...
17783# ------------------
17784# Perform arithmetic evaluation on the ARGs, and store the result in the
17785# global $as_val. Take advantage of shells that can avoid forks. The arguments
17786# must be portable across $(()) and expr.
17787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17788 eval 'as_fn_arith ()
17789 {
17790 as_val=$(( $* ))
17791 }'
17792else
17793 as_fn_arith ()
17794 {
17795 as_val=`expr "$@" || test $? -eq 1`
17796 }
17797fi # as_fn_arith
17798
17799
Thomas Wouters47b49bf2007-08-30 22:15:3317800if expr a : '\(a\)' >/dev/null 2>&1 &&
17801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17802 as_expr=expr
17803else
17804 as_expr=false
17805fi
17806
17807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17808 as_basename=basename
17809else
17810 as_basename=false
17811fi
17812
Matthias Kloseb9621712010-04-24 17:59:4917813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17814 as_dirname=dirname
17815else
17816 as_dirname=false
17817fi
Thomas Wouters47b49bf2007-08-30 22:15:3317818
Thomas Wouters47b49bf2007-08-30 22:15:3317819as_me=`$as_basename -- "$0" ||
17820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17821 X"$0" : 'X\(//\)$' \| \
17822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4917823$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:3317824 sed '/^.*\/\([^/][^/]*\)\/*$/{
17825 s//\1/
17826 q
17827 }
17828 /^X\/\(\/\/\)$/{
17829 s//\1/
17830 q
17831 }
17832 /^X\/\(\/\).*/{
17833 s//\1/
17834 q
17835 }
17836 s/.*/./; q'`
17837
Matthias Kloseb9621712010-04-24 17:59:4917838# Avoid depending upon Character Ranges.
17839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17842as_cr_digits='0123456789'
17843as_cr_alnum=$as_cr_Letters$as_cr_digits
Thomas Wouters47b49bf2007-08-30 22:15:3317844
17845ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:4917846case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:3317847-n*)
Matthias Kloseb9621712010-04-24 17:59:4917848 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:3317849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:4917850 xy) ECHO_C='\c';;
17851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17852 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:3317853 esac;;
17854*)
17855 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:0317856esac
Ronald Oussoren74f29b42009-09-20 20:09:2617857
Martin v. Löwis11437992002-04-12 09:54:0317858rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:3317859if test -d conf$$.dir; then
17860 rm -f conf$$.dir/conf$$.file
17861else
17862 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:4917863 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:3317864fi
Matthias Kloseb9621712010-04-24 17:59:4917865if (echo >conf$$.file) 2>/dev/null; then
17866 if ln -s conf$$.file conf$$ 2>/dev/null; then
17867 as_ln_s='ln -s'
17868 # ... but there are two gotchas:
17869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ross Lagerwall1b863eb2012-10-29 17:31:5417871 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:4917872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:5417873 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917874 elif ln conf$$.file conf$$ 2>/dev/null; then
17875 as_ln_s=ln
17876 else
Ross Lagerwall1b863eb2012-10-29 17:31:5417877 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917878 fi
Martin v. Löwis11437992002-04-12 09:54:0317879else
Ross Lagerwall1b863eb2012-10-29 17:31:5417880 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:0317881fi
Thomas Wouters47b49bf2007-08-30 22:15:3317882rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17883rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:0317884
Matthias Kloseb9621712010-04-24 17:59:4917885
17886# as_fn_mkdir_p
17887# -------------
17888# Create "$as_dir" as a directory, including parents if necessary.
17889as_fn_mkdir_p ()
17890{
17891
17892 case $as_dir in #(
17893 -*) as_dir=./$as_dir;;
17894 esac
17895 test -d "$as_dir" || eval $as_mkdir_p || {
17896 as_dirs=
17897 while :; do
17898 case $as_dir in #(
17899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17900 *) as_qdir=$as_dir;;
17901 esac
17902 as_dirs="'$as_qdir' $as_dirs"
17903 as_dir=`$as_dirname -- "$as_dir" ||
17904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17905 X"$as_dir" : 'X\(//\)[^/]' \| \
17906 X"$as_dir" : 'X\(//\)$' \| \
17907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17908$as_echo X"$as_dir" |
17909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17910 s//\1/
17911 q
17912 }
17913 /^X\(\/\/\)[^/].*/{
17914 s//\1/
17915 q
17916 }
17917 /^X\(\/\/\)$/{
17918 s//\1/
17919 q
17920 }
17921 /^X\(\/\).*/{
17922 s//\1/
17923 q
17924 }
17925 s/.*/./; q'`
17926 test -d "$as_dir" && break
17927 done
17928 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 05:30:3017929 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:4917930
17931
17932} # as_fn_mkdir_p
Skip Montanaro6dead952003-09-25 14:50:0417933if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:4917934 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:0417935else
Skip Montanarof0d5f792004-08-15 14:08:2317936 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:0417937 as_mkdir_p=false
17938fi
17939
Ross Lagerwall1b863eb2012-10-29 17:31:5417940
17941# as_fn_executable_p FILE
17942# -----------------------
17943# Test if FILE is an executable regular file.
17944as_fn_executable_p ()
17945{
17946 test -f "$1" && test -x "$1"
17947} # as_fn_executable_p
17948as_test_x='test -x'
17949as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:0317950
17951# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:2317952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0317953
17954# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:2317955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0317956
17957
Martin v. Löwis11437992002-04-12 09:54:0317958exec 6>&1
Matthias Kloseb9621712010-04-24 17:59:4917959## ----------------------------------- ##
17960## Main body of $CONFIG_STATUS script. ##
17961## ----------------------------------- ##
17962_ASEOF
17963test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317964
Matthias Kloseb9621712010-04-24 17:59:4917965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17966# Save the log message, to keep $0 and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:0317967# report actual input values of CONFIG_FILES etc. instead of their
Thomas Wouters47b49bf2007-08-30 22:15:3317968# values after options handling.
17969ac_log="
Ned Deily5489bda2018-01-31 22:44:0917970This file was extended by python $as_me 3.8, which was
Ross Lagerwall1b863eb2012-10-29 17:31:5417971generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:0317972
17973 CONFIG_FILES = $CONFIG_FILES
17974 CONFIG_HEADERS = $CONFIG_HEADERS
17975 CONFIG_LINKS = $CONFIG_LINKS
17976 CONFIG_COMMANDS = $CONFIG_COMMANDS
17977 $ $0 $@
17978
Thomas Wouters47b49bf2007-08-30 22:15:3317979on `(hostname || uname -n) 2>/dev/null | sed 1q`
17980"
17981
Martin v. Löwis11437992002-04-12 09:54:0317982_ACEOF
17983
Matthias Kloseb9621712010-04-24 17:59:4917984case $ac_config_files in *"
17985"*) set x $ac_config_files; shift; ac_config_files=$*;;
17986esac
17987
17988case $ac_config_headers in *"
17989"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17990esac
17991
17992
17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317994# Files that config.status was made for.
Charles-François Natali6613c182011-11-27 11:41:0617995config_files="$ac_config_files"
17996config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:0317997
Thomas Wouters47b49bf2007-08-30 22:15:3317998_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0317999
Matthias Kloseb9621712010-04-24 17:59:4918000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318001ac_cs_usage="\
Matthias Kloseb9621712010-04-24 17:59:4918002\`$as_me' instantiates files and other configuration actions
18003from templates according to the current configuration. Unless the files
18004and actions are specified as TAGs, all are instantiated by default.
Martin v. Löwis11437992002-04-12 09:54:0318005
Matthias Kloseb9621712010-04-24 17:59:4918006Usage: $0 [OPTION]... [TAG]...
Martin v. Löwis11437992002-04-12 09:54:0318007
18008 -h, --help print this help, then exit
Thomas Wouters47b49bf2007-08-30 22:15:3318009 -V, --version print version number and configuration settings, then exit
Matthias Kloseb9621712010-04-24 17:59:4918010 --config print configuration, then exit
18011 -q, --quiet, --silent
18012 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:0318013 -d, --debug don't remove temporary files
18014 --recheck update $as_me by reconfiguring in the same conditions
Matthias Kloseb9621712010-04-24 17:59:4918015 --file=FILE[:TEMPLATE]
18016 instantiate the configuration file FILE
18017 --header=FILE[:TEMPLATE]
18018 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:0318019
18020Configuration files:
18021$config_files
18022
18023Configuration headers:
18024$config_headers
18025
Benjamin Petersonc2fcbf42016-08-04 05:01:3218026Report bugs to <https://bugs.python.org/>."
Skip Montanaroeb33e5a2007-08-17 12:57:4118027
Thomas Wouters47b49bf2007-08-30 22:15:3318028_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Martin v. Löwis11437992002-04-12 09:54:0318031ac_cs_version="\\
Ned Deily5489bda2018-01-31 22:44:0918032python config.status 3.8
Ross Lagerwall1b863eb2012-10-29 17:31:5418033configured by $0, generated by GNU Autoconf 2.69,
Matthias Kloseb9621712010-04-24 17:59:4918034 with options \\"\$ac_cs_config\\"
Martin v. Löwis11437992002-04-12 09:54:0318035
Ross Lagerwall1b863eb2012-10-29 17:31:5418036Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:0318037This config.status script is free software; the Free Software Foundation
18038gives unlimited permission to copy, distribute and modify it."
Thomas Wouters47b49bf2007-08-30 22:15:3318039
18040ac_pwd='$ac_pwd'
18041srcdir='$srcdir'
18042INSTALL='$INSTALL'
Matthias Klose93a0ef12012-03-15 17:08:3418043MKDIR_P='$MKDIR_P'
Matthias Kloseb9621712010-04-24 17:59:4918044test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:0318045_ACEOF
18046
Matthias Kloseb9621712010-04-24 17:59:4918047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:0318049ac_need_defaults=:
18050while test $# != 0
18051do
18052 case $1 in
Ross Lagerwallb0ae53d2011-06-10 05:30:3018053 --*=?*)
Thomas Wouters47b49bf2007-08-30 22:15:3318054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:0418056 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:0318057 ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3018058 --*=)
18059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18060 ac_optarg=
18061 ac_shift=:
18062 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318063 *)
Skip Montanaro6dead952003-09-25 14:50:0418064 ac_option=$1
18065 ac_optarg=$2
18066 ac_shift=shift
18067 ;;
Martin v. Löwis11437992002-04-12 09:54:0318068 esac
18069
Skip Montanaro6dead952003-09-25 14:50:0418070 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:0318071 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:0418072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18073 ac_cs_recheck=: ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Matthias Kloseb9621712010-04-24 17:59:4918075 $as_echo "$ac_cs_version"; exit ;;
18076 --config | --confi | --conf | --con | --co | --c )
18077 $as_echo "$ac_cs_config"; exit ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318078 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:0318079 debug=: ;;
18080 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:0418081 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4918082 case $ac_optarg in
18083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3018084 '') as_fn_error $? "missing file argument" ;;
Matthias Kloseb9621712010-04-24 17:59:4918085 esac
18086 as_fn_append CONFIG_FILES " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0318087 ac_need_defaults=false;;
18088 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:0418089 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4918090 case $ac_optarg in
18091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18092 esac
18093 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0318094 ac_need_defaults=false;;
Thomas Wouters47b49bf2007-08-30 22:15:3318095 --he | --h)
18096 # Conflict between --help and --header
Ross Lagerwallb0ae53d2011-06-10 05:30:3018097 as_fn_error $? "ambiguous option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4918098Try \`$0 --help' for more information.";;
Thomas Wouters47b49bf2007-08-30 22:15:3318099 --help | --hel | -h )
Matthias Kloseb9621712010-04-24 17:59:4918100 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:0418101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18102 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18103 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:0318104
18105 # This is an error.
Ross Lagerwallb0ae53d2011-06-10 05:30:3018106 -*) as_fn_error $? "unrecognized option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4918107Try \`$0 --help' for more information." ;;
Martin v. Löwis11437992002-04-12 09:54:0318108
Matthias Kloseb9621712010-04-24 17:59:4918109 *) as_fn_append ac_config_targets " $1"
Thomas Wouters47b49bf2007-08-30 22:15:3318110 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:0318111
18112 esac
18113 shift
18114done
18115
Skip Montanaro6dead952003-09-25 14:50:0418116ac_configure_extra_args=
18117
18118if $ac_cs_silent; then
18119 exec 6>/dev/null
18120 ac_configure_extra_args="$ac_configure_extra_args --silent"
18121fi
18122
18123_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:0418125if \$ac_cs_recheck; then
Ross Lagerwall1b863eb2012-10-29 17:31:5418126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Matthias Kloseb9621712010-04-24 17:59:4918127 shift
18128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18129 CONFIG_SHELL='$SHELL'
Thomas Wouters47b49bf2007-08-30 22:15:3318130 export CONFIG_SHELL
Matthias Kloseb9621712010-04-24 17:59:4918131 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:0418132fi
18133
Martin v. Löwis11437992002-04-12 09:54:0318134_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318136exec 5>>config.log
18137{
18138 echo
18139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18140## Running $as_me. ##
18141_ASBOX
Matthias Kloseb9621712010-04-24 17:59:4918142 $as_echo "$ac_log"
Thomas Wouters47b49bf2007-08-30 22:15:3318143} >&5
Martin v. Löwis11437992002-04-12 09:54:0318144
Thomas Wouters47b49bf2007-08-30 22:15:3318145_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318147_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0318148
Matthias Kloseb9621712010-04-24 17:59:4918149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318150
18151# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:0318152for ac_config_target in $ac_config_targets
18153do
Thomas Wouters47b49bf2007-08-30 22:15:3318154 case $ac_config_target in
18155 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
18156 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
18157 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
Christian Heimes81ee3ef2008-05-04 22:42:0118158 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
18159 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318160 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
Antoine Pitrou20327222009-05-24 20:39:1118161 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
Victor Stinner0a8e5722019-05-23 01:30:2318162 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
doko@python.org87421192013-01-26 10:39:3118163 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
Antoine Pitrou8e6b4072010-09-10 19:44:4418164 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318165
Victor Stinnere0be4232011-10-25 11:06:0918166 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Martin v. Löwis11437992002-04-12 09:54:0318167 esac
18168done
18169
Thomas Wouters47b49bf2007-08-30 22:15:3318170
Martin v. Löwis11437992002-04-12 09:54:0318171# If the user did not use the arguments to specify the items to instantiate,
18172# then the envvar interface is used. Set only those that are not.
18173# We use the long form for the default assignment because of an extremely
18174# bizarre bug on SunOS 4.1.3.
18175if $ac_need_defaults; then
18176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18178fi
18179
Skip Montanaro6dead952003-09-25 14:50:0418180# Have a temporary directory for convenience. Make it in the build tree
Thomas Wouters47b49bf2007-08-30 22:15:3318181# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:0418182# creating and moving files from /tmp can sometimes cause problems.
Thomas Wouters47b49bf2007-08-30 22:15:3318183# Hook for its removal unless debugging.
18184# Note that there is a small window in which the directory will not be cleaned:
18185# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:0318186$debug ||
18187{
Victor Stinnere0be4232011-10-25 11:06:0918188 tmp= ac_tmp=
Thomas Wouters47b49bf2007-08-30 22:15:3318189 trap 'exit_status=$?
Victor Stinnere0be4232011-10-25 11:06:0918190 : "${ac_tmp:=$tmp}"
18191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:3318192' 0
Matthias Kloseb9621712010-04-24 17:59:4918193 trap 'as_fn_exit 1' 1 2 13 15
Martin v. Löwis11437992002-04-12 09:54:0318194}
Martin v. Löwis11437992002-04-12 09:54:0318195# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:0418196
Martin v. Löwis11437992002-04-12 09:54:0318197{
Thomas Wouters47b49bf2007-08-30 22:15:3318198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Victor Stinnere0be4232011-10-25 11:06:0918199 test -d "$tmp"
Martin v. Löwis11437992002-04-12 09:54:0318200} ||
18201{
Thomas Wouters47b49bf2007-08-30 22:15:3318202 tmp=./conf$$-$RANDOM
18203 (umask 077 && mkdir "$tmp")
Ross Lagerwallb0ae53d2011-06-10 05:30:3018204} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0918205ac_tmp=$tmp
Martin v. Löwis11437992002-04-12 09:54:0318206
Matthias Kloseb9621712010-04-24 17:59:4918207# Set up the scripts for CONFIG_FILES section.
18208# No need to generate them if there are no CONFIG_FILES.
18209# This happens for instance with `./config.status config.h'.
Thomas Wouters47b49bf2007-08-30 22:15:3318210if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:0318211
Matthias Kloseb9621712010-04-24 17:59:4918212
18213ac_cr=`echo X | tr X '\015'`
18214# On cygwin, bash can eat \r inside `` if the user requested igncr.
18215# But we know of no other shell where ac_cr would be empty at this
18216# point, so we can use a bashism as a fallback.
18217if test "x$ac_cr" = x; then
18218 eval ac_cr=\$\'\\r\'
18219fi
18220ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18221if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018222 ac_cs_awk_cr='\\r'
Matthias Kloseb9621712010-04-24 17:59:4918223else
18224 ac_cs_awk_cr=$ac_cr
18225fi
18226
Victor Stinnere0be4232011-10-25 11:06:0918227echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:0318228_ACEOF
18229
Thomas Wouters47b49bf2007-08-30 22:15:3318230
Matthias Kloseb9621712010-04-24 17:59:4918231{
18232 echo "cat >conf$$subs.awk <<_ACEOF" &&
18233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18234 echo "_ACEOF"
18235} >conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18237ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Thomas Wouters47b49bf2007-08-30 22:15:3318238ac_delim='%!_!# '
18239for ac_last_try in false false false false false :; do
Matthias Kloseb9621712010-04-24 17:59:4918240 . ./conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318242
Matthias Kloseb9621712010-04-24 17:59:4918243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18244 if test $ac_delim_n = $ac_delim_num; then
Thomas Wouters47b49bf2007-08-30 22:15:3318245 break
18246 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318248 else
18249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:0318250 fi
Thomas Wouters47b49bf2007-08-30 22:15:3318251done
Matthias Kloseb9621712010-04-24 17:59:4918252rm -f conf$$subs.sh
Thomas Wouters47b49bf2007-08-30 22:15:3318253
Matthias Kloseb9621712010-04-24 17:59:4918254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Victor Stinnere0be4232011-10-25 11:06:0918255cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Thomas Wouters47b49bf2007-08-30 22:15:3318256_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918257sed -n '
18258h
18259s/^/S["/; s/!.*/"]=/
18260p
18261g
18262s/^[^!]*!//
18263:repl
18264t repl
18265s/'"$ac_delim"'$//
18266t delim
18267:nl
18268h
18269s/\(.\{148\}\)..*/\1/
18270t more1
18271s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18272p
18273n
18274b repl
18275:more1
18276s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18277p
18278g
18279s/.\{148\}//
18280t nl
18281:delim
18282h
18283s/\(.\{148\}\)..*/\1/
18284t more2
18285s/["\\]/\\&/g; s/^/"/; s/$/"/
18286p
18287b
18288:more2
18289s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18290p
18291g
18292s/.\{148\}//
18293t delim
18294' <conf$$subs.awk | sed '
18295/^[^""]/{
18296 N
18297 s/\n//
18298}
18299' >>$CONFIG_STATUS || ac_write_fail=1
18300rm -f conf$$subs.awk
18301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302_ACAWK
Victor Stinnere0be4232011-10-25 11:06:0918303cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Matthias Kloseb9621712010-04-24 17:59:4918304 for (key in S) S_is_set[key] = 1
18305 FS = ""
18306
18307}
18308{
18309 line = $ 0
18310 nfields = split(line, field, "@")
18311 substed = 0
18312 len = length(field[1])
18313 for (i = 2; i < nfields; i++) {
18314 key = field[i]
18315 keylen = length(key)
18316 if (S_is_set[key]) {
18317 value = S[key]
18318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18319 len += length(value) + length(field[++i])
18320 substed = 1
18321 } else
18322 len += 1 + keylen
18323 }
18324
18325 print line
18326}
18327
18328_ACAWK
Thomas Wouters47b49bf2007-08-30 22:15:3318329_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18333else
18334 cat
Victor Stinnere0be4232011-10-25 11:06:0918335fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Ronald Oussoren74f29b42009-09-20 20:09:2618337_ACEOF
18338
Ross Lagerwallb0ae53d2011-06-10 05:30:3018339# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18340# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Thomas Wouters47b49bf2007-08-30 22:15:3318341# trailing colons and then remove the whole line if VPATH becomes empty
18342# (actually we leave an empty line to preserve line numbers).
18343if test "x$srcdir" = x.; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18345h
18346s///
18347s/^/:/
18348s/[ ]*$/:/
18349s/:\$(srcdir):/:/g
18350s/:\${srcdir}:/:/g
18351s/:@srcdir@:/:/g
18352s/^:*//
Thomas Wouters47b49bf2007-08-30 22:15:3318353s/:*$//
Ross Lagerwallb0ae53d2011-06-10 05:30:3018354x
18355s/\(=[ ]*\).*/\1/
18356G
18357s/\n//
Thomas Wouters47b49bf2007-08-30 22:15:3318358s/^[^=]*=[ ]*$//
18359}'
18360fi
18361
Matthias Kloseb9621712010-04-24 17:59:4918362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318363fi # test -n "$CONFIG_FILES"
18364
Matthias Kloseb9621712010-04-24 17:59:4918365# Set up the scripts for CONFIG_HEADERS section.
18366# No need to generate them if there are no CONFIG_HEADERS.
18367# This happens for instance with `./config.status Makefile'.
18368if test -n "$CONFIG_HEADERS"; then
Victor Stinnere0be4232011-10-25 11:06:0918369cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Matthias Kloseb9621712010-04-24 17:59:4918370BEGIN {
18371_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3318372
Matthias Kloseb9621712010-04-24 17:59:4918373# Transform confdefs.h into an awk script `defines.awk', embedded as
18374# here-document in config.status, that substitutes the proper values into
18375# config.h.in to produce config.h.
18376
18377# Create a delimiter string that does not exist in confdefs.h, to ease
18378# handling of long lines.
18379ac_delim='%!_!# '
18380for ac_last_try in false false :; do
Victor Stinnere0be4232011-10-25 11:06:0918381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18382 if test -z "$ac_tt"; then
Matthias Kloseb9621712010-04-24 17:59:4918383 break
18384 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918386 else
18387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18388 fi
18389done
18390
18391# For the awk script, D is an array of macro values keyed by name,
18392# likewise P contains macro parameters if any. Preserve backslash
18393# newline sequences.
18394
18395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18396sed -n '
18397s/.\{148\}/&'"$ac_delim"'/g
18398t rset
18399:rset
18400s/^[ ]*#[ ]*define[ ][ ]*/ /
18401t def
18402d
18403:def
18404s/\\$//
18405t bsnl
18406s/["\\]/\\&/g
18407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18408D["\1"]=" \3"/p
18409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18410d
18411:bsnl
18412s/["\\]/\\&/g
18413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18414D["\1"]=" \3\\\\\\n"\\/p
18415t cont
18416s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18417t cont
18418d
18419:cont
18420n
18421s/.\{148\}/&'"$ac_delim"'/g
18422t clear
18423:clear
18424s/\\$//
18425t bsnlc
18426s/["\\]/\\&/g; s/^/"/; s/$/"/p
18427d
18428:bsnlc
18429s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18430b cont
18431' <confdefs.h | sed '
18432s/'"$ac_delim"'/"\\\
18433"/g' >>$CONFIG_STATUS || ac_write_fail=1
18434
18435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436 for (key in D) D_is_set[key] = 1
18437 FS = ""
18438}
18439/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18440 line = \$ 0
18441 split(line, arg, " ")
18442 if (arg[1] == "#") {
18443 defundef = arg[2]
18444 mac1 = arg[3]
18445 } else {
18446 defundef = substr(arg[1], 2)
18447 mac1 = arg[2]
18448 }
18449 split(mac1, mac2, "(") #)
18450 macro = mac2[1]
18451 prefix = substr(line, 1, index(line, defundef) - 1)
18452 if (D_is_set[macro]) {
18453 # Preserve the white space surrounding the "#".
18454 print prefix "define", macro P[macro] D[macro]
18455 next
18456 } else {
18457 # Replace #undef with comments. This is necessary, for example,
18458 # in the case of _POSIX_SOURCE, which is predefined and required
18459 # on some systems where configure will not decide to define it.
18460 if (defundef == "undef") {
18461 print "/*", prefix defundef, macro, "*/"
18462 next
18463 }
18464 }
18465}
18466{ print }
18467_ACAWK
18468_ACEOF
18469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Ross Lagerwallb0ae53d2011-06-10 05:30:3018470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918471fi # test -n "$CONFIG_HEADERS"
18472
18473
18474eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18475shift
18476for ac_tag
Thomas Wouters47b49bf2007-08-30 22:15:3318477do
18478 case $ac_tag in
18479 :[FHLC]) ac_mode=$ac_tag; continue;;
18480 esac
18481 case $ac_mode$ac_tag in
18482 :[FHL]*:*);;
Victor Stinnere0be4232011-10-25 11:06:0918483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318484 :[FH]-) ac_tag=-:-;;
18485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18486 esac
18487 ac_save_IFS=$IFS
18488 IFS=:
18489 set x $ac_tag
18490 IFS=$ac_save_IFS
18491 shift
18492 ac_file=$1
18493 shift
18494
18495 case $ac_mode in
18496 :L) ac_source=$1;;
18497 :[FH])
18498 ac_file_inputs=
18499 for ac_f
18500 do
18501 case $ac_f in
Victor Stinnere0be4232011-10-25 11:06:0918502 -) ac_f="$ac_tmp/stdin";;
Thomas Wouters47b49bf2007-08-30 22:15:3318503 *) # Look for the file first in the build tree, then in the source tree
18504 # (if the path is not absolute). The absolute path cannot be DOS-style,
18505 # because $ac_f cannot contain `:'.
18506 test -f "$ac_f" ||
18507 case $ac_f in
18508 [\\/$]*) false;;
18509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18510 esac ||
Victor Stinnere0be4232011-10-25 11:06:0918511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318512 esac
Matthias Kloseb9621712010-04-24 17:59:4918513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18514 as_fn_append ac_file_inputs " '$ac_f'"
Thomas Wouters47b49bf2007-08-30 22:15:3318515 done
18516
18517 # Let's still pretend it is `configure' which instantiates (i.e., don't
18518 # use $as_me), people would be surprised to read:
18519 # /* config.h. Generated by config.status. */
Matthias Kloseb9621712010-04-24 17:59:4918520 configure_input='Generated from '`
18521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18522 `' by configure.'
Thomas Wouters47b49bf2007-08-30 22:15:3318523 if test x"$ac_file" != x-; then
18524 configure_input="$ac_file. $configure_input"
Matthias Kloseb9621712010-04-24 17:59:4918525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18526$as_echo "$as_me: creating $ac_file" >&6;}
Thomas Wouters47b49bf2007-08-30 22:15:3318527 fi
Matthias Kloseb9621712010-04-24 17:59:4918528 # Neutralize special characters interpreted by sed in replacement strings.
18529 case $configure_input in #(
18530 *\&* | *\|* | *\\* )
18531 ac_sed_conf_input=`$as_echo "$configure_input" |
18532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18533 *) ac_sed_conf_input=$configure_input;;
18534 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318535
18536 case $ac_tag in
Victor Stinnere0be4232011-10-25 11:06:0918537 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318539 esac
18540 ;;
Martin v. Löwis11437992002-04-12 09:54:0318541 esac
18542
Thomas Wouters47b49bf2007-08-30 22:15:3318543 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:0318544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:2318545 X"$ac_file" : 'X\(//\)[^/]' \| \
18546 X"$ac_file" : 'X\(//\)$' \| \
Thomas Wouters47b49bf2007-08-30 22:15:3318547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4918548$as_echo X"$ac_file" |
Thomas Wouters47b49bf2007-08-30 22:15:3318549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18550 s//\1/
18551 q
18552 }
18553 /^X\(\/\/\)[^/].*/{
18554 s//\1/
18555 q
18556 }
18557 /^X\(\/\/\)$/{
18558 s//\1/
18559 q
18560 }
18561 /^X\(\/\).*/{
18562 s//\1/
18563 q
18564 }
18565 s/.*/./; q'`
Matthias Kloseb9621712010-04-24 17:59:4918566 as_dir="$ac_dir"; as_fn_mkdir_p
Martin v. Löwis11437992002-04-12 09:54:0318567 ac_builddir=.
18568
Thomas Wouters47b49bf2007-08-30 22:15:3318569case "$ac_dir" in
18570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18571*)
Matthias Kloseb9621712010-04-24 17:59:4918572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318573 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:4918574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318575 case $ac_top_builddir_sub in
18576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18578 esac ;;
18579esac
18580ac_abs_top_builddir=$ac_pwd
18581ac_abs_builddir=$ac_pwd$ac_dir_suffix
18582# for backward compatibility:
18583ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:0318584
18585case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:3318586 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:0318587 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:3318588 ac_top_srcdir=$ac_top_builddir_sub
18589 ac_abs_top_srcdir=$ac_pwd ;;
18590 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:0318591 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:3318592 ac_top_srcdir=$srcdir
18593 ac_abs_top_srcdir=$srcdir ;;
18594 *) # Relative name.
18595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18596 ac_top_srcdir=$ac_top_build_prefix$srcdir
18597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:0318598esac
Thomas Wouters47b49bf2007-08-30 22:15:3318599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:2318600
Martin v. Löwis11437992002-04-12 09:54:0318601
Thomas Wouters47b49bf2007-08-30 22:15:3318602 case $ac_mode in
18603 :F)
18604 #
18605 # CONFIG_FILE
18606 #
Martin v. Löwis11437992002-04-12 09:54:0318607
18608 case $INSTALL in
18609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:0318611 esac
Matthias Klose93a0ef12012-03-15 17:08:3418612 ac_MKDIR_P=$MKDIR_P
18613 case $MKDIR_P in
18614 [\\/$]* | ?:[\\/]* ) ;;
18615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18616 esac
Thomas Wouters477c8d52006-05-27 19:21:4718617_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3318618
Matthias Kloseb9621712010-04-24 17:59:4918619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318620# If the template does not know about datarootdir, expand it.
18621# FIXME: This hack should be removed a few years after 2.60.
18622ac_datarootdir_hack=; ac_datarootdir_seen=
Matthias Kloseb9621712010-04-24 17:59:4918623ac_sed_dataroot='
18624/datarootdir/ {
Thomas Wouters47b49bf2007-08-30 22:15:3318625 p
18626 q
18627}
18628/@datadir@/p
18629/@docdir@/p
18630/@infodir@/p
18631/@localedir@/p
Matthias Kloseb9621712010-04-24 17:59:4918632/@mandir@/p'
18633case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Thomas Wouters47b49bf2007-08-30 22:15:3318634*datarootdir*) ac_datarootdir_seen=yes;;
18635*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Matthias Kloseb9621712010-04-24 17:59:4918636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18637$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:3318638_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318640 ac_datarootdir_hack='
18641 s&@datadir@&$datadir&g
18642 s&@docdir@&$docdir&g
18643 s&@infodir@&$infodir&g
18644 s&@localedir@&$localedir&g
18645 s&@mandir@&$mandir&g
Matthias Kloseb9621712010-04-24 17:59:4918646 s&\\\${datarootdir}&$datarootdir&g' ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318647esac
18648_ACEOF
18649
18650# Neutralize VPATH when `$srcdir' = `.'.
18651# Shell code in configure.ac might set extrasub.
18652# FIXME: do we really want to maintain this feature?
Matthias Kloseb9621712010-04-24 17:59:4918653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:0318655$extrasub
18656_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318658:t
18659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Matthias Kloseb9621712010-04-24 17:59:4918660s|@configure_input@|$ac_sed_conf_input|;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318661s&@top_builddir@&$ac_top_builddir_sub&;t t
Matthias Kloseb9621712010-04-24 17:59:4918662s&@top_build_prefix@&$ac_top_build_prefix&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318663s&@srcdir@&$ac_srcdir&;t t
18664s&@abs_srcdir@&$ac_abs_srcdir&;t t
18665s&@top_srcdir@&$ac_top_srcdir&;t t
18666s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18667s&@builddir@&$ac_builddir&;t t
18668s&@abs_builddir@&$ac_abs_builddir&;t t
18669s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18670s&@INSTALL@&$ac_INSTALL&;t t
Matthias Klose93a0ef12012-03-15 17:08:3418671s&@MKDIR_P@&$ac_MKDIR_P&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318672$ac_datarootdir_hack
Matthias Kloseb9621712010-04-24 17:59:4918673"
Victor Stinnere0be4232011-10-25 11:06:0918674eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:5418676
Thomas Wouters47b49bf2007-08-30 22:15:3318677test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Victor Stinnere0be4232011-10-25 11:06:0918678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18680 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Matthias Kloseb9621712010-04-24 17:59:4918681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018682which seems to be undefined. Please make sure it is defined" >&5
Matthias Kloseb9621712010-04-24 17:59:4918683$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018684which seems to be undefined. Please make sure it is defined" >&2;}
Thomas Wouters1ba5b3b2006-06-08 14:52:4718685
Victor Stinnere0be4232011-10-25 11:06:0918686 rm -f "$ac_tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:0318687 case $ac_file in
Victor Stinnere0be4232011-10-25 11:06:0918688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Matthias Kloseb9621712010-04-24 17:59:4918690 esac \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318692 ;;
18693 :H)
18694 #
18695 # CONFIG_HEADER
18696 #
Martin v. Löwis11437992002-04-12 09:54:0318697 if test x"$ac_file" != x-; then
Matthias Kloseb9621712010-04-24 17:59:4918698 {
18699 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18701 } >"$ac_tmp/config.h" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0918703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Matthias Kloseb9621712010-04-24 17:59:4918704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18705$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:0318706 else
Matthias Kloseb9621712010-04-24 17:59:4918707 rm -f "$ac_file"
Victor Stinnere0be4232011-10-25 11:06:0918708 mv "$ac_tmp/config.h" "$ac_file" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318710 fi
18711 else
Matthias Kloseb9621712010-04-24 17:59:4918712 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018714 || as_fn_error $? "could not create -" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318715 fi
Thomas Wouters47b49bf2007-08-30 22:15:3318716 ;;
Guido van Rossum7f43da71994-08-01 12:15:3018717
Thomas Wouters47b49bf2007-08-30 22:15:3318718
18719 esac
18720
Antoine Pitrou8e6b4072010-09-10 19:44:4418721
18722 case $ac_file$ac_mode in
18723 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
18724
18725 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318726done # for ac_tag
18727
Guido van Rossum627b2d71993-12-24 10:39:1618728
Matthias Kloseb9621712010-04-24 17:59:4918729as_fn_exit 0
Martin v. Löwis11437992002-04-12 09:54:0318730_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0318731ac_clean_files=$ac_clean_files_save
18732
Matthias Kloseb9621712010-04-24 17:59:4918733test $ac_write_fail = 0 ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918735
Martin v. Löwis11437992002-04-12 09:54:0318736
18737# configure is writing to config.log, and then calls config.status.
18738# config.status does its own redirection, appending to config.log.
18739# Unfortunately, on DOS this fails, as config.log is still kept open
18740# by configure, so config.status won't be able to write to it; its
18741# output is simply discarded. So we exec the FD to /dev/null,
18742# effectively closing config.log, so it can be properly (re)opened and
18743# appended to by config.status. When coming back to configure, we
18744# need to make the FD available again.
18745if test "$no_create" != yes; then
18746 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:0418747 ac_config_status_args=
18748 test "$silent" = yes &&
18749 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:0318750 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:0418751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:0318752 exec 5>>config.log
18753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18754 # would make configure fail if this is the last instruction.
Ross Lagerwallb0ae53d2011-06-10 05:30:3018755 $ac_cs_success || as_fn_exit 1
Matthias Kloseb9621712010-04-24 17:59:4918756fi
18757if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18759$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Martin v. Löwis11437992002-04-12 09:54:0318760fi
Guido van Rossum627b2d71993-12-24 10:39:1618761
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018762
Christian Heimes75ed8902013-11-20 00:11:1818763echo "creating Modules/Setup.local" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018764if test ! -f Modules/Setup.local
18765then
18766 echo "# Edit this file for local setup changes" >Modules/Setup.local
18767fi
18768
Christian Heimes75ed8902013-11-20 00:11:1818769echo "creating Makefile" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018770$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
Antoine Pitroua6a4dc82017-09-07 16:56:2418771 -s Modules \
Antoine Pitrou961d54c2018-07-16 17:03:0318772 Modules/Setup.local $srcdir/Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:4918773mv config.c Modules
Brett Cannon63d98bc2016-09-07 00:12:4018774
18775if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
18776 echo "" >&6
18777 echo "" >&6
Brett Cannonb4e5fee2017-06-09 20:56:5718778 echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:4218779 echo "please run ./configure --enable-optimizations" >&6
Brett Cannon63d98bc2016-09-07 00:12:4018780 echo "" >&6
18781 echo "" >&6
18782fi
18783