blob: e39c16eee2b90301b18e58a8a48dae64ec6b96dd [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.
Benjamin Petersona8c22a02015-05-28 04:29:003# Generated by GNU Autoconf 2.69 for python 3.6.
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'
Benjamin Petersona8c22a02015-05-28 04:29:00583PACKAGE_VERSION='3.6'
584PACKAGE_STRING='python 3.6'
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
Ned Deily322f5ba2013-11-22 07:01:59626ENSUREPIP
Ronald Oussoren74f29b42009-09-20 20:09:26627SRCDIRS
Matthias Kloseb9621712010-04-24 17:59:49628THREADHEADERS
doko@python.org87421192013-01-26 10:39:31629LIBPL
630PY_ENABLE_SHARED
doko@ubuntu.comd5537d02013-03-21 20:21:49631EXT_SUFFIX
Barry Warsaw35f3a2c2010-09-03 18:30:30632SOABI
Matthias Kloseb9621712010-04-24 17:59:49633LIBC
634LIBM
635HAVE_GETHOSTBYNAME
636HAVE_GETHOSTBYNAME_R
637HAVE_GETHOSTBYNAME_R_3_ARG
638HAVE_GETHOSTBYNAME_R_5_ARG
639HAVE_GETHOSTBYNAME_R_6_ARG
640LIBOBJS
641TRUE
642MACHDEP_OBJS
643DYNLOADFILE
644DLINCLDIR
Łukasz Langaa785c872016-09-10 00:37:37645DTRACE_OBJS
646DTRACE_HEADERS
647DFLAGS
648DTRACE
Matthias Kloseb9621712010-04-24 17:59:49649THREADOBJ
650LDLAST
651USE_THREAD_MODULE
Ned Deilyd819b932013-09-06 08:07:05652TCLTK_LIBS
653TCLTK_INCLUDES
Matthias Kloseb9621712010-04-24 17:59:49654LIBFFI_INCLUDEDIR
Victor Stinner8291b5e2015-03-20 15:03:14655PKG_CONFIG_LIBDIR
656PKG_CONFIG_PATH
657PKG_CONFIG
Matthias Kloseb9621712010-04-24 17:59:49658SHLIBS
659CFLAGSFORSHARED
660LINKFORSHARED
661CCSHARED
662BLDSHARED
663LDCXXSHARED
664LDSHARED
doko@ubuntu.comd5537d02013-03-21 20:21:49665SHLIB_SUFFIX
Matthias Kloseb9621712010-04-24 17:59:49666LIBTOOL_CRUFT
667OTHER_LIBTOOL_OPT
668UNIVERSAL_ARCH_FLAGS
Victor Stinnera21bedf2018-12-20 20:31:22669LDFLAGS_NODIST
Benjamin Petersonacb8c522014-08-10 03:01:49670CFLAGS_NODIST
Matthias Kloseb9621712010-04-24 17:59:49671BASECFLAGS
Victor Stinner809101f2017-05-02 08:47:37672CFLAGS_ALIASING
Matthias Kloseb9621712010-04-24 17:59:49673OPT
Brett Cannon7188a3e2015-09-18 22:13:44674LLVM_PROF_FOUND
Gregory P. Smith799520c2016-09-07 23:10:00675LLVM_PROFDATA
Brett Cannon7188a3e2015-09-18 22:13:44676LLVM_PROF_ERR
677LLVM_PROF_FILE
678LLVM_PROF_MERGER
679PGO_PROF_USE_FLAG
680PGO_PROF_GEN_FLAG
stratakisf83ee472018-12-09 08:08:43681LLVM_AR_FOUND
682target_os
683target_vendor
684target_cpu
685target
686LLVM_AR
Brett Cannon63d98bc2016-09-07 00:12:40687DEF_MAKE_RULE
688DEF_MAKE_ALL_RULE
Barry Warsaw8cf4eae2010-10-16 01:04:07689ABIFLAGS
Matthias Kloseb9621712010-04-24 17:59:49690LN
Matthias Klose93a0ef12012-03-15 17:08:34691MKDIR_P
Matthias Kloseb9621712010-04-24 17:59:49692INSTALL_DATA
693INSTALL_SCRIPT
694INSTALL_PROGRAM
doko@ubuntu.com58844492012-06-30 16:25:32695ac_ct_READELF
696READELF
Matthias Kloseb9621712010-04-24 17:59:49697ARFLAGS
doko@ubuntu.com51f65942012-06-30 12:42:46698ac_ct_AR
Matthias Kloseb9621712010-04-24 17:59:49699AR
Ned Deilycc3e7322018-12-11 21:47:14700USE_INLINE
Matthias Kloseb9621712010-04-24 17:59:49701GNULD
702LINKCC
Barry Warsaw8cf4eae2010-10-16 01:04:07703LDVERSION
Matthias Kloseb9621712010-04-24 17:59:49704RUNSHARED
705INSTSONAME
706LDLIBRARYDIR
Martin v. Löwisd1fc34d2010-12-30 14:55:47707PY3LIBRARY
Matthias Kloseb9621712010-04-24 17:59:49708BLDLIBRARY
709DLLLIBRARY
710LDLIBRARY
711LIBRARY
712BUILDEXEEXT
713EGREP
Martin v. Löwis48e14d32011-05-09 05:37:45714NO_AS_NEEDED
doko@ubuntu.com55532312016-06-14 06:55:19715MULTIARCH_CPPFLAGS
doko@ubuntu.comd3899c12015-04-15 18:23:14716PLATFORM_TRIPLET
717MULTIARCH
doko@ubuntu.com51f65942012-06-30 12:42:46718ac_ct_CXX
Matthias Kloseb9621712010-04-24 17:59:49719MAINCC
720CXX
Łukasz Langaa785c872016-09-10 00:37:37721SED
doko@ubuntu.comd3899c12015-04-15 18:23:14722GREP
723CPP
Matthias Kloseb9621712010-04-24 17:59:49724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731EXPORT_MACOSX_DEPLOYMENT_TARGET
732CONFIGURE_MACOSX_DEPLOYMENT_TARGET
733SGI_ABI
doko@ubuntu.com1abe1c52012-06-30 18:42:45734_PYTHON_HOST_PLATFORM
Matthias Kloseb9621712010-04-24 17:59:49735MACHDEP
Ronald Oussoren86b33c82010-04-30 11:41:56736FRAMEWORKINSTALLAPPSPREFIX
Matthias Kloseb9621712010-04-24 17:59:49737FRAMEWORKUNIXTOOLSPREFIX
Ned Deilyb8f944f2013-11-22 06:42:25738FRAMEWORKPYTHONW
Matthias Kloseb9621712010-04-24 17:59:49739FRAMEWORKALTINSTALLLAST
740FRAMEWORKALTINSTALLFIRST
741FRAMEWORKINSTALLLAST
742FRAMEWORKINSTALLFIRST
743PYTHONFRAMEWORKINSTALLDIR
744PYTHONFRAMEWORKPREFIX
745PYTHONFRAMEWORKDIR
746PYTHONFRAMEWORKIDENTIFIER
747PYTHONFRAMEWORK
748LIPO_32BIT_FLAGS
749ARCH_RUN_32BIT
750UNIVERSALSDK
751CONFIG_ARGS
752SOVERSION
753VERSION
doko@ubuntu.com1abe1c52012-06-30 18:42:45754PYTHON_FOR_BUILD
Victor Stinner9d02f562017-05-04 22:46:56755PYTHON_FOR_REGEN
Matthias Kloseca2f6ec2012-03-15 20:30:11756host_os
757host_vendor
758host_cpu
759host
760build_os
761build_vendor
762build_cpu
763build
Ned Deily95c50e52017-03-04 06:05:06764HAS_GIT
765GITBRANCH
766GITTAG
767GITVERSION
Trent Nelson4d4ec652012-10-16 12:51:24768BASECPPFLAGS
Matthias Kloseb9621712010-04-24 17:59:49769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
Skip Montanaro6dead952003-09-25 14:50:04807ac_subst_files=''
Matthias Kloseb9621712010-04-24 17:59:49808ac_user_opts='
809enable_option_checking
810enable_universalsdk
811with_universal_archs
812with_framework_name
813enable_framework
814with_gcc
Zachary Ware5af85642015-12-21 18:09:17815with_icc
Matthias Kloseb9621712010-04-24 17:59:49816with_cxx_main
817with_suffix
818enable_shared
819enable_profiling
820with_pydebug
T. Wouters07a40a12017-05-23 05:25:17821with_assertions
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:42822enable_optimizations
Gregory P. Smithd82da9f2016-04-15 23:57:04823with_lto
Christian Heimes985ecdc2013-11-20 10:46:18824with_hash_algorithm
Charles-François Natalid30b0222014-05-08 22:08:51825with_address_sanitizer
Gregory P. Smith3b5b1c02018-11-13 00:10:21826with_memory_sanitizer
827with_undefined_behavior_sanitizer
Matthias Kloseb9621712010-04-24 17:59:49828with_libs
829with_system_expat
830with_system_ffi
Stefan Krah60187b52012-03-23 18:06:27831with_system_libmpdec
Benjamin Peterson076ed002010-10-31 17:11:02832enable_loadable_sqlite_extensions
Ned Deilyd819b932013-09-06 08:07:05833with_tcltk_includes
834with_tcltk_libs
Matthias Kloseb9621712010-04-24 17:59:49835with_dbmliborder
Matthias Kloseb9621712010-04-24 17:59:49836with_threads
837with_thread
838enable_ipv6
839with_doc_strings
Matthias Kloseb9621712010-04-24 17:59:49840with_pymalloc
841with_valgrind
Łukasz Langaa785c872016-09-10 00:37:37842with_dtrace
Matthias Kloseb9621712010-04-24 17:59:49843with_fpectl
844with_libm
845with_libc
846enable_big_digits
Matthias Kloseb9621712010-04-24 17:59:49847with_computed_gotos
Ned Deily322f5ba2013-11-22 07:01:59848with_ensurepip
Matthias Kloseb9621712010-04-24 17:59:49849'
Thomas Wouters47b49bf2007-08-30 22:15:33850 ac_precious_vars='build_alias
851host_alias
852target_alias
doko@python.orgeab42bf2013-01-26 17:57:19853MACHDEP
Thomas Wouters47b49bf2007-08-30 22:15:33854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
Victor Stinner8291b5e2015-03-20 15:03:14859CPP
860PKG_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'
Guido van Rossum48bdbfc1996-05-28 22:53:48901includedir='${prefix}/include'
902oldincludedir='/usr/include'
Thomas Wouters47b49bf2007-08-30 22:15:33903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904infodir='${datarootdir}/info'
905htmldir='${docdir}'
906dvidir='${docdir}'
907pdfdir='${docdir}'
908psdir='${docdir}'
909libdir='${exec_prefix}/lib'
910localedir='${datarootdir}/locale'
911mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54912
Guido van Rossum7f43da71994-08-01 12:15:30913ac_prev=
Thomas Wouters47b49bf2007-08-30 22:15:33914ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30915for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16916do
Guido van Rossum7f43da71994-08-01 12:15:30917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
Thomas Wouters47b49bf2007-08-30 22:15:33919 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30920 ac_prev=
921 continue
Guido van Rossum627b2d71993-12-24 10:39:16922 fi
Guido van Rossum7f43da71994-08-01 12:15:30923
Thomas Wouters47b49bf2007-08-30 22:15:33924 case $ac_option in
Ross Lagerwallb0ae53d2011-06-10 05:30:30925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
Thomas Wouters47b49bf2007-08-30 22:15:33928 esac
Guido van Rossum7f43da71994-08-01 12:15:30929
Guido van Rossum76be6ed1995-01-02 18:33:54930 # Accept the important Cygnus configure options, so we can diagnose typos.
931
Thomas Wouters47b49bf2007-08-30 22:15:33932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30935
Guido van Rossum48bdbfc1996-05-28 22:53:48936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03939 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48940
941 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03942 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03944 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30945
Guido van Rossum76be6ed1995-01-02 18:33:54946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54955
Thomas Wouters47b49bf2007-08-30 22:15:33956 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48957 ac_prev=datadir ;;
Thomas Wouters47b49bf2007-08-30 22:15:33958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03959 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48960
Thomas Wouters47b49bf2007-08-30 22:15:33961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
Guido van Rossum7f43da71994-08-01 12:15:30968 -disable-* | --disable-*)
Matthias Kloseb9621712010-04-24 17:59:49969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54970 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30972 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
Thomas Wouters47b49bf2007-08-30 22:15:33983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30993
994 -enable-* | --enable-*)
Matthias Kloseb9621712010-04-24 17:59:49995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54996 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30998 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003"enable_$ac_useropt"
1004"*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301009
Guido van Rossum7f43da71994-08-01 12:15:301010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:031017 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301018
1019 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:541020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301022
Martin v. Löwis11437992002-04-12 09:54:031023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:301029
1030 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:031031 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301032 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:031033 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301034
Thomas Wouters47b49bf2007-08-30 22:15:331035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
Guido van Rossum48bdbfc1996-05-28 22:53:481041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:031046 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:031051 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:031056 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:031063 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481064
Thomas Wouters47b49bf2007-08-30 22:15:331065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
Guido van Rossum48bdbfc1996-05-28 22:53:481070 -localstatedir | --localstatedir | --localstatedi | --localstated \
Thomas Wouters47b49bf2007-08-30 22:15:331071 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:481072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Thomas Wouters47b49bf2007-08-30 22:15:331074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:031075 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:031080 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481081
Guido van Rossum7f43da71994-08-01 12:15:301082 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:541083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:031087 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:301088 no_create=yes ;;
1089
Guido van Rossum76be6ed1995-01-02 18:33:541090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301093
Guido van Rossum48bdbfc1996-05-28 22:53:481094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:031101 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481102
Guido van Rossum7f43da71994-08-01 12:15:301103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:031106 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:031113 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:031120 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:031137 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301138
Thomas Wouters47b49bf2007-08-30 22:15:331139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
Guido van Rossum7f43da71994-08-01 12:15:301149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
Guido van Rossum48bdbfc1996-05-28 22:53:481153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:031157 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:031168 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481169
Guido van Rossum76be6ed1995-01-02 18:33:541170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:031173 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:541174
Guido van Rossum7f43da71994-08-01 12:15:301175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:031178 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301179
Guido van Rossum48bdbfc1996-05-28 22:53:481180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:031185 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481186
Guido van Rossum7f43da71994-08-01 12:15:301187 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:031188 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:031190 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
Martin v. Löwis11437992002-04-12 09:54:031195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:301197
1198 -with-* | --with-*)
Matthias Kloseb9621712010-04-24 17:59:491199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541200 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301202 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207"with_$ac_useropt"
1208"*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301213
1214 -without-* | --without-*)
Matthias Kloseb9621712010-04-24 17:59:491215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541216 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301218 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301229
Guido van Rossum76be6ed1995-01-02 18:33:541230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:031239 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:031246 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301247
Ross Lagerwallb0ae53d2011-06-10 05:30:301248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249Try \`$0 --help' for more information"
Guido van Rossum7f43da71994-08-01 12:15:301250 ;;
1251
Martin v. Löwis11437992002-04-12 09:54:031252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
Ross Lagerwallb0ae53d2011-06-10 05:30:301257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Matthias Kloseb9621712010-04-24 17:59:491258 esac
Thomas Wouters47b49bf2007-08-30 22:15:331259 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:031260 export $ac_envvar ;;
1261
Guido van Rossum48bdbfc1996-05-28 22:53:481262 *)
Martin v. Löwis11437992002-04-12 09:54:031263 # FIXME: should be removed in autoconf 3.0.
Matthias Kloseb9621712010-04-24 17:59:491264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:031265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Matthias Kloseb9621712010-04-24 17:59:491266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Victor Stinnere0be4232011-10-25 11:06:091267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Guido van Rossum7f43da71994-08-01 12:15:301268 ;;
1269
1270 esac
Guido van Rossum627b2d71993-12-24 10:39:161271done
1272
Guido van Rossum7f43da71994-08-01 12:15:301273if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:031274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ross Lagerwallb0ae53d2011-06-10 05:30:301275 as_fn_error $? "missing argument to $ac_option"
Guido van Rossum7f43da71994-08-01 12:15:301276fi
1277
Matthias Kloseb9621712010-04-24 17:59:491278if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:301281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Matthias Kloseb9621712010-04-24 17:59:491282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284fi
1285
1286# Check all directory arguments for consistency.
Thomas Wouters47b49bf2007-08-30 22:15:331287for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Ned Deilycc3e7322018-12-11 21:47:141290 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:541291do
Thomas Wouters47b49bf2007-08-30 22:15:331292 eval ac_val=\$$ac_var
Matthias Kloseb9621712010-04-24 17:59:491293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:031300 case $ac_val in
Thomas Wouters47b49bf2007-08-30 22:15:331301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:301303 esac
Ross Lagerwallb0ae53d2011-06-10 05:30:301304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Martin v. Löwis11437992002-04-12 09:54:031305done
Guido van Rossum627b2d71993-12-24 10:39:161306
Martin v. Löwis11437992002-04-12 09:54:031307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:161313
Martin v. Löwis11437992002-04-12 09:54:031314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
Martin v. Löwis11437992002-04-12 09:54:031318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321fi
1322
1323ac_tool_prefix=
1324test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326test "$silent" = yes && exec 6>/dev/null
1327
Guido van Rossum627b2d71993-12-24 10:39:161328
Thomas Wouters47b49bf2007-08-30 22:15:331329ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330ac_ls_di=`ls -di .` &&
1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301332 as_fn_error $? "working directory cannot be determined"
Thomas Wouters47b49bf2007-08-30 22:15:331333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301334 as_fn_error $? "pwd does not report name of working directory"
Thomas Wouters47b49bf2007-08-30 22:15:331335
1336
Guido van Rossum627b2d71993-12-24 10:39:161337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:301339 ac_srcdir_defaulted=yes
Thomas Wouters47b49bf2007-08-30 22:15:331340 # Try the directory containing this script, then the parent directory.
Matthias Kloseb9621712010-04-24 17:59:491341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346$as_echo X"$as_myself" |
Thomas Wouters47b49bf2007-08-30 22:15:331347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:301364 srcdir=$ac_confdir
Thomas Wouters47b49bf2007-08-30 22:15:331365 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:161366 srcdir=..
1367 fi
Guido van Rossum76be6ed1995-01-02 18:33:541368else
1369 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:161370fi
Thomas Wouters47b49bf2007-08-30 22:15:331371if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ross Lagerwallb0ae53d2011-06-10 05:30:301373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Thomas Wouters477c8d52006-05-27 19:21:471374fi
Thomas Wouters47b49bf2007-08-30 22:15:331375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376ac_abs_confdir=`(
Ross Lagerwallb0ae53d2011-06-10 05:30:301377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Thomas Wouters47b49bf2007-08-30 22:15:331378 pwd)`
1379# When building in place, set srcdir=.
1380if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382fi
1383# Remove unnecessary trailing slashes from srcdir.
1384# Double slashes in file names in object file debugging info
1385# mess up M-x gdb in Emacs.
1386case $srcdir in
1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388esac
1389for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394done
Guido van Rossum76be6ed1995-01-02 18:33:541395
Martin v. Löwis11437992002-04-12 09:54:031396#
1397# Report the --help message.
1398#
1399if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
Benjamin Petersona8c22a02015-05-28 04:29:001403\`configure' configures python 3.6 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:031404
1405Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410Defaults for the options are specified in brackets.
1411
1412Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
Ross Lagerwallb0ae53d2011-06-10 05:30:301417 -q, --quiet, --silent do not print \`checking ...' messages
Martin v. Löwis11437992002-04-12 09:54:031418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
Martin v. Löwis11437992002-04-12 09:54:031423Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
Matthias Kloseb9621712010-04-24 17:59:491425 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:031426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Matthias Kloseb9621712010-04-24 17:59:491427 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:031428
1429By default, \`make install' will install all the files in
1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432for instance \`--prefix=\$HOME'.
1433
1434For better control, use the options below.
1435
1436Fine tuning of the installation directories:
Matthias Kloseb9621712010-04-24 17:59:491437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:031456_ACEOF
1457
1458 cat <<\_ACEOF
Matthias Kloseca2f6ec2012-03-15 20:30:111459
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Gregory P. Smith799520c2016-09-07 23:10:001463 --target=TARGET configure for building compilers for TARGET [HOST]
Martin v. Löwis11437992002-04-12 09:54:031464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:441468 case $ac_init_help in
Benjamin Petersona8c22a02015-05-28 04:29:001469 short | recursive ) echo "Configuration of python 3.6:";;
Martin v. Löwis88afe662002-10-26 13:47:441470 esac
Martin v. Löwis11437992002-04-12 09:54:031471 cat <<\_ACEOF
1472
1473Optional Features:
Matthias Kloseb9621712010-04-24 17:59:491474 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:031475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Christian Heimes68f5fbe2008-02-14 08:27:371477 --enable-universalsdk[=SDKDIR]
Ned Deilycbfb9a52012-06-23 23:02:191478 Build fat binary against Mac OS X SDK
Martin v. Löwis3e2c6322002-10-29 10:07:431479 --enable-framework[=INSTALLDIR]
1480 Build (MacOSX|Darwin) framework
1481 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:221482 --enable-profiling enable C-level code profiling
Brett Cannond24429a2017-06-09 21:34:321483 --enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1484 Disabled by default.
Benjamin Peterson076ed002010-10-31 17:11:021485 --enable-loadable-sqlite-extensions
1486 support loadable extensions in _sqlite module
Martin v. Löwis3e2c6322002-10-29 10:07:431487 --enable-ipv6 Enable ipv6 (with ipv4) support
1488 --disable-ipv6 Disable ipv6 support
Mark Dickinsonbd792642009-03-18 20:06:121489 --enable-big-digits[=BITS]
Matthias Kloseb9621712010-04-24 17:59:491490 use big digits for Python longs [[BITS=30]]
Martin v. Löwis11437992002-04-12 09:54:031491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benjamin Peterson14ae9592008-07-16 02:20:151495 --with-universal-archs=ARCH
1496 select architectures for universal build ("32-bit",
Ned Deily94552442018-03-13 06:51:541497 "64-bit", "3-way", "intel", "intel-32", "intel-64",
1498 or "all")
Christian Heimes81ee3ef2008-05-04 22:42:011499 --with-framework-name=FRAMEWORK
1500 specify an alternate name of the framework built
1501 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:431502 --without-gcc never use gcc
Zachary Ware5af85642015-12-21 18:09:171503 --with-icc build with icc
Thomas Wouters49fd7fa2006-04-21 10:40:581504 --with-cxx-main=<compiler>
1505 compile main() and link python executable with C++
1506 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:431507 --with-suffix=.exe set executable suffix
1508 --with-pydebug build with Py_DEBUG defined
T. Wouters07a40a12017-05-23 05:25:171509 --with-assertions build with C assertions enabled
stratakisf6b94592018-11-07 22:05:131510 --with-lto Enable Link Time Optimization in any build. Disabled
1511 by default.
Christian Heimes985ecdc2013-11-20 10:46:181512 --with-hash-algorithm=[fnv|siphash24]
1513 select hash algorithm
Charles-François Natalid30b0222014-05-08 22:08:511514 --with-address-sanitizer
Gregory P. Smith3b5b1c02018-11-13 00:10:211515 enable AddressSanitizer (asan)
1516 --with-memory-sanitizer enable MemorySanitizer (msan)
1517 --with-undefined-behavior-sanitizer
1518 enable UndefinedBehaviorSanitizer (ubsan)
Martin v. Löwis3e2c6322002-10-29 10:07:431519 --with-libs='lib1 ...' link against additional libs
Benjamin Petersonb2d90462009-12-31 03:23:101520 --with-system-expat build pyexpat module using an installed expat
1521 library
Thomas Wouters49fd7fa2006-04-21 10:40:581522 --with-system-ffi build _ctypes module using an installed ffi library
Stefan Krah60187b52012-03-23 18:06:271523 --with-system-libmpdec build _decimal module using an installed libmpdec
1524 library
Ned Deilyd819b932013-09-06 08:07:051525 --with-tcltk-includes='-I...'
1526 override search for Tcl and Tk include files
1527 --with-tcltk-libs='-L...'
1528 override search for Tcl and Tk libs
Matthias Klose55708cc2009-04-30 08:06:491529 --with-dbmliborder=db1:db2:...
1530 order to check db backends for dbm. Valid value is a
1531 colon separated string with the backend names
1532 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:431533 --with(out)-threads[=DIRECTORY]
1534 disable/enable thread support
1535 --with(out)-thread[=DIRECTORY]
1536 deprecated; use --with(out)-threads
Martin v. Löwis3e2c6322002-10-29 10:07:431537 --with(out)-doc-strings disable/enable documentation strings
1538 --with(out)-pymalloc disable/enable specialized mallocs
Benjamin Peterson05159c42009-12-03 03:01:271539 --with-valgrind Enable Valgrind support
Łukasz Langaa785c872016-09-10 00:37:371540 --with(out)-dtrace disable/enable DTrace support
Martin v. Löwis3e2c6322002-10-29 10:07:431541 --with-fpectl enable SIGFPE catching
1542 --with-libm=STRING math library
1543 --with-libc=STRING C library
Antoine Pitrou042b1282010-08-13 21:15:581544 --with(out)-computed-gotos
1545 Use computed gotos in evaluation loop (enabled by
1546 default on supported compilers)
Ned Deily322f5ba2013-11-22 07:01:591547 --with(out)-ensurepip=[=upgrade]
1548 "install" or "upgrade" using bundled pip
Martin v. Löwis11437992002-04-12 09:54:031549
1550Some influential environment variables:
doko@python.orgeab42bf2013-01-26 17:57:191551 MACHDEP name for machine-dependent library files
Martin v. Löwis11437992002-04-12 09:54:031552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
Thomas Wouters47b49bf2007-08-30 22:15:331556 LIBS libraries to pass to the linker, e.g. -l<library>
Matthias Kloseb9621712010-04-24 17:59:491557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Thomas Wouters47b49bf2007-08-30 22:15:331558 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:031559 CPP C preprocessor
Victor Stinner8291b5e2015-03-20 15:03:141560 PKG_CONFIG path to pkg-config utility
1561 PKG_CONFIG_PATH
1562 directories to add to pkg-config's search path
1563 PKG_CONFIG_LIBDIR
1564 path overriding pkg-config's built-in search path
Martin v. Löwis11437992002-04-12 09:54:031565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
Benjamin Petersonc2fcbf42016-08-04 05:01:321569Report bugs to <https://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:031570_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331571ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:031572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:031576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Matthias Kloseb9621712010-04-24 17:59:491577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
Martin v. Löwis11437992002-04-12 09:54:031580 ac_builddir=.
1581
Thomas Wouters47b49bf2007-08-30 22:15:331582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
Matthias Kloseb9621712010-04-24 17:59:491585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:331586 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:491587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:331588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:031597
1598case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:331599 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:031600 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:331601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:031604 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:331605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:031611esac
Thomas Wouters47b49bf2007-08-30 22:15:331612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:231613
Thomas Wouters47b49bf2007-08-30 22:15:331614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:031622 else
Matthias Kloseb9621712010-04-24 17:59:491623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Thomas Wouters47b49bf2007-08-30 22:15:331624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:031626 done
1627fi
1628
Thomas Wouters47b49bf2007-08-30 22:15:331629test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:031630if $ac_init_version; then
1631 cat <<\_ACEOF
Benjamin Petersona8c22a02015-05-28 04:29:001632python configure 3.6
Ross Lagerwall1b863eb2012-10-29 17:31:541633generated by GNU Autoconf 2.69
Martin v. Löwis11437992002-04-12 09:54:031634
Ross Lagerwall1b863eb2012-10-29 17:31:541635Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:031636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331639 exit
Martin v. Löwis11437992002-04-12 09:54:031640fi
Matthias Kloseb9621712010-04-24 17:59:491641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
Victor Stinnere0be4232011-10-25 11:06:091679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491680 as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
doko@ubuntu.comd3899c12015-04-15 18:23:141684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710else
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_cpp
1720
Matthias Kloseb9621712010-04-24 17:59:491721# ac_fn_c_try_link LINENO
1722# -----------------------
1723# Try to link conftest.$ac_ext, and return whether this succeeded.
1724ac_fn_c_try_link ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
Ross Lagerwall1b863eb2012-10-29 17:31:541748 test -x conftest$ac_exeext
Matthias Kloseb9621712010-04-24 17:59:491749 }; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491763 as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_link
1766
Matthias Kloseb9621712010-04-24 17:59:491767# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1770# the include files in INCLUDES and setting the cache variable VAR
1771# accordingly.
1772ac_fn_c_check_header_mongrel ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Victor Stinnere0be4232011-10-25 11:06:091775 if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091778if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491779 $as_echo_n "(cached) " >&6
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784else
1785 # Is the header compilable?
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1787$as_echo_n "checking $2 usability... " >&6; }
1788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790$4
1791#include <$2>
1792_ACEOF
1793if ac_fn_c_try_compile "$LINENO"; then :
1794 ac_header_compiler=yes
1795else
1796 ac_header_compiler=no
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1800$as_echo "$ac_header_compiler" >&6; }
1801
1802# Is the header present?
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1804$as_echo_n "checking $2 presence... " >&6; }
1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_cpp "$LINENO"; then :
1810 ac_header_preproc=yes
1811else
1812 ac_header_preproc=no
1813fi
Ross Lagerwallb0ae53d2011-06-10 05:30:301814rm -f conftest.err conftest.i conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:491815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1816$as_echo "$ac_header_preproc" >&6; }
1817
1818# So? What about this header?
1819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820 yes:no: )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1822$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ;;
1826 no:yes:* )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1828$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1830$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1832$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1834$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Benjamin Petersonc2fcbf42016-08-04 05:01:321837( $as_echo "## --------------------------------------- ##
1838## Report this to https://bugs.python.org/ ##
1839## --------------------------------------- ##"
Matthias Kloseb9621712010-04-24 17:59:491840 ) | sed "s/^/$as_me: WARNING: /" >&2
1841 ;;
1842esac
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091845if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491846 $as_echo_n "(cached) " >&6
1847else
1848 eval "$3=\$ac_header_compiler"
1849fi
1850eval ac_res=\$$3
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852$as_echo "$ac_res" >&6; }
1853fi
Victor Stinnere0be4232011-10-25 11:06:091854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491855
1856} # ac_fn_c_check_header_mongrel
1857
1858# ac_fn_c_try_run LINENO
1859# ----------------------
1860# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861# that executables *can* be run.
1862ac_fn_c_try_run ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1886 ac_retval=0
1887else
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status
1893fi
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491896 as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_try_run
1899
1900# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901# -------------------------------------------------------
1902# Tests whether HEADER exists and can be compiled using the include files in
1903# INCLUDES, setting the cache variable VAR accordingly.
1904ac_fn_c_check_header_compile ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091909if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491910 $as_echo_n "(cached) " >&6
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915#include <$2>
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918 eval "$3=yes"
1919else
1920 eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:091927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491928
1929} # ac_fn_c_check_header_compile
1930
Matthias Kloseb9621712010-04-24 17:59:491931# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932# -------------------------------------------
1933# Tests whether TYPE exists after having included INCLUDES, setting cache
1934# variable VAR accordingly.
1935ac_fn_c_check_type ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091940if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491941 $as_echo_n "(cached) " >&6
1942else
1943 eval "$3=no"
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946$4
1947int
1948main ()
1949{
1950if (sizeof ($2))
1951 return 0;
1952 ;
1953 return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960int
1961main ()
1962{
1963if (sizeof (($2)))
1964 return 0;
1965 ;
1966 return 0;
1967}
1968_ACEOF
1969if ac_fn_c_try_compile "$LINENO"; then :
1970
1971else
1972 eval "$3=yes"
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:091981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491982
1983} # ac_fn_c_check_type
1984
Matthias Kloseb9621712010-04-24 17:59:491985# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1986# --------------------------------------------
1987# Tries to find the compile-time value of EXPR in a program that includes
1988# INCLUDES, setting VAR accordingly. Returns whether the value could be
1989# computed
1990ac_fn_c_compute_int ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if test "$cross_compiling" = yes; then
1994 # Depending upon the size, compute the lo and hi bounds.
1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h. */
1997$4
1998int
1999main ()
2000{
2001static int test_array [1 - 2 * !(($2) >= 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542002test_array [0] = 0;
2003return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_lo=0 ac_mid=0
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015int
2016main ()
2017{
2018static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542019test_array [0] = 0;
2020return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492021
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2028else
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2031 ac_lo= ac_hi=
2032 break
2033 fi
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
2045static int test_array [1 - 2 * !(($2) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542046test_array [0] = 0;
2047return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"; then :
2054 ac_hi=-1 ac_mid=-1
2055 while :; do
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059int
2060main ()
2061{
2062static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542063test_array [0] = 0;
2064return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2072else
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 ac_lo= ac_hi=
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088# Binary search between lo and hi bounds.
2089while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542098test_array [0] = 0;
2099return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492100
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid
2107else
2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111done
2112case $ac_lo in #((
2113?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114'') ac_retval=1 ;;
2115esac
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h. */
2119$4
2120static long int longval () { return $2; }
2121static unsigned long int ulongval () { return $2; }
2122#include <stdio.h>
2123#include <stdlib.h>
2124int
2125main ()
2126{
2127
2128 FILE *f = fopen ("conftest.val", "w");
2129 if (! f)
2130 return 1;
2131 if (($2) < 0)
2132 {
2133 long int i = longval ();
2134 if (i != ($2))
2135 return 1;
2136 fprintf (f, "%ld", i);
2137 }
2138 else
2139 {
2140 unsigned long int i = ulongval ();
2141 if (i != ($2))
2142 return 1;
2143 fprintf (f, "%lu", i);
2144 }
2145 /* Do not output a trailing newline, as this causes \r\n confusion
2146 on some platforms. */
2147 return ferror (f) || fclose (f) != 0;
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_run "$LINENO"; then :
2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155else
2156 ac_retval=1
2157fi
2158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159 conftest.$ac_objext conftest.beam conftest.$ac_ext
2160rm -f conftest.val
2161
2162 fi
Victor Stinnere0be4232011-10-25 11:06:092163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492164 as_fn_set_status $ac_retval
2165
2166} # ac_fn_c_compute_int
2167
2168# ac_fn_c_check_func LINENO FUNC VAR
2169# ----------------------------------
2170# Tests whether FUNC exists, setting the cache variable VAR accordingly
2171ac_fn_c_check_func ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092176if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2183#define $2 innocuous_$2
2184
2185/* System header to define __stub macros and hopefully few prototypes,
2186 which can conflict with char $2 (); below.
2187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2188 <limits.h> exists even on freestanding compilers. */
2189
2190#ifdef __STDC__
2191# include <limits.h>
2192#else
2193# include <assert.h>
2194#endif
2195
2196#undef $2
2197
2198/* Override any GCC internal prototype to avoid an error.
2199 Use char because int might match the return type of a GCC
2200 builtin and then its argument prototype would still apply. */
2201#ifdef __cplusplus
2202extern "C"
2203#endif
2204char $2 ();
2205/* The GNU C library defines this for functions which it implements
2206 to always fail with ENOSYS. Some functions are actually named
2207 something starting with __ and the normal name is an alias. */
2208#if defined __stub_$2 || defined __stub___$2
2209choke me
2210#endif
2211
2212int
2213main ()
2214{
2215return $2 ();
2216 ;
2217 return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_link "$LINENO"; then :
2221 eval "$3=yes"
2222else
2223 eval "$3=no"
2224fi
2225rm -f core conftest.err conftest.$ac_objext \
2226 conftest$ac_exeext conftest.$ac_ext
2227fi
2228eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492232
2233} # ac_fn_c_check_func
2234
Gregory P. Smithdf300d52012-01-22 02:20:152235# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2236# ---------------------------------------------
2237# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2238# accordingly.
2239ac_fn_c_check_decl ()
2240{
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 as_decl_name=`echo $2|sed 's/ *(.*//'`
2243 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2245$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2246if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248else
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h. */
2251$4
2252int
2253main ()
2254{
2255#ifndef $as_decl_name
2256#ifdef __cplusplus
2257 (void) $as_decl_use;
2258#else
2259 (void) $as_decl_name;
2260#endif
2261#endif
2262
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$3=yes"
2269else
2270 eval "$3=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273fi
2274eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279} # ac_fn_c_check_decl
2280
Matthias Kloseb9621712010-04-24 17:59:492281# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282# ----------------------------------------------------
2283# Tries to find if the field MEMBER exists in type AGGR, after including
2284# INCLUDES, setting cache variable VAR accordingly.
2285ac_fn_c_check_member ()
2286{
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289$as_echo_n "checking for $2.$3... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092290if eval \${$4+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492291 $as_echo_n "(cached) " >&6
2292else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h. */
2295$5
2296int
2297main ()
2298{
2299static $2 ac_aggr;
2300if (ac_aggr.$3)
2301return 0;
2302 ;
2303 return 0;
2304}
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h. */
2311$5
2312int
2313main ()
2314{
2315static $2 ac_aggr;
2316if (sizeof ac_aggr.$3)
2317return 0;
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$4=yes"
2324else
2325 eval "$4=no"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331eval ac_res=\$$4
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492335
2336} # ac_fn_c_check_member
Thomas Wouters47b49bf2007-08-30 22:15:332337cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:032338This file contains any messages produced by compilers while
2339running configure, to aid debugging if configure makes a mistake.
2340
Benjamin Petersona8c22a02015-05-28 04:29:002341It was created by python $as_me 3.6, which was
Ross Lagerwall1b863eb2012-10-29 17:31:542342generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:032343
2344 $ $0 $@
2345
2346_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:332347exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:032348{
2349cat <<_ASUNAME
2350## --------- ##
2351## Platform. ##
2352## --------- ##
2353
2354hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2355uname -m = `(uname -m) 2>/dev/null || echo unknown`
2356uname -r = `(uname -r) 2>/dev/null || echo unknown`
2357uname -s = `(uname -s) 2>/dev/null || echo unknown`
2358uname -v = `(uname -v) 2>/dev/null || echo unknown`
2359
2360/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2361/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2362
2363/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2364/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2365/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Thomas Wouters47b49bf2007-08-30 22:15:332366/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:032367/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2368/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2369/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2370
2371_ASUNAME
2372
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:492378 $as_echo "PATH: $as_dir"
2379 done
Thomas Wouters47b49bf2007-08-30 22:15:332380IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:032381
2382} >&5
2383
2384cat >&5 <<_ACEOF
2385
2386
2387## ----------- ##
2388## Core tests. ##
2389## ----------- ##
2390
2391_ACEOF
2392
2393
2394# Keep a trace of the command line.
2395# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:042396# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:032397# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:042398# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:032399ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:042400ac_configure_args0=
2401ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:042402ac_must_keep_next=false
2403for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:032404do
Skip Montanaro6dead952003-09-25 14:50:042405 for ac_arg
2406 do
2407 case $ac_arg in
2408 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2410 | -silent | --silent | --silen | --sile | --sil)
2411 continue ;;
Thomas Wouters47b49bf2007-08-30 22:15:332412 *\'*)
Matthias Kloseb9621712010-04-24 17:59:492413 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:042414 esac
2415 case $ac_pass in
Matthias Kloseb9621712010-04-24 17:59:492416 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Skip Montanaro6dead952003-09-25 14:50:042417 2)
Matthias Kloseb9621712010-04-24 17:59:492418 as_fn_append ac_configure_args1 " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042419 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:232420 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:042421 else
Skip Montanarof0d5f792004-08-15 14:08:232422 case $ac_arg in
2423 *=* | --config-cache | -C | -disable-* | --disable-* \
2424 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2425 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2426 | -with-* | --with-* | -without-* | --without-* | --x)
2427 case "$ac_configure_args0 " in
2428 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2429 esac
2430 ;;
2431 -* ) ac_must_keep_next=true ;;
2432 esac
Skip Montanaro6dead952003-09-25 14:50:042433 fi
Matthias Kloseb9621712010-04-24 17:59:492434 as_fn_append ac_configure_args " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042435 ;;
2436 esac
2437 done
Martin v. Löwis11437992002-04-12 09:54:032438done
Matthias Kloseb9621712010-04-24 17:59:492439{ ac_configure_args0=; unset ac_configure_args0;}
2440{ ac_configure_args1=; unset ac_configure_args1;}
Martin v. Löwis11437992002-04-12 09:54:032441
2442# When interrupted or exit'd, cleanup temporary files, and complete
2443# config.log. We remove comments because anyway the quotes in there
2444# would cause problems or look ugly.
Thomas Wouters47b49bf2007-08-30 22:15:332445# WARNING: Use '\'' to represent an apostrophe within the trap.
2446# 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:032447trap 'exit_status=$?
2448 # Save into config.log some information that might help in debugging.
2449 {
2450 echo
Skip Montanaro6dead952003-09-25 14:50:042451
Ross Lagerwallb0ae53d2011-06-10 05:30:302452 $as_echo "## ---------------- ##
Martin v. Löwis11437992002-04-12 09:54:032453## Cache variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302454## ---------------- ##"
Martin v. Löwis11437992002-04-12 09:54:032455 echo
2456 # The following way of writing the cache mishandles newlines in values,
Thomas Wouters47b49bf2007-08-30 22:15:332457(
2458 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in #(
2461 *${as_nl}*)
2462 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:492463 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2464$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332465 esac
2466 case $ac_var in #(
2467 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:492468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2469 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332470 esac ;;
2471 esac
2472 done
Martin v. Löwis11437992002-04-12 09:54:032473 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:332474 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2475 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:032476 sed -n \
Thomas Wouters47b49bf2007-08-30 22:15:332477 "s/'\''/'\''\\\\'\'''\''/g;
2478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2479 ;; #(
Skip Montanaroeb33e5a2007-08-17 12:57:412480 *)
Thomas Wouters47b49bf2007-08-30 22:15:332481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaroeb33e5a2007-08-17 12:57:412482 ;;
Thomas Wouters47b49bf2007-08-30 22:15:332483 esac |
2484 sort
2485)
Martin v. Löwis11437992002-04-12 09:54:032486 echo
Skip Montanaro6dead952003-09-25 14:50:042487
Ross Lagerwallb0ae53d2011-06-10 05:30:302488 $as_echo "## ----------------- ##
Skip Montanaro6dead952003-09-25 14:50:042489## Output variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302490## ----------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042491 echo
2492 for ac_var in $ac_subst_vars
2493 do
Thomas Wouters47b49bf2007-08-30 22:15:332494 eval ac_val=\$$ac_var
2495 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332497 esac
Matthias Kloseb9621712010-04-24 17:59:492498 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042499 done | sort
2500 echo
2501
2502 if test -n "$ac_subst_files"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302503 $as_echo "## ------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332504## File substitutions. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302505## ------------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042506 echo
2507 for ac_var in $ac_subst_files
2508 do
Thomas Wouters47b49bf2007-08-30 22:15:332509 eval ac_val=\$$ac_var
2510 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492511 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332512 esac
Matthias Kloseb9621712010-04-24 17:59:492513 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042514 done | sort
2515 echo
2516 fi
2517
Martin v. Löwis11437992002-04-12 09:54:032518 if test -s confdefs.h; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302519 $as_echo "## ----------- ##
Martin v. Löwis11437992002-04-12 09:54:032520## confdefs.h. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302521## ----------- ##"
Martin v. Löwis11437992002-04-12 09:54:032522 echo
Thomas Wouters47b49bf2007-08-30 22:15:332523 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032524 echo
2525 fi
2526 test "$ac_signal" != 0 &&
Matthias Kloseb9621712010-04-24 17:59:492527 $as_echo "$as_me: caught signal $ac_signal"
2528 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:032529 } >&5
Thomas Wouters47b49bf2007-08-30 22:15:332530 rm -f core *.core core.conftest.* &&
2531 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:032532 exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:332533' 0
Martin v. Löwis11437992002-04-12 09:54:032534for ac_signal in 1 2 13 15; do
Matthias Kloseb9621712010-04-24 17:59:492535 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Martin v. Löwis11437992002-04-12 09:54:032536done
2537ac_signal=0
2538
2539# confdefs.h avoids OS command line length limits that DEFS can exceed.
Thomas Wouters47b49bf2007-08-30 22:15:332540rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032541
Matthias Kloseb9621712010-04-24 17:59:492542$as_echo "/* confdefs.h */" > confdefs.h
2543
Martin v. Löwis11437992002-04-12 09:54:032544# Predefined preprocessor variables.
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_NAME "$PACKAGE_NAME"
2548_ACEOF
2549
Martin v. Löwis11437992002-04-12 09:54:032550cat >>confdefs.h <<_ACEOF
2551#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552_ACEOF
2553
Martin v. Löwis11437992002-04-12 09:54:032554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE_VERSION "$PACKAGE_VERSION"
2556_ACEOF
2557
Martin v. Löwis11437992002-04-12 09:54:032558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_STRING "$PACKAGE_STRING"
2560_ACEOF
2561
Martin v. Löwis11437992002-04-12 09:54:032562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564_ACEOF
2565
Matthias Kloseb9621712010-04-24 17:59:492566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_URL "$PACKAGE_URL"
2568_ACEOF
2569
Martin v. Löwis11437992002-04-12 09:54:032570
2571# Let the site file select an alternate cache file if it wants to.
Matthias Kloseb9621712010-04-24 17:59:492572# Prefer an explicitly selected file to automatically selected ones.
2573ac_site_file1=NONE
2574ac_site_file2=NONE
Thomas Wouters47b49bf2007-08-30 22:15:332575if test -n "$CONFIG_SITE"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302576 # We do not want a PATH search for config.site.
2577 case $CONFIG_SITE in #((
2578 -*) ac_site_file1=./$CONFIG_SITE;;
2579 */*) ac_site_file1=$CONFIG_SITE;;
2580 *) ac_site_file1=./$CONFIG_SITE;;
2581 esac
Thomas Wouters47b49bf2007-08-30 22:15:332582elif test "x$prefix" != xNONE; then
Matthias Kloseb9621712010-04-24 17:59:492583 ac_site_file1=$prefix/share/config.site
2584 ac_site_file2=$prefix/etc/config.site
Thomas Wouters47b49bf2007-08-30 22:15:332585else
Matthias Kloseb9621712010-04-24 17:59:492586 ac_site_file1=$ac_default_prefix/share/config.site
2587 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:542588fi
Matthias Kloseb9621712010-04-24 17:59:492589for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Thomas Wouters47b49bf2007-08-30 22:15:332590do
Matthias Kloseb9621712010-04-24 17:59:492591 test "x$ac_site_file" = xNONE && continue
2592 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2594$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032595 sed 's/^/| /' "$ac_site_file" >&5
Ross Lagerwallb0ae53d2011-06-10 05:30:302596 . "$ac_site_file" \
2597 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599as_fn_error $? "failed to load site script $ac_site_file
Victor Stinnere0be4232011-10-25 11:06:092600See \`config.log' for more details" "$LINENO" 5; }
Guido van Rossum76be6ed1995-01-02 18:33:542601 fi
2602done
2603
2604if test -r "$cache_file"; then
Matthias Kloseb9621712010-04-24 17:59:492605 # Some versions of bash will fail to source /dev/null (special files
2606 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2607 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2609$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032610 case $cache_file in
Thomas Wouters47b49bf2007-08-30 22:15:332611 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2612 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:032613 esac
2614 fi
Guido van Rossum76be6ed1995-01-02 18:33:542615else
Matthias Kloseb9621712010-04-24 17:59:492616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2617$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032618 >$cache_file
2619fi
2620
2621# Check that the precious variables saved in the cache have kept the same
2622# value.
2623ac_cache_corrupted=false
Thomas Wouters47b49bf2007-08-30 22:15:332624for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:032625 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2626 eval ac_new_set=\$ac_env_${ac_var}_set
Thomas Wouters47b49bf2007-08-30 22:15:332627 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2628 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:032629 case $ac_old_set,$ac_new_set in
2630 set,)
Matthias Kloseb9621712010-04-24 17:59:492631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2632$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:032633 ac_cache_corrupted=: ;;
2634 ,set)
Matthias Kloseb9621712010-04-24 17:59:492635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2636$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032637 ac_cache_corrupted=: ;;
2638 ,);;
2639 *)
2640 if test "x$ac_old_val" != "x$ac_new_val"; then
Matthias Kloseb9621712010-04-24 17:59:492641 # differences in whitespace do not lead to failure.
2642 ac_old_val_w=`echo x $ac_old_val`
2643 ac_new_val_w=`echo x $ac_new_val`
2644 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2646$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2647 ac_cache_corrupted=:
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2650$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2651 eval $ac_var=\$ac_old_val
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2654$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2656$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032657 fi;;
2658 esac
2659 # Pass precious variables to config.status.
2660 if test "$ac_new_set" = set; then
2661 case $ac_new_val in
Matthias Kloseb9621712010-04-24 17:59:492662 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:032663 *) ac_arg=$ac_var=$ac_new_val ;;
2664 esac
2665 case " $ac_configure_args " in
2666 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Matthias Kloseb9621712010-04-24 17:59:492667 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Martin v. Löwis11437992002-04-12 09:54:032668 esac
2669 fi
2670done
2671if $ac_cache_corrupted; then
Matthias Kloseb9621712010-04-24 17:59:492672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2675$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:302676 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:542677fi
Matthias Kloseb9621712010-04-24 17:59:492678## -------------------- ##
2679## Main body of script. ##
2680## -------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332681
Guido van Rossum7f43da71994-08-01 12:15:302682ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:542683ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:032684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:542687
Guido van Rossum627b2d71993-12-24 10:39:162688
Michael W. Hudson54241132001-12-07 15:38:262689
Trent Nelson4d4ec652012-10-16 12:51:242690
Martin Panterc5ee3ca2016-09-12 01:32:032691if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
Trent Nelson4d4ec652012-10-16 12:51:242692 # If we're building out-of-tree, we need to make sure the following
2693 # resources get picked up before their $srcdir counterparts.
2694 # Objects/ -> typeslots.inc
2695 # Include/ -> Python-ast.h, graminit.h
2696 # Python/ -> importlib.h
2697 # (A side effect of this is that these resources will automatically be
2698 # regenerated when building out-of-tree, regardless of whether or not
2699 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2700 # off.)
2701 BASECPPFLAGS="-IObjects -IInclude -IPython"
2702else
2703 BASECPPFLAGS=""
2704fi
2705
Benjamin Peterson8c6f88e2011-06-01 01:52:172706
2707
2708
2709
Victor Stinner4dae0d12017-05-02 21:46:062710if test -e $srcdir/.git
Benjamin Peterson8c6f88e2011-06-01 01:52:172711then
Ned Deily95c50e52017-03-04 06:05:062712# Extract the first word of "git", so it can be a program name with args.
2713set dummy git; ac_word=$2
Benjamin Peterson8c6f88e2011-06-01 01:52:172714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
Ned Deily95c50e52017-03-04 06:05:062716if ${ac_cv_prog_HAS_GIT+:} false; then :
Benjamin Peterson8c6f88e2011-06-01 01:52:172717 $as_echo_n "(cached) " >&6
2718else
Ned Deily95c50e52017-03-04 06:05:062719 if test -n "$HAS_GIT"; then
2720 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
Benjamin Peterson8c6f88e2011-06-01 01:52:172721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:572728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deily95c50e52017-03-04 06:05:062729 ac_cv_prog_HAS_GIT="found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734 done
2735IFS=$as_save_IFS
2736
Ned Deily95c50e52017-03-04 06:05:062737 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172738fi
2739fi
Ned Deily95c50e52017-03-04 06:05:062740HAS_GIT=$ac_cv_prog_HAS_GIT
2741if test -n "$HAS_GIT"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2743$as_echo "$HAS_GIT" >&6; }
Benjamin Peterson8c6f88e2011-06-01 01:52:172744else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750else
Ned Deily95c50e52017-03-04 06:05:062751HAS_GIT=no-repository
Benjamin Peterson8c6f88e2011-06-01 01:52:172752fi
Ned Deily95c50e52017-03-04 06:05:062753if test $HAS_GIT = found
Benjamin Peterson8c6f88e2011-06-01 01:52:172754then
Miss Islington (bot)92970cc2018-08-20 15:00:072755 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2756 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2757 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
Benjamin Peterson8c6f88e2011-06-01 01:52:172758else
Ned Deily95c50e52017-03-04 06:05:062759 GITVERSION=""
2760 GITTAG=""
2761 GITBRANCH=""
Benjamin Peterson8c6f88e2011-06-01 01:52:172762fi
2763
2764
Thomas Wouters47b49bf2007-08-30 22:15:332765ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:032766
2767
Matthias Kloseca2f6ec2012-03-15 20:30:112768ac_aux_dir=
2769for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2770 if test -f "$ac_dir/install-sh"; then
2771 ac_aux_dir=$ac_dir
2772 ac_install_sh="$ac_aux_dir/install-sh -c"
2773 break
2774 elif test -f "$ac_dir/install.sh"; then
2775 ac_aux_dir=$ac_dir
2776 ac_install_sh="$ac_aux_dir/install.sh -c"
2777 break
2778 elif test -f "$ac_dir/shtool"; then
2779 ac_aux_dir=$ac_dir
2780 ac_install_sh="$ac_aux_dir/shtool install -c"
2781 break
2782 fi
2783done
2784if test -z "$ac_aux_dir"; then
2785 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2786fi
2787
2788# These three variables are undocumented and unsupported,
2789# and are intended to be withdrawn in a future Autoconf release.
2790# They can cause serious problems if a builder's source tree is in a directory
2791# whose full name contains unusual characters.
2792ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2793ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2794ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2795
2796
2797# Make sure we can run config.sub.
2798$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2799 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2800
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2802$as_echo_n "checking build system type... " >&6; }
2803if ${ac_cv_build+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805else
2806 ac_build_alias=$build_alias
2807test "x$ac_build_alias" = x &&
2808 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2809test "x$ac_build_alias" = x &&
2810 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2811ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2813
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2816$as_echo "$ac_cv_build" >&6; }
2817case $ac_cv_build in
2818*-*-*) ;;
2819*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2820esac
2821build=$ac_cv_build
2822ac_save_IFS=$IFS; IFS='-'
2823set x $ac_cv_build
2824shift
2825build_cpu=$1
2826build_vendor=$2
2827shift; shift
2828# Remember, the first character of IFS is used to create $*,
2829# except with old shells:
2830build_os=$*
2831IFS=$ac_save_IFS
2832case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2833
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2836$as_echo_n "checking host system type... " >&6; }
2837if ${ac_cv_host+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839else
2840 if test "x$host_alias" = x; then
2841 ac_cv_host=$ac_cv_build
2842else
2843 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2845fi
2846
2847fi
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2849$as_echo "$ac_cv_host" >&6; }
2850case $ac_cv_host in
2851*-*-*) ;;
2852*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2853esac
2854host=$ac_cv_host
2855ac_save_IFS=$IFS; IFS='-'
2856set x $ac_cv_host
2857shift
2858host_cpu=$1
2859host_vendor=$2
2860shift; shift
2861# Remember, the first character of IFS is used to create $*,
2862# except with old shells:
2863host_os=$*
2864IFS=$ac_save_IFS
2865case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2866
2867
2868
doko@python.orga10e4a92013-01-25 17:45:122869
2870
Ned Deilyfcbc2462014-08-22 20:32:492871# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2872rm -f pybuilddir.txt
2873
Xavier de Gayefd0d5932016-07-26 10:48:082874for ac_prog in python$PACKAGE_VERSION python3 python
2875do
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877set dummy $ac_prog; ac_word=$2
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinner9d02f562017-05-04 22:46:562880if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
Xavier de Gayefd0d5932016-07-26 10:48:082881 $as_echo_n "(cached) " >&6
2882else
Victor Stinner9d02f562017-05-04 22:46:562883 if test -n "$PYTHON_FOR_REGEN"; then
2884 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
Xavier de Gayefd0d5932016-07-26 10:48:082885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Victor Stinner9d02f562017-05-04 22:46:562893 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
Xavier de Gayefd0d5932016-07-26 10:48:082894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897done
2898 done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
Victor Stinner9d02f562017-05-04 22:46:562903PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2904if test -n "$PYTHON_FOR_REGEN"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2906$as_echo "$PYTHON_FOR_REGEN" >&6; }
Xavier de Gayefd0d5932016-07-26 10:48:082907else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910fi
2911
2912
Victor Stinner9d02f562017-05-04 22:46:562913 test -n "$PYTHON_FOR_REGEN" && break
Xavier de Gayefd0d5932016-07-26 10:48:082914done
Victor Stinner9d02f562017-05-04 22:46:562915test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
Xavier de Gayefd0d5932016-07-26 10:48:082916
Xavier de Gayefd0d5932016-07-26 10:48:082917
2918
doko@ubuntu.com1abe1c52012-06-30 18:42:452919if test "$cross_compiling" = yes; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2921$as_echo_n "checking for python interpreter for cross build... " >&6; }
2922 if test -z "$PYTHON_FOR_BUILD"; then
2923 for interp in python$PACKAGE_VERSION python3 python; do
2924 which $interp >/dev/null 2>&1 || continue
Xavier de Gaye4afd1432016-07-07 16:00:222925 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:452926 break
2927 fi
2928 interp=
2929 done
2930 if test x$interp = x; then
2931 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2934$as_echo "$interp" >&6; }
Xavier de Gaye92dec542016-09-11 20:22:242935 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:452936 fi
Christian Heimes954ac032012-12-12 12:10:212937elif test "$cross_compiling" = maybe; then
2938 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
doko@ubuntu.com1abe1c52012-06-30 18:42:452939else
2940 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
doko@ubuntu.com1abe1c52012-06-30 18:42:452941fi
2942
2943
Martin v. Löwis11437992002-04-12 09:54:032944
Benjamin Petersond23f8222009-04-05 19:13:162945if test "$prefix" != "/"; then
2946 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2947fi
2948
2949
Martin v. Löwis11437992002-04-12 09:54:032950
2951
Martin v. Löwis8316feb2003-06-14 07:48:072952# We don't use PACKAGE_ variables, and they cause conflicts
2953# with other autoconf-based packages that include Python.h
2954grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2955rm confdefs.h
2956mv confdefs.h.new confdefs.h
2957
Martin v. Löwisbddf5a52002-11-11 13:37:282958
Benjamin Petersona8c22a02015-05-28 04:29:002959VERSION=3.6
Guido van Rossum1fd74a71997-07-19 19:36:022960
Benjamin Petersond7f73e92010-09-05 00:09:072961# Version number of Python's own shared library file.
Martin v. Löwis1142de32002-03-29 16:28:312962
2963SOVERSION=1.0
2964
Martin v. Löwis6f18a3c2002-07-20 08:51:522965# The later defininition of _XOPEN_SOURCE disables certain features
2966# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2967
Matthias Kloseb9621712010-04-24 17:59:492968$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Martin v. Löwis6f18a3c2002-07-20 08:51:522969
2970
Martin v. Löwisbcd93962003-05-03 10:32:182971# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2972# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2973# them.
2974
Matthias Kloseb9621712010-04-24 17:59:492975$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
Martin v. Löwisbcd93962003-05-03 10:32:182976
2977
Andrew MacIntyreabccf412003-07-02 13:53:252978# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2979# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2980# them.
2981
Matthias Kloseb9621712010-04-24 17:59:492982$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
Andrew MacIntyreabccf412003-07-02 13:53:252983
2984
Martin v. Löwisd6320502004-08-12 13:45:082985# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2986# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2987
Matthias Kloseb9621712010-04-24 17:59:492988$as_echo "#define _BSD_TYPES 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:082989
2990
Benjamin Peterson14ae9592008-07-16 02:20:152991# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2992# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2993# them.
2994
Matthias Kloseb9621712010-04-24 17:59:492995$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
Benjamin Peterson14ae9592008-07-16 02:20:152996
2997
2998
Martin v. Löwis35195ad2002-11-11 13:26:512999define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:523000
Neil Schemenauer4edbc2a2001-03-22 00:34:033001# Arguments passed to configure.
3002
3003CONFIG_ARGS="$ac_configure_args"
3004
Matthias Kloseb9621712010-04-24 17:59:493005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3006$as_echo_n "checking for --enable-universalsdk... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:333007# Check whether --enable-universalsdk was given.
Matthias Kloseb9621712010-04-24 17:59:493008if test "${enable_universalsdk+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333009 enableval=$enable_universalsdk;
Thomas Wouters477c8d52006-05-27 19:21:473010 case $enableval in
3011 yes)
Mariatta4ba4ff42018-06-09 00:17:323012 # Locate the best usable SDK, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193013 # information
3014 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
Ned Deily87adb6e2013-10-19 04:09:563015 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
Ronald Oussoren8af24c12010-02-07 12:03:423016 then
Ned Deilycbfb9a52012-06-23 23:02:193017 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3018 if test ! -d "${enableval}"
3019 then
3020 enableval=/
3021 fi
Ronald Oussoren8af24c12010-02-07 12:03:423022 fi
Thomas Wouters477c8d52006-05-27 19:21:473023 ;;
3024 esac
3025 case $enableval in
3026 no)
3027 UNIVERSALSDK=
3028 enable_universalsdk=
3029 ;;
3030 *)
3031 UNIVERSALSDK=$enableval
Ronald Oussoren8af24c12010-02-07 12:03:423032 if test ! -d "${UNIVERSALSDK}"
3033 then
Ross Lagerwallb0ae53d2011-06-10 05:30:303034 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
Ronald Oussoren8af24c12010-02-07 12:03:423035 fi
Thomas Wouters477c8d52006-05-27 19:21:473036 ;;
3037 esac
Martin v. Löwis11437992002-04-12 09:54:033038
Ronald Oussoren8af24c12010-02-07 12:03:423039
Thomas Wouters477c8d52006-05-27 19:21:473040else
3041
3042 UNIVERSALSDK=
3043 enable_universalsdk=
3044
Thomas Wouters47b49bf2007-08-30 22:15:333045fi
Thomas Wouters477c8d52006-05-27 19:21:473046
Ronald Oussoren8af24c12010-02-07 12:03:423047if test -n "${UNIVERSALSDK}"
3048then
Matthias Kloseb9621712010-04-24 17:59:493049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3050$as_echo "${UNIVERSALSDK}" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423051else
Matthias Kloseb9621712010-04-24 17:59:493052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423054fi
Thomas Wouters477c8d52006-05-27 19:21:473055
Thomas Wouters47b49bf2007-08-30 22:15:333056
Benjamin Peterson6794aa32008-07-16 20:33:373057
Ned Deily87adb6e2013-10-19 04:09:563058ARCH_RUN_32BIT=""
Benjamin Peterson6794aa32008-07-16 20:33:373059
Ned Deilycbfb9a52012-06-23 23:02:193060# For backward compatibility reasons we prefer to select '32-bit' if available,
3061# otherwise use 'intel'
Benjamin Peterson14ae9592008-07-16 02:20:153062UNIVERSAL_ARCHS="32-bit"
Ned Deilycbfb9a52012-06-23 23:02:193063if test "`uname -s`" = "Darwin"
3064then
3065 if test -n "${UNIVERSALSDK}"
3066 then
Ned Deily87adb6e2013-10-19 04:09:563067 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
Ned Deilycbfb9a52012-06-23 23:02:193068 then
3069 UNIVERSAL_ARCHS="intel"
3070 fi
3071 fi
3072fi
3073
Ronald Oussoren6f6c5622009-12-24 14:03:193074
Matthias Kloseb9621712010-04-24 17:59:493075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3076$as_echo_n "checking for --with-universal-archs... " >&6; }
Benjamin Peterson14ae9592008-07-16 02:20:153077
3078# Check whether --with-universal-archs was given.
Matthias Kloseb9621712010-04-24 17:59:493079if test "${with_universal_archs+set}" = set; then :
Benjamin Peterson14ae9592008-07-16 02:20:153080 withval=$with_universal_archs;
Benjamin Peterson14ae9592008-07-16 02:20:153081 UNIVERSAL_ARCHS="$withval"
3082
Benjamin Peterson14ae9592008-07-16 02:20:153083fi
3084
Ned Deily87adb6e2013-10-19 04:09:563085if test -n "${UNIVERSALSDK}"
3086then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3088$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3089else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091$as_echo "no" >&6; }
3092fi
Benjamin Peterson14ae9592008-07-16 02:20:153093
Christian Heimes81ee3ef2008-05-04 22:42:013094
3095# Check whether --with-framework-name was given.
Matthias Kloseb9621712010-04-24 17:59:493096if test "${with_framework_name+set}" = set; then :
Christian Heimes81ee3ef2008-05-04 22:42:013097 withval=$with_framework_name;
3098 PYTHONFRAMEWORK=${withval}
3099 PYTHONFRAMEWORKDIR=${withval}.framework
3100 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3101
3102else
3103
3104 PYTHONFRAMEWORK=Python
3105 PYTHONFRAMEWORKDIR=Python.framework
3106 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3107
3108fi
3109
Thomas Wouters47b49bf2007-08-30 22:15:333110# Check whether --enable-framework was given.
Matthias Kloseb9621712010-04-24 17:59:493111if test "${enable_framework+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333112 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:143113 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:033114 yes)
Jack Jansene578a632001-08-15 01:27:143115 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:543116 esac
3117 case $enableval in
3118 no)
3119 PYTHONFRAMEWORK=
3120 PYTHONFRAMEWORKDIR=no-framework
3121 PYTHONFRAMEWORKPREFIX=
3122 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473123 FRAMEWORKINSTALLFIRST=
3124 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453125 FRAMEWORKALTINSTALLFIRST=
3126 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253127 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453128 if test "x${prefix}" = "xNONE"; then
3129 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3130 else
3131 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3132 fi
Jack Jansen127e56e2001-09-11 14:41:543133 enable_framework=
Jack Jansene578a632001-08-15 01:27:143134 ;;
3135 *)
Ronald Oussoren86b33c82010-04-30 11:41:563136 PYTHONFRAMEWORKPREFIX="${enableval}"
Jack Jansen127e56e2001-09-11 14:41:543137 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Thomas Wouters477c8d52006-05-27 19:21:473138 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussorenf6ccbf62009-06-02 10:55:563139 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
Ronald Oussoren6f6c5622009-12-24 14:03:193140 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3141 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
Ned Deilyb8f944f2013-11-22 06:42:253142 FRAMEWORKPYTHONW="frameworkpythonw"
Ronald Oussoren86b33c82010-04-30 11:41:563143 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
Benjamin Peterson14ae9592008-07-16 02:20:153144
Thomas Wouters73e5a5b2006-06-08 15:35:453145 if test "x${prefix}" = "xNONE" ; then
3146 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
Ronald Oussoren86b33c82010-04-30 11:41:563147
Thomas Wouters73e5a5b2006-06-08 15:35:453148 else
3149 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3150 fi
Ronald Oussoren86b33c82010-04-30 11:41:563151
3152 case "${enableval}" in
3153 /System*)
3154 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3155 if test "${prefix}" = "NONE" ; then
3156 # See below
3157 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3158 fi
3159 ;;
3160
3161 /Library*)
3162 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3163 ;;
3164
3165 */Library/Frameworks)
3166 MDIR="`dirname "${enableval}"`"
3167 MDIR="`dirname "${MDIR}"`"
3168 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3169
3170 if test "${prefix}" = "NONE"; then
3171 # User hasn't specified the
3172 # --prefix option, but wants to install
3173 # the framework in a non-default location,
3174 # ensure that the compatibility links get
3175 # installed relative to that prefix as well
3176 # instead of in /usr/local.
3177 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3178 fi
3179 ;;
3180
3181 *)
3182 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3183 ;;
3184 esac
3185
Jack Jansen127e56e2001-09-11 14:41:543186 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Thomas Wouters477c8d52006-05-27 19:21:473187
Christian Heimes81ee3ef2008-05-04 22:42:013188 # Add files for Mac specific code to the list of output
Thomas Wouters477c8d52006-05-27 19:21:473189 # files:
Thomas Wouters47b49bf2007-08-30 22:15:333190 ac_config_files="$ac_config_files Mac/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473191
Thomas Wouters47b49bf2007-08-30 22:15:333192 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473193
Christian Heimes81ee3ef2008-05-04 22:42:013194 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3195
3196 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3197
Jack Jansene578a632001-08-15 01:27:143198 esac
Martin v. Löwis11437992002-04-12 09:54:033199
Guido van Rossum563e7081996-09-10 18:20:483200else
Martin v. Löwis11437992002-04-12 09:54:033201
Jack Jansene578a632001-08-15 01:27:143202 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:543203 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:143204 PYTHONFRAMEWORKPREFIX=
3205 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473206 FRAMEWORKINSTALLFIRST=
3207 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453208 FRAMEWORKALTINSTALLFIRST=
3209 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253210 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453211 if test "x${prefix}" = "xNONE" ; then
3212 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3213 else
3214 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3215 fi
Jack Jansene578a632001-08-15 01:27:143216 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:353217
Benjamin Peterson14ae9592008-07-16 02:20:153218
Thomas Wouters47b49bf2007-08-30 22:15:333219fi
3220
Thomas Wouters477c8d52006-05-27 19:21:473221
3222
Michael W. Hudson54241132001-12-07 15:38:263223
3224
3225
3226
Jack Jansene578a632001-08-15 01:27:143227
Thomas Wouters73e5a5b2006-06-08 15:35:453228
3229
3230
Christian Heimes81ee3ef2008-05-04 22:42:013231
Ronald Oussoren86b33c82010-04-30 11:41:563232
Ned Deilyb8f944f2013-11-22 06:42:253233
Jack Jansene578a632001-08-15 01:27:143234##AC_ARG_WITH(dyld,
Matthias Klose2b8733f2010-04-25 18:34:363235## AS_HELP_STRING([--with-dyld],
Matthias Klosec80c93f2010-04-24 17:04:353236## [Use (OpenStep|Rhapsody) dynamic linker]))
Jack Jansene578a632001-08-15 01:27:143237##
Guido van Rossum7b3853f1996-07-30 18:09:353238# Set name for machine-dependent library files
3239
Matthias Kloseb9621712010-04-24 17:59:493240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3241$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353242if test -z "$MACHDEP"
3243then
Matthias Klosedf2aecb2012-03-15 21:19:283244 # avoid using uname for cross builds
3245 if test "$cross_compiling" = yes; then
doko@python.org44bbbda2013-01-25 13:44:003246 # ac_sys_system and ac_sys_release are used for setting
3247 # a lot of different things including 'define_xopen_source'
3248 # in the case statement below.
Matthias Klosedf2aecb2012-03-15 21:19:283249 case "$host" in
Xavier de Gaye2a352b62017-01-04 20:51:163250 *-*-linux-android*)
3251 ac_sys_system=Linux-android
3252 ;;
Matthias Klosedf2aecb2012-03-15 21:19:283253 *-*-linux*)
3254 ac_sys_system=Linux
3255 ;;
3256 *-*-cygwin*)
3257 ac_sys_system=Cygwin
3258 ;;
3259 *)
3260 # for now, limit cross builds to known configurations
3261 MACHDEP="unknown"
3262 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3263 esac
3264 ac_sys_release=
3265 else
Guido van Rossum563e7081996-09-10 18:20:483266 ac_sys_system=`uname -s`
Benjamin Peterson8719ad52009-09-11 22:24:023267 if test "$ac_sys_system" = "AIX" \
Martin v. Löwis21ee4092002-09-30 16:19:483268 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:483269 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:353270 else
Guido van Rossum563e7081996-09-10 18:20:483271 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:353272 fi
Matthias Klosedf2aecb2012-03-15 21:19:283273 fi
3274 ac_md_system=`echo $ac_sys_system |
3275 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3276 ac_md_release=`echo $ac_sys_release |
3277 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3278 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:483279
Matthias Klosedf2aecb2012-03-15 21:19:283280 case $MACHDEP in
Victor Stinner7209ff22011-08-20 22:00:163281 linux*) MACHDEP="linux";;
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:043282 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:323283 darwin*) MACHDEP="darwin";;
doko@ubuntu.comba015832012-06-30 14:52:053284 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:033285 '') MACHDEP="unknown";;
Matthias Klosedf2aecb2012-03-15 21:19:283286 esac
Guido van Rossum7b3853f1996-07-30 18:09:353287fi
Guido van Rossum91922671997-10-09 20:24:133288
doko@ubuntu.com1abe1c52012-06-30 18:42:453289
3290if test "$cross_compiling" = yes; then
3291 case "$host" in
3292 *-*-linux*)
3293 case "$host_cpu" in
3294 arm*)
3295 _host_cpu=arm
3296 ;;
3297 *)
3298 _host_cpu=$host_cpu
3299 esac
3300 ;;
3301 *-*-cygwin*)
3302 _host_cpu=
3303 ;;
3304 *)
3305 # for now, limit cross builds to known configurations
3306 MACHDEP="unknown"
3307 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3308 esac
3309 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3310fi
3311
Martin v. Löwis35195ad2002-11-11 13:26:513312# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3313# disable features if it is defined, without any means to access these
3314# features as extensions. For these systems, we skip the definition of
3315# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3316# some feature, make sure there is no alternative way to access this
3317# feature. Also, when using wildcards, make sure you have verified the
3318# need for not defining _XOPEN_SOURCE on all systems matching the
3319# wildcard, and that the wildcard does not include future systems
3320# (which may remove their limitations).
3321case $ac_sys_system/$ac_sys_release in
3322 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3323 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:443324 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Martin v. Löwis19ed3c82010-02-15 21:45:063325 # In addition, Stefan Krah confirms that issue #1244610 exists through
3326 # OpenBSD 4.6, but is fixed in 4.7.
Charles-François Natali54ef40b2011-07-22 21:52:023327 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
Christian Heimes5b5e81c2007-12-31 16:14:333328 define_xopen_source=no
3329 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3330 # also defined. This can be overridden by defining _BSD_SOURCE
3331 # As this has a different meaning on Linux, only define it on OpenBSD
3332
Matthias Kloseb9621712010-04-24 17:59:493333$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Christian Heimes5b5e81c2007-12-31 16:14:333334
3335 ;;
Charles-François Natali54ef40b2011-07-22 21:52:023336 OpenBSD/*)
Martin v. Löwis7671efc2010-02-15 08:35:163337 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3338 # also defined. This can be overridden by defining _BSD_SOURCE
3339 # As this has a different meaning on Linux, only define it on OpenBSD
3340
Matthias Kloseb9621712010-04-24 17:59:493341$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwis7671efc2010-02-15 08:35:163342
3343 ;;
Thomas Wouters89f507f2006-12-13 04:49:303344 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3345 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3346 # Marc Recht
Benjamin Petersonf608c612008-11-16 18:33:533347 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:513348 define_xopen_source=no;;
Martin v. Löwis1a415762010-05-28 15:44:203349 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3350 # request to enable features supported by the standard as a request
3351 # to disable features not supported by the standard. The best way
3352 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3353 # entirely and define __EXTENSIONS__ instead.
3354 SunOS/*)
Martin v. Löwisa9d71422003-03-28 18:43:313355 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:413356 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3357 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:453358 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:143359 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:413360 define_xopen_source=no;;
3361 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:183362 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:413363 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:183364 define_xopen_source=no;;
Martin v. Löwisb37509b2008-11-04 20:45:293365 # On FreeBSD 4, the math functions C89 does not cover are never defined
3366 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3367 FreeBSD/4.*)
3368 define_xopen_source=no;;
3369 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3370 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3371 # identifies itself as Darwin/7.*
3372 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3373 # disables platform specific features beyond repair.
3374 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3375 # has no effect, don't bother defining them
3376 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:233377 define_xopen_source=no;;
Ronald Oussoren92fb9412010-03-09 06:40:193378 Darwin/1[0-9].*)
Ronald Oussorenb8f11a62010-03-08 07:02:033379 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393380 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3381 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3382 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:443383 AIX/4)
3384 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393385 AIX/5)
3386 if test `uname -r` -eq 1; then
3387 define_xopen_source=no
3388 fi
3389 ;;
Benjamin Petersonde9c8692008-07-01 18:23:093390 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3391 # defining NI_NUMERICHOST.
3392 QNX/6.3.2)
3393 define_xopen_source=no
3394 ;;
Bob Ippolito7026a0a2005-03-28 23:23:473395
Martin v. Löwis35195ad2002-11-11 13:26:513396esac
3397
3398if test $define_xopen_source = yes
3399then
Victor Stinner14d098d2011-09-07 20:29:433400 # X/Open 7, incorporating POSIX.1-2008
Martin v. Löwis678fc1e2002-11-12 06:04:393401
Victor Stinner14d098d2011-09-07 20:29:433402$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
Martin v. Löwis35195ad2002-11-11 13:26:513403
Martin v. Löwis678fc1e2002-11-12 06:04:393404
3405 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3406 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3407 # several APIs are not declared. Since this is also needed in some
3408 # cases for HP-UX, we define it globally.
Martin v. Löwis678fc1e2002-11-12 06:04:393409
Matthias Kloseb9621712010-04-24 17:59:493410$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393411
3412
Bob Ippolito7026a0a2005-03-28 23:23:473413
Victor Stinnerd169fdc2011-09-07 22:56:173414$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393415
Martin v. Löwis35195ad2002-11-11 13:26:513416fi
3417
Christian Heimes647cd872013-12-07 22:39:333418# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3419case $ac_sys_system in
Christian Heimesb02bcae2013-12-08 14:21:083420 hp*|HP*)
3421 define_stdc_a1=yes;;
3422 *)
3423 define_stdc_a1=no;;
3424esac
3425
3426if test $define_stdc_a1 = yes
3427then
Christian Heimes647cd872013-12-07 22:39:333428
3429$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3430
Christian Heimesb02bcae2013-12-08 14:21:083431fi
Christian Heimes647cd872013-12-07 22:39:333432
Guido van Rossum91922671997-10-09 20:24:133433#
3434# SGI compilers allow the specification of the both the ABI and the
3435# ISA on the command line. Depending on the values of these switches,
Martin Panter46f50722016-05-26 05:35:263436# different and often incompatible code will be generated.
Guido van Rossum91922671997-10-09 20:24:133437#
3438# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3439# thus supply support for various ABI/ISA combinations. The MACHDEP
3440# variable is also adjusted.
3441#
3442
3443if test ! -z "$SGI_ABI"
3444then
3445 CC="cc $SGI_ABI"
3446 LDFLAGS="$SGI_ABI $LDFLAGS"
3447 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3448fi
Matthias Kloseb9621712010-04-24 17:59:493449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3450$as_echo "$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353451
Jack Jansen6b08a402004-06-03 12:41:453452# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3453# it may influence the way we can build extensions, so distutils
3454# needs to check it
3455
Thomas Wouters477c8d52006-05-27 19:21:473456
Jack Jansen6b08a402004-06-03 12:41:453457CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Thomas Wouters477c8d52006-05-27 19:21:473458EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:453459
Guido van Rossum627b2d71993-12-24 10:39:163460# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:493461
3462# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3463# for debug/optimization stuff. BASECFLAGS is for flags that are required
3464# just to get things to compile and link. Users are free to override OPT
3465# when running configure or make. The build should not break if they do.
3466# BASECFLAGS should generally not be messed with, however.
3467
3468# XXX shouldn't some/most/all of this code be merged with the stuff later
3469# on that fiddles with OPT and BASECFLAGS?
Matthias Kloseb9621712010-04-24 17:59:493470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3471$as_echo_n "checking for --without-gcc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:033472
Thomas Wouters47b49bf2007-08-30 22:15:333473# Check whether --with-gcc was given.
Matthias Kloseb9621712010-04-24 17:59:493474if test "${with_gcc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333475 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:303476 case $withval in
Antoine Pitroub52ec782009-01-25 16:34:233477 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:293478 without_gcc=yes;;
3479 yes) CC=gcc
3480 without_gcc=no;;
3481 *) CC=$withval
3482 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:303483 esac
Guido van Rossumda88dad1995-01-26 00:46:293484else
Martin v. Löwis11437992002-04-12 09:54:033485
Guido van Rossum7b3853f1996-07-30 18:09:353486 case $ac_sys_system in
Antoine Pitrouf6350d22010-09-21 15:19:143487 AIX*) CC=${CC:-xlc_r}
Neil Schemenauer4a7bbcb2001-02-16 03:37:543488 without_gcc=;;
Martin v. Löwis130fb172001-07-19 11:00:413489 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:593490 esac
Thomas Wouters47b49bf2007-08-30 22:15:333491fi
3492
Matthias Kloseb9621712010-04-24 17:59:493493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3494$as_echo "$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:263495
Zachary Ware5af85642015-12-21 18:09:173496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3497$as_echo_n "checking for --with-icc... " >&6; }
3498
3499# Check whether --with-icc was given.
3500if test "${with_icc+set}" = set; then :
3501 withval=$with_icc;
3502 case $withval in
3503 no) CC=${CC:-cc}
3504 with_icc=no;;
3505 yes) CC=icc
3506 CXX=icpc
3507 with_icc=yes;;
3508 *) CC=$withval
3509 with_icc=$withval;;
3510 esac
3511else
3512
3513 with_icc=no
3514fi
3515
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3517$as_echo "$with_icc" >&6; }
3518
Guido van Rossum8b131c51995-03-09 14:10:133519# If the user switches compilers, we can't believe the cache
3520if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3521then
Ross Lagerwallb0ae53d2011-06-10 05:30:303522 as_fn_error $? "cached CC is different -- throw away $cache_file
Matthias Kloseb9621712010-04-24 17:59:493523(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
Guido van Rossum8b131c51995-03-09 14:10:133524fi
3525
Jeffrey Yasskind4fcdb12010-07-09 16:30:583526# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3527# when the compiler supports them, but we don't always want -O2, and
3528# we set -g later.
3529if test -z "$CFLAGS"; then
3530 CFLAGS=
3531fi
Ned Deilycbfb9a52012-06-23 23:02:193532
3533if test "$ac_sys_system" = "Darwin"
3534then
3535 # Compiler selection on MacOSX is more complicated than
Mariatta4ba4ff42018-06-09 00:17:323536 # AC_PROG_CC can handle, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193537 # information
3538 if test -z "${CC}"
3539 then
3540 found_gcc=
3541 found_clang=
3542 as_save_IFS=$IFS; IFS=:
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
Ned Deilyac360fc2017-10-09 18:30:593546 if test -x "${as_dir}/gcc"; then
Ned Deilycbfb9a52012-06-23 23:02:193547 if test -z "${found_gcc}"; then
Ned Deilyac360fc2017-10-09 18:30:593548 found_gcc="${as_dir}/gcc"
Ned Deilycbfb9a52012-06-23 23:02:193549 fi
3550 fi
Ned Deilyac360fc2017-10-09 18:30:593551 if test -x "${as_dir}/clang"; then
Ned Deilycbfb9a52012-06-23 23:02:193552 if test -z "${found_clang}"; then
Ned Deilyac360fc2017-10-09 18:30:593553 found_clang="${as_dir}/clang"
Ned Deilycbfb9a52012-06-23 23:02:193554 fi
3555 fi
3556 done
3557 IFS=$as_save_IFS
3558
3559 if test -n "$found_gcc" -a -n "$found_clang"
3560 then
3561 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3562 then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3564$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3565 CC="$found_clang"
3566 CXX="$found_clang++"
3567 fi
3568
3569
3570 elif test -z "$found_gcc" -a -n "$found_clang"
3571 then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3573$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3574 CC="$found_clang"
3575 CXX="$found_clang++"
3576
3577 elif test -z "$found_gcc" -a -z "$found_clang"
3578 then
3579 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3580 if test -n "${found_clang}"
3581 then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3583$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3584 CC="${found_clang}"
3585 CXX="`/usr/bin/xcrun -find clang++`"
3586
3587 # else: use default behaviour
3588 fi
3589 fi
3590 fi
3591fi
Martin v. Löwis11437992002-04-12 09:54:033592ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3599set dummy ${ac_tool_prefix}gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093602if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493603 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:483604else
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3607else
Martin v. Löwis11437992002-04-12 09:54:033608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493613 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Matthias Kloseb9621712010-04-24 17:59:493616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033617 break 2
3618 fi
3619done
Matthias Kloseb9621712010-04-24 17:59:493620 done
Thomas Wouters47b49bf2007-08-30 22:15:333621IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033622
Jack Jansendd19cf82001-12-06 22:36:173623fi
3624fi
Martin v. Löwis11437992002-04-12 09:54:033625CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:173626if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173629else
Matthias Kloseb9621712010-04-24 17:59:493630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033632fi
3633
Thomas Wouters47b49bf2007-08-30 22:15:333634
Martin v. Löwis11437992002-04-12 09:54:033635fi
3636if test -z "$ac_cv_prog_CC"; then
3637 ac_ct_CC=$CC
3638 # Extract the first word of "gcc", so it can be a program name with args.
3639set dummy gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093642if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493643 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033644else
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493653 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033655 ac_cv_prog_ac_ct_CC="gcc"
Matthias Kloseb9621712010-04-24 17:59:493656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033657 break 2
3658 fi
3659done
Matthias Kloseb9621712010-04-24 17:59:493660 done
Thomas Wouters47b49bf2007-08-30 22:15:333661IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033662
3663fi
3664fi
3665ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033669else
Matthias Kloseb9621712010-04-24 17:59:493670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033672fi
3673
Thomas Wouters47b49bf2007-08-30 22:15:333674 if test "x$ac_ct_CC" = x; then
3675 CC=""
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678yes:)
Matthias Kloseb9621712010-04-24 17:59:493679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333681ac_tool_warned=yes ;;
3682esac
3683 CC=$ac_ct_CC
3684 fi
Martin v. Löwis11437992002-04-12 09:54:033685else
3686 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:173687fi
3688
Jack Jansendd19cf82001-12-06 22:36:173689if test -z "$CC"; then
Thomas Wouters47b49bf2007-08-30 22:15:333690 if test -n "$ac_tool_prefix"; then
3691 # 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:033692set dummy ${ac_tool_prefix}cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093695if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493696 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:173697else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
Martin v. Löwis11437992002-04-12 09:54:033701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493706 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033708 ac_cv_prog_CC="${ac_tool_prefix}cc"
Matthias Kloseb9621712010-04-24 17:59:493709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033710 break 2
3711 fi
3712done
Matthias Kloseb9621712010-04-24 17:59:493713 done
Thomas Wouters47b49bf2007-08-30 22:15:333714IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033715
3716fi
3717fi
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033722else
Matthias Kloseb9621712010-04-24 17:59:493723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033725fi
3726
Thomas Wouters47b49bf2007-08-30 22:15:333727
Martin v. Löwis11437992002-04-12 09:54:033728 fi
Martin v. Löwis11437992002-04-12 09:54:033729fi
3730if test -z "$CC"; then
3731 # Extract the first word of "cc", so it can be a program name with args.
3732set dummy cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093735if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493736 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033737else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740else
Guido van Rossum48bdbfc1996-05-28 22:53:483741 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:033742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493747 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3750 ac_prog_rejected=yes
3751 continue
3752 fi
3753 ac_cv_prog_CC="cc"
Matthias Kloseb9621712010-04-24 17:59:493754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033755 break 2
3756 fi
3757done
Matthias Kloseb9621712010-04-24 17:59:493758 done
Thomas Wouters47b49bf2007-08-30 22:15:333759IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033760
Guido van Rossum48bdbfc1996-05-28 22:53:483761if test $ac_prog_rejected = yes; then
3762 # We found a bogon in the path, so make sure we never use it.
3763 set dummy $ac_cv_prog_CC
3764 shift
Martin v. Löwis11437992002-04-12 09:54:033765 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:483766 # We chose a different compiler from the bogus one.
3767 # However, it has the same basename, so the bogon will be chosen
3768 # first if we set CC to just the basename; use the full file name.
3769 shift
Skip Montanaro6dead952003-09-25 14:50:043770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:483771 fi
3772fi
3773fi
3774fi
Martin v. Löwis11437992002-04-12 09:54:033775CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:483776if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483779else
Matthias Kloseb9621712010-04-24 17:59:493780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483782fi
3783
Thomas Wouters47b49bf2007-08-30 22:15:333784
Martin v. Löwis11437992002-04-12 09:54:033785fi
3786if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
Thomas Wouters47b49bf2007-08-30 22:15:333788 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033789 do
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093794if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493795 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:333796else
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3799else
Martin v. Löwis11437992002-04-12 09:54:033800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493805 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033809 break 2
Guido van Rossumf78abae1997-01-21 22:02:363810 fi
Martin v. Löwis11437992002-04-12 09:54:033811done
Matthias Kloseb9621712010-04-24 17:59:493812 done
Thomas Wouters47b49bf2007-08-30 22:15:333813IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033814
3815fi
3816fi
3817CC=$ac_cv_prog_CC
3818if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033821else
Matthias Kloseb9621712010-04-24 17:59:493822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173824fi
3825
Thomas Wouters47b49bf2007-08-30 22:15:333826
Martin v. Löwis11437992002-04-12 09:54:033827 test -n "$CC" && break
3828 done
3829fi
3830if test -z "$CC"; then
3831 ac_ct_CC=$CC
Thomas Wouters47b49bf2007-08-30 22:15:333832 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033833do
3834 # Extract the first word of "$ac_prog", so it can be a program name with args.
3835set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093838if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493839 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033840else
3841 if test -n "$ac_ct_CC"; then
3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493849 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033851 ac_cv_prog_ac_ct_CC="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033853 break 2
3854 fi
3855done
Matthias Kloseb9621712010-04-24 17:59:493856 done
Thomas Wouters47b49bf2007-08-30 22:15:333857IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:173858
Martin v. Löwis11437992002-04-12 09:54:033859fi
3860fi
3861ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3864$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033865else
Matthias Kloseb9621712010-04-24 17:59:493866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033868fi
Michael W. Hudson54241132001-12-07 15:38:263869
Thomas Wouters47b49bf2007-08-30 22:15:333870
Martin v. Löwis11437992002-04-12 09:54:033871 test -n "$ac_ct_CC" && break
3872done
Michael W. Hudson54241132001-12-07 15:38:263873
Thomas Wouters47b49bf2007-08-30 22:15:333874 if test "x$ac_ct_CC" = x; then
3875 CC=""
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878yes:)
Matthias Kloseb9621712010-04-24 17:59:493879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333881ac_tool_warned=yes ;;
3882esac
3883 CC=$ac_ct_CC
3884 fi
Martin v. Löwis11437992002-04-12 09:54:033885fi
3886
3887fi
3888
3889
Matthias Kloseb9621712010-04-24 17:59:493890test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:303892as_fn_error $? "no acceptable C compiler found in \$PATH
Victor Stinnere0be4232011-10-25 11:06:093893See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:033894
3895# Provide some information about the compiler.
Matthias Kloseb9621712010-04-24 17:59:493896$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3897set X $ac_compile
3898ac_compiler=$2
3899for ac_option in --version -v -V -qversion; do
3900 { { ac_try="$ac_compiler $ac_option >&5"
Thomas Wouters47b49bf2007-08-30 22:15:333901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
Matthias Kloseb9621712010-04-24 17:59:493905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Martin v. Löwis11437992002-04-12 09:54:033908 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493909 if test -s conftest.err; then
3910 sed '10a\
3911... rest of stderr output deleted ...
3912 10q' conftest.err >conftest.er1
3913 cat conftest.er1 >&5
3914 fi
3915 rm -f conftest.er1 conftest.err
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }
3918done
Martin v. Löwis11437992002-04-12 09:54:033919
Matthias Kloseb9621712010-04-24 17:59:493920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:043921/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:173922
Martin v. Löwis11437992002-04-12 09:54:033923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931ac_clean_files_save=$ac_clean_files
Matthias Kloseb9621712010-04-24 17:59:493932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:033933# Try to create an executable without -o first, disregard a.out.
3934# It will help us diagnose broken compilers, and finding out an intuition
3935# of exeext.
Matthias Kloseb9621712010-04-24 17:59:493936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3937$as_echo_n "checking whether the C compiler works... " >&6; }
3938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3939
3940# The possible output files:
3941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3942
Thomas Wouters47b49bf2007-08-30 22:15:333943ac_rmfiles=
3944for ac_file in $ac_files
3945do
3946 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters47b49bf2007-08-30 22:15:333948 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3949 esac
3950done
3951rm -f $ac_rmfiles
3952
Matthias Kloseb9621712010-04-24 17:59:493953if { { ac_try="$ac_link_default"
Thomas Wouters47b49bf2007-08-30 22:15:333954case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957esac
Matthias Kloseb9621712010-04-24 17:59:493958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:333960 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:033961 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:333964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3966# in a Makefile. We should not override ac_cv_exeext if it was cached,
3967# so that the user can short-circuit this test for compilers unknown to
3968# Autoconf.
3969for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:043970do
3971 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:033972 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Thomas Wouters1ba5b3b2006-06-08 14:52:473974 ;;
3975 [ab].out )
3976 # We found the default executable, but exeext='' is most
3977 # certainly right.
3978 break;;
3979 *.* )
Matthias Kloseb9621712010-04-24 17:59:493980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Thomas Wouters47b49bf2007-08-30 22:15:333981 then :; else
3982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 fi
3984 # We set ac_cv_exeext here because the later test for it is not
3985 # safe: cross compilers may not add the suffix if given an `-o'
3986 # argument, so we may need to know it at that point already.
3987 # Even if this section looks crufty: it has the advantage of
3988 # actually working.
Thomas Wouters1ba5b3b2006-06-08 14:52:473989 break;;
3990 * )
3991 break;;
Martin v. Löwis11437992002-04-12 09:54:033992 esac
3993done
Thomas Wouters47b49bf2007-08-30 22:15:333994test "$ac_cv_exeext" = no && ac_cv_exeext=
3995
Guido van Rossume6c2cf11999-01-08 21:08:333996else
Thomas Wouters47b49bf2007-08-30 22:15:333997 ac_file=''
3998fi
Matthias Kloseb9621712010-04-24 17:59:493999if test -z "$ac_file"; then :
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044003sed 's/^/| /' conftest.$ac_ext >&5
4004
Matthias Kloseb9621712010-04-24 17:59:494005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304007as_fn_error 77 "C compiler cannot create executables
Victor Stinnere0be4232011-10-25 11:06:094008See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:494009else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011$as_echo "yes" >&6; }
Michael W. Hudson54241132001-12-07 15:38:264012fi
Matthias Kloseb9621712010-04-24 17:59:494013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4014$as_echo_n "checking for C compiler default output file name... " >&6; }
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4016$as_echo "$ac_file" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:474017ac_exeext=$ac_cv_exeext
Thomas Wouters1ba5b3b2006-06-08 14:52:474018
Matthias Kloseb9621712010-04-24 17:59:494019rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Thomas Wouters1ba5b3b2006-06-08 14:52:474020ac_clean_files=$ac_clean_files_save
Matthias Kloseb9621712010-04-24 17:59:494021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4022$as_echo_n "checking for suffix of executables... " >&6; }
4023if { { ac_try="$ac_link"
Thomas Wouters47b49bf2007-08-30 22:15:334024case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
Matthias Kloseb9621712010-04-24 17:59:494028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:334030 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034031 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }; then :
Thomas Wouters1ba5b3b2006-06-08 14:52:474034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4035# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4036# work properly (i.e., refer to `conftest.exe'), while it won't with
4037# `rm'.
4038for ac_file in conftest.exe conftest conftest.*; do
4039 test -f "$ac_file" || continue
4040 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters1ba5b3b2006-06-08 14:52:474042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4043 break;;
4044 * ) break;;
4045 esac
4046done
Guido van Rossum76be6ed1995-01-02 18:33:544047else
Matthias Kloseb9621712010-04-24 17:59:494048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304050as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Victor Stinnere0be4232011-10-25 11:06:094051See \`config.log' for more details" "$LINENO" 5; }
Michael W. Hudson54241132001-12-07 15:38:264052fi
Matthias Kloseb9621712010-04-24 17:59:494053rm -f conftest conftest$ac_cv_exeext
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4055$as_echo "$ac_cv_exeext" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:474056
4057rm -f conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034058EXEEXT=$ac_cv_exeext
4059ac_exeext=$EXEEXT
Matthias Kloseb9621712010-04-24 17:59:494060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h. */
4062#include <stdio.h>
4063int
4064main ()
4065{
4066FILE *f = fopen ("conftest.out", "w");
4067 return ferror (f) || fclose (f) != 0;
4068
4069 ;
4070 return 0;
4071}
Thomas Wouters1ba5b3b2006-06-08 14:52:474072_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494073ac_clean_files="$ac_clean_files conftest.out"
4074# Check that the compiler produces executables we can run. If not, either
4075# the compiler is broken, or we cross compile.
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4077$as_echo_n "checking whether we are cross compiling... " >&6; }
4078if test "$cross_compiling" != yes; then
4079 { { ac_try="$ac_link"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085$as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_link") 2>&5
4087 ac_status=$?
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 if { ac_try='./conftest$ac_cv_exeext'
4091 { { case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096$as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }; }; then
4101 cross_compiling=no
4102 else
4103 if test "$cross_compiling" = maybe; then
4104 cross_compiling=yes
4105 else
4106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304108as_fn_error $? "cannot run C compiled programs.
Matthias Kloseb9621712010-04-24 17:59:494109If you meant to cross compile, use \`--host'.
Victor Stinnere0be4232011-10-25 11:06:094110See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:494111 fi
4112 fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4115$as_echo "$cross_compiling" >&6; }
4116
4117rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4118ac_clean_files=$ac_clean_files_save
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4120$as_echo_n "checking for suffix of object files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094121if ${ac_cv_objext+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494122 $as_echo_n "(cached) " >&6
4123else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters1ba5b3b2006-06-08 14:52:474125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135rm -f conftest.o conftest.obj
Matthias Kloseb9621712010-04-24 17:59:494136if { { ac_try="$ac_compile"
Thomas Wouters47b49bf2007-08-30 22:15:334137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
Matthias Kloseb9621712010-04-24 17:59:494141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:334143 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034144 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:334147 for ac_file in conftest.o conftest.obj conftest.*; do
4148 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:034149 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:034151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4152 break;;
4153 esac
4154done
4155else
Matthias Kloseb9621712010-04-24 17:59:494156 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044157sed 's/^/| /' conftest.$ac_ext >&5
4158
Matthias Kloseb9621712010-04-24 17:59:494159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304161as_fn_error $? "cannot compute suffix of object files: cannot compile
Victor Stinnere0be4232011-10-25 11:06:094162See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:034163fi
Thomas Wouters1ba5b3b2006-06-08 14:52:474164rm -f conftest.$ac_cv_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034165fi
Matthias Kloseb9621712010-04-24 17:59:494166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4167$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034168OBJEXT=$ac_cv_objext
4169ac_objext=$OBJEXT
Matthias Kloseb9621712010-04-24 17:59:494170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4171$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094172if ${ac_cv_c_compiler_gnu+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494173 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034174else
Matthias Kloseb9621712010-04-24 17:59:494175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044176/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034177
Martin v. Löwis11437992002-04-12 09:54:034178int
4179main ()
4180{
4181#ifndef __GNUC__
4182 choke me
4183#endif
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494189if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034190 ac_compiler_gnu=yes
4191else
Matthias Kloseb9621712010-04-24 17:59:494192 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:034193fi
Thomas Wouters47b49bf2007-08-30 22:15:334194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034195ac_cv_c_compiler_gnu=$ac_compiler_gnu
4196
4197fi
Matthias Kloseb9621712010-04-24 17:59:494198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4199$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4200if test $ac_compiler_gnu = yes; then
4201 GCC=yes
4202else
4203 GCC=
4204fi
Martin v. Löwis11437992002-04-12 09:54:034205ac_test_CFLAGS=${CFLAGS+set}
4206ac_save_CFLAGS=$CFLAGS
Matthias Kloseb9621712010-04-24 17:59:494207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4208$as_echo_n "checking whether $CC accepts -g... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094209if ${ac_cv_prog_cc_g+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494210 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034211else
Thomas Wouters47b49bf2007-08-30 22:15:334212 ac_save_c_werror_flag=$ac_c_werror_flag
4213 ac_c_werror_flag=yes
4214 ac_cv_prog_cc_g=no
4215 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044217/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034218
Martin v. Löwis11437992002-04-12 09:54:034219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494227if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumf78abae1997-01-21 22:02:364228 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:544229else
Matthias Kloseb9621712010-04-24 17:59:494230 CFLAGS=""
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334232/* end confdefs.h. */
4233
4234int
4235main ()
4236{
4237
4238 ;
4239 return 0;
4240}
4241_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494242if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334243
Matthias Kloseb9621712010-04-24 17:59:494244else
4245 ac_c_werror_flag=$ac_save_c_werror_flag
Thomas Wouters47b49bf2007-08-30 22:15:334246 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334248/* end confdefs.h. */
4249
4250int
4251main ()
4252{
4253
4254 ;
4255 return 0;
4256}
4257_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494258if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334259 ac_cv_prog_cc_g=yes
Guido van Rossum627b2d71993-12-24 10:39:164260fi
Thomas Wouters47b49bf2007-08-30 22:15:334261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:544262fi
Thomas Wouters47b49bf2007-08-30 22:15:334263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264fi
Thomas Wouters47b49bf2007-08-30 22:15:334265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 ac_c_werror_flag=$ac_save_c_werror_flag
4267fi
Matthias Kloseb9621712010-04-24 17:59:494268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4269$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:334270if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:034271 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:334272elif test $ac_cv_prog_cc_g = yes; then
4273 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:364274 CFLAGS="-g -O2"
4275 else
Guido van Rossume6c2cf11999-01-08 21:08:334276 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:544277 fi
4278else
Guido van Rossume6c2cf11999-01-08 21:08:334279 if test "$GCC" = yes; then
4280 CFLAGS="-O2"
4281 else
4282 CFLAGS=
4283 fi
Guido van Rossum76be6ed1995-01-02 18:33:544284fi
Matthias Kloseb9621712010-04-24 17:59:494285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4286$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094287if ${ac_cv_prog_cc_c89+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494288 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:044289else
Thomas Wouters47b49bf2007-08-30 22:15:334290 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:044291ac_save_CC=$CC
Matthias Kloseb9621712010-04-24 17:59:494292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044293/* end confdefs.h. */
4294#include <stdarg.h>
4295#include <stdio.h>
Ross Lagerwall1b863eb2012-10-29 17:31:544296struct stat;
Skip Montanaro6dead952003-09-25 14:50:044297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4298struct buf { int x; };
4299FILE * (*rcsopen) (struct buf *, struct stat *, int);
4300static char *e (p, i)
4301 char **p;
4302 int i;
4303{
4304 return p[i];
4305}
4306static char *f (char * (*g) (char **, int), char **p, ...)
4307{
4308 char *s;
4309 va_list v;
4310 va_start (v,p);
4311 s = g (p, va_arg (v,int));
4312 va_end (v);
4313 return s;
4314}
Skip Montanarof0d5f792004-08-15 14:08:234315
4316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4317 function prototypes and stuff, but not '\xHH' hex character constants.
4318 These don't provoke an error unfortunately, instead are silently treated
Thomas Wouters47b49bf2007-08-30 22:15:334319 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:234320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4321 array size at least. It's necessary to write '\x00'==0 to get something
Thomas Wouters47b49bf2007-08-30 22:15:334322 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:234323int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4324
Thomas Wouters47b49bf2007-08-30 22:15:334325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4326 inside strings and character constants. */
4327#define FOO(x) 'x'
4328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4329
Skip Montanaro6dead952003-09-25 14:50:044330int test (int i, double x);
4331struct s1 {int (*f) (int a);};
4332struct s2 {int (*f) (double a);};
4333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4334int argc;
4335char **argv;
4336int
4337main ()
4338{
4339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4340 ;
4341 return 0;
4342}
4343_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:334344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:044346do
4347 CC="$ac_save_CC $ac_arg"
Matthias Kloseb9621712010-04-24 17:59:494348 if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334349 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:044350fi
Thomas Wouters47b49bf2007-08-30 22:15:334351rm -f core conftest.err conftest.$ac_objext
4352 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:044353done
Thomas Wouters47b49bf2007-08-30 22:15:334354rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044355CC=$ac_save_CC
4356
4357fi
Thomas Wouters47b49bf2007-08-30 22:15:334358# AC_CACHE_VAL
4359case "x$ac_cv_prog_cc_c89" in
4360 x)
Matthias Kloseb9621712010-04-24 17:59:494361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4362$as_echo "none needed" >&6; } ;;
Thomas Wouters47b49bf2007-08-30 22:15:334363 xno)
Matthias Kloseb9621712010-04-24 17:59:494364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4365$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044366 *)
Thomas Wouters47b49bf2007-08-30 22:15:334367 CC="$CC $ac_cv_prog_cc_c89"
Matthias Kloseb9621712010-04-24 17:59:494368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4369$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044370esac
Matthias Kloseb9621712010-04-24 17:59:494371if test "x$ac_cv_prog_cc_c89" != xno; then :
Skip Montanaro6dead952003-09-25 14:50:044372
Matthias Kloseb9621712010-04-24 17:59:494373fi
Skip Montanaro6dead952003-09-25 14:50:044374
Martin v. Löwis11437992002-04-12 09:54:034375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:544380
doko@ubuntu.comd3899c12015-04-15 18:23:144381ac_ext=c
4382ac_cpp='$CPP $CPPFLAGS'
4383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4387$as_echo_n "checking how to run the C preprocessor... " >&6; }
4388# On Suns, sometimes $CPP names a directory.
4389if test -n "$CPP" && test -d "$CPP"; then
4390 CPP=
4391fi
4392if test -z "$CPP"; then
4393 if ${ac_cv_prog_CPP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395else
4396 # Double quotes because CPP needs to be expanded
4397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4398 do
4399 ac_preproc_ok=false
4400for ac_c_preproc_warn_flag in '' yes
4401do
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410#ifdef __STDC__
4411# include <limits.h>
4412#else
4413# include <assert.h>
4414#endif
4415 Syntax error
4416_ACEOF
4417if ac_fn_c_try_cpp "$LINENO"; then :
4418
4419else
4420 # Broken: fails on valid input.
4421continue
4422fi
4423rm -f conftest.err conftest.i conftest.$ac_ext
4424
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
4429#include <ac_nonexistent.h>
4430_ACEOF
4431if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4433continue
4434else
4435 # Passes both tests.
4436ac_preproc_ok=:
4437break
4438fi
4439rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441done
4442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443rm -f conftest.i conftest.err conftest.$ac_ext
4444if $ac_preproc_ok; then :
4445 break
4446fi
4447
4448 done
4449 ac_cv_prog_CPP=$CPP
4450
4451fi
4452 CPP=$ac_cv_prog_CPP
4453else
4454 ac_cv_prog_CPP=$CPP
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4457$as_echo "$CPP" >&6; }
4458ac_preproc_ok=false
4459for ac_c_preproc_warn_flag in '' yes
4460do
4461 # Use a header file that comes with gcc, so configuring glibc
4462 # with a fresh cross-compiler works.
4463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4464 # <limits.h> exists even on freestanding compilers.
4465 # On the NeXT, cc -E runs the code through the compiler's parser,
4466 # not just through cpp. "Syntax error" is here to catch this case.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h. */
4469#ifdef __STDC__
4470# include <limits.h>
4471#else
4472# include <assert.h>
4473#endif
4474 Syntax error
4475_ACEOF
4476if ac_fn_c_try_cpp "$LINENO"; then :
4477
4478else
4479 # Broken: fails on valid input.
4480continue
4481fi
4482rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */
4488#include <ac_nonexistent.h>
4489_ACEOF
4490if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: success on invalid input.
4492continue
4493else
4494 # Passes both tests.
4495ac_preproc_ok=:
4496break
4497fi
4498rm -f conftest.err conftest.i conftest.$ac_ext
4499
4500done
4501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4502rm -f conftest.i conftest.err conftest.$ac_ext
4503if $ac_preproc_ok; then :
4504
4505else
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4509See \`config.log' for more details" "$LINENO" 5; }
4510fi
4511
4512ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4519$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520if ${ac_cv_path_GREP+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522else
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_GREP" || continue
4535# Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537case `"$ac_path_GREP" --version 2>&1` in
4538*GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540*)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561esac
4562
4563 $ac_path_GREP_found && break 3
4564 done
4565 done
4566 done
4567IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571else
4572 ac_cv_path_GREP=$GREP
4573fi
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4577$as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4579
4580
Łukasz Langaa785c872016-09-10 00:37:374581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4582$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4583if ${ac_cv_path_SED+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4587 for ac_i in 1 2 3 4 5 6 7; do
4588 ac_script="$ac_script$as_nl$ac_script"
4589 done
4590 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4591 { ac_script=; unset ac_script;}
4592 if test -z "$SED"; then
4593 ac_path_SED_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in sed gsed; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4603 as_fn_executable_p "$ac_path_SED" || continue
4604# Check for GNU ac_path_SED and select it if it is found.
4605 # Check for GNU $ac_path_SED
4606case `"$ac_path_SED" --version 2>&1` in
4607*GNU*)
4608 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4609*)
4610 ac_count=0
4611 $as_echo_n 0123456789 >"conftest.in"
4612 while :
4613 do
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo '' >> "conftest.nl"
4618 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_SED_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_SED="$ac_path_SED"
4624 ac_path_SED_max=$ac_count
4625 fi
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4628 done
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630esac
4631
4632 $ac_path_SED_found && break 3
4633 done
4634 done
4635 done
4636IFS=$as_save_IFS
4637 if test -z "$ac_cv_path_SED"; then
4638 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4639 fi
4640else
4641 ac_cv_path_SED=$SED
4642fi
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4646$as_echo "$ac_cv_path_SED" >&6; }
4647 SED="$ac_cv_path_SED"
4648 rm -f conftest.sed
4649
Martin v. Löwis1d5ecb72001-08-09 10:29:444650
Thomas Wouters49fd7fa2006-04-21 10:40:584651
4652
Matthias Kloseb9621712010-04-24 17:59:494653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4654$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584655
Thomas Wouters47b49bf2007-08-30 22:15:334656# Check whether --with-cxx_main was given.
Matthias Kloseb9621712010-04-24 17:59:494657if test "${with_cxx_main+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:334658 withval=$with_cxx_main;
Thomas Wouters49fd7fa2006-04-21 10:40:584659
4660 case $withval in
4661 no) with_cxx_main=no
4662 MAINCC='$(CC)';;
4663 yes) with_cxx_main=yes
4664 MAINCC='$(CXX)';;
4665 *) with_cxx_main=yes
4666 MAINCC=$withval
4667 if test -z "$CXX"
4668 then
4669 CXX=$withval
4670 fi;;
4671 esac
4672else
4673
4674 with_cxx_main=no
4675 MAINCC='$(CC)'
4676
Thomas Wouters47b49bf2007-08-30 22:15:334677fi
4678
Matthias Kloseb9621712010-04-24 17:59:494679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4680$as_echo "$with_cxx_main" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584681
4682preset_cxx="$CXX"
4683if test -z "$CXX"
4684then
4685 case "$CC" in
doko@ubuntu.com51f65942012-06-30 12:42:464686 gcc) if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}g++; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_path_CXX+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 case $CXX in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4697 ;;
4698 *)
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in notfound
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464706 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711 done
4712IFS=$as_save_IFS
4713
4714 ;;
4715esac
4716fi
4717CXX=$ac_cv_path_CXX
4718if test -n "$CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4720$as_echo "$CXX" >&6; }
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726
4727fi
4728if test -z "$ac_cv_path_CXX"; then
4729 ac_pt_CXX=$CXX
4730 # Extract the first word of "g++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584731set dummy g++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464734if ${ac_cv_path_ac_pt_CXX+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 case $ac_pt_CXX in
4738 [\\/]* | ?:[\\/]*)
4739 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4740 ;;
4741 *)
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in notfound
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464749 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754 done
4755IFS=$as_save_IFS
4756
4757 ;;
4758esac
4759fi
4760ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4761if test -n "$ac_pt_CXX"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4763$as_echo "$ac_pt_CXX" >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769 if test "x$ac_pt_CXX" = x; then
4770 CXX="g++"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773yes:)
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776ac_tool_warned=yes ;;
4777esac
4778 CXX=$ac_pt_CXX
4779 fi
4780else
4781 CXX="$ac_cv_path_CXX"
4782fi
4783 ;;
4784 cc) if test -n "$ac_tool_prefix"; then
4785 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4786set dummy ${ac_tool_prefix}c++; ac_word=$2
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094789if ${ac_cv_path_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494790 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584791else
4792 case $CXX in
4793 [\\/]* | ?:[\\/]*)
4794 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4795 ;;
4796 *)
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in notfound
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494802 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Thomas Wouters49fd7fa2006-04-21 10:40:584804 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584806 break 2
4807 fi
4808done
Matthias Kloseb9621712010-04-24 17:59:494809 done
Thomas Wouters47b49bf2007-08-30 22:15:334810IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584811
Thomas Wouters49fd7fa2006-04-21 10:40:584812 ;;
4813esac
4814fi
4815CXX=$ac_cv_path_CXX
Skip Montanaroeb33e5a2007-08-17 12:57:414816if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:494817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4818$as_echo "$CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414819else
Matthias Kloseb9621712010-04-24 17:59:494820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414822fi
Thomas Wouters47b49bf2007-08-30 22:15:334823
doko@ubuntu.com51f65942012-06-30 12:42:464824
4825fi
4826if test -z "$ac_cv_path_CXX"; then
4827 ac_pt_CXX=$CXX
4828 # Extract the first word of "c++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584829set dummy c++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464832if ${ac_cv_path_ac_pt_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494833 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584834else
doko@ubuntu.com51f65942012-06-30 12:42:464835 case $ac_pt_CXX in
Thomas Wouters49fd7fa2006-04-21 10:40:584836 [\\/]* | ?:[\\/]*)
doko@ubuntu.com51f65942012-06-30 12:42:464837 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
Thomas Wouters49fd7fa2006-04-21 10:40:584838 ;;
4839 *)
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in notfound
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494845 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464847 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584849 break 2
4850 fi
4851done
Matthias Kloseb9621712010-04-24 17:59:494852 done
Thomas Wouters47b49bf2007-08-30 22:15:334853IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584854
Thomas Wouters49fd7fa2006-04-21 10:40:584855 ;;
4856esac
4857fi
doko@ubuntu.com51f65942012-06-30 12:42:464858ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4859if test -n "$ac_pt_CXX"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4861$as_echo "$ac_pt_CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414862else
Matthias Kloseb9621712010-04-24 17:59:494863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414865fi
Thomas Wouters47b49bf2007-08-30 22:15:334866
doko@ubuntu.com51f65942012-06-30 12:42:464867 if test "x$ac_pt_CXX" = x; then
4868 CXX="c++"
4869 else
4870 case $cross_compiling:$ac_tool_warned in
4871yes:)
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4874ac_tool_warned=yes ;;
4875esac
4876 CXX=$ac_pt_CXX
4877 fi
4878else
4879 CXX="$ac_cv_path_CXX"
4880fi
Thomas Wouters49fd7fa2006-04-21 10:40:584881 ;;
doko@ubuntu.com51f65942012-06-30 12:42:464882 clang|*/clang) if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4884set dummy ${ac_tool_prefix}clang++; ac_word=$2
Ned Deilycbfb9a52012-06-23 23:02:194885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if ${ac_cv_path_CXX+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 case $CXX in
4891 [\\/]* | ?:[\\/]*)
4892 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4893 ;;
4894 *)
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in notfound
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deilycbfb9a52012-06-23 23:02:194902 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906done
4907 done
4908IFS=$as_save_IFS
4909
Ned Deilycbfb9a52012-06-23 23:02:194910 ;;
4911esac
4912fi
4913CXX=$ac_cv_path_CXX
4914if test -n "$CXX"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4916$as_echo "$CXX" >&6; }
4917else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
doko@ubuntu.com51f65942012-06-30 12:42:464922
4923fi
4924if test -z "$ac_cv_path_CXX"; then
4925 ac_pt_CXX=$CXX
4926 # Extract the first word of "clang++", so it can be a program name with args.
4927set dummy clang++; ac_word=$2
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929$as_echo_n "checking for $ac_word... " >&6; }
4930if ${ac_cv_path_ac_pt_CXX+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932else
4933 case $ac_pt_CXX in
4934 [\\/]* | ?:[\\/]*)
4935 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4936 ;;
4937 *)
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in notfound
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464945 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949done
4950 done
4951IFS=$as_save_IFS
4952
4953 ;;
4954esac
4955fi
4956ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4957if test -n "$ac_pt_CXX"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4959$as_echo "$ac_pt_CXX" >&6; }
4960else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963fi
4964
4965 if test "x$ac_pt_CXX" = x; then
4966 CXX="clang++"
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969yes:)
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972ac_tool_warned=yes ;;
4973esac
4974 CXX=$ac_pt_CXX
4975 fi
4976else
4977 CXX="$ac_cv_path_CXX"
4978fi
Ned Deilycbfb9a52012-06-23 23:02:194979 ;;
Zachary Ware5af85642015-12-21 18:09:174980 icc|*/icc) if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}icpc; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_path_CXX+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 case $CXX in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in notfound
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005 done
5006IFS=$as_save_IFS
5007
5008 ;;
5009esac
5010fi
5011CXX=$ac_cv_path_CXX
5012if test -n "$CXX"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5014$as_echo "$CXX" >&6; }
5015else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020
5021fi
5022if test -z "$ac_cv_path_CXX"; then
5023 ac_pt_CXX=$CXX
5024 # Extract the first word of "icpc", so it can be a program name with args.
5025set dummy icpc; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if ${ac_cv_path_ac_pt_CXX+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 case $ac_pt_CXX in
5032 [\\/]* | ?:[\\/]*)
5033 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
5034 ;;
5035 *)
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in notfound
5038do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047done
5048 done
5049IFS=$as_save_IFS
5050
5051 ;;
5052esac
5053fi
5054ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5055if test -n "$ac_pt_CXX"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5057$as_echo "$ac_pt_CXX" >&6; }
5058else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063 if test "x$ac_pt_CXX" = x; then
5064 CXX="icpc"
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070ac_tool_warned=yes ;;
5071esac
5072 CXX=$ac_pt_CXX
5073 fi
5074else
5075 CXX="$ac_cv_path_CXX"
5076fi
5077 ;;
Thomas Wouters49fd7fa2006-04-21 10:40:585078 esac
5079 if test "$CXX" = "notfound"
5080 then
5081 CXX=""
5082 fi
5083fi
5084if test -z "$CXX"
5085then
doko@ubuntu.com51f65942012-06-30 12:42:465086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5088 do
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:495091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095093if ${ac_cv_prog_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495094 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:585095else
5096 if test -n "$CXX"; then
5097 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495104 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:545105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:495107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:585108 break 2
5109 fi
5110done
Matthias Kloseb9621712010-04-24 17:59:495111 done
Thomas Wouters47b49bf2007-08-30 22:15:335112IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:585113
5114fi
5115fi
5116CXX=$ac_cv_prog_CXX
5117if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:495118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5119$as_echo "$CXX" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585120else
Matthias Kloseb9621712010-04-24 17:59:495121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122$as_echo "no" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585123fi
5124
Thomas Wouters47b49bf2007-08-30 22:15:335125
doko@ubuntu.com51f65942012-06-30 12:42:465126 test -n "$CXX" && break
5127 done
5128fi
5129if test -z "$CXX"; then
5130 ac_ct_CXX=$CXX
5131 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5132do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134set dummy $ac_prog; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139else
5140 if test -n "$ac_ct_CXX"; then
5141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:575149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465150 ac_cv_prog_ac_ct_CXX="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
Thomas Wouters49fd7fa2006-04-21 10:40:585154done
doko@ubuntu.com51f65942012-06-30 12:42:465155 done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5161if test -n "$ac_ct_CXX"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5163$as_echo "$ac_ct_CXX" >&6; }
5164else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170 test -n "$ac_ct_CXX" && break
5171done
5172
5173 if test "x$ac_ct_CXX" = x; then
5174 CXX="notfound"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177yes:)
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180ac_tool_warned=yes ;;
5181esac
5182 CXX=$ac_ct_CXX
5183 fi
5184fi
Thomas Wouters49fd7fa2006-04-21 10:40:585185
5186 if test "$CXX" = "notfound"
5187 then
5188 CXX=""
5189 fi
5190fi
5191if test "$preset_cxx" != "$CXX"
5192then
Christian Heimesfe32aec2013-11-20 00:18:265193 { $as_echo "$as_me:${as_lineno-$LINENO}:
Thomas Wouters49fd7fa2006-04-21 10:40:585194
5195 By default, distutils will build C++ extension modules with \"$CXX\".
5196 If this is not intended, then set CXX on the configure command line.
5197 " >&5
Christian Heimesfe32aec2013-11-20 00:18:265198$as_echo "$as_me:
Thomas Wouters49fd7fa2006-04-21 10:40:585199
5200 By default, distutils will build C++ extension modules with \"$CXX\".
5201 If this is not intended, then set CXX on the configure command line.
Christian Heimesfe32aec2013-11-20 00:18:265202 " >&6;}
Thomas Wouters49fd7fa2006-04-21 10:40:585203fi
5204
5205
doko@ubuntu.comd3899c12015-04-15 18:23:145206MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5210$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5211cat >> conftest.c <<EOF
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055212#undef bfin
5213#undef cris
5214#undef fr30
doko@ubuntu.comd3899c12015-04-15 18:23:145215#undef linux
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055216#undef hppa
5217#undef hpux
doko@ubuntu.comd3899c12015-04-15 18:23:145218#undef i386
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055219#undef mips
doko@ubuntu.com9abe0492015-04-15 21:31:025220#undef powerpc
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055221#undef sparc
doko@ubuntu.comd3899c12015-04-15 18:23:145222#undef unix
doko@ubuntu.com5c38cb22016-09-01 20:05:205223#if defined(__ANDROID__)
Xavier de Gaye32cf1ac2016-12-10 16:31:285224 # Android is not a multiarch system.
doko@ubuntu.com5c38cb22016-09-01 20:05:205225#elif defined(__linux__)
doko@ubuntu.comd3899c12015-04-15 18:23:145226# if defined(__x86_64__) && defined(__LP64__)
5227 x86_64-linux-gnu
5228# elif defined(__x86_64__) && defined(__ILP32__)
5229 x86_64-linux-gnux32
5230# elif defined(__i386__)
5231 i386-linux-gnu
5232# elif defined(__aarch64__) && defined(__AARCH64EL__)
5233# if defined(__ILP32__)
5234 aarch64_ilp32-linux-gnu
5235# else
5236 aarch64-linux-gnu
5237# endif
5238# elif defined(__aarch64__) && defined(__AARCH64EB__)
5239# if defined(__ILP32__)
5240 aarch64_be_ilp32-linux-gnu
5241# else
5242 aarch64_be-linux-gnu
5243# endif
5244# elif defined(__alpha__)
5245 alpha-linux-gnu
5246# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5247# if defined(__ARMEL__)
5248 arm-linux-gnueabihf
5249# else
5250 armeb-linux-gnueabihf
5251# endif
5252# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5253# if defined(__ARMEL__)
5254 arm-linux-gnueabi
5255# else
5256 armeb-linux-gnueabi
5257# endif
5258# elif defined(__hppa__)
5259 hppa-linux-gnu
5260# elif defined(__ia64__)
5261 ia64-linux-gnu
5262# elif defined(__m68k__) && !defined(__mcoldfire__)
5263 m68k-linux-gnu
5264# elif defined(__mips_hard_float) && defined(_MIPSEL)
5265# if _MIPS_SIM == _ABIO32
5266 mipsel-linux-gnu
5267# elif _MIPS_SIM == _ABIN32
5268 mips64el-linux-gnuabin32
5269# elif _MIPS_SIM == _ABI64
5270 mips64el-linux-gnuabi64
5271# else
5272# error unknown platform triplet
5273# endif
5274# elif defined(__mips_hard_float)
5275# if _MIPS_SIM == _ABIO32
5276 mips-linux-gnu
5277# elif _MIPS_SIM == _ABIN32
5278 mips64-linux-gnuabin32
5279# elif _MIPS_SIM == _ABI64
5280 mips64-linux-gnuabi64
5281# else
5282# error unknown platform triplet
5283# endif
5284# elif defined(__or1k__)
5285 or1k-linux-gnu
5286# elif defined(__powerpc__) && defined(__SPE__)
5287 powerpc-linux-gnuspe
5288# elif defined(__powerpc64__)
5289# if defined(__LITTLE_ENDIAN__)
5290 powerpc64le-linux-gnu
5291# else
5292 powerpc64-linux-gnu
5293# endif
5294# elif defined(__powerpc__)
5295 powerpc-linux-gnu
5296# elif defined(__s390x__)
5297 s390x-linux-gnu
5298# elif defined(__s390__)
5299 s390-linux-gnu
5300# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5301 sh4-linux-gnu
5302# elif defined(__sparc__) && defined(__arch64__)
5303 sparc64-linux-gnu
5304# elif defined(__sparc__)
5305 sparc-linux-gnu
5306# else
5307# error unknown platform triplet
5308# endif
5309#elif defined(__FreeBSD_kernel__)
5310# if defined(__LP64__)
5311 x86_64-kfreebsd-gnu
5312# elif defined(__i386__)
5313 i386-kfreebsd-gnu
5314# else
5315# error unknown platform triplet
5316# endif
5317#elif defined(__gnu_hurd__)
5318 i386-gnu
Ned Deily3b812482015-04-16 00:11:475319#elif defined(__APPLE__)
5320 darwin
doko@ubuntu.comd3899c12015-04-15 18:23:145321#else
5322# error unknown platform triplet
5323#endif
5324
5325EOF
5326
Xavier de Gaye3a32bdf2016-07-30 09:28:355327if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
doko@ubuntu.comd3899c12015-04-15 18:23:145328 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5330$as_echo "$PLATFORM_TRIPLET" >&6; }
5331else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5333$as_echo "none" >&6; }
5334fi
5335rm -f conftest.c conftest.out
5336
5337if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5338 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5339 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5340 fi
doko@ubuntu.com75b1cb12016-08-29 18:03:255341elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
5342 MULTIARCH=$PLATFORM_TRIPLET
doko@ubuntu.comd3899c12015-04-15 18:23:145343fi
doko@ubuntu.comd3899c12015-04-15 18:23:145344
doko@ubuntu.com55532312016-06-14 06:55:195345if test x$MULTIARCH != x; then
5346 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5347fi
doko@ubuntu.comd3899c12015-04-15 18:23:145348
5349
Martin v. Löwis48e14d32011-05-09 05:37:455350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5351$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5352save_LDFLAGS="$LDFLAGS"
5353LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
Martin v. Löwis11437992002-04-12 09:54:035354
Martin v. Löwis48e14d32011-05-09 05:37:455355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h. */
5357
5358int
5359main ()
5360{
5361
5362 ;
5363 return 0;
5364}
5365_ACEOF
5366if ac_fn_c_try_link "$LINENO"; then :
5367 NO_AS_NEEDED="-Wl,--no-as-needed"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369$as_echo "yes" >&6; }
5370else
5371 NO_AS_NEEDED=""
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374fi
5375rm -f core conftest.err conftest.$ac_objext \
5376 conftest$ac_exeext conftest.$ac_ext
5377LDFLAGS="$save_LDFLAGS"
5378
5379
5380
5381# checks for UNIX variants that set C preprocessor variables
Thomas Wouters47b49bf2007-08-30 22:15:335382
Matthias Kloseb9621712010-04-24 17:59:495383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5384$as_echo_n "checking for egrep... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095385if ${ac_cv_path_EGREP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495386 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:335387else
5388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5389 then ac_cv_path_EGREP="$GREP -E"
5390 else
Matthias Kloseb9621712010-04-24 17:59:495391 if test -z "$EGREP"; then
Thomas Wouters47b49bf2007-08-30 22:15:335392 ac_path_EGREP_found=false
Matthias Kloseb9621712010-04-24 17:59:495393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Thomas Wouters47b49bf2007-08-30 22:15:335395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495399 for ac_prog in egrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Ross Lagerwall1b863eb2012-10-29 17:31:545402 as_fn_executable_p "$ac_path_EGREP" || continue
Matthias Kloseb9621712010-04-24 17:59:495403# Check for GNU ac_path_EGREP and select it if it is found.
Thomas Wouters47b49bf2007-08-30 22:15:335404 # Check for GNU $ac_path_EGREP
5405case `"$ac_path_EGREP" --version 2>&1` in
5406*GNU*)
5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408*)
5409 ac_count=0
Matthias Kloseb9621712010-04-24 17:59:495410 $as_echo_n 0123456789 >"conftest.in"
Thomas Wouters47b49bf2007-08-30 22:15:335411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
Matthias Kloseb9621712010-04-24 17:59:495416 $as_echo 'EGREP' >> "conftest.nl"
Thomas Wouters47b49bf2007-08-30 22:15:335417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Kloseb9621712010-04-24 17:59:495419 as_fn_arith $ac_count + 1 && ac_count=$as_val
Thomas Wouters47b49bf2007-08-30 22:15:335420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429esac
5430
Matthias Kloseb9621712010-04-24 17:59:495431 $ac_path_EGREP_found && break 3
5432 done
Thomas Wouters47b49bf2007-08-30 22:15:335433 done
Matthias Kloseb9621712010-04-24 17:59:495434 done
Thomas Wouters47b49bf2007-08-30 22:15:335435IFS=$as_save_IFS
Matthias Kloseb9621712010-04-24 17:59:495436 if test -z "$ac_cv_path_EGREP"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:305437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:495438 fi
Thomas Wouters47b49bf2007-08-30 22:15:335439else
5440 ac_cv_path_EGREP=$EGREP
5441fi
5442
Thomas Wouters47b49bf2007-08-30 22:15:335443 fi
5444fi
Matthias Kloseb9621712010-04-24 17:59:495445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5446$as_echo "$ac_cv_path_EGREP" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:335447 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:045448
5449
Matthias Kloseb9621712010-04-24 17:59:495450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5451$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095452if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495453 $as_echo_n "(cached) " >&6
5454else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Peterson8719ad52009-09-11 22:24:025456/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:495457#include <stdlib.h>
5458#include <stdarg.h>
5459#include <string.h>
5460#include <float.h>
5461
5462int
5463main ()
5464{
5465
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_header_stdc=yes
5472else
5473 ac_cv_header_stdc=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476
5477if test $ac_cv_header_stdc = yes; then
5478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#include <string.h>
Benjamin Peterson8719ad52009-09-11 22:24:025482
Benjamin Peterson8719ad52009-09-11 22:24:025483_ACEOF
Ronald Oussoren74f29b42009-09-20 20:09:265484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:495485 $EGREP "memchr" >/dev/null 2>&1; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535486
Ronald Oussoren74f29b42009-09-20 20:09:265487else
Matthias Kloseb9621712010-04-24 17:59:495488 ac_cv_header_stdc=no
Ronald Oussoren74f29b42009-09-20 20:09:265489fi
Matthias Klosec80c93f2010-04-24 17:04:355490rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:535491
Matthias Kloseb9621712010-04-24 17:59:495492fi
5493
5494if test $ac_cv_header_stdc = yes; then
5495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498#include <stdlib.h>
5499
5500_ACEOF
5501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "free" >/dev/null 2>&1; then :
5503
5504else
5505 ac_cv_header_stdc=no
5506fi
5507rm -f conftest*
5508
5509fi
5510
5511if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then :
5514 :
5515else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#include <ctype.h>
5519#include <stdlib.h>
5520#if ((' ' & 0x0FF) == 0x020)
5521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523#else
5524# define ISLOWER(c) \
5525 (('a' <= (c) && (c) <= 'i') \
5526 || ('j' <= (c) && (c) <= 'r') \
5527 || ('s' <= (c) && (c) <= 'z'))
5528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529#endif
5530
5531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5532int
5533main ()
5534{
5535 int i;
5536 for (i = 0; i < 256; i++)
5537 if (XOR (islower (i), ISLOWER (i))
5538 || toupper (i) != TOUPPER (i))
5539 return 2;
5540 return 0;
5541}
5542_ACEOF
5543if ac_fn_c_try_run "$LINENO"; then :
5544
5545else
5546 ac_cv_header_stdc=no
5547fi
5548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5549 conftest.$ac_objext conftest.beam conftest.$ac_ext
5550fi
5551
5552fi
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5555$as_echo "$ac_cv_header_stdc" >&6; }
5556if test $ac_cv_header_stdc = yes; then
5557
5558$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5559
5560fi
5561
5562# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5564 inttypes.h stdint.h unistd.h
5565do :
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5568"
Ross Lagerwallb0ae53d2011-06-10 05:30:305569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Matthias Kloseb9621712010-04-24 17:59:495570 cat >>confdefs.h <<_ACEOF
5571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572_ACEOF
5573
5574fi
5575
5576done
5577
5578
5579
5580 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:095581if test "x$ac_cv_header_minix_config_h" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:495582 MINIX=yes
5583else
5584 MINIX=
5585fi
5586
5587
5588 if test "$MINIX" = yes; then
5589
5590$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5591
5592
5593$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5594
5595
5596$as_echo "#define _MINIX 1" >>confdefs.h
5597
5598 fi
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5602$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095603if ${ac_cv_safe_to_define___extensions__+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495604 $as_echo_n "(cached) " >&6
5605else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607/* end confdefs.h. */
5608
Ross Lagerwall1b863eb2012-10-29 17:31:545609# define __EXTENSIONS__ 1
5610 $ac_includes_default
Matthias Kloseb9621712010-04-24 17:59:495611int
5612main ()
5613{
5614
5615 ;
5616 return 0;
5617}
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620 ac_cv_safe_to_define___extensions__=yes
5621else
5622 ac_cv_safe_to_define___extensions__=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5627$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5628 test $ac_cv_safe_to_define___extensions__ = yes &&
5629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5630
5631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5632
5633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5634
5635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5636
5637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5638
5639
Alexandre Vassalotti302825b2009-07-17 07:49:535640
Xavier de Gaye95750b12016-07-09 09:05:425641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5642$as_echo_n "checking for the Android API level... " >&6; }
5643cat >> conftest.c <<EOF
5644#ifdef __ANDROID__
5645#include <android/api-level.h>
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; }
5658
5659cat >>confdefs.h <<_ACEOF
5660#define ANDROID_API_LEVEL $ANDROID_API_LEVEL
5661_ACEOF
5662
Xavier de Gaye2a352b62017-01-04 20:51:165663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5665$as_echo_n "checking for the Android arm ABI... " >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5667$as_echo "$_arm_arch" >&6; }
5668 if test "$_arm_arch" = 7; then
5669 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5670 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5671 fi
Xavier de Gaye95750b12016-07-09 09:05:425672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5674$as_echo "not Android" >&6; }
5675fi
5676rm -f conftest.c conftest.out
5677
Alexandre Vassalotti302825b2009-07-17 07:49:535678# Check for unsupported systems
5679case $ac_sys_system/$ac_sys_release in
5680atheos*|Linux*/1*)
5681 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5682 echo See README for details.
5683 exit 1;;
5684esac
5685
5686
Matthias Kloseb9621712010-04-24 17:59:495687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5688$as_echo_n "checking for --with-suffix... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535689
5690# Check whether --with-suffix was given.
Matthias Kloseb9621712010-04-24 17:59:495691if test "${with_suffix+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535692 withval=$with_suffix;
5693 case $withval in
5694 no) EXEEXT=;;
5695 yes) EXEEXT=.exe;;
5696 *) EXEEXT=$withval;;
5697 esac
5698fi
5699
Matthias Kloseb9621712010-04-24 17:59:495700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5701$as_echo "$EXEEXT" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535702
5703# Test whether we're running on a non-case-sensitive system, in which
5704# case we give a warning if no ext is given
5705
Matthias Kloseb9621712010-04-24 17:59:495706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5707$as_echo_n "checking for case-insensitive build directory... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535708if test ! -d CaseSensitiveTestDir; then
5709mkdir CaseSensitiveTestDir
5710fi
5711
5712if test -d casesensitivetestdir
5713then
Matthias Kloseb9621712010-04-24 17:59:495714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5715$as_echo "yes" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535716 BUILDEXEEXT=.exe
5717else
Matthias Kloseb9621712010-04-24 17:59:495718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535720 BUILDEXEEXT=$EXEEXT
5721fi
5722rmdir CaseSensitiveTestDir
5723
5724case $MACHDEP in
5725bsdos*)
5726 case $CC in
5727 gcc) CC="$CC -D_HAVE_BSDI";;
5728 esac;;
5729esac
5730
5731case $ac_sys_system in
5732hp*|HP*)
5733 case $CC in
5734 cc|*/cc) CC="$CC -Ae";;
5735 esac;;
Alexandre Vassalotti302825b2009-07-17 07:49:535736esac
5737
Alexandre Vassalotti302825b2009-07-17 07:49:535738
Matthias Kloseb9621712010-04-24 17:59:495739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5740$as_echo_n "checking LIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535741if test -z "$LIBRARY"
5742then
Barry Warsawf040d7d2010-10-18 17:09:075743 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
Alexandre Vassalotti302825b2009-07-17 07:49:535744fi
Matthias Kloseb9621712010-04-24 17:59:495745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5746$as_echo "$LIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535747
5748# LDLIBRARY is the name of the library to link against (as opposed to the
5749# name of the library into which to insert object files). BLDLIBRARY is also
5750# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5751# is blank as the main program is not linked directly against LDLIBRARY.
5752# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5753# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5754# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5755# DLLLIBRARY is the shared (i.e., DLL) library.
5756#
5757# RUNSHARED is used to run shared python without installed libraries
5758#
5759# INSTSONAME is the name of the shared library that will be use to install
5760# on the system - some systems like version suffix, others don't
Barry Warsaw8cf4eae2010-10-16 01:04:075761#
5762# LDVERSION is the shared library version number, normally the Python version
5763# with the ABI build flags appended.
5764
Alexandre Vassalotti302825b2009-07-17 07:49:535765
5766
5767
5768
5769
5770
Martin v. Löwisd1fc34d2010-12-30 14:55:475771
Alexandre Vassalotti302825b2009-07-17 07:49:535772LDLIBRARY="$LIBRARY"
5773BLDLIBRARY='$(LDLIBRARY)'
5774INSTSONAME='$(LDLIBRARY)'
5775DLLLIBRARY=''
5776LDLIBRARYDIR=''
5777RUNSHARED=''
Barry Warsaw14d98ac2010-11-24 19:43:475778LDVERSION="$VERSION"
Alexandre Vassalotti302825b2009-07-17 07:49:535779
5780# LINKCC is the command that links the python executable -- default is $(CC).
5781# If CXX is set, and if it is needed to link a main function that was
5782# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5783# python might then depend on the C++ runtime
5784# This is altered for AIX in order to build the export list before
5785# linking.
5786
Matthias Kloseb9621712010-04-24 17:59:495787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5788$as_echo_n "checking LINKCC... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535789if test -z "$LINKCC"
5790then
5791 LINKCC='$(PURIFY) $(MAINCC)'
5792 case $ac_sys_system in
5793 AIX*)
5794 exp_extra="\"\""
5795 if test $ac_sys_release -ge 5 -o \
5796 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5797 exp_extra="."
5798 fi
5799 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Alexandre Vassalotti302825b2009-07-17 07:49:535800 QNX*)
5801 # qcc must be used because the other compilers do not
5802 # support -N.
5803 LINKCC=qcc;;
5804 esac
5805fi
Matthias Kloseb9621712010-04-24 17:59:495806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5807$as_echo "$LINKCC" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535808
5809# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5810# make sure we default having it set to "no": this is used by
5811# distutils.unixccompiler to know if it should add --enable-new-dtags
5812# to linker command lines, and failing to detect GNU ld simply results
5813# in the same bahaviour as before.
5814
Matthias Kloseb9621712010-04-24 17:59:495815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5816$as_echo_n "checking for GNU ld... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535817ac_prog=ld
5818if test "$GCC" = yes; then
5819 ac_prog=`$CC -print-prog-name=ld`
5820fi
5821case `"$ac_prog" -V 2>&1 < /dev/null` in
5822 *GNU*)
5823 GNULD=yes;;
5824 *)
5825 GNULD=no;;
5826esac
Matthias Kloseb9621712010-04-24 17:59:495827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5828$as_echo "$GNULD" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535829
Daniel Stutzbacha606faa2010-08-31 19:51:075830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5831$as_echo_n "checking for inline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095832if ${ac_cv_c_inline+:} false; then :
Daniel Stutzbacha606faa2010-08-31 19:51:075833 $as_echo_n "(cached) " >&6
5834else
5835 ac_cv_c_inline=no
5836for ac_kw in inline __inline__ __inline; do
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839#ifndef __cplusplus
5840typedef int foo_t;
5841static $ac_kw foo_t static_foo () {return 0; }
5842$ac_kw foo_t foo () {return 0; }
5843#endif
5844
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847 ac_cv_c_inline=$ac_kw
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 test "$ac_cv_c_inline" != no && break
5851done
5852
5853fi
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5855$as_echo "$ac_cv_c_inline" >&6; }
5856
5857case $ac_cv_c_inline in
5858 inline | yes) ;;
5859 *)
5860 case $ac_cv_c_inline in
5861 no) ac_val=;;
5862 *) ac_val=$ac_cv_c_inline;;
5863 esac
5864 cat >>confdefs.h <<_ACEOF
5865#ifndef __cplusplus
5866#define inline $ac_val
5867#endif
5868_ACEOF
5869 ;;
5870esac
5871
5872if test "$ac_cv_c_inline" != no ; then
Benjamin Petersond7f73e92010-09-05 00:09:075873
5874$as_echo "#define USE_INLINE 1" >>confdefs.h
Daniel Stutzbacha606faa2010-08-31 19:51:075875
5876
5877fi
5878
5879
Matthias Kloseb9621712010-04-24 17:59:495880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5881$as_echo_n "checking for --enable-shared... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535882# Check whether --enable-shared was given.
Matthias Kloseb9621712010-04-24 17:59:495883if test "${enable_shared+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535884 enableval=$enable_shared;
5885fi
5886
5887
5888if test -z "$enable_shared"
5889then
5890 case $ac_sys_system in
Antoine Pitrou6103ab12009-10-24 20:11:215891 CYGWIN*)
Alexandre Vassalotti302825b2009-07-17 07:49:535892 enable_shared="yes";;
5893 *)
5894 enable_shared="no";;
5895 esac
5896fi
Matthias Kloseb9621712010-04-24 17:59:495897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5898$as_echo "$enable_shared" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535899
Matthias Kloseb9621712010-04-24 17:59:495900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5901$as_echo_n "checking for --enable-profiling... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535902# Check whether --enable-profiling was given.
Matthias Kloseb9621712010-04-24 17:59:495903if test "${enable_profiling+set}" = set; then :
doko@ubuntu.comba015832012-06-30 14:52:055904 enableval=$enable_profiling;
5905fi
5906
5907if test "x$enable_profiling" = xyes; then
5908 ac_save_cc="$CC"
Benjamin Peterson615ea1a2013-03-26 12:55:375909 CC="$CC -pg"
Matthias Kloseb9621712010-04-24 17:59:495910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:535911/* end confdefs.h. */
5912int main() { return 0; }
5913_ACEOF
doko@ubuntu.comba015832012-06-30 14:52:055914if ac_fn_c_try_link "$LINENO"; then :
5915
Alexandre Vassalotti302825b2009-07-17 07:49:535916else
doko@ubuntu.comba015832012-06-30 14:52:055917 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535918fi
doko@ubuntu.comba015832012-06-30 14:52:055919rm -f core conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
5921 CC="$ac_save_cc"
5922else
5923 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535924fi
doko@ubuntu.comba015832012-06-30 14:52:055925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5926$as_echo "$enable_profiling" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535927
doko@ubuntu.comba015832012-06-30 14:52:055928if test "x$enable_profiling" = xyes; then
5929 BASECFLAGS="-pg $BASECFLAGS"
5930 LDFLAGS="-pg $LDFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:535931fi
5932
Matthias Kloseb9621712010-04-24 17:59:495933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5934$as_echo_n "checking LDLIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535935
5936# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5937# library that we build, but we do not want to link against it (we
5938# will find it with a -framework option). For this reason there is an
5939# extra variable BLDLIBRARY against which Python and the extension
5940# modules are linked, BLDLIBRARY. This is normally the same as
5941# LDLIBRARY, but empty for MacOSX framework builds.
5942if test "$enable_framework"
5943then
5944 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
doko@ubuntu.come5de66e2014-05-07 10:57:445945 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535946 BLDLIBRARY=''
5947else
5948 BLDLIBRARY='$(LDLIBRARY)'
5949fi
5950
5951# Other platforms follow
5952if test $enable_shared = "yes"; then
doko@python.org87421192013-01-26 10:39:315953 PY_ENABLE_SHARED=1
Alexandre Vassalotti302825b2009-07-17 07:49:535954
Matthias Kloseb9621712010-04-24 17:59:495955$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:535956
5957 case $ac_sys_system in
5958 CYGWIN*)
Barry Warsaw8cf4eae2010-10-16 01:04:075959 LDLIBRARY='libpython$(LDVERSION).dll.a'
5960 DLLLIBRARY='libpython$(LDVERSION).dll'
Alexandre Vassalotti302825b2009-07-17 07:49:535961 ;;
5962 SunOS*)
Barry Warsaw8cf4eae2010-10-16 01:04:075963 LDLIBRARY='libpython$(LDVERSION).so'
5964 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445965 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535966 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525967 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475968 then
5969 PY3LIBRARY=libpython3.so
5970 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535971 ;;
Charles-François Natali749400a2011-07-24 20:41:185972 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
Barry Warsaw8cf4eae2010-10-16 01:04:075973 LDLIBRARY='libpython$(LDVERSION).so'
5974 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445975 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535976 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525977 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475978 then
5979 PY3LIBRARY=libpython3.so
5980 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535981 ;;
5982 hp*|HP*)
5983 case `uname -m` in
5984 ia64)
Barry Warsaw8cf4eae2010-10-16 01:04:075985 LDLIBRARY='libpython$(LDVERSION).so'
Alexandre Vassalotti302825b2009-07-17 07:49:535986 ;;
5987 *)
Barry Warsaw8cf4eae2010-10-16 01:04:075988 LDLIBRARY='libpython$(LDVERSION).sl'
Alexandre Vassalotti302825b2009-07-17 07:49:535989 ;;
5990 esac
Barry Warsaw8cf4eae2010-10-16 01:04:075991 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445992 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535993 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:535994 Darwin*)
Barry Warsaw8cf4eae2010-10-16 01:04:075995 LDLIBRARY='libpython$(LDVERSION).dylib'
5996 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445997 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535998 ;;
Antoine Pitrou8e6b4072010-09-10 19:44:445999 AIX*)
Barry Warsaw8cf4eae2010-10-16 01:04:076000 LDLIBRARY='libpython$(LDVERSION).so'
doko@ubuntu.come5de66e2014-05-07 10:57:446001 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
Antoine Pitrou8e6b4072010-09-10 19:44:446002 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:536003
6004 esac
6005else # shared is disabled
doko@python.org87421192013-01-26 10:39:316006 PY_ENABLE_SHARED=0
Alexandre Vassalotti302825b2009-07-17 07:49:536007 case $ac_sys_system in
6008 CYGWIN*)
6009 BLDLIBRARY='$(LIBRARY)'
Barry Warsaw8cf4eae2010-10-16 01:04:076010 LDLIBRARY='libpython$(LDVERSION).dll.a'
Alexandre Vassalotti302825b2009-07-17 07:49:536011 ;;
6012 esac
6013fi
6014
doko@ubuntu.com1abe1c52012-06-30 18:42:456015if test "$cross_compiling" = yes; then
6016 RUNSHARED=
6017fi
6018
Matthias Kloseb9621712010-04-24 17:59:496019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
6020$as_echo "$LDLIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536021
Alexandre Vassalotti302825b2009-07-17 07:49:536022
doko@ubuntu.com51f65942012-06-30 12:42:466023if test -n "$ac_tool_prefix"; then
6024 for ac_prog in ar aal
6025 do
6026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:496028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:096030if ${ac_cv_prog_AR+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496031 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:536032else
6033 if test -n "$AR"; then
6034 ac_cv_prog_AR="$AR" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:496041 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:466043 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:496044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:536045 break 2
6046 fi
6047done
Matthias Kloseb9621712010-04-24 17:59:496048 done
Alexandre Vassalotti302825b2009-07-17 07:49:536049IFS=$as_save_IFS
6050
6051fi
6052fi
6053AR=$ac_cv_prog_AR
6054if test -n "$AR"; then
Matthias Kloseb9621712010-04-24 17:59:496055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6056$as_echo "$AR" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536057else
Matthias Kloseb9621712010-04-24 17:59:496058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536060fi
6061
6062
doko@ubuntu.com51f65942012-06-30 12:42:466063 test -n "$AR" && break
6064 done
6065fi
6066if test -z "$AR"; then
6067 ac_ct_AR=$AR
6068 for ac_prog in ar aal
6069do
6070 # Extract the first word of "$ac_prog", so it can be a program name with args.
6071set dummy $ac_prog; ac_word=$2
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073$as_echo_n "checking for $ac_word... " >&6; }
6074if ${ac_cv_prog_ac_ct_AR+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076else
6077 if test -n "$ac_ct_AR"; then
6078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:576086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:466087 ac_cv_prog_ac_ct_AR="$ac_prog"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536091done
doko@ubuntu.com51f65942012-06-30 12:42:466092 done
6093IFS=$as_save_IFS
6094
6095fi
6096fi
6097ac_ct_AR=$ac_cv_prog_ac_ct_AR
6098if test -n "$ac_ct_AR"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6100$as_echo "$ac_ct_AR" >&6; }
6101else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103$as_echo "no" >&6; }
6104fi
6105
6106
6107 test -n "$ac_ct_AR" && break
6108done
6109
6110 if test "x$ac_ct_AR" = x; then
6111 AR="ar"
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114yes:)
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117ac_tool_warned=yes ;;
6118esac
6119 AR=$ac_ct_AR
6120 fi
6121fi
Alexandre Vassalotti302825b2009-07-17 07:49:536122
6123
6124# tweak ARFLAGS only if the user didn't set it on the command line
6125
6126if test -z "$ARFLAGS"
6127then
stratakise1b21032018-11-29 14:43:246128 ARFLAGS="rcs"
Alexandre Vassalotti302825b2009-07-17 07:49:536129fi
6130
doko@ubuntu.com58844492012-06-30 16:25:326131if test -n "$ac_tool_prefix"; then
6132 for ac_prog in readelf
6133 do
6134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if ${ac_cv_prog_READELF+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141 if test -n "$READELF"; then
6142 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326151 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156 done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161READELF=$ac_cv_prog_READELF
6162if test -n "$READELF"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6164$as_echo "$READELF" >&6; }
6165else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171 test -n "$READELF" && break
6172 done
6173fi
6174if test -z "$READELF"; then
6175 ac_ct_READELF=$READELF
6176 for ac_prog in readelf
6177do
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179set dummy $ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 if test -n "$ac_ct_READELF"; then
6186 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326195 ac_cv_prog_ac_ct_READELF="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199done
6200 done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6206if test -n "$ac_ct_READELF"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6208$as_echo "$ac_ct_READELF" >&6; }
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215 test -n "$ac_ct_READELF" && break
6216done
6217
6218 if test "x$ac_ct_READELF" = x; then
6219 READELF=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227 READELF=$ac_ct_READELF
6228 fi
6229fi
6230
6231if test "$cross_compiling" = yes; then
6232 case "$READELF" in
6233 readelf|:)
6234 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6235 ;;
6236 esac
6237fi
6238
6239
Alexandre Vassalotti302825b2009-07-17 07:49:536240
Alexandre Vassalotti302825b2009-07-17 07:49:536241case $MACHDEP in
6242bsdos*|hp*|HP*)
6243 # install -d does not work on BSDI or HP-UX
6244 if test -z "$INSTALL"
6245 then
6246 INSTALL="${srcdir}/install-sh -c"
6247 fi
6248esac
Alexandre Vassalotti302825b2009-07-17 07:49:536249# Find a good install program. We prefer a C program (faster),
6250# so one script is as good as another. But avoid the broken or
6251# incompatible versions:
6252# SysV /etc/install, /usr/sbin/install
6253# SunOS /usr/etc/install
6254# IRIX /sbin/install
6255# AIX /bin/install
6256# AmigaOS /C/install, which installs bootblocks on floppy discs
6257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6258# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6260# OS/2's system install, which has a completely different semantic
6261# ./install, which can be erroneously created by make from ./install.sh.
Matthias Kloseb9621712010-04-24 17:59:496262# Reject install programs that cannot install multiple files.
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6264$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536265if test -z "$INSTALL"; then
Victor Stinnere0be4232011-10-25 11:06:096266if ${ac_cv_path_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496267 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:536268else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:496274 # Account for people who put trailing slashes in PATH elements.
6275case $as_dir/ in #((
6276 ./ | .// | /[cC]/* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Matthias Kloseb9621712010-04-24 17:59:496278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536279 /usr/ucb/* ) ;;
6280 *)
6281 # OSF1 and SCO ODT 3.0 have their own names for install.
6282 # Don't use installbsd from OSF since it installs stuff as root
6283 # by default.
6284 for ac_prog in ginstall scoinst install; do
6285 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546286 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:536287 if test $ac_prog = install &&
6288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6289 # AIX install. It has an incompatible calling convention.
6290 :
6291 elif test $ac_prog = install &&
6292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6293 # program-specific install script used by HP pwplus--don't use.
6294 :
6295 else
Matthias Kloseb9621712010-04-24 17:59:496296 rm -rf conftest.one conftest.two conftest.dir
6297 echo one > conftest.one
6298 echo two > conftest.two
6299 mkdir conftest.dir
6300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6301 test -s conftest.one && test -s conftest.two &&
6302 test -s conftest.dir/conftest.one &&
6303 test -s conftest.dir/conftest.two
6304 then
6305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6306 break 3
6307 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536308 fi
6309 fi
6310 done
6311 done
6312 ;;
6313esac
Matthias Kloseb9621712010-04-24 17:59:496314
6315 done
Alexandre Vassalotti302825b2009-07-17 07:49:536316IFS=$as_save_IFS
6317
Matthias Kloseb9621712010-04-24 17:59:496318rm -rf conftest.one conftest.two conftest.dir
Alexandre Vassalotti302825b2009-07-17 07:49:536319
6320fi
6321 if test "${ac_cv_path_install+set}" = set; then
6322 INSTALL=$ac_cv_path_install
6323 else
6324 # As a last resort, use the slow shell script. Don't cache a
6325 # value for INSTALL within a source directory, because that will
6326 # break other packages using the cache if that directory is
6327 # removed, or if the value is a relative name.
6328 INSTALL=$ac_install_sh
6329 fi
6330fi
Matthias Kloseb9621712010-04-24 17:59:496331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6332$as_echo "$INSTALL" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536333
6334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6335# It thinks the first close brace ends the variable substitution.
6336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6337
6338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6339
6340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6341
Matthias Klose93a0ef12012-03-15 17:08:346342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6343$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6344if test -z "$MKDIR_P"; then
6345 if ${ac_cv_path_mkdir+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_prog in mkdir gmkdir; do
6354 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546355 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Matthias Klose93a0ef12012-03-15 17:08:346356 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6357 'mkdir (GNU coreutils) '* | \
6358 'mkdir (coreutils) '* | \
6359 'mkdir (fileutils) '4.1*)
6360 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6361 break 3;;
6362 esac
6363 done
6364 done
6365 done
6366IFS=$as_save_IFS
6367
6368fi
6369
6370 test -d ./--version && rmdir ./--version
6371 if test "${ac_cv_path_mkdir+set}" = set; then
6372 MKDIR_P="$ac_cv_path_mkdir -p"
6373 else
6374 # As a last resort, use the slow shell script. Don't cache a
6375 # value for MKDIR_P within a source directory, because that will
6376 # break other packages using the cache if that directory is
6377 # removed, or if the value is a relative name.
6378 MKDIR_P="$ac_install_sh -d"
6379 fi
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6382$as_echo "$MKDIR_P" >&6; }
6383
Alexandre Vassalotti302825b2009-07-17 07:49:536384
6385# Not every filesystem supports hard links
6386
6387if test -z "$LN" ; then
6388 case $ac_sys_system in
6389 CYGWIN*) LN="ln -s";;
Alexandre Vassalotti302825b2009-07-17 07:49:536390 *) LN=ln;;
6391 esac
6392fi
6393
Barry Warsaw35f3a2c2010-09-03 18:30:306394# For calculating the .so ABI tag.
Barry Warsaw8cf4eae2010-10-16 01:04:076395
6396ABIFLAGS=""
Barry Warsaw35f3a2c2010-09-03 18:30:306397
Alexandre Vassalotti302825b2009-07-17 07:49:536398# Check for --with-pydebug
Matthias Kloseb9621712010-04-24 17:59:496399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6400$as_echo_n "checking for --with-pydebug... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536401
6402# Check whether --with-pydebug was given.
Matthias Kloseb9621712010-04-24 17:59:496403if test "${with_pydebug+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:536404 withval=$with_pydebug;
6405if test "$withval" != no
6406then
6407
Matthias Kloseb9621712010-04-24 17:59:496408$as_echo "#define Py_DEBUG 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:536409
Matthias Kloseb9621712010-04-24 17:59:496410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6411$as_echo "yes" >&6; };
Alexandre Vassalotti302825b2009-07-17 07:49:536412 Py_DEBUG='true'
Barry Warsaw8cf4eae2010-10-16 01:04:076413 ABIFLAGS="${ABIFLAGS}d"
Matthias Kloseb9621712010-04-24 17:59:496414else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415$as_echo "no" >&6; }; Py_DEBUG='false'
Alexandre Vassalotti302825b2009-07-17 07:49:536416fi
6417else
Matthias Kloseb9621712010-04-24 17:59:496418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536420fi
6421
6422
T. Wouters07a40a12017-05-23 05:25:176423# Check for --with-assertions. Py_DEBUG implies assertions, but also changes
6424# the ABI. This allows enabling assertions without changing the ABI.
6425assertions='false'
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6427$as_echo_n "checking for --with-assertions... " >&6; }
6428
6429# Check whether --with-assertions was given.
6430if test "${with_assertions+set}" = set; then :
6431 withval=$with_assertions;
6432if test "$withval" != no
6433then
6434 assertions='true'
6435fi
6436fi
6437
6438if test "$assertions" = 'true'; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6440$as_echo "yes" >&6; }
6441elif test "$Py_DEBUG" = 'true'; then
6442 assertions='true'
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6444$as_echo "implied by --with-pydebug" >&6; }
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
Brett Cannon63d98bc2016-09-07 00:12:406450# Enable optimization flags
6451
6452
6453Py_OPT='false'
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6455$as_echo_n "checking for --enable-optimizations... " >&6; }
6456# Check whether --enable-optimizations was given.
6457if test "${enable_optimizations+set}" = set; then :
6458 enableval=$enable_optimizations;
INADA Naokif01de612017-03-28 15:25:266459if test "$enableval" != no
Brett Cannon63d98bc2016-09-07 00:12:406460then
6461 Py_OPT='true'
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6463$as_echo "yes" >&6; };
6464else
6465 Py_OPT='false'
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; };
6468fi
6469else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474if test "$Py_OPT" = 'true' ; then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)14c7f712016-09-08 22:38:466475 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6476 # compile working code using it and both test_distutils and test_gdb are
Brett Cannon1d8f7552016-11-03 23:20:006477 # 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:466478 # who want LTO need to use --with-lto themselves.
Brett Cannon63d98bc2016-09-07 00:12:406479 DEF_MAKE_ALL_RULE="profile-opt"
Gregory P. Smith799520c2016-09-07 23:10:006480 REQUIRE_PGO="yes"
Brett Cannon63d98bc2016-09-07 00:12:406481 DEF_MAKE_RULE="build_all"
6482else
6483 DEF_MAKE_ALL_RULE="build_all"
Gregory P. Smith799520c2016-09-07 23:10:006484 REQUIRE_PGO="no"
Brett Cannon63d98bc2016-09-07 00:12:406485 DEF_MAKE_RULE="all"
6486fi
6487
stratakisf83ee472018-12-09 08:08:436488# Make llvm-relatec checks work on systems where llvm tools are not installed with their
6489# normal names in the default $PATH (ie: Ubuntu). They exist under the
6490# non-suffixed name in their versioned llvm directory.
6491
6492llvm_bin_dir=''
6493llvm_path="${PATH}"
6494if test "${CC}" = "clang"
6495then
6496 clang_bin=`which clang`
6497 # Some systems install clang elsewhere as a symlink to the real path
6498 # which is where the related llvm tools are located.
6499 if test -L "${clang_bin}"
6500 then
6501 clang_dir=`dirname "${clang_bin}"`
6502 clang_bin=`readlink "${clang_bin}"`
6503 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6504 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6505 fi
6506fi
6507
Gregory P. Smithd82da9f2016-04-15 23:57:046508# Enable LTO flags
Gregory P. Smithd82da9f2016-04-15 23:57:046509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6510$as_echo_n "checking for --with-lto... " >&6; }
6511
6512# Check whether --with-lto was given.
6513if test "${with_lto+set}" = set; then :
6514 withval=$with_lto;
6515if test "$withval" != no
6516then
6517 Py_LTO='true'
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6519$as_echo "yes" >&6; };
6520else
6521 Py_LTO='false'
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; };
6524fi
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530if test "$Py_LTO" = 'true' ; then
6531 case $CC in
6532 *clang*)
Victor Stinner78392882018-06-22 07:10:426533
stratakisf83ee472018-12-09 08:08:436534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
Gregory P. Smith799520c2016-09-07 23:10:006535$as_echo_n "checking target system type... " >&6; }
6536if ${ac_cv_target+:} false; then :
Brett Cannon7188a3e2015-09-18 22:13:446537 $as_echo_n "(cached) " >&6
6538else
Gregory P. Smith799520c2016-09-07 23:10:006539 if test "x$target_alias" = x; then
6540 ac_cv_target=$ac_cv_host
Brett Cannon7188a3e2015-09-18 22:13:446541else
Gregory P. Smith799520c2016-09-07 23:10:006542 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6544fi
6545
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6548$as_echo "$ac_cv_target" >&6; }
6549case $ac_cv_target in
6550*-*-*) ;;
6551*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6552esac
6553target=$ac_cv_target
6554ac_save_IFS=$IFS; IFS='-'
6555set x $ac_cv_target
6556shift
6557target_cpu=$1
6558target_vendor=$2
6559shift; shift
6560# Remember, the first character of IFS is used to create $*,
6561# except with old shells:
6562target_os=$*
6563IFS=$ac_save_IFS
6564case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6565
6566
6567# The aliases save the names the user supplied, while $host etc.
6568# will get canonicalized.
6569test -n "$target_alias" &&
6570 test "$program_prefix$program_suffix$program_transform_name" = \
6571 NONENONEs,x,x, &&
6572 program_prefix=${target_alias}-
stratakisf83ee472018-12-09 08:08:436573# Extract the first word of "$target_alias-llvm-ar", so it can be a program name with args.
6574set dummy $target_alias-llvm-ar; ac_word=$2
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if ${ac_cv_path_LLVM_AR+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579else
6580 case $LLVM_AR in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in ${llvm_path}
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597 done
6598IFS=$as_save_IFS
6599
6600 ;;
6601esac
6602fi
6603LLVM_AR=$ac_cv_path_LLVM_AR
6604if test -n "$LLVM_AR"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6606$as_echo "$LLVM_AR" >&6; }
6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613if test -z "$ac_cv_path_LLVM_AR"; then
6614 if test "$build" = "$target"; then
6615 ac_pt_LLVM_AR=$LLVM_AR
6616 # Extract the first word of "llvm-ar", so it can be a program name with args.
6617set dummy llvm-ar; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623 case $ac_pt_LLVM_AR in
6624 [\\/]* | ?:[\\/]*)
6625 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
6626 ;;
6627 *)
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in ${llvm_path}
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640 done
6641IFS=$as_save_IFS
6642
6643 test -z "$ac_cv_path_ac_pt_LLVM_AR" && ac_cv_path_ac_pt_LLVM_AR="''"
6644 ;;
6645esac
6646fi
6647ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
6648if test -n "$ac_pt_LLVM_AR"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6650$as_echo "$ac_pt_LLVM_AR" >&6; }
6651else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656 LLVM_AR=$ac_pt_LLVM_AR
6657 else
6658 LLVM_AR="''"
6659 fi
6660else
6661 LLVM_AR="$ac_cv_path_LLVM_AR"
6662fi
6663
6664
6665 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6666 then
6667 LLVM_AR_FOUND="found"
6668 else
6669 LLVM_AR_FOUND="not-found"
6670 fi
6671 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6672 then
6673 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
6674 if test -n "${found_llvm_ar}"
6675 then
6676 LLVM_AR='/usr/bin/xcrun llvm-ar'
6677 LLVM_AR_FOUND=found
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6679$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6680 fi
6681 fi
6682 if test $LLVM_AR_FOUND = not-found
6683 then
6684 LLVM_PROFR_ERR=yes
6685 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
6686 else
6687 LLVM_AR_ERR=no
6688 fi
6689 AR="${LLVM_AR}"
6690 case $ac_sys_system in
6691 Darwin*)
6692 # Any changes made here should be reflected in the GCC+Darwin case below
6693 LTOFLAGS="-flto -Wl,-export_dynamic"
6694 ;;
6695 *)
6696 LTOFLAGS="-flto"
6697 ;;
6698 esac
6699 ;;
6700 *gcc*)
6701 case $ac_sys_system in
6702 Darwin*)
6703 LTOFLAGS="-flto -Wl,-export_dynamic"
6704 ;;
6705 *)
6706 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6707 ;;
6708 esac
6709 ;;
6710 esac
6711
6712 if test "$ac_cv_prog_cc_g" = "yes"
6713 then
6714 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6715 # to get debug symbols.
6716 LTOFLAGS="$LTOFLAGS -g"
6717 fi
6718
Miss Islington (bot)f2d2cb12018-12-09 08:35:136719 CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS"
Victor Stinnera21bedf2018-12-20 20:31:226720 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
stratakisf83ee472018-12-09 08:08:436721fi
6722
6723# Enable PGO flags.
6724
6725
6726
6727
6728
6729
Gregory P. Smith799520c2016-09-07 23:10:006730# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args.
6731set dummy $target_alias-llvm-profdata; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736else
6737 case $LLVM_PROFDATA in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6740 ;;
6741 *)
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in ${llvm_path}
Brett Cannon7188a3e2015-09-18 22:13:446744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Gregory P. Smith799520c2016-09-07 23:10:006749 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
Brett Cannon7188a3e2015-09-18 22:13:446750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
Gregory P. Smith799520c2016-09-07 23:10:006757 ;;
6758esac
Brett Cannon7188a3e2015-09-18 22:13:446759fi
Gregory P. Smith799520c2016-09-07 23:10:006760LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6761if test -n "$LLVM_PROFDATA"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6763$as_echo "$LLVM_PROFDATA" >&6; }
Brett Cannon7188a3e2015-09-18 22:13:446764else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769
Gregory P. Smith799520c2016-09-07 23:10:006770if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6771 if test "$build" = "$target"; then
6772 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6773 # Extract the first word of "llvm-profdata", so it can be a program name with args.
6774set dummy llvm-profdata; ac_word=$2
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779else
6780 case $ac_pt_LLVM_PROFDATA in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6783 ;;
6784 *)
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in ${llvm_path}
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797 done
6798IFS=$as_save_IFS
6799
6800 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''"
6801 ;;
6802esac
6803fi
6804ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6805if test -n "$ac_pt_LLVM_PROFDATA"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6807$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
6814 else
6815 LLVM_PROFDATA="''"
6816 fi
6817else
6818 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6819fi
6820
6821
6822if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6823then
6824 LLVM_PROF_FOUND="found"
6825else
6826 LLVM_PROF_FOUND="not-found"
6827fi
6828if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6829then
6830 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6831 if test -n "${found_llvm_profdata}"
6832 then
6833 # llvm-profdata isn't directly in $PATH in some cases.
6834 # https://apple.stackexchange.com/questions/197053/
6835 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6836 LLVM_PROF_FOUND=found
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6838$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6839 fi
6840fi
Brett Cannon7188a3e2015-09-18 22:13:446841LLVM_PROF_ERR=no
6842case $CC in
6843 *clang*)
6844 # Any changes made here should be reflected in the GCC+Darwin case below
6845 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6846 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006847 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446848 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6849 if test $LLVM_PROF_FOUND = not-found
6850 then
6851 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006852 if test "${REQUIRE_PGO}" = "yes"
6853 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426854 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:006855 fi
Brett Cannon7188a3e2015-09-18 22:13:446856 fi
6857 ;;
6858 *gcc*)
6859 case $ac_sys_system in
6860 Darwin*)
6861 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6862 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006863 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446864 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
Gregory P. Smith799520c2016-09-07 23:10:006865 if test "${LLVM_PROF_FOUND}" = "not-found"
Brett Cannon7188a3e2015-09-18 22:13:446866 then
6867 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006868 if test "${REQUIRE_PGO}" = "yes"
6869 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426870 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:006871 fi
Brett Cannon7188a3e2015-09-18 22:13:446872 fi
6873 ;;
6874 *)
6875 PGO_PROF_GEN_FLAG="-fprofile-generate"
6876 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6877 LLVM_PROF_MERGER="true"
6878 LLVM_PROF_FILE=""
6879 ;;
6880 esac
6881 ;;
Zachary Ware5af85642015-12-21 18:09:176882 *icc*)
6883 PGO_PROF_GEN_FLAG="-prof-gen"
6884 PGO_PROF_USE_FLAG="-prof-use"
6885 LLVM_PROF_MERGER="true"
6886 LLVM_PROF_FILE=""
6887 ;;
Brett Cannon7188a3e2015-09-18 22:13:446888esac
6889
Alexandre Vassalotti302825b2009-07-17 07:49:536890# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6891# merged with this chunk of code?
6892
6893# Optimizer/debugger flags
6894# ------------------------
6895# (The following bit of code is complicated enough - please keep things
6896# indented properly. Just pretend you're editing Python code. ;-)
6897
6898# There are two parallel sets of case statements below, one that checks to
6899# see if OPT was set and one that does BASECFLAGS setting based upon
6900# compiler and platform. BASECFLAGS tweaks need to be made even if the
6901# user set OPT.
6902
6903# tweak OPT based on compiler and platform, only if the user didn't set
6904# it on the command line
6905
Victor Stinner809101f2017-05-02 08:47:376906
Benjamin Peterson65b4ec52010-03-23 21:02:346907if test "${OPT-unset}" = "unset"
Alexandre Vassalotti302825b2009-07-17 07:49:536908then
6909 case $GCC in
6910 yes)
Alexandre Vassalotti302825b2009-07-17 07:49:536911 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6912 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6913 WRAP="-fwrapv"
6914 fi
Stefan Krah962055d2011-09-14 13:14:086915
Stefan Krahaf04ff22011-12-08 21:20:316916 case $CC in
Victor Stinner809101f2017-05-02 08:47:376917 *clang*)
6918 cc_is_clang=1
6919 ;;
6920 *)
6921 if $CC --version 2>&1 | grep -q clang
6922 then
6923 cc_is_clang=1
6924 else
6925 cc_is_clang=
6926 fi
Stefan Krahaf04ff22011-12-08 21:20:316927 esac
Stefan Krah962055d2011-09-14 13:14:086928
Victor Stinner809101f2017-05-02 08:47:376929 if test -n "${cc_is_clang}"
6930 then
6931 # Clang also needs -fwrapv
6932 WRAP="-fwrapv"
6933 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6934 # see Makefile.pre.in for more information
6935 CFLAGS_ALIASING="-fno-strict-aliasing"
6936 fi
6937
Alexandre Vassalotti302825b2009-07-17 07:49:536938 case $ac_cv_prog_cc_g in
6939 yes)
6940 if test "$Py_DEBUG" = 'true' ; then
6941 # Optimization messes up debuggers, so turn it off for
6942 # debug builds.
Antoine Pitrou3d6c7842015-02-11 18:39:166943 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
Victor Stinner809101f2017-05-02 08:47:376944 OPT="-g -Og -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166945 else
Victor Stinner809101f2017-05-02 08:47:376946 OPT="-g -O0 -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166947 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536948 else
Victor Stinner809101f2017-05-02 08:47:376949 OPT="-g $WRAP -O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536950 fi
6951 ;;
6952 *)
Victor Stinner809101f2017-05-02 08:47:376953 OPT="-O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536954 ;;
6955 esac
Victor Stinner809101f2017-05-02 08:47:376956
Alexandre Vassalotti302825b2009-07-17 07:49:536957 case $ac_sys_system in
6958 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6959 ;;
6960 esac
6961 ;;
6962
6963 *)
6964 OPT="-O"
6965 ;;
6966 esac
Alexandre Vassalotti302825b2009-07-17 07:49:536967fi
6968
6969
6970
Benjamin Petersonacb8c522014-08-10 03:01:496971
Victor Stinnera21bedf2018-12-20 20:31:226972
Alexandre Vassalotti302825b2009-07-17 07:49:536973# The -arch flags for universal builds on OSX
6974UNIVERSAL_ARCH_FLAGS=
6975
6976
6977# tweak BASECFLAGS based on compiler and platform
6978case $GCC in
6979yes)
Benjamin Peterson050af5d2016-09-11 00:53:136980 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
Benjamin Petersond1702562016-09-07 19:00:066981
Serhiy Storchakaea80ffb2016-09-11 18:56:326982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
6983$as_echo_n "checking for -Wextra... " >&6; }
6984 ac_save_cc="$CC"
6985 CC="$CC -Wextra -Werror"
6986 if ${ac_cv_extra_warnings+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988else
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h. */
6991
6992
6993int
6994main ()
6995{
6996
6997 ;
6998 return 0;
6999}
7000
7001_ACEOF
7002if ac_fn_c_try_compile "$LINENO"; then :
7003
7004 ac_cv_extra_warnings=yes
7005
7006else
7007
7008 ac_cv_extra_warnings=no
7009
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012fi
7013
7014 CC="$ac_save_cc"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
7016$as_echo "$ac_cv_extra_warnings" >&6; }
7017
7018 if test $ac_cv_extra_warnings = yes
7019 then
7020 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
7021 fi
7022
Benjamin Petersone6c9d242010-03-30 17:34:477023 # Python doesn't violate C99 aliasing rules, but older versions of
7024 # GCC produce warnings for legal Python code. Enable
7025 # -fno-strict-aliasing on versions of GCC that support but produce
7026 # warnings. See Issue3326
Matthias Kloseb9621712010-04-24 17:59:497027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
7028$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537029 ac_save_cc="$CC"
7030 CC="$CC -fno-strict-aliasing"
Benjamin Petersone6c9d242010-03-30 17:34:477031 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:097032 if ${ac_cv_no_strict_aliasing+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497033 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:377034else
Matthias Kloseb9621712010-04-24 17:59:497035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537036/* end confdefs.h. */
Gregory P. Smithe0450c62009-11-01 21:11:367037
Matthias Kloseb159a552010-04-25 21:00:447038
Gregory P. Smithe0450c62009-11-01 21:11:367039int
7040main ()
7041{
Mark Dickinson8c2b6f12010-05-11 09:23:077042
Gregory P. Smithe0450c62009-11-01 21:11:367043 ;
7044 return 0;
7045}
Matthias Kloseb159a552010-04-25 21:00:447046
Alexandre Vassalotti302825b2009-07-17 07:49:537047_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497048if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:447049
7050 CC="$ac_save_cc -fstrict-aliasing"
7051 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Petersone6c9d242010-03-30 17:34:477053/* end confdefs.h. */
7054
Mark Dickinson8c2b6f12010-05-11 09:23:077055 void f(int **x) {}
Benjamin Petersone6c9d242010-03-30 17:34:477056int
7057main ()
7058{
Mark Dickinson8c2b6f12010-05-11 09:23:077059double *x; f((int **) &x);
Benjamin Petersone6c9d242010-03-30 17:34:477060 ;
7061 return 0;
7062}
Matthias Kloseb159a552010-04-25 21:00:447063
Benjamin Petersone6c9d242010-03-30 17:34:477064_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497065if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:447066
7067 ac_cv_no_strict_aliasing=no
7068
Alexandre Vassalotti302825b2009-07-17 07:49:537069else
Matthias Kloseb159a552010-04-25 21:00:447070
7071 ac_cv_no_strict_aliasing=yes
7072
Benjamin Petersone6c9d242010-03-30 17:34:477073fi
Benjamin Petersone6c9d242010-03-30 17:34:477074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:447075
Benjamin Petersone6c9d242010-03-30 17:34:477076else
Matthias Kloseb159a552010-04-25 21:00:447077
7078 ac_cv_no_strict_aliasing=no
7079
Alexandre Vassalotti302825b2009-07-17 07:49:537080fi
Gregory P. Smithe0450c62009-11-01 21:11:367081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottib0a61d72009-07-17 23:19:377082fi
7083
Benjamin Petersone6c9d242010-03-30 17:34:477084 CFLAGS="$save_CFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:537085 CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:497086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7087$as_echo "$ac_cv_no_strict_aliasing" >&6; }
Benjamin Petersone6c9d242010-03-30 17:34:477088 if test $ac_cv_no_strict_aliasing = yes
Alexandre Vassalotti302825b2009-07-17 07:49:537089 then
7090 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7091 fi
7092
Zachary Ware5af85642015-12-21 18:09:177093 # ICC doesn't recognize the option, but only emits a warning
7094 ## XXX does it emit an unused result warning and can it be disabled?
7095 case "$CC" in
7096 *icc*)
7097 ac_cv_disable_unused_result_warning=no
7098 ;;
7099 *)
Benjamin Peterson7ddbf102011-09-23 17:23:227100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7101$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
7102 ac_save_cc="$CC"
7103 CC="$CC -Wunused-result -Werror"
7104 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:097105 if ${ac_cv_disable_unused_result_warning+:} false; then :
Benjamin Peterson7ddbf102011-09-23 17:23:227106 $as_echo_n "(cached) " >&6
7107else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h. */
7110
7111
7112int
7113main ()
7114{
7115
7116 ;
7117 return 0;
7118}
7119
7120_ACEOF
7121if ac_fn_c_try_compile "$LINENO"; then :
7122
7123 ac_cv_disable_unused_result_warning=yes
7124
7125else
7126
7127 ac_cv_disable_unused_result_warning=no
7128
7129fi
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131fi
7132
7133 CFLAGS="$save_CFLAGS"
7134 CC="$ac_save_cc"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7136$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
Zachary Ware5af85642015-12-21 18:09:177137 ;;
7138 esac
Benjamin Peterson7ddbf102011-09-23 17:23:227139
7140 if test $ac_cv_disable_unused_result_warning = yes
7141 then
7142 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
Serhiy Storchakaea80ffb2016-09-11 18:56:327143 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7144 fi
7145
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
7147$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
7148 ac_save_cc="$CC"
7149 CC="$CC -Wunused-parameter -Werror"
7150 if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h. */
7155
7156
7157int
7158main ()
7159{
7160
7161 ;
7162 return 0;
7163}
7164
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167
7168 ac_cv_disable_unused_parameter_warning=yes
7169
7170else
7171
7172 ac_cv_disable_unused_parameter_warning=no
7173
7174fi
7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176fi
7177
7178 CC="$ac_save_cc"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7180$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7181
7182 if test $ac_cv_disable_unused_parameter_warning = yes
7183 then
7184 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7185 fi
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
7188$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
7189 ac_save_cc="$CC"
7190 CC="$CC -Wmissing-field-initializers -Werror"
7191 if ${ac_cv_disable_missing_field_initializers+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197
7198int
7199main ()
7200{
7201
7202 ;
7203 return 0;
7204}
7205
7206_ACEOF
7207if ac_fn_c_try_compile "$LINENO"; then :
7208
7209 ac_cv_disable_missing_field_initializers=yes
7210
7211else
7212
7213 ac_cv_disable_missing_field_initializers=no
7214
7215fi
7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217fi
7218
7219 CC="$ac_save_cc"
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7221$as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
7222
7223 if test $ac_cv_disable_missing_field_initializers = yes
7224 then
7225 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
Benjamin Peterson7ddbf102011-09-23 17:23:227226 fi
7227
Miss Islington (bot)20b797d2018-05-25 11:02:547228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5
7229$as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; }
7230 ac_save_cc="$CC"
7231 CC="$CC -Wcast-function-type -Werror"
7232 if ${ac_cv_disable_cast_function_type+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h. */
7237
7238
7239int
7240main ()
7241{
7242
7243 ;
7244 return 0;
7245}
7246
7247_ACEOF
7248if ac_fn_c_try_compile "$LINENO"; then :
7249
7250 ac_cv_disable_cast_function_type=yes
7251
7252else
7253
7254 ac_cv_disable_cast_function_type=no
7255
7256fi
7257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258fi
7259
7260 CC="$ac_save_cc"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5
7262$as_echo "$ac_cv_disable_cast_function_type" >&6; }
7263
7264 if test $ac_cv_disable_cast_function_type = yes
7265 then
7266 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type"
7267 fi
7268
Charles-François Natali7f9cc932014-08-01 20:57:497269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7270$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7271 ac_save_cc="$CC"
7272 CC="$CC -Wsign-compare"
7273 save_CFLAGS="$CFLAGS"
7274 if ${ac_cv_enable_sign_compare_warning+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h. */
7279
7280
7281int
7282main ()
7283{
7284
7285 ;
7286 return 0;
7287}
7288
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"; then :
7291
7292 ac_cv_enable_sign_compare_warning=yes
7293
7294else
7295
7296 ac_cv_enable_sign_compare_warning=no
7297
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300fi
7301
7302 CFLAGS="$save_CFLAGS"
7303 CC="$ac_save_cc"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7305$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7306
7307 if test $ac_cv_enable_sign_compare_warning = yes
7308 then
7309 BASECFLAGS="$BASECFLAGS -Wsign-compare"
7310 fi
7311
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7313$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7314 ac_save_cc="$CC"
7315 CC="$CC -Wunreachable-code"
7316 save_CFLAGS="$CFLAGS"
7317 if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h. */
7322
7323
7324int
7325main ()
7326{
7327
7328 ;
7329 return 0;
7330}
7331
7332_ACEOF
7333if ac_fn_c_try_compile "$LINENO"; then :
7334
7335 ac_cv_enable_unreachable_code_warning=yes
7336
7337else
7338
7339 ac_cv_enable_unreachable_code_warning=no
7340
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344
7345 CFLAGS="$save_CFLAGS"
7346 CC="$ac_save_cc"
Charles-François Natali7f9cc932014-08-01 20:57:497347
7348 # Don't enable unreachable code warning in debug mode, since it usually
7349 # results in non-standard code paths.
Ned Deilybec699e2016-03-08 05:28:377350 # Issue #24324: Unfortunately, the unreachable code warning does not work
7351 # correctly on gcc and has been silently removed from the compiler.
7352 # It is supported on clang but on OS X systems gcc may be an alias
7353 # for clang. Try to determine if the compiler is not really gcc and,
7354 # if so, only then enable the warning.
7355 if test $ac_cv_enable_unreachable_code_warning = yes && \
7356 test "$Py_DEBUG" != "true" && \
7357 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
Charles-François Natali7f9cc932014-08-01 20:57:497358 then
7359 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
Ned Deilybec699e2016-03-08 05:28:377360 else
7361 ac_cv_enable_unreachable_code_warning=no
Charles-François Natali7f9cc932014-08-01 20:57:497362 fi
Ned Deilybec699e2016-03-08 05:28:377363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7364$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
Charles-François Natali7f9cc932014-08-01 20:57:497365
INADA Naokid59f97c2018-06-06 05:18:147366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
7367$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7368 ac_save_cc="$CC"
7369 CC="$CC -Werror -Wstrict-prototypes"
7370 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372else
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h. */
7375
7376
7377int
7378main ()
7379{
7380
7381 ;
7382 return 0;
7383}
7384
7385_ACEOF
7386if ac_fn_c_try_compile "$LINENO"; then :
7387
7388 ac_cv_enable_strict_prototypes_warning=yes
7389
7390else
7391
7392 ac_cv_enable_strict_prototypes_warning=no
7393
7394fi
7395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396fi
7397
7398 CC="$ac_save_cc"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7400$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7401
7402 if test $ac_cv_enable_strict_prototypes_warning = yes
7403 then
7404 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7405 fi
7406
Alexandre Vassalotti302825b2009-07-17 07:49:537407 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7408 # support. Without this, treatment of subnormals doesn't follow
7409 # the standard.
Matthias Klosedf2aecb2012-03-15 21:19:287410 case $host in
Alexandre Vassalotti302825b2009-07-17 07:49:537411 alpha*)
7412 BASECFLAGS="$BASECFLAGS -mieee"
7413 ;;
7414 esac
7415
7416 case $ac_sys_system in
7417 SCO_SV*)
7418 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7419 ;;
Ned Deily87adb6e2013-10-19 04:09:567420
7421 # is there any other compiler on Darwin besides gcc?
7422 Darwin*)
7423 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7424 # used to be here, but non-Apple gcc doesn't accept them.
7425 if test "${CC}" = gcc
7426 then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
Matthias Kloseb9621712010-04-24 17:59:497428$as_echo_n "checking which compiler should be used... " >&6; }
Ned Deily87adb6e2013-10-19 04:09:567429 case "${UNIVERSALSDK}" in
7430 */MacOSX10.4u.sdk)
7431 # Build using 10.4 SDK, force usage of gcc when the
7432 # compiler is gcc, otherwise the user will get very
7433 # confusing error messages when building on OSX 10.6
7434 CC=gcc-4.0
7435 CPP=cpp-4.0
7436 ;;
7437 esac
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Matthias Kloseb9621712010-04-24 17:59:497439$as_echo "$CC" >&6; }
Ned Deily87adb6e2013-10-19 04:09:567440 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537441
Ned Deily87adb6e2013-10-19 04:09:567442 if test "${enable_universalsdk}"
7443 then
7444 case "$UNIVERSAL_ARCHS" in
7445 32-bit)
7446 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7447 LIPO_32BIT_FLAGS=""
7448 ARCH_RUN_32BIT=""
7449 ;;
7450 64-bit)
7451 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7452 LIPO_32BIT_FLAGS=""
7453 ARCH_RUN_32BIT="true"
7454 ;;
7455 all)
7456 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7457 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7458 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7459 ;;
7460 intel)
7461 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7462 LIPO_32BIT_FLAGS="-extract i386"
7463 ARCH_RUN_32BIT="/usr/bin/arch -i386"
7464 ;;
7465 intel-32)
7466 UNIVERSAL_ARCH_FLAGS="-arch i386"
7467 LIPO_32BIT_FLAGS=""
7468 ARCH_RUN_32BIT=""
7469 ;;
Ned Deily94552442018-03-13 06:51:547470 intel-64)
7471 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7472 LIPO_32BIT_FLAGS=""
7473 ARCH_RUN_32BIT="true"
7474 ;;
Ned Deily87adb6e2013-10-19 04:09:567475 3-way)
7476 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7477 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7478 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7479 ;;
7480 *)
7481 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7482 ;;
7483 esac
Alexandre Vassalotti302825b2009-07-17 07:49:537484
Ned Deily87adb6e2013-10-19 04:09:567485 if test "${UNIVERSALSDK}" != "/"
7486 then
Ned Deily94552442018-03-13 06:51:547487 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7488 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567489 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
Ned Deily94552442018-03-13 06:51:547490 else
7491 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
7492 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567493 fi
7494 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537495
Ned Deily87adb6e2013-10-19 04:09:567496 # Calculate an appropriate deployment target for this build:
7497 # The deployment target value is used explicitly to enable certain
7498 # features are enabled (such as builtin libedit support for readline)
Raymond Hettinger15f44ab2016-08-30 17:47:497499 # through the use of Apple's Availability Macros and is used as a
Ned Deily87adb6e2013-10-19 04:09:567500 # component of the string returned by distutils.get_platform().
7501 #
7502 # Use the value from:
7503 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7504 # 2. the operating system version of the build machine if >= 10.6
7505 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7506 # below to pick either 10.3, 10.4, or 10.5 as the target.
7507 # 4. If we are running on OS X 10.2 or earlier, good luck!
Alexandre Vassalotti302825b2009-07-17 07:49:537508
Ned Deily87adb6e2013-10-19 04:09:567509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7510$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
Ned Deily36820b62014-06-25 20:44:227511 cur_target_major=`sw_vers -productVersion | \
7512 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7513 cur_target_minor=`sw_vers -productVersion | \
7514 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7515 cur_target="${cur_target_major}.${cur_target_minor}"
7516 if test ${cur_target_major} -eq 10 && \
7517 test ${cur_target_minor} -ge 3 && \
7518 test ${cur_target_minor} -le 5
Ned Deily87adb6e2013-10-19 04:09:567519 then
Ned Deily36820b62014-06-25 20:44:227520 # OS X 10.3 through 10.5
Ned Deily87adb6e2013-10-19 04:09:567521 cur_target=10.3
7522 if test ${enable_universalsdk}
7523 then
7524 case "$UNIVERSAL_ARCHS" in
7525 all|3-way|intel|64-bit)
7526 # These configurations were first supported in 10.5
7527 cur_target='10.5'
7528 ;;
7529 esac
7530 else
7531 if test `/usr/bin/arch` = "i386"
7532 then
7533 # 10.4 was the first release to support Intel archs
7534 cur_target="10.4"
7535 fi
7536 fi
7537 fi
7538 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
Ronald Oussoren3c064c12009-09-08 07:12:427539
Ned Deily87adb6e2013-10-19 04:09:567540 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7541 # environment with a value that is the same as what we'll use
7542 # in the Makefile to ensure that we'll get the same compiler
7543 # environment during configure and build time.
7544 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7545 export MACOSX_DEPLOYMENT_TARGET
7546 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7548$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
Ronald Oussoren3c064c12009-09-08 07:12:427549
Ned Deily87adb6e2013-10-19 04:09:567550 # end of Darwin* tests
7551 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537552 esac
7553 ;;
7554
7555*)
7556 case $ac_sys_system in
7557 OpenUNIX*|UnixWare*)
7558 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7559 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537560 SCO_SV*)
7561 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7562 ;;
7563 esac
7564 ;;
7565esac
7566
Zachary Ware5af85642015-12-21 18:09:177567# ICC needs -fp-model strict or floats behave badly
7568case "$CC" in
7569*icc*)
7570 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7571 ;;
7572esac
7573
T. Wouters07a40a12017-05-23 05:25:177574if test "$assertions" = 'true'; then
Alexandre Vassalotti302825b2009-07-17 07:49:537575 :
7576else
7577 OPT="-DNDEBUG $OPT"
7578fi
7579
7580if test "$ac_arch_flags"
7581then
7582 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7583fi
7584
Alexandre Vassalotti302825b2009-07-17 07:49:537585# On some compilers, pthreads are available without further options
7586# (e.g. MacOS X). On some of these systems, the compiler will not
7587# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7588# So we have to see first whether pthreads are available without
7589# options before we can check whether -Kpthread improves anything.
Matthias Kloseb9621712010-04-24 17:59:497590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7591$as_echo_n "checking whether pthreads are available without options... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097592if ${ac_cv_pthread_is_default+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497593 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537594else
Matthias Kloseb9621712010-04-24 17:59:497595 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537596 ac_cv_pthread_is_default=no
7597else
Matthias Kloseb9621712010-04-24 17:59:497598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537599/* end confdefs.h. */
7600
Stefan Krah7dba5942012-11-22 21:49:117601#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537602#include <pthread.h>
7603
7604void* routine(void* p){return NULL;}
7605
7606int main(){
7607 pthread_t p;
7608 if(pthread_create(&p,NULL,routine,NULL)!=0)
7609 return 1;
7610 (void)pthread_detach(p);
7611 return 0;
7612}
7613
7614_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497615if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537616
7617 ac_cv_pthread_is_default=yes
7618 ac_cv_kthread=no
7619 ac_cv_pthread=no
7620
7621else
Matthias Kloseb9621712010-04-24 17:59:497622 ac_cv_pthread_is_default=no
Alexandre Vassalotti302825b2009-07-17 07:49:537623fi
Matthias Kloseb9621712010-04-24 17:59:497624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537626fi
7627
7628
Alexandre Vassalotti302825b2009-07-17 07:49:537629fi
7630
Matthias Kloseb9621712010-04-24 17:59:497631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7632$as_echo "$ac_cv_pthread_is_default" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537633
7634
7635if test $ac_cv_pthread_is_default = yes
7636then
7637 ac_cv_kpthread=no
7638else
7639# -Kpthread, if available, provides the right #defines
7640# and linker options to make pthread_create available
7641# Some compilers won't report that they do not support -Kpthread,
7642# so we need to run a program to see whether it really made the
7643# function available.
Matthias Kloseb9621712010-04-24 17:59:497644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7645$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097646if ${ac_cv_kpthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497647 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537648else
7649 ac_save_cc="$CC"
7650CC="$CC -Kpthread"
Matthias Kloseb9621712010-04-24 17:59:497651if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537652 ac_cv_kpthread=no
7653else
Matthias Kloseb9621712010-04-24 17:59:497654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537655/* end confdefs.h. */
7656
Stefan Krah7dba5942012-11-22 21:49:117657#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537658#include <pthread.h>
7659
7660void* routine(void* p){return NULL;}
7661
7662int main(){
7663 pthread_t p;
7664 if(pthread_create(&p,NULL,routine,NULL)!=0)
7665 return 1;
7666 (void)pthread_detach(p);
7667 return 0;
7668}
7669
7670_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497671if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537672 ac_cv_kpthread=yes
7673else
Matthias Kloseb9621712010-04-24 17:59:497674 ac_cv_kpthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537675fi
Matthias Kloseb9621712010-04-24 17:59:497676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7677 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537678fi
7679
Alexandre Vassalotti302825b2009-07-17 07:49:537680CC="$ac_save_cc"
7681fi
7682
Matthias Kloseb9621712010-04-24 17:59:497683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7684$as_echo "$ac_cv_kpthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537685fi
7686
7687if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7688then
7689# -Kthread, if available, provides the right #defines
7690# and linker options to make pthread_create available
7691# Some compilers won't report that they do not support -Kthread,
7692# so we need to run a program to see whether it really made the
7693# function available.
Matthias Kloseb9621712010-04-24 17:59:497694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7695$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097696if ${ac_cv_kthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497697 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537698else
7699 ac_save_cc="$CC"
7700CC="$CC -Kthread"
Matthias Kloseb9621712010-04-24 17:59:497701if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537702 ac_cv_kthread=no
7703else
Matthias Kloseb9621712010-04-24 17:59:497704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537705/* end confdefs.h. */
7706
Stefan Krah7dba5942012-11-22 21:49:117707#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537708#include <pthread.h>
7709
7710void* routine(void* p){return NULL;}
7711
7712int main(){
7713 pthread_t p;
7714 if(pthread_create(&p,NULL,routine,NULL)!=0)
7715 return 1;
7716 (void)pthread_detach(p);
7717 return 0;
7718}
7719
7720_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497721if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537722 ac_cv_kthread=yes
7723else
Matthias Kloseb9621712010-04-24 17:59:497724 ac_cv_kthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537725fi
Matthias Kloseb9621712010-04-24 17:59:497726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7727 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537728fi
7729
Alexandre Vassalotti302825b2009-07-17 07:49:537730CC="$ac_save_cc"
7731fi
7732
Matthias Kloseb9621712010-04-24 17:59:497733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7734$as_echo "$ac_cv_kthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537735fi
7736
7737if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7738then
7739# -pthread, if available, provides the right #defines
7740# and linker options to make pthread_create available
7741# Some compilers won't report that they do not support -pthread,
7742# so we need to run a program to see whether it really made the
7743# function available.
Matthias Kloseb9621712010-04-24 17:59:497744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7745$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
doko@python.org7981f202013-01-25 14:33:257746if ${ac_cv_pthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497747 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537748else
7749 ac_save_cc="$CC"
7750CC="$CC -pthread"
Matthias Kloseb9621712010-04-24 17:59:497751if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537752 ac_cv_pthread=no
7753else
Matthias Kloseb9621712010-04-24 17:59:497754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537755/* end confdefs.h. */
7756
Stefan Krah7dba5942012-11-22 21:49:117757#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537758#include <pthread.h>
7759
7760void* routine(void* p){return NULL;}
7761
7762int main(){
7763 pthread_t p;
7764 if(pthread_create(&p,NULL,routine,NULL)!=0)
7765 return 1;
7766 (void)pthread_detach(p);
7767 return 0;
7768}
7769
7770_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497771if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537772 ac_cv_pthread=yes
7773else
Matthias Kloseb9621712010-04-24 17:59:497774 ac_cv_pthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537775fi
Matthias Kloseb9621712010-04-24 17:59:497776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7777 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537778fi
7779
Alexandre Vassalotti302825b2009-07-17 07:49:537780CC="$ac_save_cc"
7781fi
7782
Matthias Kloseb9621712010-04-24 17:59:497783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7784$as_echo "$ac_cv_pthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537785fi
7786
7787# If we have set a CC compiler flag for thread support then
7788# check if it works for CXX, too.
7789ac_cv_cxx_thread=no
7790if test ! -z "$CXX"
7791then
Matthias Kloseb9621712010-04-24 17:59:497792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7793$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537794ac_save_cxx="$CXX"
7795
7796if test "$ac_cv_kpthread" = "yes"
7797then
7798 CXX="$CXX -Kpthread"
7799 ac_cv_cxx_thread=yes
7800elif test "$ac_cv_kthread" = "yes"
7801then
7802 CXX="$CXX -Kthread"
7803 ac_cv_cxx_thread=yes
7804elif test "$ac_cv_pthread" = "yes"
7805then
7806 CXX="$CXX -pthread"
7807 ac_cv_cxx_thread=yes
7808fi
7809
7810if test $ac_cv_cxx_thread = yes
7811then
7812 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7813 $CXX -c conftest.$ac_ext 2>&5
7814 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7815 && test -s conftest$ac_exeext && ./conftest$ac_exeext
7816 then
7817 ac_cv_cxx_thread=yes
7818 else
7819 ac_cv_cxx_thread=no
7820 fi
7821 rm -fr conftest*
7822fi
Matthias Kloseb9621712010-04-24 17:59:497823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7824$as_echo "$ac_cv_cxx_thread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537825fi
7826CXX="$ac_save_cxx"
7827
7828
7829# checks for header files
Matthias Kloseb9621712010-04-24 17:59:497830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7831$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097832if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497833 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537834else
Matthias Kloseb9621712010-04-24 17:59:497835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537836/* end confdefs.h. */
7837#include <stdlib.h>
7838#include <stdarg.h>
7839#include <string.h>
7840#include <float.h>
7841
7842int
7843main ()
7844{
7845
7846 ;
7847 return 0;
7848}
7849_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497850if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537851 ac_cv_header_stdc=yes
7852else
Matthias Kloseb9621712010-04-24 17:59:497853 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537854fi
Alexandre Vassalotti302825b2009-07-17 07:49:537855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856
7857if test $ac_cv_header_stdc = yes; then
7858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537860/* end confdefs.h. */
7861#include <string.h>
7862
7863_ACEOF
7864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497865 $EGREP "memchr" >/dev/null 2>&1; then :
7866
Alexandre Vassalotti302825b2009-07-17 07:49:537867else
7868 ac_cv_header_stdc=no
7869fi
Matthias Klosec80c93f2010-04-24 17:04:357870rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537871
7872fi
7873
7874if test $ac_cv_header_stdc = yes; then
7875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537877/* end confdefs.h. */
7878#include <stdlib.h>
7879
7880_ACEOF
7881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497882 $EGREP "free" >/dev/null 2>&1; then :
7883
Alexandre Vassalotti302825b2009-07-17 07:49:537884else
7885 ac_cv_header_stdc=no
7886fi
Matthias Klosec80c93f2010-04-24 17:04:357887rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537888
7889fi
7890
7891if test $ac_cv_header_stdc = yes; then
7892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Matthias Kloseb9621712010-04-24 17:59:497893 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537894 :
7895else
Matthias Kloseb9621712010-04-24 17:59:497896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537897/* end confdefs.h. */
7898#include <ctype.h>
7899#include <stdlib.h>
7900#if ((' ' & 0x0FF) == 0x020)
7901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7903#else
7904# define ISLOWER(c) \
7905 (('a' <= (c) && (c) <= 'i') \
7906 || ('j' <= (c) && (c) <= 'r') \
7907 || ('s' <= (c) && (c) <= 'z'))
7908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7909#endif
7910
7911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7912int
7913main ()
7914{
7915 int i;
7916 for (i = 0; i < 256; i++)
7917 if (XOR (islower (i), ISLOWER (i))
7918 || toupper (i) != TOUPPER (i))
7919 return 2;
7920 return 0;
7921}
7922_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497923if ac_fn_c_try_run "$LINENO"; then :
7924
Alexandre Vassalotti302825b2009-07-17 07:49:537925else
Matthias Kloseb9621712010-04-24 17:59:497926 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537927fi
Matthias Kloseb9621712010-04-24 17:59:497928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537930fi
7931
Alexandre Vassalotti302825b2009-07-17 07:49:537932fi
7933fi
Matthias Kloseb9621712010-04-24 17:59:497934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7935$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537936if test $ac_cv_header_stdc = yes; then
7937
Matthias Kloseb9621712010-04-24 17:59:497938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:537939
7940fi
7941
Miss Islington (bot)8e230e12018-01-24 10:11:167942for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
Thomas Wouters0e3f5912006-08-11 14:57:127943fcntl.h grp.h \
doko@ubuntu.com1a4f5612014-04-17 18:13:447944ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
Benjamin Peterson4fe55102016-09-06 18:58:017945sched.h shadow.h signal.h stropts.h termios.h \
Martin v. Löwis14e73b12003-01-01 09:51:127946unistd.h utime.h \
Jesus Cead8b9ae62011-11-14 18:07:417947poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
Antoine Pitroubcf2b592012-02-08 22:28:367948sys/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:587949sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
Benjamin Petersonfb2ae152016-12-20 07:54:257950sys/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:587951sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
Georg Brandl941f9562011-02-25 15:21:477952sys/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:237953libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Benjamin Peterson93b2dee2016-09-09 17:22:457954linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
Christian Heimes02854da2017-09-05 15:09:127955sys/endian.h sys/sysmacros.h
Matthias Kloseb9621712010-04-24 17:59:497956do :
7957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Ross Lagerwallb0ae53d2011-06-10 05:30:307959if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037960 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037962_ACEOF
7963
7964fi
7965
Guido van Rossum627b2d71993-12-24 10:39:167966done
7967
Guido van Rossum76be6ed1995-01-02 18:33:547968ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:037969for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Matthias Kloseb9621712010-04-24 17:59:497970 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7972$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097973if eval \${$as_ac_Header+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497974 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:167975else
Matthias Kloseb9621712010-04-24 17:59:497976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047977/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547978#include <sys/types.h>
7979#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:037980
Martin v. Löwis11437992002-04-12 09:54:037981int
7982main ()
7983{
7984if ((DIR *) 0)
7985return 0;
7986 ;
7987 return 0;
7988}
7989_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497990if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:037991 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:267992else
Matthias Kloseb9621712010-04-24 17:59:497993 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:547994fi
Thomas Wouters47b49bf2007-08-30 22:15:337995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:267996fi
Matthias Kloseb9621712010-04-24 17:59:497997eval ac_res=\$$as_ac_Header
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7999$as_echo "$ac_res" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:308000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:038001 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498002#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:038003_ACEOF
8004
8005ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:268006fi
Martin v. Löwis11437992002-04-12 09:54:038007
Guido van Rossum76be6ed1995-01-02 18:33:548008done
8009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8010if test $ac_header_dirent = dirent.h; then
Matthias Kloseb9621712010-04-24 17:59:498011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8012$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098013if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498014 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:548015else
Martin v. Löwis11437992002-04-12 09:54:038016 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:498017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048018/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038019
Thomas Wouters47b49bf2007-08-30 22:15:338020/* Override any GCC internal prototype to avoid an error.
8021 Use char because int might match the return type of a GCC
8022 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038023#ifdef __cplusplus
8024extern "C"
8025#endif
Martin v. Löwis11437992002-04-12 09:54:038026char opendir ();
Martin v. Löwis11437992002-04-12 09:54:038027int
8028main ()
8029{
Thomas Wouters47b49bf2007-08-30 22:15:338030return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038031 ;
8032 return 0;
8033}
8034_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338035for ac_lib in '' dir; do
8036 if test -z "$ac_lib"; then
8037 ac_res="none required"
8038 else
8039 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338041 fi
Matthias Kloseb9621712010-04-24 17:59:498042 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338043 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478044fi
Matthias Kloseb9621712010-04-24 17:59:498045rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098047 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338048 break
Skip Montanaroeb33e5a2007-08-17 12:57:418049fi
Thomas Wouters47b49bf2007-08-30 22:15:338050done
Victor Stinnere0be4232011-10-25 11:06:098051if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498052
Thomas Wouters47b49bf2007-08-30 22:15:338053else
8054 ac_cv_search_opendir=no
8055fi
8056rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038057LIBS=$ac_func_search_save_LIBS
8058fi
Matthias Kloseb9621712010-04-24 17:59:498059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8060$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338061ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498062if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:268064
Guido van Rossum76be6ed1995-01-02 18:33:548065fi
Martin v. Löwis11437992002-04-12 09:54:038066
Michael W. Hudson54241132001-12-07 15:38:268067else
Matthias Kloseb9621712010-04-24 17:59:498068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8069$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098070if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498071 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038072else
8073 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:498074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048075/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038076
Thomas Wouters47b49bf2007-08-30 22:15:338077/* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038080#ifdef __cplusplus
8081extern "C"
8082#endif
Martin v. Löwis11437992002-04-12 09:54:038083char opendir ();
Martin v. Löwis11437992002-04-12 09:54:038084int
8085main ()
8086{
Thomas Wouters47b49bf2007-08-30 22:15:338087return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038088 ;
8089 return 0;
8090}
8091_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338092for ac_lib in '' x; do
8093 if test -z "$ac_lib"; then
8094 ac_res="none required"
8095 else
8096 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338098 fi
Matthias Kloseb9621712010-04-24 17:59:498099 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338100 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478101fi
Matthias Kloseb9621712010-04-24 17:59:498102rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098104 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338105 break
Skip Montanaroeb33e5a2007-08-17 12:57:418106fi
Thomas Wouters47b49bf2007-08-30 22:15:338107done
Victor Stinnere0be4232011-10-25 11:06:098108if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498109
Thomas Wouters47b49bf2007-08-30 22:15:338110else
8111 ac_cv_search_opendir=no
8112fi
8113rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038114LIBS=$ac_func_search_save_LIBS
8115fi
Matthias Kloseb9621712010-04-24 17:59:498116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8117$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338118ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498119if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:038121
Guido van Rossum76be6ed1995-01-02 18:33:548122fi
8123
8124fi
Guido van Rossum627b2d71993-12-24 10:39:168125
Matthias Kloseb9621712010-04-24 17:59:498126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8127$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098128if ${ac_cv_header_sys_types_h_makedev+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498129 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:308130else
Matthias Kloseb9621712010-04-24 17:59:498131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048132/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:308133#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:308134int
8135main ()
8136{
8137return makedev(0, 0);
8138 ;
8139 return 0;
8140}
8141_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498142if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:308143 ac_cv_header_sys_types_h_makedev=yes
8144else
Matthias Kloseb9621712010-04-24 17:59:498145 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:308146fi
Matthias Kloseb9621712010-04-24 17:59:498147rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:308149
8150fi
Matthias Kloseb9621712010-04-24 17:59:498151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8152$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:308153
8154if test $ac_cv_header_sys_types_h_makedev = no; then
Matthias Kloseb9621712010-04-24 17:59:498155ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098156if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048157
Matthias Kloseb9621712010-04-24 17:59:498158$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308159
8160fi
8161
8162
8163
8164 if test $ac_cv_header_sys_mkdev_h = no; then
Matthias Kloseb9621712010-04-24 17:59:498165 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:098166if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048167
Matthias Kloseb9621712010-04-24 17:59:498168$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308169
8170fi
8171
8172
8173 fi
8174fi
8175
Michael W. Hudson54241132001-12-07 15:38:268176
Benjamin Peterson93b2dee2016-09-09 17:22:458177# bluetooth/bluetooth.h has been known to not compile with -std=c99.
8178# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
8179SAVE_CFLAGS=$CFLAGS
8180CFLAGS="-std=c99 $CFLAGS"
8181for ac_header in bluetooth/bluetooth.h
8182do :
8183 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8184if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8185 cat >>confdefs.h <<_ACEOF
8186#define HAVE_BLUETOOTH_BLUETOOTH_H 1
8187_ACEOF
8188
8189fi
8190
8191done
8192
8193CFLAGS=$SAVE_CFLAGS
8194
Gregory P. Smith3b1f2c32011-05-15 19:18:238195# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
8196for ac_header in net/if.h
8197do :
8198 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
8199#ifdef STDC_HEADERS
8200# include <stdlib.h>
8201# include <stddef.h>
8202#else
8203# ifdef HAVE_STDLIB_H
8204# include <stdlib.h>
8205# endif
8206#endif
8207#ifdef HAVE_SYS_SOCKET_H
8208# include <sys/socket.h>
8209#endif
8210
8211"
Victor Stinnere0be4232011-10-25 11:06:098212if test "x$ac_cv_header_net_if_h" = xyes; then :
Gregory P. Smith3b1f2c32011-05-15 19:18:238213 cat >>confdefs.h <<_ACEOF
8214#define HAVE_NET_IF_H 1
8215_ACEOF
8216
8217fi
8218
8219done
8220
8221
Martin v. Löwis11017b12006-01-14 18:12:578222# On Linux, netlink.h requires asm/types.h
Martin v. Löwis11017b12006-01-14 18:12:578223for ac_header in linux/netlink.h
Matthias Kloseb9621712010-04-24 17:59:498224do :
8225 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
Martin v. Löwis11017b12006-01-14 18:12:578226#ifdef HAVE_ASM_TYPES_H
8227#include <asm/types.h>
8228#endif
8229#ifdef HAVE_SYS_SOCKET_H
8230#include <sys/socket.h>
8231#endif
8232
Matthias Kloseb9621712010-04-24 17:59:498233"
Victor Stinnere0be4232011-10-25 11:06:098234if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
Martin v. Löwis11017b12006-01-14 18:12:578235 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498236#define HAVE_LINUX_NETLINK_H 1
Martin v. Löwis11017b12006-01-14 18:12:578237_ACEOF
8238
8239fi
8240
8241done
8242
8243
Charles-François Natali47413c12011-10-06 17:47:448244# On Linux, can.h and can/raw.h require sys/socket.h
Charles-François Natali773e42d2013-02-05 18:42:018245for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
Charles-François Natali47413c12011-10-06 17:47:448246do :
8247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8249#ifdef HAVE_SYS_SOCKET_H
8250#include <sys/socket.h>
8251#endif
8252
8253"
8254if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8255 cat >>confdefs.h <<_ACEOF
8256#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8257_ACEOF
8258
8259fi
8260
8261done
8262
8263
Guido van Rossum627b2d71993-12-24 10:39:168264# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:298265was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:498266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8267$as_echo_n "checking for clock_t in time.h... " >&6; }
8268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048269/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548270#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:038271
8272_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498274 $EGREP "clock_t" >/dev/null 2>&1; then :
Guido van Rossumda88dad1995-01-26 00:46:298275 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:168276else
Martin v. Löwis11437992002-04-12 09:54:038277
8278
Matthias Kloseb9621712010-04-24 17:59:498279$as_echo "#define clock_t long" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:168280
Martin v. Löwisc45929e2002-04-06 10:10:498281
Guido van Rossum627b2d71993-12-24 10:39:168282fi
Matthias Klosec80c93f2010-04-24 17:04:358283rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168284
Matthias Kloseb9621712010-04-24 17:59:498285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8286$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:298287
Matthias Kloseb9621712010-04-24 17:59:498288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8289$as_echo_n "checking for makedev... " >&6; }
8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048291/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:448292
Jesus Cea740f53a2010-04-28 11:35:308293#if defined(MAJOR_IN_MKDEV)
8294#include <sys/mkdev.h>
8295#elif defined(MAJOR_IN_SYSMACROS)
8296#include <sys/sysmacros.h>
8297#else
8298#include <sys/types.h>
8299#endif
8300
Neal Norwitz11690112002-07-30 01:08:288301int
8302main ()
8303{
Jesus Cea740f53a2010-04-28 11:35:308304
8305 makedev(0, 0)
Neal Norwitz11690112002-07-30 01:08:288306 ;
8307 return 0;
8308}
Matthias Kloseb159a552010-04-25 21:00:448309
Neal Norwitz11690112002-07-30 01:08:288310_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498311if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:288312 ac_cv_has_makedev=yes
8313else
Matthias Kloseb9621712010-04-24 17:59:498314 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:288315fi
Matthias Kloseb9621712010-04-24 17:59:498316rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8319$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:288320if test "$ac_cv_has_makedev" = "yes"; then
8321
Matthias Kloseb9621712010-04-24 17:59:498322$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:288323
8324fi
8325
Christian Heimes985ecdc2013-11-20 10:46:188326# byte swapping
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8328$as_echo_n "checking for le64toh... " >&6; }
8329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h. */
8331
8332#ifdef HAVE_ENDIAN_H
8333#include <endian.h>
8334#elif defined(HAVE_SYS_ENDIAN_H)
8335#include <sys/endian.h>
8336#endif
8337
8338int
8339main ()
8340{
8341
8342 le64toh(1)
8343 ;
8344 return 0;
8345}
8346
8347_ACEOF
8348if ac_fn_c_try_link "$LINENO"; then :
8349 ac_cv_has_le64toh=yes
8350else
8351 ac_cv_has_le64toh=no
8352fi
8353rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8356$as_echo "$ac_cv_has_le64toh" >&6; }
8357if test "$ac_cv_has_le64toh" = "yes"; then
8358
8359$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8360
8361fi
8362
Martin v. Löwis399a6892002-10-04 10:22:028363# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
8364# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
8365# defined, but the compiler does not support pragma redefine_extname,
8366# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
8367# structures (such as rlimit64) without declaring them. As a
8368# work-around, disable LFS on such configurations
8369
8370use_lfs=yes
Matthias Kloseb9621712010-04-24 17:59:498371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
8372$as_echo_n "checking Solaris LFS bug... " >&6; }
8373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048374/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:028375
8376#define _LARGEFILE_SOURCE 1
8377#define _FILE_OFFSET_BITS 64
8378#include <sys/resource.h>
8379
Martin v. Löwis399a6892002-10-04 10:22:028380int
8381main ()
8382{
8383struct rlimit foo;
8384 ;
8385 return 0;
8386}
8387_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498388if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis399a6892002-10-04 10:22:028389 sol_lfs_bug=no
8390else
Matthias Kloseb9621712010-04-24 17:59:498391 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:028392fi
Thomas Wouters47b49bf2007-08-30 22:15:338393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
8395$as_echo "$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:028396if test "$sol_lfs_bug" = "yes"; then
8397 use_lfs=no
8398fi
8399
doko@ubuntu.com006a56c2016-06-14 08:15:258400# Don't use largefile support for GNU/Hurd
8401case $ac_sys_system in GNU*)
8402 use_lfs=no
8403esac
8404
Martin v. Löwis399a6892002-10-04 10:22:028405if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:398406# Two defines needed to enable largefile support on various platforms
8407# These may affect some typedefs
Georg Brandl216e4042011-02-19 08:58:238408case $ac_sys_system/$ac_sys_release in
8409AIX*)
8410
8411$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8412
8413 ;;
8414esac
Guido van Rossum810cc512001-09-09 23:51:398415
Matthias Kloseb9621712010-04-24 17:59:498416$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038417
8418
Matthias Kloseb9621712010-04-24 17:59:498419$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
Guido van Rossum810cc512001-09-09 23:51:398420
Martin v. Löwis399a6892002-10-04 10:22:028421fi
Michael W. Hudson54241132001-12-07 15:38:268422
Guido van Rossum84e7b241996-08-19 21:59:008423# Add some code to confdefs.h so that the test for off_t works on SCO
8424cat >> confdefs.h <<\EOF
8425#if defined(SCO_DS)
8426#undef _OFF_T
8427#endif
8428EOF
8429
Guido van Rossumef2255b2000-03-10 22:30:298430# Type availability checks
Matthias Kloseb9621712010-04-24 17:59:498431ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098432if test "x$ac_cv_type_mode_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
8437#define mode_t int
8438_ACEOF
8439
8440fi
8441
Matthias Kloseb9621712010-04-24 17:59:498442ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098443if test "x$ac_cv_type_off_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
Thomas Wouters47b49bf2007-08-30 22:15:338448#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:038449_ACEOF
8450
8451fi
8452
Matthias Kloseb9621712010-04-24 17:59:498453ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098454if test "x$ac_cv_type_pid_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048455
Guido van Rossum76be6ed1995-01-02 18:33:548456else
Martin v. Löwis11437992002-04-12 09:54:038457
8458cat >>confdefs.h <<_ACEOF
8459#define pid_t int
8460_ACEOF
8461
8462fi
8463
Guido van Rossum48bdbfc1996-05-28 22:53:488464
Martin v. Löwis11437992002-04-12 09:54:038465cat >>confdefs.h <<_ACEOF
Matthias Klosebada4c32010-04-25 21:18:488466#define RETSIGTYPE void
Martin v. Löwis11437992002-04-12 09:54:038467_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:168468
Matthias Kloseb9621712010-04-24 17:59:498469ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098470if test "x$ac_cv_type_size_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048471
Guido van Rossum76be6ed1995-01-02 18:33:548472else
Martin v. Löwis11437992002-04-12 09:54:038473
8474cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338475#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:038476_ACEOF
8477
8478fi
8479
Matthias Kloseb9621712010-04-24 17:59:498480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8481$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098482if ${ac_cv_type_uid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498483 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038484else
Matthias Kloseb9621712010-04-24 17:59:498485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048486/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548487#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:038488
8489_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498491 $EGREP "uid_t" >/dev/null 2>&1; then :
Guido van Rossum76be6ed1995-01-02 18:33:548492 ac_cv_type_uid_t=yes
8493else
Guido van Rossum76be6ed1995-01-02 18:33:548494 ac_cv_type_uid_t=no
8495fi
Matthias Klosec80c93f2010-04-24 17:04:358496rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168497
Guido van Rossum76be6ed1995-01-02 18:33:548498fi
Matthias Kloseb9621712010-04-24 17:59:498499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8500$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:268501if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:548502
Matthias Kloseb9621712010-04-24 17:59:498503$as_echo "#define uid_t int" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038504
8505
Matthias Kloseb9621712010-04-24 17:59:498506$as_echo "#define gid_t int" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:548507
8508fi
8509
Mark Dickinson983bc162012-12-02 12:11:388510
Matthias Kloseb9621712010-04-24 17:59:498511ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098512if test "x$ac_cv_type_ssize_t" = xyes; then :
Thomas Wouters47b49bf2007-08-30 22:15:338513
Matthias Kloseb9621712010-04-24 17:59:498514$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
Martin v. Löwis18e16552006-02-15 17:27:458515
8516fi
8517
Stefan Krah1919b7e2012-03-21 17:25:238518ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8519if test "x$ac_cv_type___uint128_t" = xyes; then :
8520
8521$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8522
8523fi
8524
Jack Jansendd19cf82001-12-06 22:36:178525
Michael W. Hudson54241132001-12-07 15:38:268526# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:128527# ANSI C requires sizeof(char) == 1, so no need to check it
Thomas Wouters47b49bf2007-08-30 22:15:338528# The cast to long int works around a bug in the HP C Compiler
8529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8531# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8533$as_echo_n "checking size of int... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098534if ${ac_cv_sizeof_int+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498535 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038536else
Matthias Kloseb9621712010-04-24 17:59:498537 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:038538
Martin v. Löwis11437992002-04-12 09:54:038539else
Matthias Kloseb9621712010-04-24 17:59:498540 if test "$ac_cv_type_int" = yes; then
8541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308543as_fn_error 77 "cannot compute sizeof (int)
Victor Stinnere0be4232011-10-25 11:06:098544See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338545 else
8546 ac_cv_sizeof_int=0
8547 fi
Martin v. Löwis11437992002-04-12 09:54:038548fi
Matthias Kloseb9621712010-04-24 17:59:498549
Martin v. Löwis11437992002-04-12 09:54:038550fi
Matthias Kloseb9621712010-04-24 17:59:498551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8552$as_echo "$ac_cv_sizeof_int" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338553
8554
8555
Martin v. Löwis11437992002-04-12 09:54:038556cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168557#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:038558_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168559
8560
Thomas Wouters47b49bf2007-08-30 22:15:338561# The cast to long int works around a bug in the HP C Compiler
8562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8564# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8566$as_echo_n "checking size of long... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098567if ${ac_cv_sizeof_long+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498568 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038569else
Matthias Kloseb9621712010-04-24 17:59:498570 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:038571
Martin v. Löwis11437992002-04-12 09:54:038572else
Matthias Kloseb9621712010-04-24 17:59:498573 if test "$ac_cv_type_long" = yes; then
8574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308576as_fn_error 77 "cannot compute sizeof (long)
Victor Stinnere0be4232011-10-25 11:06:098577See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338578 else
8579 ac_cv_sizeof_long=0
8580 fi
Martin v. Löwis11437992002-04-12 09:54:038581fi
Matthias Kloseb9621712010-04-24 17:59:498582
Martin v. Löwis11437992002-04-12 09:54:038583fi
Matthias Kloseb9621712010-04-24 17:59:498584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8585$as_echo "$ac_cv_sizeof_long" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338586
8587
8588
Martin v. Löwis11437992002-04-12 09:54:038589cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168590#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:038591_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168592
8593
Thomas Wouters47b49bf2007-08-30 22:15:338594# The cast to long int works around a bug in the HP C Compiler
8595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8597# This bug is HP SR number 8606223364.
Benjamin Petersoned4aa832016-09-06 00:44:188598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8599$as_echo_n "checking size of long long... " >&6; }
8600if ${ac_cv_sizeof_long_long+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8604
8605else
8606 if test "$ac_cv_type_long_long" = yes; then
8607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8609as_fn_error 77 "cannot compute sizeof (long long)
8610See \`config.log' for more details" "$LINENO" 5; }
8611 else
8612 ac_cv_sizeof_long_long=0
8613 fi
8614fi
8615
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8618$as_echo "$ac_cv_sizeof_long_long" >&6; }
8619
8620
8621
8622cat >>confdefs.h <<_ACEOF
8623#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8624_ACEOF
8625
8626
8627# The cast to long int works around a bug in the HP C Compiler
8628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8630# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8632$as_echo_n "checking size of void *... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098633if ${ac_cv_sizeof_void_p+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498634 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038635else
Matthias Kloseb9621712010-04-24 17:59:498636 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:038637
Martin v. Löwis11437992002-04-12 09:54:038638else
Matthias Kloseb9621712010-04-24 17:59:498639 if test "$ac_cv_type_void_p" = yes; then
8640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308642as_fn_error 77 "cannot compute sizeof (void *)
Victor Stinnere0be4232011-10-25 11:06:098643See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338644 else
8645 ac_cv_sizeof_void_p=0
8646 fi
Martin v. Löwis11437992002-04-12 09:54:038647fi
Matthias Kloseb9621712010-04-24 17:59:498648
Martin v. Löwis11437992002-04-12 09:54:038649fi
Matthias Kloseb9621712010-04-24 17:59:498650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8651$as_echo "$ac_cv_sizeof_void_p" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338652
8653
8654
Martin v. Löwis11437992002-04-12 09:54:038655cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158656#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:038657_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158658
8659
Thomas Wouters47b49bf2007-08-30 22:15:338660# The cast to long int works around a bug in the HP C Compiler
8661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8663# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8665$as_echo_n "checking size of short... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098666if ${ac_cv_sizeof_short+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498667 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038668else
Matthias Kloseb9621712010-04-24 17:59:498669 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:038670
Martin v. Löwis11437992002-04-12 09:54:038671else
Matthias Kloseb9621712010-04-24 17:59:498672 if test "$ac_cv_type_short" = yes; then
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308675as_fn_error 77 "cannot compute sizeof (short)
Victor Stinnere0be4232011-10-25 11:06:098676See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338677 else
8678 ac_cv_sizeof_short=0
8679 fi
Martin v. Löwis11437992002-04-12 09:54:038680fi
Matthias Kloseb9621712010-04-24 17:59:498681
Martin v. Löwis11437992002-04-12 09:54:038682fi
Matthias Kloseb9621712010-04-24 17:59:498683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8684$as_echo "$ac_cv_sizeof_short" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338685
8686
8687
Martin v. Löwis11437992002-04-12 09:54:038688cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298689#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:038690_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298691
8692
Thomas Wouters47b49bf2007-08-30 22:15:338693# The cast to long int works around a bug in the HP C Compiler
8694# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8695# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8696# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8698$as_echo_n "checking size of float... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098699if ${ac_cv_sizeof_float+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498700 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038701else
Matthias Kloseb9621712010-04-24 17:59:498702 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:038703
Martin v. Löwis11437992002-04-12 09:54:038704else
Matthias Kloseb9621712010-04-24 17:59:498705 if test "$ac_cv_type_float" = yes; then
8706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308708as_fn_error 77 "cannot compute sizeof (float)
Victor Stinnere0be4232011-10-25 11:06:098709See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338710 else
8711 ac_cv_sizeof_float=0
8712 fi
Martin v. Löwis11437992002-04-12 09:54:038713fi
Matthias Kloseb9621712010-04-24 17:59:498714
Martin v. Löwis11437992002-04-12 09:54:038715fi
Matthias Kloseb9621712010-04-24 17:59:498716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8717$as_echo "$ac_cv_sizeof_float" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338718
8719
8720
Martin v. Löwis11437992002-04-12 09:54:038721cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298722#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:038723_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298724
8725
Thomas Wouters47b49bf2007-08-30 22:15:338726# The cast to long int works around a bug in the HP C Compiler
8727# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8728# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8729# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8731$as_echo_n "checking size of double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098732if ${ac_cv_sizeof_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498733 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038734else
Matthias Kloseb9621712010-04-24 17:59:498735 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:038736
Martin v. Löwis11437992002-04-12 09:54:038737else
Matthias Kloseb9621712010-04-24 17:59:498738 if test "$ac_cv_type_double" = yes; then
8739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308741as_fn_error 77 "cannot compute sizeof (double)
Victor Stinnere0be4232011-10-25 11:06:098742See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338743 else
8744 ac_cv_sizeof_double=0
8745 fi
Martin v. Löwis11437992002-04-12 09:54:038746fi
Matthias Kloseb9621712010-04-24 17:59:498747
Martin v. Löwis11437992002-04-12 09:54:038748fi
Matthias Kloseb9621712010-04-24 17:59:498749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8750$as_echo "$ac_cv_sizeof_double" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338751
8752
8753
Martin v. Löwis11437992002-04-12 09:54:038754cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298755#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:038756_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298757
8758
Thomas Wouters47b49bf2007-08-30 22:15:338759# The cast to long int works around a bug in the HP C Compiler
8760# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8761# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8762# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8764$as_echo_n "checking size of fpos_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098765if ${ac_cv_sizeof_fpos_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498766 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038767else
Matthias Kloseb9621712010-04-24 17:59:498768 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:038769
Martin v. Löwis11437992002-04-12 09:54:038770else
Matthias Kloseb9621712010-04-24 17:59:498771 if test "$ac_cv_type_fpos_t" = yes; then
8772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308774as_fn_error 77 "cannot compute sizeof (fpos_t)
Victor Stinnere0be4232011-10-25 11:06:098775See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338776 else
8777 ac_cv_sizeof_fpos_t=0
8778 fi
Martin v. Löwis11437992002-04-12 09:54:038779fi
Matthias Kloseb9621712010-04-24 17:59:498780
Martin v. Löwis11437992002-04-12 09:54:038781fi
Matthias Kloseb9621712010-04-24 17:59:498782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8783$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338784
8785
8786
Martin v. Löwis11437992002-04-12 09:54:038787cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538788#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:038789_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538790
Michael W. Hudson54241132001-12-07 15:38:268791
Thomas Wouters47b49bf2007-08-30 22:15:338792# The cast to long int works around a bug in the HP C Compiler
8793# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8794# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8795# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8797$as_echo_n "checking size of size_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098798if ${ac_cv_sizeof_size_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498799 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:458800else
Matthias Kloseb9621712010-04-24 17:59:498801 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:458802
Martin v. Löwis18e16552006-02-15 17:27:458803else
Matthias Kloseb9621712010-04-24 17:59:498804 if test "$ac_cv_type_size_t" = yes; then
8805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308807as_fn_error 77 "cannot compute sizeof (size_t)
Victor Stinnere0be4232011-10-25 11:06:098808See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338809 else
8810 ac_cv_sizeof_size_t=0
8811 fi
Martin v. Löwis18e16552006-02-15 17:27:458812fi
Matthias Kloseb9621712010-04-24 17:59:498813
Martin v. Löwis18e16552006-02-15 17:27:458814fi
Matthias Kloseb9621712010-04-24 17:59:498815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8816$as_echo "$ac_cv_sizeof_size_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338817
8818
8819
Martin v. Löwis18e16552006-02-15 17:27:458820cat >>confdefs.h <<_ACEOF
8821#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8822_ACEOF
8823
8824
Christian Heimes400adb02008-02-01 08:12:038825# The cast to long int works around a bug in the HP C Compiler
8826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8828# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8830$as_echo_n "checking size of pid_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098831if ${ac_cv_sizeof_pid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498832 $as_echo_n "(cached) " >&6
Christian Heimes400adb02008-02-01 08:12:038833else
Matthias Kloseb9621712010-04-24 17:59:498834 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:038835
Christian Heimes400adb02008-02-01 08:12:038836else
Matthias Kloseb9621712010-04-24 17:59:498837 if test "$ac_cv_type_pid_t" = yes; then
8838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308840as_fn_error 77 "cannot compute sizeof (pid_t)
Victor Stinnere0be4232011-10-25 11:06:098841See \`config.log' for more details" "$LINENO" 5; }
Christian Heimes400adb02008-02-01 08:12:038842 else
8843 ac_cv_sizeof_pid_t=0
8844 fi
8845fi
Matthias Kloseb9621712010-04-24 17:59:498846
Christian Heimes400adb02008-02-01 08:12:038847fi
Matthias Kloseb9621712010-04-24 17:59:498848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8849$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes400adb02008-02-01 08:12:038850
8851
8852
8853cat >>confdefs.h <<_ACEOF
8854#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8855_ACEOF
8856
8857
Benjamin Petersondf6ff7b2016-09-06 20:53:148858# The cast to long int works around a bug in the HP C Compiler
8859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8861# This bug is HP SR number 8606223364.
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8863$as_echo_n "checking size of uintptr_t... " >&6; }
8864if ${ac_cv_sizeof_uintptr_t+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866else
8867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8868
8869else
8870 if test "$ac_cv_type_uintptr_t" = yes; then
8871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8873as_fn_error 77 "cannot compute sizeof (uintptr_t)
8874See \`config.log' for more details" "$LINENO" 5; }
8875 else
8876 ac_cv_sizeof_uintptr_t=0
8877 fi
8878fi
8879
8880fi
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8882$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8883
8884
8885
8886cat >>confdefs.h <<_ACEOF
8887#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8888_ACEOF
8889
8890
Michael W. Hudson54241132001-12-07 15:38:268891
Matthias Kloseb9621712010-04-24 17:59:498892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8893$as_echo_n "checking for long double support... " >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378894have_long_double=no
Matthias Kloseb9621712010-04-24 17:59:498895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Travis E. Oliphant9b307842007-10-12 22:06:378896/* end confdefs.h. */
8897
8898int
8899main ()
8900{
8901long double x; x = (long double)0;
8902 ;
8903 return 0;
8904}
8905_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498906if ac_fn_c_try_compile "$LINENO"; then :
Travis E. Oliphant9b307842007-10-12 22:06:378907
8908
Matthias Kloseb9621712010-04-24 17:59:498909$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Travis E. Oliphant9b307842007-10-12 22:06:378910
8911 have_long_double=yes
8912
Travis E. Oliphant9b307842007-10-12 22:06:378913fi
Travis E. Oliphant9b307842007-10-12 22:06:378914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8916$as_echo "$have_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378917if test "$have_long_double" = yes ; then
Travis E. Oliphant9b307842007-10-12 22:06:378918# The cast to long int works around a bug in the HP C Compiler
8919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8921# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8923$as_echo_n "checking size of long double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098924if ${ac_cv_sizeof_long_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498925 $as_echo_n "(cached) " >&6
Travis E. Oliphant9b307842007-10-12 22:06:378926else
Matthias Kloseb9621712010-04-24 17:59:498927 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:378928
Travis E. Oliphant9b307842007-10-12 22:06:378929else
Matthias Kloseb9621712010-04-24 17:59:498930 if test "$ac_cv_type_long_double" = yes; then
8931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308933as_fn_error 77 "cannot compute sizeof (long double)
Victor Stinnere0be4232011-10-25 11:06:098934See \`config.log' for more details" "$LINENO" 5; }
Travis E. Oliphant9b307842007-10-12 22:06:378935 else
8936 ac_cv_sizeof_long_double=0
8937 fi
8938fi
Matthias Kloseb9621712010-04-24 17:59:498939
Travis E. Oliphant9b307842007-10-12 22:06:378940fi
Matthias Kloseb9621712010-04-24 17:59:498941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8942$as_echo "$ac_cv_sizeof_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378943
8944
8945
8946cat >>confdefs.h <<_ACEOF
8947#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8948_ACEOF
8949
8950
8951fi
8952
Thomas Wouters47b49bf2007-08-30 22:15:338953# The cast to long int works around a bug in the HP C Compiler
8954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8956# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8958$as_echo_n "checking size of _Bool... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098959if ${ac_cv_sizeof__Bool+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498960 $as_echo_n "(cached) " >&6
Thomas Woutersb2137042007-02-01 18:02:278961else
Matthias Kloseb9621712010-04-24 17:59:498962 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:278963
Thomas Woutersb2137042007-02-01 18:02:278964else
Matthias Kloseb9621712010-04-24 17:59:498965 if test "$ac_cv_type__Bool" = yes; then
8966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308968as_fn_error 77 "cannot compute sizeof (_Bool)
Victor Stinnere0be4232011-10-25 11:06:098969See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338970 else
8971 ac_cv_sizeof__Bool=0
8972 fi
Thomas Woutersb2137042007-02-01 18:02:278973fi
Matthias Kloseb9621712010-04-24 17:59:498974
Thomas Woutersb2137042007-02-01 18:02:278975fi
Matthias Kloseb9621712010-04-24 17:59:498976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8977$as_echo "$ac_cv_sizeof__Bool" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338978
8979
8980
Thomas Woutersb2137042007-02-01 18:02:278981cat >>confdefs.h <<_ACEOF
8982#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8983_ACEOF
8984
8985
Thomas Woutersb2137042007-02-01 18:02:278986
Alexandre Vassalottib0a61d72009-07-17 23:19:378987# The cast to long int works around a bug in the HP C Compiler
8988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8990# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8992$as_echo_n "checking size of off_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098993if ${ac_cv_sizeof_off_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498994 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:378995else
Matthias Kloseb9621712010-04-24 17:59:498996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:378997#ifdef HAVE_SYS_TYPES_H
8998#include <sys/types.h>
8999#endif
9000
Matthias Kloseb9621712010-04-24 17:59:499001"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379002
Alexandre Vassalottib0a61d72009-07-17 23:19:379003else
Matthias Kloseb9621712010-04-24 17:59:499004 if test "$ac_cv_type_off_t" = yes; then
9005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309007as_fn_error 77 "cannot compute sizeof (off_t)
Victor Stinnere0be4232011-10-25 11:06:099008See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379009 else
9010 ac_cv_sizeof_off_t=0
9011 fi
Guido van Rossumf98e2a71999-01-06 18:53:349012fi
Matthias Kloseb9621712010-04-24 17:59:499013
Guido van Rossumf98e2a71999-01-06 18:53:349014fi
Matthias Kloseb9621712010-04-24 17:59:499015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9016$as_echo "$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039017
Alexandre Vassalottib0a61d72009-07-17 23:19:379018
9019
Martin v. Löwis11437992002-04-12 09:54:039020cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:349021#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:039022_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:349023
Michael W. Hudson54241132001-12-07 15:38:269024
Alexandre Vassalottib0a61d72009-07-17 23:19:379025
Matthias Kloseb9621712010-04-24 17:59:499026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
9027$as_echo_n "checking whether to enable large file support... " >&6; }
Mark Dickinson2df5d282009-12-31 21:22:509028if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
Guido van Rossum96f2eb91999-04-10 16:02:189029 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:349030
Matthias Kloseb9621712010-04-24 17:59:499031$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039032
Matthias Kloseb9621712010-04-24 17:59:499033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9034$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:349035else
Matthias Kloseb9621712010-04-24 17:59:499036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:349038fi
9039
Alexandre Vassalottib0a61d72009-07-17 23:19:379040# The cast to long int works around a bug in the HP C Compiler
9041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9043# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:499044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9045$as_echo_n "checking size of time_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099046if ${ac_cv_sizeof_time_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499047 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379048else
Matthias Kloseb9621712010-04-24 17:59:499049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379050#ifdef HAVE_SYS_TYPES_H
9051#include <sys/types.h>
9052#endif
9053#ifdef HAVE_TIME_H
9054#include <time.h>
9055#endif
9056
Matthias Kloseb9621712010-04-24 17:59:499057"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379058
Alexandre Vassalottib0a61d72009-07-17 23:19:379059else
Matthias Kloseb9621712010-04-24 17:59:499060 if test "$ac_cv_type_time_t" = yes; then
9061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309063as_fn_error 77 "cannot compute sizeof (time_t)
Victor Stinnere0be4232011-10-25 11:06:099064See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379065 else
9066 ac_cv_sizeof_time_t=0
9067 fi
Guido van Rossumb9a22a12000-06-30 02:48:539068fi
Matthias Kloseb9621712010-04-24 17:59:499069
Guido van Rossumb9a22a12000-06-30 02:48:539070fi
Matthias Kloseb9621712010-04-24 17:59:499071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9072$as_echo "$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039073
Alexandre Vassalottib0a61d72009-07-17 23:19:379074
9075
Martin v. Löwis11437992002-04-12 09:54:039076cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539077#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:039078_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539079
Michael W. Hudson54241132001-12-07 15:38:269080
9081
Trent Mick635f6fb2000-08-23 21:33:059082# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:109083ac_save_cc="$CC"
9084if test "$ac_cv_kpthread" = "yes"
9085then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:309086elif test "$ac_cv_kthread" = "yes"
9087then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:519088elif test "$ac_cv_pthread" = "yes"
9089then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:109090fi
Alexandre Vassalottib0a61d72009-07-17 23:19:379091
Matthias Kloseb9621712010-04-24 17:59:499092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9093$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:059094have_pthread_t=no
Matthias Kloseb9621712010-04-24 17:59:499095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049096/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:449097
9098 #include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:039099int
9100main ()
9101{
Guido van Rossum12580492000-09-24 16:47:199102pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:039103 ;
9104 return 0;
9105}
Matthias Kloseb159a552010-04-25 21:00:449106
Martin v. Löwis11437992002-04-12 09:54:039107_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499108if ac_fn_c_try_compile "$LINENO"; then :
Trent Mick635f6fb2000-08-23 21:33:059109 have_pthread_t=yes
Trent Mick635f6fb2000-08-23 21:33:059110fi
Thomas Wouters47b49bf2007-08-30 22:15:339111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:499112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9113$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:059114if test "$have_pthread_t" = yes ; then
Matthias Kloseb9621712010-04-24 17:59:499115 # The cast to long int works around a bug in the HP C Compiler
Alexandre Vassalottib0a61d72009-07-17 23:19:379116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9118# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:499119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9120$as_echo_n "checking size of pthread_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099121if ${ac_cv_sizeof_pthread_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499122 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379123else
Matthias Kloseb9621712010-04-24 17:59:499124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379125#ifdef HAVE_PTHREAD_H
9126#include <pthread.h>
9127#endif
9128
Matthias Kloseb9621712010-04-24 17:59:499129"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379130
Alexandre Vassalottib0a61d72009-07-17 23:19:379131else
Matthias Kloseb9621712010-04-24 17:59:499132 if test "$ac_cv_type_pthread_t" = yes; then
9133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309135as_fn_error 77 "cannot compute sizeof (pthread_t)
Victor Stinnere0be4232011-10-25 11:06:099136See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379137 else
9138 ac_cv_sizeof_pthread_t=0
9139 fi
Trent Mick635f6fb2000-08-23 21:33:059140fi
Matthias Kloseb9621712010-04-24 17:59:499141
Trent Mick635f6fb2000-08-23 21:33:059142fi
Matthias Kloseb9621712010-04-24 17:59:499143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9144$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039145
Alexandre Vassalottib0a61d72009-07-17 23:19:379146
9147
Martin v. Löwis11437992002-04-12 09:54:039148cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059149#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:039150_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059151
Alexandre Vassalottib0a61d72009-07-17 23:19:379152
Trent Mick635f6fb2000-08-23 21:33:059153fi
Martin v. Löwis123cbd22001-07-19 14:21:109154CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:059155
Michael W. Hudson54241132001-12-07 15:38:269156
Guido van Rossum54ecc3d1999-01-27 17:53:119157case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589158 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:479159 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9160 ;;
9161 Darwin/*)
9162 OTHER_LIBTOOL_OPT=""
9163 ;;
9164esac
9165
9166
Ronald Oussoren5bbab3e2009-09-06 11:01:159167
Bob Ippolito7026a0a2005-03-28 23:23:479168case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589169 Darwin/[01567]\..*)
Thomas Wouters477c8d52006-05-27 19:21:479170 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9171 if test "${enable_universalsdk}"; then
9172 :
9173 else
Ronald Oussorene3da75a2010-02-11 13:38:589174 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
Thomas Wouters477c8d52006-05-27 19:21:479175 fi
Jack Jansenb36687a2004-07-16 08:43:479176 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129177 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:359178 Darwin/*)
Ronald Oussoren9812a6c2010-02-07 11:53:189179 gcc_version=`gcc -dumpversion`
Bob Ippolito7026a0a2005-03-28 23:23:479180 if test ${gcc_version} '<' 4.0
9181 then
9182 LIBTOOL_CRUFT="-lcc_dynamic"
9183 else
9184 LIBTOOL_CRUFT=""
9185 fi
Matthias Kloseb9621712010-04-24 17:59:499186 if test "$cross_compiling" = yes; then :
Ronald Oussoren3c064c12009-09-08 07:12:429187 ac_osx_32bit=yes
Ronald Oussoren5bbab3e2009-09-06 11:01:159188else
Matthias Kloseb9621712010-04-24 17:59:499189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159190/* end confdefs.h. */
Ronald Oussoren3c064c12009-09-08 07:12:429191
Ronald Oussoren5bbab3e2009-09-06 11:01:159192 #include <unistd.h>
9193 int main(int argc, char*argv[])
9194 {
9195 if (sizeof(long) == 4) {
9196 return 0;
9197 } else {
9198 return 1;
9199 }
Ronald Oussoren3c064c12009-09-08 07:12:429200 }
9201
Ronald Oussoren5bbab3e2009-09-06 11:01:159202_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499203if ac_fn_c_try_run "$LINENO"; then :
Ronald Oussoren5bbab3e2009-09-06 11:01:159204 ac_osx_32bit=yes
9205else
Matthias Kloseb9621712010-04-24 17:59:499206 ac_osx_32bit=no
Ronald Oussoren5bbab3e2009-09-06 11:01:159207fi
Matthias Kloseb9621712010-04-24 17:59:499208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9209 conftest.$ac_objext conftest.beam conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159210fi
9211
9212
Ronald Oussoren5bbab3e2009-09-06 11:01:159213 if test "${ac_osx_32bit}" = "yes"; then
Ronald Oussorene3da75a2010-02-11 13:38:589214 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159215 i386)
9216 MACOSX_DEFAULT_ARCH="i386"
9217 ;;
9218 ppc)
9219 MACOSX_DEFAULT_ARCH="ppc"
9220 ;;
9221 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:309222 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159223 ;;
9224 esac
9225 else
Ronald Oussorene3da75a2010-02-11 13:38:589226 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159227 i386)
9228 MACOSX_DEFAULT_ARCH="x86_64"
9229 ;;
9230 ppc)
9231 MACOSX_DEFAULT_ARCH="ppc64"
9232 ;;
9233 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:309234 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159235 ;;
9236 esac
9237
Ronald Oussoren5bbab3e2009-09-06 11:01:159238 fi
9239
9240 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
Jack Jansenb36687a2004-07-16 08:43:479241 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149242 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:119243esac
Matthias Kloseb9621712010-04-24 17:59:499244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9245$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:149246if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:119247then
Skip Montanarodecc6a42003-01-01 20:07:499248 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:039249 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:149250 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:119251
Matthias Kloseb9621712010-04-24 17:59:499252$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039253
Matthias Kloseb9621712010-04-24 17:59:499254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9255$as_echo "yes" >&6; }
Ronald Oussoren99aab652009-06-08 21:22:579256 if test $enable_shared = "yes"
9257 then
Ross Lagerwallb0ae53d2011-06-10 05:30:309258 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:579259 fi
Guido van Rossum54ecc3d1999-01-27 17:53:119260else
Matthias Kloseb9621712010-04-24 17:59:499261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:119263fi
9264
Matthias Kloseb9621712010-04-24 17:59:499265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9266$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149267case $ac_sys_system/$ac_sys_release in
9268 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:119269
Matthias Kloseb9621712010-04-24 17:59:499270$as_echo "#define WITH_DYLD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039271
Matthias Kloseb9621712010-04-24 17:59:499272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9273$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149274 ;;
9275 *)
Matthias Kloseb9621712010-04-24 17:59:499276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:149278 ;;
Jack Jansen9a66b6d2001-08-08 13:56:149279esac
Guido van Rossum54ecc3d1999-01-27 17:53:119280
Guido van Rossum0a516c91994-09-12 10:58:409281# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:409282
Michael W. Hudson54241132001-12-07 15:38:269283
9284
9285
9286
Benjamin Peterson99f03762010-04-11 22:15:289287
Thomas Wouters477c8d52006-05-27 19:21:479288
doko@ubuntu.comd5537d02013-03-21 20:21:499289# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9290# -- usually .so, .sl on HP-UX, .dll on Cygwin
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9292$as_echo_n "checking the extension of shared libraries... " >&6; }
9293if test -z "$SHLIB_SUFFIX"; then
9294 case $ac_sys_system in
9295 hp*|HP*)
9296 case `uname -m` in
9297 ia64) SHLIB_SUFFIX=.so;;
9298 *) SHLIB_SUFFIX=.sl;;
9299 esac
9300 ;;
9301 CYGWIN*) SHLIB_SUFFIX=.dll;;
9302 *) SHLIB_SUFFIX=.so;;
9303 esac
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9306$as_echo "$SHLIB_SUFFIX" >&6; }
Thomas Wouters477c8d52006-05-27 19:21:479307
Guido van Rossum0a516c91994-09-12 10:58:409308# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:179309# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:119310# (Shared libraries in this instance are shared modules to be loaded into
9311# Python, as opposed to building Python itself as a shared library.)
Matthias Kloseb9621712010-04-24 17:59:499312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9313$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409314if test -z "$LDSHARED"
9315then
Guido van Rossum76be6ed1995-01-02 18:33:549316 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549317 AIX*)
Martin Panter395733d2016-11-20 07:56:379318 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Martin Panter5de141f2016-08-27 04:00:199319 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:549320 ;;
Guido van Rossum07397971997-04-29 21:49:509321 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:139322 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:039323 SunOS/5*)
Benjamin Peterson99f03762010-04-11 22:15:289324 if test "$GCC" = "yes" ; then
9325 LDSHARED='$(CC) -shared'
9326 LDCXXSHARED='$(CXX) -shared'
9327 else
9328 LDSHARED='$(CC) -G'
9329 LDCXXSHARED='$(CXX) -G'
Greg Ward57c9a6632000-05-26 12:22:549330 fi ;;
Thomas Hellerf44b9a12008-04-04 10:18:239331 hp*|HP*)
Benjamin Peterson99f03762010-04-11 22:15:289332 if test "$GCC" = "yes" ; then
9333 LDSHARED='$(CC) -shared'
9334 LDCXXSHARED='$(CXX) -shared'
9335 else
9336 LDSHARED='ld -b'
Thomas Hellerf44b9a12008-04-04 10:18:239337 fi ;;
Jack Jansen418c3b12001-11-14 10:59:579338 Darwin/1.3*)
Antoine Pitroud4958c22010-10-13 17:01:109339 LDSHARED='$(CC) -bundle'
9340 LDCXXSHARED='$(CXX) -bundle'
Jack Jansena3891ea2001-09-07 14:25:129341 if test "$enable_framework" ; then
9342 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229343 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9344 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289345 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129346 else
9347 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:579348 LDSHARED="$LDSHARED -undefined suppress"
Benjamin Peterson99f03762010-04-11 22:15:289349 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:129350 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459351 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Antoine Pitroud4958c22010-10-13 17:01:109352 LDSHARED='$(CC) -bundle'
9353 LDCXXSHARED='$(CXX) -bundle'
Jack Jansene578a632001-08-15 01:27:149354 if test "$enable_framework" ; then
9355 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229356 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9357 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289358 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149359 else
Michael W. Hudson594bc802002-03-07 09:59:159360 # No framework, use the Python app as bundle-loader
9361 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:439362 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289363 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:119364 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459365 Darwin/*)
9366 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9367 # This allows an extension to be used in any Python
Thomas Wouters89d996e2007-09-08 17:39:289368
Ned Deily36820b62014-06-25 20:44:229369 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9370 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9371 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9372 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9373 if test ${dep_target_major} -eq 10 && \
9374 test ${dep_target_minor} -le 2
Jack Jansen6b08a402004-06-03 12:41:459375 then
Ned Deily36820b62014-06-25 20:44:229376 # building for OS X 10.0 through 10.2
Antoine Pitroud4958c22010-10-13 17:01:109377 LDSHARED='$(CC) -bundle'
9378 LDCXXSHARED='$(CXX) -bundle'
Jack Jansen6b08a402004-06-03 12:41:459379 if test "$enable_framework" ; then
9380 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229381 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9382 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289383 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:459384 else
9385 # No framework, use the Python app as bundle-loader
9386 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9387 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289388 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Jack Jansen6b08a402004-06-03 12:41:459389 fi
Ned Deily36820b62014-06-25 20:44:229390 else
9391 # building for OS X 10.3 and later
9392 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9393 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9394 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:459395 fi
9396 ;;
Benjamin Peterson99f03762010-04-11 22:15:289397 Linux*|GNU*|QNX*)
9398 LDSHARED='$(CC) -shared'
9399 LDCXXSHARED='$(CXX) -shared';;
9400 BSD/OS*/4*)
9401 LDSHARED="gcc -shared"
9402 LDCXXSHARED="g++ -shared";;
Thomas Wouters1ba5b3b2006-06-08 14:52:479403 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:359404 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:499405 then
Antoine Pitroud4958c22010-10-13 17:01:109406 LDSHARED='$(CC) -shared'
9407 LDCXXSHARED='$(CXX) -shared'
Guido van Rossum0286ae82000-08-29 15:06:499408 else
Antoine Pitroud4958c22010-10-13 17:01:109409 LDSHARED="ld -Bshareable"
Guido van Rossum0286ae82000-08-29 15:06:499410 fi;;
Thomas Wouters1ba5b3b2006-06-08 14:52:479411 OpenBSD*)
9412 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9413 then
Antoine Pitroud4958c22010-10-13 17:01:109414 LDSHARED='$(CC) -shared $(CCSHARED)'
9415 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479416 else
9417 case `uname -r` in
9418 [01].* | 2.[0-7] | 2.[0-7].*)
9419 LDSHARED="ld -Bshareable ${LDFLAGS}"
9420 ;;
9421 *)
Antoine Pitroud4958c22010-10-13 17:01:109422 LDSHARED='$(CC) -shared $(CCSHARED)'
9423 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479424 ;;
9425 esac
9426 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289427 NetBSD*|DragonFly*)
Antoine Pitrouece919e2011-01-02 20:45:219428 LDSHARED='$(CC) -shared'
9429 LDCXXSHARED='$(CXX) -shared';;
Martin v. Löwis25ae43b2001-10-07 08:39:189430 OpenUNIX*|UnixWare*)
Benjamin Peterson99f03762010-04-11 22:15:289431 if test "$GCC" = "yes" ; then
9432 LDSHARED='$(CC) -shared'
9433 LDCXXSHARED='$(CXX) -shared'
9434 else
9435 LDSHARED='$(CC) -G'
9436 LDCXXSHARED='$(CXX) -G'
Martin v. Löwisbec19582001-03-21 15:57:549437 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289438 SCO_SV*)
9439 LDSHARED='$(CC) -Wl,-G,-Bexport'
9440 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9441 CYGWIN*)
9442 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9443 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:409444 *) LDSHARED="ld";;
9445 esac
Guido van Rossum0a516c91994-09-12 10:58:409446fi
Matthias Kloseb9621712010-04-24 17:59:499447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9448$as_echo "$LDSHARED" >&6; }
Benjamin Peterson99f03762010-04-11 22:15:289449LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
Neil Schemenauer4a7bbcb2001-02-16 03:37:549450BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:409451# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:119452# library (module) -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9454$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409455if test -z "$CCSHARED"
9456then
Guido van Rossum07397971997-04-29 21:49:509457 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:499458 SunOS*) if test "$GCC" = yes;
Skip Montanaroeb33e5a2007-08-17 12:57:419459 then CCSHARED="-fPIC";
9460 elif test `uname -p` = sparc;
9461 then CCSHARED="-xcode=pic32";
9462 else CCSHARED="-Kpic";
9463 fi;;
Guido van Rossumaf07a441995-02-13 19:45:279464 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:529465 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:279466 else CCSHARED="+z";
9467 fi;;
Xavier de Gaye2a352b62017-01-04 20:51:169468 Linux-android*) ;;
Martin v. Löwisa6e97582002-01-01 18:41:339469 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:339470 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:119471 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:189472 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:549473 if test "$GCC" = "yes"
9474 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:419475 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:549476 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:489477 SCO_SV*)
9478 if test "$GCC" = "yes"
9479 then CCSHARED="-fPIC"
9480 else CCSHARED="-Kpic -belf"
9481 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:099482 IRIX*/6*) case $CC in
9483 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:549484 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:099485 esac;;
Guido van Rossum0a516c91994-09-12 10:58:409486 esac
Guido van Rossum0a516c91994-09-12 10:58:409487fi
Matthias Kloseb9621712010-04-24 17:59:499488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9489$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409490# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:289491# the python executable -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9493$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409494if test -z "$LINKFORSHARED"
9495then
Guido van Rossum07397971997-04-29 21:49:509496 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549497 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:169498 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:319499 LINKFORSHARED="-Wl,-E -Wl,+s";;
9500# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:339501 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Xavier de Gaye2a352b62017-01-04 20:51:169502 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:339503 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:119504 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:039505 Darwin/*)
Benjamin Peterson9c80cac2009-05-23 16:34:239506 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
Miss Islington (bot)782854f2019-07-02 07:48:599507
9508 # Issue #18075: the default maximum stack size (8MBytes) is too
9509 # small for the default recursion limit. Increase the stack size
9510 # to ensure that tests don't crash
9511 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9512
Jack Jansene578a632001-08-15 01:27:149513 if test "$enable_framework"
9514 then
Jack Jansenda49e192005-01-07 13:08:229515 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149516 fi
Anthony Baxtereef2d3b2004-11-06 04:45:339517 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:189518 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:489519 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:469520 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:119521 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:419522 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9523 then
9524 LINKFORSHARED="-Wl,--export-dynamic"
9525 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:099526 SunOS/5*) case $CC in
9527 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:369528 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:199529 then
9530 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:099531 fi;;
9532 esac;;
Jason Tishler30765592003-09-04 11:04:069533 CYGWIN*)
9534 if test $enable_shared = "no"
9535 then
9536 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9537 fi;;
Benjamin Petersonde9c8692008-07-01 18:23:099538 QNX*)
9539 # -Wl,-E causes the symbols to be added to the dynamic
9540 # symbol table so that they can be found when a module
9541 # is loaded. -N 2048K causes the stack size to be set
9542 # to 2048 kilobytes so that the stack doesn't overflow
9543 # when running test_compile.py.
9544 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:409545 esac
Guido van Rossum0a516c91994-09-12 10:58:409546fi
Matthias Kloseb9621712010-04-24 17:59:499547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9548$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409549
Michael W. Hudson54241132001-12-07 15:38:269550
Benjamin Peterson8f95cc22008-07-16 02:23:259551
Matthias Kloseb9621712010-04-24 17:59:499552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9553$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209554if test ! "$LIBRARY" = "$LDLIBRARY"
9555then
Neil Schemenauer0c6141f2001-01-27 21:40:549556 case $ac_sys_system in
9557 CYGWIN*)
9558 # Cygwin needs CCSHARED when building extension DLLs
9559 # but not when building the interpreter DLL.
9560 CFLAGSFORSHARED='';;
9561 *)
9562 CFLAGSFORSHARED='$(CCSHARED)'
9563 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:209564fi
Matthias Kloseb9621712010-04-24 17:59:499565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9566$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209567
Martin v. Löwisf90ae202002-06-11 06:22:319568# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9569# library (with --enable-shared).
9570# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:509571# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9572# if it is not required, since it creates a dependency of the shared library
9573# to LIBS. This, in turn, means that applications linking the shared libpython
9574# don't need to link LIBS explicitly. The default should be only changed
9575# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:319576
Matthias Kloseb9621712010-04-24 17:59:499577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9578$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319579case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:319580 *)
Martin v. Löwisd6359c52002-08-04 12:38:509581 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:319582esac
Matthias Kloseb9621712010-04-24 17:59:499583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9584$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319585
9586
Guido van Rossum627b2d71993-12-24 10:39:169587# checks for libraries
Georg Brandl941f9562011-02-25 15:21:479588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9589$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099590if ${ac_cv_lib_sendfile_sendfile+:} false; then :
Georg Brandl941f9562011-02-25 15:21:479591 $as_echo_n "(cached) " >&6
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-lsendfile $LIBS"
9595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
9597
9598/* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601#ifdef __cplusplus
9602extern "C"
9603#endif
9604char sendfile ();
9605int
9606main ()
9607{
9608return sendfile ();
9609 ;
9610 return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614 ac_cv_lib_sendfile_sendfile=yes
9615else
9616 ac_cv_lib_sendfile_sendfile=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620LIBS=$ac_check_lib_save_LIBS
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9623$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099624if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
Georg Brandl941f9562011-02-25 15:21:479625 cat >>confdefs.h <<_ACEOF
9626#define HAVE_LIBSENDFILE 1
9627_ACEOF
9628
9629 LIBS="-lsendfile $LIBS"
9630
9631fi
9632
Matthias Kloseb9621712010-04-24 17:59:499633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9634$as_echo_n "checking for dlopen in -ldl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099635if ${ac_cv_lib_dl_dlopen+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499636 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549637else
Martin v. Löwis11437992002-04-12 09:54:039638 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289639LIBS="-ldl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049641/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039642
Thomas Wouters47b49bf2007-08-30 22:15:339643/* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039646#ifdef __cplusplus
9647extern "C"
9648#endif
Martin v. Löwis11437992002-04-12 09:54:039649char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039650int
9651main ()
9652{
Thomas Wouters47b49bf2007-08-30 22:15:339653return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039654 ;
9655 return 0;
9656}
9657_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499658if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039659 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:549660else
Matthias Kloseb9621712010-04-24 17:59:499661 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:169662fi
Matthias Kloseb9621712010-04-24 17:59:499663rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039665LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169666fi
Matthias Kloseb9621712010-04-24 17:59:499667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9668$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099669if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039670 cat >>confdefs.h <<_ACEOF
9671#define HAVE_LIBDL 1
9672_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169673
Guido van Rossum8ddd0ad1995-06-14 23:10:289674 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:309675
Guido van Rossum76be6ed1995-01-02 18:33:549676fi
9677 # Dynamic linking for SunOS/Solaris and SYSV
Matthias Kloseb9621712010-04-24 17:59:499678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9679$as_echo_n "checking for shl_load in -ldld... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099680if ${ac_cv_lib_dld_shl_load+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499681 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549682else
Martin v. Löwis11437992002-04-12 09:54:039683 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289684LIBS="-ldld $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049686/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039687
Thomas Wouters47b49bf2007-08-30 22:15:339688/* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039691#ifdef __cplusplus
9692extern "C"
9693#endif
Martin v. Löwis11437992002-04-12 09:54:039694char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039695int
9696main ()
9697{
Thomas Wouters47b49bf2007-08-30 22:15:339698return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039699 ;
9700 return 0;
9701}
9702_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499703if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039704 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:549705else
Matthias Kloseb9621712010-04-24 17:59:499706 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:169707fi
Matthias Kloseb9621712010-04-24 17:59:499708rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039710LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169711fi
Matthias Kloseb9621712010-04-24 17:59:499712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9713$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099714if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039715 cat >>confdefs.h <<_ACEOF
9716#define HAVE_LIBDLD 1
9717_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169718
Guido van Rossum8ddd0ad1995-06-14 23:10:289719 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:549720
Guido van Rossum76be6ed1995-01-02 18:33:549721fi
9722 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:479723
Georg Brandlb1441c72009-01-03 22:33:399724# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:479725if test "$with_threads" = "yes" -o -z "$with_threads"; then
Matthias Kloseb9621712010-04-24 17:59:499726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
9727$as_echo_n "checking for library containing sem_init... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099728if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499729 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:589730else
Martin v. Löwis82c19a72002-10-06 11:48:099731 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:499732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049733/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039734
Thomas Wouters47b49bf2007-08-30 22:15:339735/* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039738#ifdef __cplusplus
9739extern "C"
9740#endif
Martin v. Löwis11437992002-04-12 09:54:039741char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039742int
9743main ()
9744{
Thomas Wouters47b49bf2007-08-30 22:15:339745return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039746 ;
9747 return 0;
9748}
9749_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:339750for ac_lib in '' pthread rt posix4; do
9751 if test -z "$ac_lib"; then
9752 ac_res="none required"
9753 else
9754 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:419755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:339756 fi
Matthias Kloseb9621712010-04-24 17:59:499757 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:339758 ac_cv_search_sem_init=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:479759fi
Matthias Kloseb9621712010-04-24 17:59:499760rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:099762 if ${ac_cv_search_sem_init+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:339763 break
Skip Montanaroeb33e5a2007-08-17 12:57:419764fi
Thomas Wouters47b49bf2007-08-30 22:15:339765done
Victor Stinnere0be4232011-10-25 11:06:099766if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499767
Thomas Wouters47b49bf2007-08-30 22:15:339768else
9769 ac_cv_search_sem_init=no
9770fi
9771rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:099772LIBS=$ac_func_search_save_LIBS
9773fi
Matthias Kloseb9621712010-04-24 17:59:499774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9775$as_echo "$ac_cv_search_sem_init" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:339776ac_res=$ac_cv_search_sem_init
Matthias Kloseb9621712010-04-24 17:59:499777if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:339778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:589779
Martin v. Löwis41933dd2002-03-21 15:10:589780fi
Martin v. Löwisd3545ec2003-05-03 11:25:439781 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:479782 # posix4 on Solaris 2.6
9783 # pthread (first!) on Linux
9784fi
9785
Martin v. Löwis19d17342003-06-14 21:03:059786# check if we need libintl for locale functions
Matthias Kloseb9621712010-04-24 17:59:499787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9788$as_echo_n "checking for textdomain in -lintl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099789if ${ac_cv_lib_intl_textdomain+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499790 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:059791else
9792 ac_check_lib_save_LIBS=$LIBS
9793LIBS="-lintl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049795/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:059796
Thomas Wouters47b49bf2007-08-30 22:15:339797/* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:059800#ifdef __cplusplus
9801extern "C"
9802#endif
Martin v. Löwis19d17342003-06-14 21:03:059803char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059804int
9805main ()
9806{
Thomas Wouters47b49bf2007-08-30 22:15:339807return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059808 ;
9809 return 0;
9810}
9811_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499812if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis19d17342003-06-14 21:03:059813 ac_cv_lib_intl_textdomain=yes
9814else
Matthias Kloseb9621712010-04-24 17:59:499815 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:059816fi
Matthias Kloseb9621712010-04-24 17:59:499817rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:059819LIBS=$ac_check_lib_save_LIBS
9820fi
Matthias Kloseb9621712010-04-24 17:59:499821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9822$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099823if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
Martin v. Löwis19d17342003-06-14 21:03:059824
Matthias Kloseb9621712010-04-24 17:59:499825$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
Martin v. Löwis19d17342003-06-14 21:03:059826
Brett Cannonc6d936e2009-06-07 20:09:539827 LIBS="-lintl $LIBS"
Martin v. Löwis19d17342003-06-14 21:03:059828fi
9829
Guido van Rossum0eefa3f1999-11-16 15:57:379830
9831# checks for system dependent C++ extensions support
9832case "$ac_sys_system" in
Matthias Kloseb9621712010-04-24 17:59:499833 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9834$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049836/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:449837
Georg Brandl59e87bd2011-02-15 19:48:599838 #include <load.h>
Martin v. Löwis11437992002-04-12 09:54:039839int
9840main ()
9841{
Guido van Rossum0eefa3f1999-11-16 15:57:379842loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:039843 ;
9844 return 0;
9845}
Matthias Kloseb159a552010-04-25 21:00:449846
Martin v. Löwis11437992002-04-12 09:54:039847_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499848if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum0eefa3f1999-11-16 15:57:379849
Matthias Kloseb159a552010-04-25 21:00:449850
Matthias Kloseb9621712010-04-24 17:59:499851$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039852
Matthias Kloseb159a552010-04-25 21:00:449853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:499854$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:449855
Guido van Rossum0eefa3f1999-11-16 15:57:379856else
Matthias Kloseb159a552010-04-25 21:00:449857
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:499859$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:449860
Guido van Rossum0eefa3f1999-11-16 15:57:379861fi
Matthias Kloseb9621712010-04-24 17:59:499862rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:379864 *) ;;
9865esac
9866
Christian Heimes985ecdc2013-11-20 10:46:189867# check for systems that require aligned memory access
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
9869$as_echo_n "checking aligned memory access is required... " >&6; }
Benjamin Peterson2e30eb62017-04-14 16:59:349870if ${ac_cv_aligned_required+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 if test "$cross_compiling" = yes; then :
9874 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:189875else
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h. */
9878
9879int main()
9880{
9881 char s[16];
9882 int i, *p1, *p2;
9883 for (i=0; i < 16; i++)
9884 s[i] = i;
9885 p1 = (int*)(s+1);
9886 p2 = (int*)(s+2);
9887 if (*p1 == *p2)
9888 return 1;
9889 return 0;
9890}
Christian Heimes985ecdc2013-11-20 10:46:189891_ACEOF
9892if ac_fn_c_try_run "$LINENO"; then :
Benjamin Peterson2e30eb62017-04-14 16:59:349893 ac_cv_aligned_required=no
Christian Heimes985ecdc2013-11-20 10:46:189894else
Benjamin Peterson2e30eb62017-04-14 16:59:349895 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:189896fi
9897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9898 conftest.$ac_objext conftest.beam conftest.$ac_ext
9899fi
9900
9901
Benjamin Peterson2e30eb62017-04-14 16:59:349902fi
9903
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
9905$as_echo "$ac_cv_aligned_required" >&6; }
9906if test "$ac_cv_aligned_required" = yes ; then
Christian Heimes985ecdc2013-11-20 10:46:189907
9908$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
9909
9910fi
Christian Heimes985ecdc2013-11-20 10:46:189911
9912# str, bytes and memoryview hash algorithm
9913
9914
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
9916$as_echo_n "checking for --with-hash-algorithm... " >&6; }
9917
9918# Check whether --with-hash_algorithm was given.
9919if test "${with_hash_algorithm+set}" = set; then :
9920 withval=$with_hash_algorithm;
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9922$as_echo "$withval" >&6; }
9923case "$withval" in
9924 siphash24)
9925 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
9926
9927 ;;
9928 fnv)
9929 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
9930
9931 ;;
9932 *)
9933 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
9934 ;;
9935esac
9936
9937else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
9939$as_echo "default" >&6; }
9940fi
9941
9942
Charles-François Natalid30b0222014-05-08 22:08:519943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
9944$as_echo_n "checking for --with-address-sanitizer... " >&6; }
9945
9946# Check whether --with-address_sanitizer was given.
9947if test "${with_address_sanitizer+set}" = set; then :
9948 withval=$with_address_sanitizer;
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9950$as_echo "$withval" >&6; }
9951BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
9952LDFLAGS="-fsanitize=address $LDFLAGS"
Gregory P. Smith3b5b1c02018-11-13 00:10:219953# ASan works by controlling memory allocation, our own malloc interferes.
9954with_pymalloc="no"
9955
9956else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
9959fi
9960
9961
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
9963$as_echo_n "checking for --with-memory-sanitizer... " >&6; }
9964
9965# Check whether --with-memory_sanitizer was given.
9966if test "${with_memory_sanitizer+set}" = set; then :
9967 withval=$with_memory_sanitizer;
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9969$as_echo "$withval" >&6; }
9970BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
9971LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
9972# MSan works by controlling memory allocation, our own malloc interferes.
9973with_pymalloc="no"
9974
9975else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
9978fi
9979
9980
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
9982$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
9983
9984# Check whether --with-undefined_behavior_sanitizer was given.
9985if test "${with_undefined_behavior_sanitizer+set}" = set; then :
9986 withval=$with_undefined_behavior_sanitizer;
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
9988$as_echo "$withval" >&6; }
9989BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
9990LDFLAGS="-fsanitize=undefined $LDFLAGS"
Charles-François Natalid30b0222014-05-08 22:08:519991
9992else
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994$as_echo "no" >&6; }
9995fi
9996
9997
Guido van Rossum70c7f481998-03-26 18:44:109998# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Matthias Kloseb9621712010-04-24 17:59:499999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10000$as_echo_n "checking for t_open in -lnsl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910001if ${ac_cv_lib_nsl_t_open+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910002 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:4210003else
Martin v. Löwis11437992002-04-12 09:54:0310004 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810005LIBS="-lnsl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410007/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310008
Thomas Wouters47b49bf2007-08-30 22:15:3310009/* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310012#ifdef __cplusplus
10013extern "C"
10014#endif
Martin v. Löwis11437992002-04-12 09:54:0310015char t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310016int
10017main ()
10018{
Thomas Wouters47b49bf2007-08-30 22:15:3310019return t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310020 ;
10021 return 0;
10022}
10023_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910024if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310025 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:4210026else
Matthias Kloseb9621712010-04-24 17:59:4910027 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:4210028fi
Matthias Kloseb9621712010-04-24 17:59:4910029rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310031LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:4210032fi
Matthias Kloseb9621712010-04-24 17:59:4910033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10034$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910035if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
Guido van Rossum79dddcb1995-01-12 12:25:4210036 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:4210037fi
Guido van Rossum0ddb0281995-01-17 16:46:1410038 # SVR4
Matthias Kloseb9621712010-04-24 17:59:4910039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10040$as_echo_n "checking for socket in -lsocket... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910041if ${ac_cv_lib_socket_socket+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910042 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410043else
Martin v. Löwis11437992002-04-12 09:54:0310044 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810045LIBS="-lsocket $LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410047/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310048
Thomas Wouters47b49bf2007-08-30 22:15:3310049/* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310052#ifdef __cplusplus
10053extern "C"
10054#endif
Martin v. Löwis11437992002-04-12 09:54:0310055char socket ();
Martin v. Löwis11437992002-04-12 09:54:0310056int
10057main ()
10058{
Thomas Wouters47b49bf2007-08-30 22:15:3310059return socket ();
Martin v. Löwis11437992002-04-12 09:54:0310060 ;
10061 return 0;
10062}
10063_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910064if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310065 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:5610066else
Matthias Kloseb9621712010-04-24 17:59:4910067 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:5610068fi
Matthias Kloseb9621712010-04-24 17:59:4910069rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310071LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:5610072fi
Matthias Kloseb9621712010-04-24 17:59:4910073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10074$as_echo "$ac_cv_lib_socket_socket" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910075if test "x$ac_cv_lib_socket_socket" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:1510076 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:1510077fi
10078 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:1310079
Matthias Kloseb9621712010-04-24 17:59:4910080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10081$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310082
Thomas Wouters47b49bf2007-08-30 22:15:3310083# Check whether --with-libs was given.
Matthias Kloseb9621712010-04-24 17:59:4910084if test "${with_libs+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310085 withval=$with_libs;
Matthias Kloseb9621712010-04-24 17:59:4910086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10087$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:3910088LIBS="$withval $LIBS"
10089
10090else
Matthias Kloseb9621712010-04-24 17:59:4910091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3310093fi
10094
Guido van Rossum7f43da71994-08-01 12:15:3010095
Victor Stinner8291b5e2015-03-20 15:03:1410096
10097
10098
10099
10100
10101
10102
10103if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10104 if test -n "$ac_tool_prefix"; then
10105 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10106set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108$as_echo_n "checking for $ac_word... " >&6; }
10109if ${ac_cv_path_PKG_CONFIG+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111else
10112 case $PKG_CONFIG in
10113 [\\/]* | ?:[\\/]*)
10114 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10115 ;;
10116 *)
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118for as_dir in $PATH
10119do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128done
10129 done
10130IFS=$as_save_IFS
10131
10132 ;;
10133esac
10134fi
10135PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10136if test -n "$PKG_CONFIG"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10138$as_echo "$PKG_CONFIG" >&6; }
10139else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
10142fi
10143
10144
10145fi
10146if test -z "$ac_cv_path_PKG_CONFIG"; then
10147 ac_pt_PKG_CONFIG=$PKG_CONFIG
10148 # Extract the first word of "pkg-config", so it can be a program name with args.
10149set dummy pkg-config; ac_word=$2
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151$as_echo_n "checking for $ac_word... " >&6; }
10152if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154else
10155 case $ac_pt_PKG_CONFIG in
10156 [\\/]* | ?:[\\/]*)
10157 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10158 ;;
10159 *)
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161for as_dir in $PATH
10162do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10170 fi
10171done
10172 done
10173IFS=$as_save_IFS
10174
10175 ;;
10176esac
10177fi
10178ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10179if test -n "$ac_pt_PKG_CONFIG"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10181$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10182else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184$as_echo "no" >&6; }
10185fi
10186
10187 if test "x$ac_pt_PKG_CONFIG" = x; then
10188 PKG_CONFIG=""
10189 else
10190 case $cross_compiling:$ac_tool_warned in
10191yes:)
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10194ac_tool_warned=yes ;;
10195esac
10196 PKG_CONFIG=$ac_pt_PKG_CONFIG
10197 fi
10198else
10199 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10200fi
10201
10202fi
10203if test -n "$PKG_CONFIG"; then
10204 _pkg_min_version=0.9.0
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10206$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10207 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10209$as_echo "yes" >&6; }
10210 else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212$as_echo "no" >&6; }
10213 PKG_CONFIG=""
10214 fi
10215fi
Benjamin Peterson0f64b0b2010-03-09 21:49:5210216
10217# Check for use of the system expat library
Matthias Kloseb9621712010-04-24 17:59:4910218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10219$as_echo_n "checking for --with-system-expat... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210220
10221# Check whether --with-system_expat was given.
Matthias Kloseb9621712010-04-24 17:59:4910222if test "${with_system_expat+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210223 withval=$with_system_expat;
Benjamin Peterson79263252010-10-31 16:50:4410224else
10225 with_system_expat="no"
Benjamin Peterson0f64b0b2010-03-09 21:49:5210226fi
10227
10228
Matthias Kloseb9621712010-04-24 17:59:4910229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10230$as_echo "$with_system_expat" >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210231
10232# Check for use of the system libffi library
Matthias Kloseb9621712010-04-24 17:59:4910233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10234$as_echo_n "checking for --with-system-ffi... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210235
10236# Check whether --with-system_ffi was given.
Matthias Kloseb9621712010-04-24 17:59:4910237if test "${with_system_ffi+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210238 withval=$with_system_ffi;
10239fi
10240
10241
Zachary Ware935043d2016-09-10 00:01:2110242case "$with_system_ffi" in
10243 "")
10244 case $ac_sys_system in
10245 Darwin)
10246 with_system_ffi="no"
10247 ;;
10248 *)
10249 with_system_ffi="yes"
10250 ;;
10251 esac
10252 ;;
10253 yes|no)
10254 ;;
10255 *)
10256 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10257 ;;
10258esac
10259
Benjamin Peterson0f64b0b2010-03-09 21:49:5210260if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
Benjamin Petersond78735d2010-01-01 16:04:2310261 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10262else
10263 LIBFFI_INCLUDEDIR=""
10264fi
10265
10266
Matthias Kloseb9621712010-04-24 17:59:4910267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10268$as_echo "$with_system_ffi" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:5810269
Stefan Krah60187b52012-03-23 18:06:2710270# Check for use of the system libmpdec library
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10272$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10273
10274# Check whether --with-system_libmpdec was given.
10275if test "${with_system_libmpdec+set}" = set; then :
10276 withval=$with_system_libmpdec;
10277else
10278 with_system_libmpdec="no"
10279fi
10280
10281
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10283$as_echo "$with_system_libmpdec" >&6; }
10284
Benjamin Peterson076ed002010-10-31 17:11:0210285# Check for support for loadable sqlite extensions
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10287$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10288# Check whether --enable-loadable-sqlite-extensions was given.
10289if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10290 enableval=$enable_loadable_sqlite_extensions;
10291else
10292 enable_loadable_sqlite_extensions="no"
10293fi
10294
10295
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10297$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10298
Ned Deilyd819b932013-09-06 08:07:0510299# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10300
10301
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10303$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10304
10305# Check whether --with-tcltk-includes was given.
10306if test "${with_tcltk_includes+set}" = set; then :
10307 withval=$with_tcltk_includes;
10308else
10309 with_tcltk_includes="default"
10310fi
10311
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10313$as_echo "$with_tcltk_includes" >&6; }
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10315$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10316
10317# Check whether --with-tcltk-libs was given.
10318if test "${with_tcltk_libs+set}" = set; then :
10319 withval=$with_tcltk_libs;
10320else
10321 with_tcltk_libs="default"
10322fi
10323
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10325$as_echo "$with_tcltk_libs" >&6; }
10326if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10327then
10328 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10329 then
10330 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10331 fi
10332 TCLTK_INCLUDES=""
10333 TCLTK_LIBS=""
10334else
10335 TCLTK_INCLUDES="$with_tcltk_includes"
10336 TCLTK_LIBS="$with_tcltk_libs"
10337fi
10338
Matthias Klose55708cc2009-04-30 08:06:4910339# Check for --with-dbmliborder
Matthias Kloseb9621712010-04-24 17:59:4910340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10341$as_echo_n "checking for --with-dbmliborder... " >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910342
10343# Check whether --with-dbmliborder was given.
Matthias Kloseb9621712010-04-24 17:59:4910344if test "${with_dbmliborder+set}" = set; then :
Matthias Klose55708cc2009-04-30 08:06:4910345 withval=$with_dbmliborder;
10346if test x$with_dbmliborder = xyes
10347then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010348as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910349else
10350 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10351 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10352 then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010353 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910354 fi
10355 done
10356fi
10357fi
10358
Matthias Kloseb9621712010-04-24 17:59:4910359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10360$as_echo "$with_dbmliborder" >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910361
Guido van Rossum3d15bd82001-01-10 18:53:4810362# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:4210363
Barry Warsawc0d24d8b2000-06-29 16:12:0010364USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:4210365
Thomas Wouters47b49bf2007-08-30 22:15:3310366
Martin v. Löwis11437992002-04-12 09:54:0310367
10368# Templates for things AC_DEFINEd more than once.
10369# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:0110370
10371
Martin v. Löwis11437992002-04-12 09:54:0310372
Matthias Kloseb9621712010-04-24 17:59:4910373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
10374$as_echo_n "checking for --with-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310375
Thomas Wouters47b49bf2007-08-30 22:15:3310376# Check whether --with-threads was given.
Matthias Kloseb9621712010-04-24 17:59:4910377if test "${with_threads+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310378 withval=$with_threads;
10379fi
Guido van Rossumec2f0731997-01-22 20:54:0110380
10381
Barry Warsawc0d24d8b2000-06-29 16:12:0010382# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:0310383
Thomas Wouters47b49bf2007-08-30 22:15:3310384# Check whether --with-thread was given.
Matthias Kloseb9621712010-04-24 17:59:4910385if test "${with_thread+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310386 withval=$with_thread; with_threads=$with_thread
10387fi
10388
Barry Warsawc0d24d8b2000-06-29 16:12:0010389
10390if test -z "$with_threads"
10391then with_threads="yes"
10392fi
Matthias Kloseb9621712010-04-24 17:59:4910393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
10394$as_echo "$with_threads" >&6; }
Barry Warsawc0d24d8b2000-06-29 16:12:0010395
Martin v. Löwis2d7e2642002-04-05 16:50:5310396
Barry Warsawc0d24d8b2000-06-29 16:12:0010397if test "$with_threads" = "no"
10398then
10399 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:2910400elif test "$ac_cv_pthread_is_default" = yes
10401then
Matthias Kloseb9621712010-04-24 17:59:4910402 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:2910403
Martin v. Löwisa5f73f92001-10-15 08:06:2910404 # Defining _REENTRANT on system with POSIX threads should not hurt.
Matthias Kloseb9621712010-04-24 17:59:4910405 $as_echo "#define _REENTRANT 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:2910406
10407 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:0310408 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:4110409elif test "$ac_cv_kpthread" = "yes"
10410then
10411 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:4710412 if test "$ac_cv_cxx_thread" = "yes"; then
10413 CXX="$CXX -Kpthread"
10414 fi
Matthias Kloseb9621712010-04-24 17:59:4910415 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum2242f2f2001-04-11 20:58:2010416
Guido van Rossumd0b69ec2001-09-10 14:10:5410417 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:5310418 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:3010419elif test "$ac_cv_kthread" = "yes"
10420then
10421 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:4710422 if test "$ac_cv_cxx_thread" = "yes"; then
10423 CXX="$CXX -Kthread"
10424 fi
Matthias Kloseb9621712010-04-24 17:59:4910425 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis5f433f02003-05-05 05:05:3010426
10427 posix_threads=yes
10428 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:5110429elif test "$ac_cv_pthread" = "yes"
10430then
10431 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:4710432 if test "$ac_cv_cxx_thread" = "yes"; then
10433 CXX="$CXX -pthread"
10434 fi
Matthias Kloseb9621712010-04-24 17:59:4910435 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110436
10437 posix_threads=yes
10438 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:4110439else
10440 if test ! -z "$with_threads" -a -d "$with_threads"
10441 then LDFLAGS="$LDFLAGS -L$with_threads"
10442 fi
10443 if test ! -z "$withval" -a -d "$withval"
10444 then LDFLAGS="$LDFLAGS -L$withval"
10445 fi
Martin v. Löwis69c0ff32001-10-15 14:34:4210446
10447 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:5110448 # define _POSIX_THREADS in unistd.h. Some apparently don't
10449 # (e.g. gnu pth with pthread emulation)
Matthias Kloseb9621712010-04-24 17:59:4910450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10451$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410453/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:1510454
Martin v. Löwis69c0ff32001-10-15 14:34:4210455#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:1510456#ifdef _POSIX_THREADS
10457yes
10458#endif
Martin v. Löwis11437992002-04-12 09:54:0310459
10460_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:4210461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4910462 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis69c0ff32001-10-15 14:34:4210463 unistd_defines_pthreads=yes
10464else
Martin v. Löwis69c0ff32001-10-15 14:34:4210465 unistd_defines_pthreads=no
10466fi
Matthias Klosec80c93f2010-04-24 17:04:3510467rm -f conftest*
Martin v. Löwis69c0ff32001-10-15 14:34:4210468
Matthias Kloseb9621712010-04-24 17:59:4910469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10470$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:4210471
Matthias Kloseb9621712010-04-24 17:59:4910472 $as_echo "#define _REENTRANT 1" >>confdefs.h
Guido van Rossum9caf77a1996-08-01 00:52:2610473
Martin v. Löwis8158b5a2001-10-08 13:17:2810474 # Just looking for pthread_create in libpthread is not enough:
10475 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10476 # So we really have to include pthread.h, and then link.
10477 _libs=$LIBS
10478 LIBS="$LIBS -lpthread"
Matthias Kloseb9621712010-04-24 17:59:4910479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10480$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410482/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110483
10484#include <stdio.h>
Martin v. Löwis8158b5a2001-10-08 13:17:2810485#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:3110486
Martin v. Löwis8158b5a2001-10-08 13:17:2810487void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:0310488int
10489main ()
10490{
Martin v. Löwis8158b5a2001-10-08 13:17:2810491
10492pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:0310493 ;
10494 return 0;
10495}
10496_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910497if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310498
Matthias Kloseb9621712010-04-24 17:59:4910499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500$as_echo "yes" >&6; }
10501 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum02a1c402000-02-25 19:26:3110502
Martin v. Löwis69c0ff32001-10-15 14:34:4210503 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:5310504 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:3110505else
Martin v. Löwis11437992002-04-12 09:54:0310506
Martin v. Löwis8158b5a2001-10-08 13:17:2810507 LIBS=$_libs
Matthias Kloseb9621712010-04-24 17:59:4910508 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
Victor Stinnere0be4232011-10-25 11:06:0910509if test "x$ac_cv_func_pthread_detach" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910510 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumad678af1998-10-02 14:42:1510511
Martin v. Löwis69c0ff32001-10-15 14:34:4210512 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:5310513 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:1510514else
Guido van Rossumad678af1998-10-02 14:42:1510515
Matthias Kloseb9621712010-04-24 17:59:4910516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10517$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910518if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910519 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410520else
Martin v. Löwis11437992002-04-12 09:54:0310521 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810522LIBS="-lpthreads $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410524/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310525
Thomas Wouters47b49bf2007-08-30 22:15:3310526/* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310529#ifdef __cplusplus
10530extern "C"
10531#endif
Martin v. Löwis11437992002-04-12 09:54:0310532char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310533int
10534main ()
10535{
Thomas Wouters47b49bf2007-08-30 22:15:3310536return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310537 ;
10538 return 0;
10539}
10540_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910541if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310542 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:0910543else
Matthias Kloseb9621712010-04-24 17:59:4910544 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:0910545fi
Matthias Kloseb9621712010-04-24 17:59:4910546rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310548LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:0910549fi
Matthias Kloseb9621712010-04-24 17:59:4910550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10551$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910552if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910553 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Greg Steinadf63d62000-07-05 10:38:0910554
Guido van Rossumd0b69ec2001-09-10 14:10:5410555 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110556 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:5310557 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:0910558else
Greg Steinadf63d62000-07-05 10:38:0910559
Matthias Kloseb9621712010-04-24 17:59:4910560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10561$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910562if ${ac_cv_lib_c_r_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910563 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:0910564else
Martin v. Löwis11437992002-04-12 09:54:0310565 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:0910566LIBS="-lc_r $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410568/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310569
Thomas Wouters47b49bf2007-08-30 22:15:3310570/* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310573#ifdef __cplusplus
10574extern "C"
10575#endif
Martin v. Löwis11437992002-04-12 09:54:0310576char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310577int
10578main ()
10579{
Thomas Wouters47b49bf2007-08-30 22:15:3310580return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310581 ;
10582 return 0;
10583}
10584_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910585if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310586 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:2910587else
Matthias Kloseb9621712010-04-24 17:59:4910588 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:2910589fi
Matthias Kloseb9621712010-04-24 17:59:4910590rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310592LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:2910593fi
Matthias Kloseb9621712010-04-24 17:59:4910594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10595$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910596if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910597 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum49545951997-12-02 19:28:2910598
Guido van Rossumd0b69ec2001-09-10 14:10:5410599 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110600 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:5310601 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:3810602else
Guido van Rossum07bd90e2000-05-08 13:41:3810603
Matthias Kloseb9621712010-04-24 17:59:4910604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10605$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910606if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910607 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:0710608else
Martin v. Löwis11437992002-04-12 09:54:0310609 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710610LIBS="-lpthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410612/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310613
Thomas Wouters47b49bf2007-08-30 22:15:3310614/* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310617#ifdef __cplusplus
10618extern "C"
10619#endif
Martin v. Löwis11437992002-04-12 09:54:0310620char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310621int
10622main ()
10623{
Thomas Wouters47b49bf2007-08-30 22:15:3310624return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310625 ;
10626 return 0;
10627}
10628_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910629if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310630 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:0710631else
Matthias Kloseb9621712010-04-24 17:59:4910632 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:0710633fi
Matthias Kloseb9621712010-04-24 17:59:4910634rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310636LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710637fi
Matthias Kloseb9621712010-04-24 17:59:4910638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10639$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910640if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910641 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum8d6e8af2000-10-30 17:45:0710642
Guido van Rossumd0b69ec2001-09-10 14:10:5410643 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110644 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:5310645 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:0710646else
Guido van Rossum8d6e8af2000-10-30 17:45:0710647
Matthias Kloseb9621712010-04-24 17:59:4910648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10649$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910650if ${ac_cv_lib_cma_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910651 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:3210652else
Martin v. Löwis11437992002-04-12 09:54:0310653 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210654LIBS="-lcma $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410656/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310657
Thomas Wouters47b49bf2007-08-30 22:15:3310658/* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310661#ifdef __cplusplus
10662extern "C"
10663#endif
Martin v. Löwis11437992002-04-12 09:54:0310664char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310665int
10666main ()
10667{
Thomas Wouters47b49bf2007-08-30 22:15:3310668return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310669 ;
10670 return 0;
10671}
10672_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910673if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310674 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:3210675else
Matthias Kloseb9621712010-04-24 17:59:4910676 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:3210677fi
Matthias Kloseb9621712010-04-24 17:59:4910678rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310680LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210681fi
Matthias Kloseb9621712010-04-24 17:59:4910682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10683$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910684if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910685 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossumb93a8621998-05-07 13:27:3210686
Guido van Rossumd0b69ec2001-09-10 14:10:5410687 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110688 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:5310689 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:3210690else
Thomas Wouters0db2b2b2000-08-26 11:33:4310691
Martin v. Löwis130fb172001-07-19 11:00:4110692 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:0110693fi
10694
Guido van Rossum627b2d71993-12-24 10:39:1610695
Guido van Rossum7b3853f1996-07-30 18:09:3510696fi
10697
Guido van Rossum0be3e491997-05-22 20:33:3310698fi
10699
Guido van Rossum49545951997-12-02 19:28:2910700fi
10701
Guido van Rossumb93a8621998-05-07 13:27:3210702fi
10703
Martin v. Löwisf90ae202002-06-11 06:22:3110704fi
Matthias Kloseb9621712010-04-24 17:59:4910705rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2610707
Matthias Kloseb9621712010-04-24 17:59:4910708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10709$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910710if ${ac_cv_lib_mpc_usconfig+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910711 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410712else
Martin v. Löwis11437992002-04-12 09:54:0310713 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810714LIBS="-lmpc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410716/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310717
Thomas Wouters47b49bf2007-08-30 22:15:3310718/* Override any GCC internal prototype to avoid an error.
10719 Use char because int might match the return type of a GCC
10720 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310721#ifdef __cplusplus
10722extern "C"
10723#endif
Martin v. Löwis11437992002-04-12 09:54:0310724char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310725int
10726main ()
10727{
Thomas Wouters47b49bf2007-08-30 22:15:3310728return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310729 ;
10730 return 0;
10731}
10732_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910733if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310734 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410735else
Matthias Kloseb9621712010-04-24 17:59:4910736 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:1610737fi
Matthias Kloseb9621712010-04-24 17:59:4910738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310740LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410741fi
Matthias Kloseb9621712010-04-24 17:59:4910742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10743$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910744if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910745 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1610746
Martin v. Löwis130fb172001-07-19 11:00:4110747 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:5310748 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:4110749 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:1610750fi
10751
Martin v. Löwis3d2b5492002-03-15 13:48:2110752
Neal Norwitza978ab02002-11-02 16:58:0510753 if test "$posix_threads" != "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4910754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
10755$as_echo_n "checking for thr_create in -lthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910756if ${ac_cv_lib_thread_thr_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910757 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410758else
Martin v. Löwis11437992002-04-12 09:54:0310759 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810760LIBS="-lthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410762/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310763
Thomas Wouters47b49bf2007-08-30 22:15:3310764/* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310767#ifdef __cplusplus
10768extern "C"
10769#endif
Martin v. Löwis11437992002-04-12 09:54:0310770char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:0310771int
10772main ()
10773{
Thomas Wouters47b49bf2007-08-30 22:15:3310774return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:0310775 ;
10776 return 0;
10777}
10778_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910779if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310780 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410781else
Matthias Kloseb9621712010-04-24 17:59:4910782 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:1610783fi
Matthias Kloseb9621712010-04-24 17:59:4910784rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310786LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410787fi
Matthias Kloseb9621712010-04-24 17:59:4910788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
10789$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910790if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4910791 $as_echo "#define WITH_THREAD 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1610792
Martin v. Löwis3d2b5492002-03-15 13:48:2110793 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:5310794 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:2110795 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:1610796fi
10797
Martin v. Löwis3d2b5492002-03-15 13:48:2110798 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:5110799fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410800
Martin v. Löwis4ee6eef2003-05-26 05:37:5110801if test "$posix_threads" = "yes"; then
10802 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:2410803
Matthias Kloseb9621712010-04-24 17:59:4910804$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110805
10806 fi
10807
10808 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10809 case $ac_sys_system/$ac_sys_release in
Charles-François Natali996f6062011-07-21 17:45:3110810 SunOS/5.6)
Matthias Kloseb9621712010-04-24 17:59:4910811$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
Martin v. Löwisa7a76d32002-10-04 07:21:2410812
Martin v. Löwis4ee6eef2003-05-26 05:37:5110813 ;;
10814 SunOS/5.8)
Matthias Kloseb9621712010-04-24 17:59:4910815$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110816
10817 ;;
Charles-François Natali996f6062011-07-21 17:45:3110818 AIX/*)
Matthias Kloseb9621712010-04-24 17:59:4910819$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Christian Heimes7b3ce6a2008-01-31 14:31:4510820
10821 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:5110822 esac
10823
Matthias Kloseb9621712010-04-24 17:59:4910824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10825$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910826 if ${ac_cv_pthread_system_supported+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910827 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5110828else
Matthias Kloseb9621712010-04-24 17:59:4910829 if test "$cross_compiling" = yes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110830 ac_cv_pthread_system_supported=no
10831else
Matthias Kloseb9621712010-04-24 17:59:4910832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410833/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110834
10835 #include <stdio.h>
10836 #include <pthread.h>
Martin v. Löwis4ee6eef2003-05-26 05:37:5110837 void *foo(void *parm) {
10838 return NULL;
10839 }
10840 main() {
10841 pthread_attr_t attr;
10842 pthread_t id;
10843 if (pthread_attr_init(&attr)) exit(-1);
10844 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10845 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10846 exit(0);
10847 }
10848_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910849if ac_fn_c_try_run "$LINENO"; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110850 ac_cv_pthread_system_supported=yes
10851else
Matthias Kloseb9621712010-04-24 17:59:4910852 ac_cv_pthread_system_supported=no
Martin v. Löwis4ee6eef2003-05-26 05:37:5110853fi
Matthias Kloseb9621712010-04-24 17:59:4910854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10855 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:5110856fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410857
Thomas Wouters47b49bf2007-08-30 22:15:3310858
Guido van Rossum627b2d71993-12-24 10:39:1610859fi
10860
Matthias Kloseb9621712010-04-24 17:59:4910861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10862$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5110863 if test "$ac_cv_pthread_system_supported" = "yes"; then
10864
Matthias Kloseb9621712010-04-24 17:59:4910865$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110866
10867 fi
Matthias Kloseb9621712010-04-24 17:59:4910868 for ac_func in pthread_sigmask
10869do :
10870 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
Victor Stinnere0be4232011-10-25 11:06:0910871if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110872 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910873#define HAVE_PTHREAD_SIGMASK 1
Martin v. Löwis4ee6eef2003-05-26 05:37:5110874_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:4910875 case $ac_sys_system in
10876 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:5110877
Matthias Kloseb9621712010-04-24 17:59:4910878$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
Jason Tishlerfac083d2003-07-22 15:20:4910879
10880 ;;
10881 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:5110882fi
10883done
10884
Christian Heimesf77b4b22013-08-21 11:26:0510885 for ac_func in pthread_atfork
10886do :
10887 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
10888if test "x$ac_cv_func_pthread_atfork" = xyes; then :
10889 cat >>confdefs.h <<_ACEOF
10890#define HAVE_PTHREAD_ATFORK 1
10891_ACEOF
10892
10893fi
10894done
10895
Martin v. Löwis4ee6eef2003-05-26 05:37:5110896fi
10897
10898
Martin v. Löwisa2ac6022001-08-09 11:40:1410899# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:0310900
Matthias Kloseb9621712010-04-24 17:59:4910901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10902$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3310903# Check whether --enable-ipv6 was given.
Matthias Kloseb9621712010-04-24 17:59:4910904if test "${enable_ipv6+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310905 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:1410906 no)
Matthias Kloseb9621712010-04-24 17:59:4910907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410909 ipv6=no
10910 ;;
Matthias Kloseb9621712010-04-24 17:59:4910911 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10912$as_echo "yes" >&6; }
10913 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa2ac6022001-08-09 11:40:1410914
10915 ipv6=yes
10916 ;;
Martin v. Löwis11437992002-04-12 09:54:0310917 esac
Martin v. Löwisa2ac6022001-08-09 11:40:1410918else
Martin v. Löwis11437992002-04-12 09:54:0310919
Matthias Kloseb9621712010-04-24 17:59:4910920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410921/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:1410922 /* AF_INET6 available check */
10923#include <sys/types.h>
10924#include <sys/socket.h>
Charles-François Natalif6fd7942013-01-08 18:49:4210925int
10926main ()
Martin v. Löwisa2ac6022001-08-09 11:40:1410927{
Charles-François Natalif6fd7942013-01-08 18:49:4210928int domain = AF_INET6;
10929 ;
10930 return 0;
Martin v. Löwisa2ac6022001-08-09 11:40:1410931}
Martin v. Löwis11437992002-04-12 09:54:0310932_ACEOF
Charles-François Natalif6fd7942013-01-08 18:49:4210933if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4410934
Matthias Kloseb9621712010-04-24 17:59:4910935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10936$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410937 ipv6=yes
Matthias Kloseb159a552010-04-25 21:00:4410938
Martin v. Löwisa2ac6022001-08-09 11:40:1410939else
Matthias Kloseb159a552010-04-25 21:00:4410940
Matthias Kloseb9621712010-04-24 17:59:4910941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410943 ipv6=no
Matthias Kloseb159a552010-04-25 21:00:4410944
Martin v. Löwisa2ac6022001-08-09 11:40:1410945fi
Charles-François Natalif6fd7942013-01-08 18:49:4210946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3310947
Martin v. Löwisa5f8bb52001-09-05 08:22:3410948if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4910949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
10950$as_echo_n "checking if RFC2553 API is available... " >&6; }
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410952/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4410953
10954 #include <sys/types.h>
Martin v. Löwisa5f8bb52001-09-05 08:22:3410955#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:0310956int
10957main ()
10958{
Martin v. Löwisa5f8bb52001-09-05 08:22:3410959struct sockaddr_in6 x;
Matthias Kloseb159a552010-04-25 21:00:4410960 x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:0310961 ;
10962 return 0;
10963}
Matthias Kloseb159a552010-04-25 21:00:4410964
Martin v. Löwis11437992002-04-12 09:54:0310965_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910966if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4410967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4910969$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4410970 ipv6=yes
10971
Martin v. Löwisa5f8bb52001-09-05 08:22:3410972else
Matthias Kloseb159a552010-04-25 21:00:4410973
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:4910975$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4410976 ipv6=no
10977
Martin v. Löwisa5f8bb52001-09-05 08:22:3410978fi
Thomas Wouters47b49bf2007-08-30 22:15:3310979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:3410980fi
10981
10982if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4910983 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa5f8bb52001-09-05 08:22:3410984
10985fi
10986
Thomas Wouters47b49bf2007-08-30 22:15:3310987fi
10988
Martin v. Löwisa2ac6022001-08-09 11:40:1410989
10990ipv6type=unknown
10991ipv6lib=none
10992ipv6trylibc=no
10993
10994if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4910995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
10996$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:1110997 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
10998 do
Martin v. Löwisa2ac6022001-08-09 11:40:1410999 case $i in
11000 inria)
Matthias Kloseb9621712010-04-24 17:59:4911001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411002/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911003
Martin v. Löwisa2ac6022001-08-09 11:40:1411004#include <netinet/in.h>
11005#ifdef IPV6_INRIA_VERSION
11006yes
11007#endif
Martin v. Löwis11437992002-04-12 09:54:0311008_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911010 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis44ddbde2001-12-02 10:15:3711011 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:1411012fi
Matthias Klosec80c93f2010-04-24 17:04:3511013rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411014
11015 ;;
11016 kame)
Matthias Kloseb9621712010-04-24 17:59:4911017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411018/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911019
Martin v. Löwisa2ac6022001-08-09 11:40:1411020#include <netinet/in.h>
11021#ifdef __KAME__
11022yes
11023#endif
Martin v. Löwis11437992002-04-12 09:54:0311024_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911026 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411027 ipv6type=$i;
11028 ipv6lib=inet6
11029 ipv6libdir=/usr/local/v6/lib
11030 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411031fi
Matthias Klosec80c93f2010-04-24 17:04:3511032rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411033
11034 ;;
11035 linux-glibc)
Matthias Kloseb9621712010-04-24 17:59:4911036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411037/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911038
Martin v. Löwisa2ac6022001-08-09 11:40:1411039#include <features.h>
11040#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11041yes
11042#endif
Martin v. Löwis11437992002-04-12 09:54:0311043_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911045 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411046 ipv6type=$i;
11047 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411048fi
Matthias Klosec80c93f2010-04-24 17:04:3511049rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411050
11051 ;;
11052 linux-inet6)
11053 if test -d /usr/inet6; then
11054 ipv6type=$i
11055 ipv6lib=inet6
11056 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:4911057 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411058 fi
11059 ;;
11060 solaris)
11061 if test -f /etc/netconfig; then
Antoine Pitrouf3fcd9f2011-01-03 18:53:5011062 if $GREP -q tcp6 /etc/netconfig; then
Martin v. Löwisa2ac6022001-08-09 11:40:1411063 ipv6type=$i
11064 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411065 fi
11066 fi
11067 ;;
11068 toshiba)
Matthias Kloseb9621712010-04-24 17:59:4911069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411070/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911071
Martin v. Löwisa2ac6022001-08-09 11:40:1411072#include <sys/param.h>
11073#ifdef _TOSHIBA_INET6
11074yes
11075#endif
Martin v. Löwis11437992002-04-12 09:54:0311076_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911078 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411079 ipv6type=$i;
11080 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711081 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411082fi
Matthias Klosec80c93f2010-04-24 17:04:3511083rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411084
11085 ;;
11086 v6d)
Matthias Kloseb9621712010-04-24 17:59:4911087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411088/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911089
Martin v. Löwisa2ac6022001-08-09 11:40:1411090#include </usr/local/v6/include/sys/v6config.h>
11091#ifdef __V6D__
11092yes
11093#endif
Martin v. Löwis11437992002-04-12 09:54:0311094_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911096 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411097 ipv6type=$i;
11098 ipv6lib=v6;
11099 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:4911100 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411101fi
Matthias Klosec80c93f2010-04-24 17:04:3511102rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411103
11104 ;;
11105 zeta)
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 <sys/param.h>
11110#ifdef _ZETA_MINAMI_INET6
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öwisa2ac6022001-08-09 11:40:1411116 ipv6type=$i;
11117 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711118 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411119fi
Matthias Klosec80c93f2010-04-24 17:04:3511120rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411121
11122 ;;
11123 esac
11124 if test "$ipv6type" != "unknown"; then
11125 break
11126 fi
11127 done
Matthias Kloseb9621712010-04-24 17:59:4911128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11129$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411130fi
11131
11132if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11133 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11134 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11135 echo "using lib$ipv6lib"
11136 else
11137 if test $ipv6trylibc = "yes"; then
11138 echo "using libc"
11139 else
11140 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11141 echo "You need to fetch lib$ipv6lib.a from appropriate"
11142 echo 'ipv6 kit and compile beforehand.'
11143 exit 1
11144 fi
11145 fi
11146fi
11147
Larry Hastingsa6cc5512015-04-13 21:48:4011148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11149$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h. */
11152 /* CAN_RAW_FD_FRAMES available check */
11153#include <linux/can/raw.h>
11154int
11155main ()
11156{
11157int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11158 ;
11159 return 0;
11160}
11161_ACEOF
11162if ac_fn_c_try_compile "$LINENO"; then :
11163
11164
11165$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11166
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168$as_echo "yes" >&6; }
11169
11170else
11171
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
11174
11175fi
11176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177
Martin v. Löwisa3fb4f72002-06-09 13:33:5411178# Check for --with-doc-strings
Matthias Kloseb9621712010-04-24 17:59:4911179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11180$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411181
Thomas Wouters47b49bf2007-08-30 22:15:3311182# Check whether --with-doc-strings was given.
Matthias Kloseb9621712010-04-24 17:59:4911183if test "${with_doc_strings+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311184 withval=$with_doc_strings;
11185fi
Martin v. Löwisa3fb4f72002-06-09 13:33:5411186
Martin v. Löwisa3fb4f72002-06-09 13:33:5411187
11188if test -z "$with_doc_strings"
11189then with_doc_strings="yes"
11190fi
11191if test "$with_doc_strings" != "no"
11192then
11193
Matthias Kloseb9621712010-04-24 17:59:4911194$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
Martin v. Löwisa3fb4f72002-06-09 13:33:5411195
11196fi
Matthias Kloseb9621712010-04-24 17:59:4911197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11198$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411199
Martin v. Löwisf30d60e2004-06-08 08:17:4411200# Check for Python-specific malloc support
Matthias Kloseb9621712010-04-24 17:59:4911201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11202$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0311203
Thomas Wouters47b49bf2007-08-30 22:15:3311204# Check whether --with-pymalloc was given.
Matthias Kloseb9621712010-04-24 17:59:4911205if test "${with_pymalloc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311206 withval=$with_pymalloc;
11207fi
Michael W. Hudson54241132001-12-07 15:38:2611208
Neil Schemenauera35c6882001-02-27 04:45:0511209
Neil Schemenauer16c22972002-03-22 15:34:4911210if test -z "$with_pymalloc"
Barry Warsaw35f3a2c2010-09-03 18:30:3011211then
11212 with_pymalloc="yes"
Neil Schemenauer16c22972002-03-22 15:34:4911213fi
11214if test "$with_pymalloc" != "no"
11215then
Martin v. Löwis11437992002-04-12 09:54:0311216
Matthias Kloseb9621712010-04-24 17:59:4911217$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
Neil Schemenauer16c22972002-03-22 15:34:4911218
doko@ubuntu.com9c7817e2012-06-30 15:05:1311219 ABIFLAGS="${ABIFLAGS}m"
Neil Schemenauer16c22972002-03-22 15:34:4911220fi
Matthias Kloseb9621712010-04-24 17:59:4911221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11222$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:4911223
Benjamin Peterson05159c42009-12-03 03:01:2711224# Check for Valgrind support
Matthias Kloseb9621712010-04-24 17:59:4911225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11226$as_echo_n "checking for --with-valgrind... " >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711227
11228# Check whether --with-valgrind was given.
Matthias Kloseb9621712010-04-24 17:59:4911229if test "${with_valgrind+set}" = set; then :
Benjamin Peterson05159c42009-12-03 03:01:2711230 withval=$with_valgrind;
11231else
11232 with_valgrind=no
11233fi
11234
Matthias Kloseb9621712010-04-24 17:59:4911235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11236$as_echo "$with_valgrind" >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711237if test "$with_valgrind" != no; then
Matthias Kloseb9621712010-04-24 17:59:4911238 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:0911239if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
Benjamin Peterson05159c42009-12-03 03:01:2711240
Matthias Kloseb9621712010-04-24 17:59:4911241$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
Benjamin Peterson05159c42009-12-03 03:01:2711242
11243else
Ross Lagerwallb0ae53d2011-06-10 05:30:3011244 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
Benjamin Peterson05159c42009-12-03 03:01:2711245
11246fi
11247
11248
Jeffrey Yasskin39370832010-05-03 19:29:3411249 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
Benjamin Peterson05159c42009-12-03 03:01:2711250fi
11251
Łukasz Langaa785c872016-09-10 00:37:3711252# Check for DTrace support
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11254$as_echo_n "checking for --with-dtrace... " >&6; }
11255
11256# Check whether --with-dtrace was given.
11257if test "${with_dtrace+set}" = set; then :
11258 withval=$with_dtrace;
11259else
11260 with_dtrace=no
11261fi
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11264$as_echo "$with_dtrace" >&6; }
11265
11266
11267
11268
11269
11270DTRACE=
11271DFLAGS=
11272DTRACE_HEADERS=
11273DTRACE_OBJS=
11274
11275if test "$with_dtrace" = "yes"
11276then
11277 # Extract the first word of "dtrace", so it can be a program name with args.
11278set dummy dtrace; ac_word=$2
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
11281if ${ac_cv_path_DTRACE+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283else
11284 case $DTRACE in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
11287 ;;
11288 *)
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300done
11301 done
11302IFS=$as_save_IFS
11303
11304 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11305 ;;
11306esac
11307fi
11308DTRACE=$ac_cv_path_DTRACE
11309if test -n "$DTRACE"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11311$as_echo "$DTRACE" >&6; }
11312else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315fi
11316
11317
11318 if test "$DTRACE" = "not found"; then
11319 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
11320 fi
11321
11322$as_echo "#define WITH_DTRACE 1" >>confdefs.h
11323
11324 DTRACE_HEADERS="Include/pydtrace_probes.h"
11325
11326 # On OS X, DTrace providers do not need to be explicitly compiled and
11327 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
11328 # generation flag '-G'. We check for presence of this flag, rather than
11329 # hardcoding support by OS, in the interest of robustness.
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11331$as_echo_n "checking whether DTrace probes require linking... " >&6; }
11332if ${ac_cv_dtrace_link+:} false; then :
11333 $as_echo_n "(cached) " >&6
11334else
11335 ac_cv_dtrace_link=no
11336 echo 'BEGIN' > conftest.d
11337 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11338 ac_cv_dtrace_link=yes
11339
11340fi
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11342$as_echo "$ac_cv_dtrace_link" >&6; }
11343 if test "$ac_cv_dtrace_link" = "yes"; then
11344 DTRACE_OBJS="Python/pydtrace.o"
11345 fi
11346fi
11347
Guido van Rossum48bdbfc1996-05-28 22:53:4811348# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:3011349
Guido van Rossum98935bf2001-09-05 19:13:1611350DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:3011351
Guido van Rossume97ee181999-12-20 21:27:2211352# the dlopen() function means we might want to use dynload_shlib.o. some
11353# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:5111354for ac_func in dlopen
Matthias Kloseb9621712010-04-24 17:59:4911355do :
11356 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Victor Stinnere0be4232011-10-25 11:06:0911357if test "x$ac_cv_func_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311358 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911359#define HAVE_DLOPEN 1
Martin v. Löwis11437992002-04-12 09:54:0311360_ACEOF
Guido van Rossume97ee181999-12-20 21:27:2211361
Guido van Rossume97ee181999-12-20 21:27:2211362fi
Thomas Wouters3a584202000-08-05 23:28:5111363done
Guido van Rossume97ee181999-12-20 21:27:2211364
Michael W. Hudson54241132001-12-07 15:38:2611365
Guido van Rossume97ee181999-12-20 21:27:2211366# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11367# loading of modules.
11368
Matthias Kloseb9621712010-04-24 17:59:4911369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11370$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211371if test -z "$DYNLOADFILE"
11372then
11373 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:4411374 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
11375 if test "$ac_cv_func_dlopen" = yes
11376 then DYNLOADFILE="dynload_shlib.o"
11377 else DYNLOADFILE="dynload_aix.o"
11378 fi
11379 ;;
Guido van Rossume97ee181999-12-20 21:27:2211380 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Thomas Wouters49fd7fa2006-04-21 10:40:5811381 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
11382 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Guido van Rossume97ee181999-12-20 21:27:2211383 *)
11384 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11385 # out any dynamic loading
11386 if test "$ac_cv_func_dlopen" = yes
11387 then DYNLOADFILE="dynload_shlib.o"
11388 else DYNLOADFILE="dynload_stub.o"
11389 fi
11390 ;;
11391 esac
11392fi
Matthias Kloseb9621712010-04-24 17:59:4911393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11394$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211395if test "$DYNLOADFILE" != "dynload_stub.o"
11396then
Martin v. Löwis11437992002-04-12 09:54:0311397
Matthias Kloseb9621712010-04-24 17:59:4911398$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
Guido van Rossume97ee181999-12-20 21:27:2211399
11400fi
11401
Neil Schemenauer4e425612001-06-19 15:44:1511402# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11403
Michael W. Hudson54241132001-12-07 15:38:2611404
Matthias Kloseb9621712010-04-24 17:59:4911405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11406$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:1511407if test -z "$MACHDEP_OBJS"
11408then
Jack Jansene578a632001-08-15 01:27:1411409 MACHDEP_OBJS=$extra_machdep_objs
11410else
11411 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:1511412fi
doko@ubuntu.com9c7817e2012-06-30 15:05:1311413if test -z "$MACHDEP_OBJS"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11415$as_echo "none" >&6; }
11416else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11418$as_echo "$MACHDEP_OBJS" >&6; }
11419fi
Neil Schemenauer4e425612001-06-19 15:44:1511420
Guido van Rossum627b2d71993-12-24 10:39:1611421# checks for library functions
Antoine Pitroub1c54962010-10-14 15:05:3811422for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
Victor Stinnerdaf45552013-08-27 22:53:5911423 clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
Ross Lagerwall7807c352011-03-17 18:20:3011424 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
Victor Stinner4d6a3d62014-12-21 00:16:3811425 futimens futimes gai_strerror getentropy \
Ross Lagerwallb0ae53d2011-06-10 05:30:3011426 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwis7aed61a2009-11-27 14:09:4911427 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
Benjamin Peterson2184fe52018-09-13 00:37:4611428 initgroups kill killpg lchown linkat lstat lutimes mmap \
Antoine Pitrouf0effe62011-11-26 00:11:0211429 memrchr mbrtowc mkdirat mkfifo \
Charles-François Natalidaafdd52011-05-29 18:07:4011430 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
Ross Lagerwall7807c352011-03-17 18:20:3011431 posix_fallocate posix_fadvise pread \
Victor Stinnerb3e72192011-05-07 23:46:1111432 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \
Georg Brandl941f9562011-02-25 15:21:4711433 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
Antoine Pitrou061cfb52011-02-28 22:25:2211434 setgid sethostname \
Giampaolo Rodolà18e8bcb2011-02-25 20:57:5411435 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
Charles-François Nataliea0d5fc2011-09-06 17:03:3511436 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11437 sched_rr_get_interval \
Ross Lagerwallbc808222011-06-25 10:13:4011438 sigaction sigaltstack siginterrupt sigpending sigrelse \
11439 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
Michael W. Hudson34f20ea2002-05-27 15:08:2411440 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Ross Lagerwall7807c352011-03-17 18:20:3011441 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
Victor Stinnercd777ea2013-04-08 20:43:4411442 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
Matthias Kloseb9621712010-04-24 17:59:4911443do :
11444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11445ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3011446if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0311447 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911448#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0311449_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3811450
Guido van Rossumd0b69ec2001-09-10 14:10:5411451fi
11452done
11453
Michael W. Hudson54241132001-12-07 15:38:2611454
Miss Islington (bot)bdace2e2018-09-12 23:43:1911455# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11456# links. Some libc implementations have a stub lchmod implementation that always
11457# returns an error.
11458if test "$MACHDEP" != linux; then
Benjamin Peterson2184fe52018-09-13 00:37:4611459 for ac_func in lchmod
11460do :
Miss Islington (bot)bdace2e2018-09-12 23:43:1911461 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11462if test "x$ac_cv_func_lchmod" = xyes; then :
Benjamin Peterson2184fe52018-09-13 00:37:4611463 cat >>confdefs.h <<_ACEOF
11464#define HAVE_LCHMOD 1
11465_ACEOF
Miss Islington (bot)bdace2e2018-09-12 23:43:1911466
11467fi
Benjamin Peterson2184fe52018-09-13 00:37:4611468done
Miss Islington (bot)bdace2e2018-09-12 23:43:1911469
11470fi
11471
Gregory P. Smithdf300d52012-01-22 02:20:1511472ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11473 #include <dirent.h>
11474"
11475if test "x$ac_cv_have_decl_dirfd" = xyes; then :
11476
11477$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
11478
11479fi
11480
11481
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511482# For some functions, having a definition is not sufficient, since
11483# we want to take their address.
Matthias Kloseb9621712010-04-24 17:59:4911484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11485$as_echo_n "checking for chroot... " >&6; }
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411487/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511488#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511489int
11490main ()
11491{
11492void *x=chroot
11493 ;
11494 return 0;
11495}
11496_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911497if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511498
Matthias Kloseb9621712010-04-24 17:59:4911499$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511500
Matthias Kloseb159a552010-04-25 21:00:4411501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911502$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511503else
Matthias Kloseb9621712010-04-24 17:59:4911504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511506
11507fi
Thomas Wouters47b49bf2007-08-30 22:15:3311508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11510$as_echo_n "checking for link... " >&6; }
11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411512/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511513#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511514int
11515main ()
11516{
11517void *x=link
11518 ;
11519 return 0;
11520}
11521_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911522if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511523
Matthias Kloseb9621712010-04-24 17:59:4911524$as_echo "#define HAVE_LINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511525
Matthias Kloseb159a552010-04-25 21:00:4411526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911527$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511528else
Matthias Kloseb9621712010-04-24 17:59:4911529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511531
11532fi
Thomas Wouters47b49bf2007-08-30 22:15:3311533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11535$as_echo_n "checking for symlink... " >&6; }
11536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411537/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511538#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511539int
11540main ()
11541{
11542void *x=symlink
11543 ;
11544 return 0;
11545}
11546_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911547if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511548
Matthias Kloseb9621712010-04-24 17:59:4911549$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511550
Matthias Kloseb159a552010-04-25 21:00:4411551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911552$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511553else
Matthias Kloseb9621712010-04-24 17:59:4911554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511556
11557fi
Thomas Wouters47b49bf2007-08-30 22:15:3311558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11560$as_echo_n "checking for fchdir... " >&6; }
11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411562/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011563#include <unistd.h>
11564int
11565main ()
11566{
11567void *x=fchdir
11568 ;
11569 return 0;
11570}
11571_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911572if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011573
Matthias Kloseb9621712010-04-24 17:59:4911574$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011575
Matthias Kloseb159a552010-04-25 21:00:4411576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911577$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011578else
Matthias Kloseb9621712010-04-24 17:59:4911579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011581
11582fi
Thomas Wouters47b49bf2007-08-30 22:15:3311583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11585$as_echo_n "checking for fsync... " >&6; }
11586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411587/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011588#include <unistd.h>
11589int
11590main ()
11591{
11592void *x=fsync
11593 ;
11594 return 0;
11595}
11596_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911597if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011598
Matthias Kloseb9621712010-04-24 17:59:4911599$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011600
Matthias Kloseb159a552010-04-25 21:00:4411601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911602$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011603else
Matthias Kloseb9621712010-04-24 17:59:4911604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011606
11607fi
Thomas Wouters47b49bf2007-08-30 22:15:3311608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11610$as_echo_n "checking for fdatasync... " >&6; }
11611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411612/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011613#include <unistd.h>
11614int
11615main ()
11616{
11617void *x=fdatasync
11618 ;
11619 return 0;
11620}
11621_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911622if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011623
Matthias Kloseb9621712010-04-24 17:59:4911624$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011625
Matthias Kloseb159a552010-04-25 21:00:4411626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911627$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011628else
Matthias Kloseb9621712010-04-24 17:59:4911629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011631
11632fi
Thomas Wouters47b49bf2007-08-30 22:15:3311633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11635$as_echo_n "checking for epoll... " >&6; }
11636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511637/* end confdefs.h. */
11638#include <sys/epoll.h>
11639int
11640main ()
11641{
11642void *x=epoll_create
11643 ;
11644 return 0;
11645}
11646_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911647if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511648
Matthias Kloseb9621712010-04-24 17:59:4911649$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511650
Matthias Kloseb159a552010-04-25 21:00:4411651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911652$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511653else
Matthias Kloseb9621712010-04-24 17:59:4911654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511656
11657fi
Christian Heimes4fbc72b2008-03-22 00:47:3511658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Peterson95c16622011-12-27 21:36:3211659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11660$as_echo_n "checking for epoll_create1... " >&6; }
11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h. */
11663#include <sys/epoll.h>
11664int
11665main ()
11666{
11667void *x=epoll_create1
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_compile "$LINENO"; then :
11673
11674$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
11675
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11677$as_echo "yes" >&6; }
11678else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
11681
11682fi
11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11685$as_echo_n "checking for kqueue... " >&6; }
11686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511687/* end confdefs.h. */
11688
11689#include <sys/types.h>
11690#include <sys/event.h>
11691
11692int
11693main ()
11694{
11695int x=kqueue()
11696 ;
11697 return 0;
11698}
11699_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911700if ac_fn_c_try_compile "$LINENO"; then :
Christian Heimes4fbc72b2008-03-22 00:47:3511701
Matthias Kloseb9621712010-04-24 17:59:4911702$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511703
Matthias Kloseb159a552010-04-25 21:00:4411704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911705$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511706else
Matthias Kloseb9621712010-04-24 17:59:4911707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511709
11710fi
Christian Heimes4fbc72b2008-03-22 00:47:3511711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimesb7bd5df2013-10-22 09:21:5411712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11713$as_echo_n "checking for prlimit... " >&6; }
11714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h. */
11716
11717#include <sys/time.h>
11718#include <sys/resource.h>
11719
11720int
11721main ()
11722{
11723void *x=prlimit
11724 ;
11725 return 0;
11726}
11727_ACEOF
11728if ac_fn_c_try_compile "$LINENO"; then :
11729
11730$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
11731
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733$as_echo "yes" >&6; }
11734else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737
11738fi
11739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740
Martin v. Löwisd5843682002-11-21 20:41:2811741# On some systems (eg. FreeBSD 5), we would find a definition of the
11742# functions ctermid_r, setgroups in the library, but no prototype
11743# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
11744# address to avoid compiler warnings and potential miscompilations
11745# because of the missing prototypes.
11746
Matthias Kloseb9621712010-04-24 17:59:4911747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11748$as_echo_n "checking for ctermid_r... " >&6; }
11749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411750/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2811751
Martin v. Löwisd5843682002-11-21 20:41:2811752#include <stdio.h>
11753
Martin v. Löwisd5843682002-11-21 20:41:2811754int
11755main ()
11756{
11757void* p = ctermid_r
11758 ;
11759 return 0;
11760}
11761_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911762if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2811763
Matthias Kloseb9621712010-04-24 17:59:4911764$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2811765
Matthias Kloseb159a552010-04-25 21:00:4411766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911767$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811768else
Matthias Kloseb9621712010-04-24 17:59:4911769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811771
11772fi
Thomas Wouters47b49bf2007-08-30 22:15:3311773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774
Antoine Pitroua4e4ae22010-09-10 18:39:0011775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11776$as_echo_n "checking for flock declaration... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911777if ${ac_cv_flock_decl+:} false; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011778 $as_echo_n "(cached) " >&6
11779else
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411781/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911782#include <sys/file.h>
Martin v. Löwisf26d63b2003-03-30 17:23:4911783int
11784main ()
11785{
11786void* p = flock
Antoine Pitroua4e4ae22010-09-10 18:39:0011787
Martin v. Löwisf26d63b2003-03-30 17:23:4911788 ;
11789 return 0;
11790}
11791_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911792if ac_fn_c_try_compile "$LINENO"; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011793 ac_cv_flock_decl=yes
11794else
11795 ac_cv_flock_decl=no
Martin v. Löwisf26d63b2003-03-30 17:23:4911796
11797fi
Thomas Wouters47b49bf2007-08-30 22:15:3311798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Antoine Pitroua3000072010-09-07 14:52:4211799
Antoine Pitroua4e4ae22010-09-10 18:39:0011800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11802$as_echo "$ac_cv_flock_decl" >&6; }
11803if test "x${ac_cv_flock_decl}" = xyes; then
11804 for ac_func in flock
11805do :
11806 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
Victor Stinnere0be4232011-10-25 11:06:0911807if test "x$ac_cv_func_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011808 cat >>confdefs.h <<_ACEOF
11809#define HAVE_FLOCK 1
Antoine Pitroua3000072010-09-07 14:52:4211810_ACEOF
Antoine Pitroua4e4ae22010-09-10 18:39:0011811
Antoine Pitroua3000072010-09-07 14:52:4211812else
Antoine Pitroua4e4ae22010-09-10 18:39:0011813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
Antoine Pitroua3000072010-09-07 14:52:4211814$as_echo_n "checking for flock in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911815if ${ac_cv_lib_bsd_flock+:} false; then :
Antoine Pitroua3000072010-09-07 14:52:4211816 $as_echo_n "(cached) " >&6
11817else
11818 ac_check_lib_save_LIBS=$LIBS
11819LIBS="-lbsd $LIBS"
11820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821/* end confdefs.h. */
11822
11823/* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11826#ifdef __cplusplus
11827extern "C"
11828#endif
11829char flock ();
11830int
11831main ()
11832{
11833return flock ();
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838if ac_fn_c_try_link "$LINENO"; then :
11839 ac_cv_lib_bsd_flock=yes
11840else
11841 ac_cv_lib_bsd_flock=no
11842fi
11843rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845LIBS=$ac_check_lib_save_LIBS
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11848$as_echo "$ac_cv_lib_bsd_flock" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911849if test "x$ac_cv_lib_bsd_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011850 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
Antoine Pitroua3000072010-09-07 14:52:4211851
11852
11853$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
11854
11855
11856fi
11857
11858
11859fi
Antoine Pitroua4e4ae22010-09-10 18:39:0011860done
11861
Antoine Pitroua3000072010-09-07 14:52:4211862fi
Thomas Wouters47b49bf2007-08-30 22:15:3311863
Matthias Kloseb9621712010-04-24 17:59:4911864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11865$as_echo_n "checking for getpagesize... " >&6; }
11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411867/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911868
Martin v. Löwisf26d63b2003-03-30 17:23:4911869#include <unistd.h>
11870
Martin v. Löwisf26d63b2003-03-30 17:23:4911871int
11872main ()
11873{
11874void* p = getpagesize
11875 ;
11876 return 0;
11877}
11878_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911879if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisf26d63b2003-03-30 17:23:4911880
Matthias Kloseb9621712010-04-24 17:59:4911881$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
Martin v. Löwisf26d63b2003-03-30 17:23:4911882
Matthias Kloseb159a552010-04-25 21:00:4411883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911884$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911885else
Matthias Kloseb9621712010-04-24 17:59:4911886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911888
11889fi
Thomas Wouters47b49bf2007-08-30 22:15:3311890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:4911891
Victor Stinner984890f2011-11-24 12:53:3811892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
11893$as_echo_n "checking for broken unsetenv... " >&6; }
11894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895/* end confdefs.h. */
11896
11897#include <stdlib.h>
11898
11899int
11900main ()
11901{
11902int res = unsetenv("DUMMY")
11903 ;
11904 return 0;
11905}
11906_ACEOF
11907if ac_fn_c_try_compile "$LINENO"; then :
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910else
11911
11912$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915$as_echo "yes" >&6; }
11916
11917fi
11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919
Martin v. Löwis4ee6eef2003-05-26 05:37:5111920for ac_prog in true
11921do
11922 # Extract the first word of "$ac_prog", so it can be a program name with args.
11923set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:4911924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911926if ${ac_cv_prog_TRUE+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4911927 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5111928else
11929 if test -n "$TRUE"; then
11930 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
11931else
11932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933for as_dir in $PATH
11934do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4911937 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:5411938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis4ee6eef2003-05-26 05:37:5111939 ac_cv_prog_TRUE="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:4911940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:5111941 break 2
11942 fi
11943done
Matthias Kloseb9621712010-04-24 17:59:4911944 done
Thomas Wouters47b49bf2007-08-30 22:15:3311945IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:5111946
11947fi
11948fi
11949TRUE=$ac_cv_prog_TRUE
11950if test -n "$TRUE"; then
Matthias Kloseb9621712010-04-24 17:59:4911951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
11952$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5111953else
Matthias Kloseb9621712010-04-24 17:59:4911954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5111956fi
11957
Thomas Wouters47b49bf2007-08-30 22:15:3311958
Martin v. Löwis4ee6eef2003-05-26 05:37:5111959 test -n "$TRUE" && break
11960done
11961test -n "$TRUE" || TRUE="/bin/true"
11962
11963
Matthias Kloseb9621712010-04-24 17:59:4911964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
11965$as_echo_n "checking for inet_aton in -lc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911966if ${ac_cv_lib_c_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4911967 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4811968else
11969 ac_check_lib_save_LIBS=$LIBS
11970LIBS="-lc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4911971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411972/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4811973
Thomas Wouters47b49bf2007-08-30 22:15:3311974/* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4811977#ifdef __cplusplus
11978extern "C"
11979#endif
Martin v. Löwis95c419b2003-05-03 12:10:4811980char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811981int
11982main ()
11983{
Thomas Wouters47b49bf2007-08-30 22:15:3311984return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4811985 ;
11986 return 0;
11987}
11988_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911989if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4811990 ac_cv_lib_c_inet_aton=yes
11991else
Matthias Kloseb9621712010-04-24 17:59:4911992 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4811993fi
Matthias Kloseb9621712010-04-24 17:59:4911994rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4811996LIBS=$ac_check_lib_save_LIBS
11997fi
Matthias Kloseb9621712010-04-24 17:59:4911998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
11999$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912000if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5112001 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:4812002else
Matthias Kloseb9621712010-04-24 17:59:4912003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12004$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912005if ${ac_cv_lib_resolv_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912006 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4812007else
12008 ac_check_lib_save_LIBS=$LIBS
12009LIBS="-lresolv $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412011/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4812012
Thomas Wouters47b49bf2007-08-30 22:15:3312013/* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4812016#ifdef __cplusplus
12017extern "C"
12018#endif
Martin v. Löwis95c419b2003-05-03 12:10:4812019char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812020int
12021main ()
12022{
Thomas Wouters47b49bf2007-08-30 22:15:3312023return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812024 ;
12025 return 0;
12026}
12027_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912028if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812029 ac_cv_lib_resolv_inet_aton=yes
12030else
Matthias Kloseb9621712010-04-24 17:59:4912031 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4812032fi
Matthias Kloseb9621712010-04-24 17:59:4912033rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4812035LIBS=$ac_check_lib_save_LIBS
12036fi
Matthias Kloseb9621712010-04-24 17:59:4912037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12038$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912039if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812040 cat >>confdefs.h <<_ACEOF
12041#define HAVE_LIBRESOLV 1
12042_ACEOF
12043
12044 LIBS="-lresolv $LIBS"
12045
12046fi
12047
12048
12049fi
12050
12051
Christian Heimesd0764e22007-12-04 15:00:3312052# On Tru64, chflags seems to be present, but calling it will
12053# exit Python
Matthias Kloseb9621712010-04-24 17:59:4912054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12055$as_echo_n "checking for chflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912056if ${ac_cv_have_chflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912057 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712058else
Matthias Kloseb9621712010-04-24 17:59:4912059 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312060 ac_cv_have_chflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312061else
Matthias Kloseb9621712010-04-24 17:59:4912062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312063/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812064
Christian Heimesd0764e22007-12-04 15:00:3312065#include <sys/stat.h>
12066#include <unistd.h>
12067int main(int argc, char*argv[])
12068{
12069 if(chflags(argv[0], 0) != 0)
12070 return 1;
12071 return 0;
12072}
Ned Deily3eb67d52011-06-28 07:00:2812073
Christian Heimesd0764e22007-12-04 15:00:3312074_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912075if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712076 ac_cv_have_chflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212077else
Matthias Kloseb9621712010-04-24 17:59:4912078 ac_cv_have_chflags=no
Alexandre Vassalotti19142282009-07-17 23:11:5212079fi
Matthias Kloseb9621712010-04-24 17:59:4912080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12081 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5312082fi
12083
Alexandre Vassalotti19142282009-07-17 23:11:5212084
Alexandre Vassalottib0a61d72009-07-17 23:19:3712085fi
Matthias Kloseb9621712010-04-24 17:59:4912086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12087$as_echo "$ac_cv_have_chflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312088if test "$ac_cv_have_chflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912089 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
Victor Stinnere0be4232011-10-25 11:06:0912090if test "x$ac_cv_func_chflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312091 ac_cv_have_chflags="yes"
12092else
12093 ac_cv_have_chflags="no"
12094fi
12095
12096fi
12097if test "$ac_cv_have_chflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712098
Matthias Kloseb9621712010-04-24 17:59:4912099$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712100
12101fi
12102
Matthias Kloseb9621712010-04-24 17:59:4912103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12104$as_echo_n "checking for lchflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912105if ${ac_cv_have_lchflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912106 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712107else
Matthias Kloseb9621712010-04-24 17:59:4912108 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312109 ac_cv_have_lchflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312110else
Matthias Kloseb9621712010-04-24 17:59:4912111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312112/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812113
Christian Heimesd0764e22007-12-04 15:00:3312114#include <sys/stat.h>
12115#include <unistd.h>
12116int main(int argc, char*argv[])
12117{
12118 if(lchflags(argv[0], 0) != 0)
12119 return 1;
12120 return 0;
12121}
Ned Deily3eb67d52011-06-28 07:00:2812122
Christian Heimesd0764e22007-12-04 15:00:3312123_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912124if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712125 ac_cv_have_lchflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212126else
Matthias Kloseb9621712010-04-24 17:59:4912127 ac_cv_have_lchflags=no
Christian Heimesd0764e22007-12-04 15:00:3312128fi
Matthias Kloseb9621712010-04-24 17:59:4912129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12130 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti19142282009-07-17 23:11:5212131fi
12132
12133
Alexandre Vassalottib0a61d72009-07-17 23:19:3712134fi
Matthias Kloseb9621712010-04-24 17:59:4912135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12136$as_echo "$ac_cv_have_lchflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312137if test "$ac_cv_have_lchflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912138 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
Victor Stinnere0be4232011-10-25 11:06:0912139if test "x$ac_cv_func_lchflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312140 ac_cv_have_lchflags="yes"
12141else
12142 ac_cv_have_lchflags="no"
12143fi
12144
12145fi
12146if test "$ac_cv_have_lchflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712147
Matthias Kloseb9621712010-04-24 17:59:4912148$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712149
12150fi
12151
Thomas Wouters0e3f5912006-08-11 14:57:1212152case $ac_sys_system/$ac_sys_release in
12153Darwin/*)
12154 _CUR_CFLAGS="${CFLAGS}"
12155 _CUR_LDFLAGS="${LDFLAGS}"
12156 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12157 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12158 ;;
12159esac
12160
Matthias Kloseb9621712010-04-24 17:59:4912161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12162$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912163if ${ac_cv_lib_z_inflateCopy+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912164 $as_echo_n "(cached) " >&6
Thomas Wouters0e3f5912006-08-11 14:57:1212165else
12166 ac_check_lib_save_LIBS=$LIBS
12167LIBS="-lz $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212169/* end confdefs.h. */
12170
Thomas Wouters47b49bf2007-08-30 22:15:3312171/* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
Thomas Wouters0e3f5912006-08-11 14:57:1212174#ifdef __cplusplus
12175extern "C"
12176#endif
12177char inflateCopy ();
12178int
12179main ()
12180{
Thomas Wouters47b49bf2007-08-30 22:15:3312181return inflateCopy ();
Thomas Wouters0e3f5912006-08-11 14:57:1212182 ;
12183 return 0;
12184}
12185_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912186if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212187 ac_cv_lib_z_inflateCopy=yes
12188else
Matthias Kloseb9621712010-04-24 17:59:4912189 ac_cv_lib_z_inflateCopy=no
Thomas Wouters0e3f5912006-08-11 14:57:1212190fi
Matthias Kloseb9621712010-04-24 17:59:4912191rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212193LIBS=$ac_check_lib_save_LIBS
12194fi
Matthias Kloseb9621712010-04-24 17:59:4912195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12196$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912197if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212198
Matthias Kloseb9621712010-04-24 17:59:4912199$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1212200
12201fi
12202
12203
12204case $ac_sys_system/$ac_sys_release in
12205Darwin/*)
12206 CFLAGS="${_CUR_CFLAGS}"
12207 LDFLAGS="${_CUR_LDFLAGS}"
12208 ;;
12209esac
12210
Matthias Kloseb9621712010-04-24 17:59:4912211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12212$as_echo_n "checking for hstrerror... " >&6; }
12213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412214/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512215
Martin v. Löwise9416172003-05-03 10:12:4512216#include <netdb.h>
12217
Martin v. Löwise9416172003-05-03 10:12:4512218int
12219main ()
12220{
Martin v. Löwis95c419b2003-05-03 12:10:4812221void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:4512222 ;
12223 return 0;
12224}
12225_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912226if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512227
Matthias Kloseb9621712010-04-24 17:59:4912228$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512229
Matthias Kloseb159a552010-04-25 21:00:4412230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912231$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512232else
Matthias Kloseb9621712010-04-24 17:59:4912233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512235
12236fi
Matthias Kloseb9621712010-04-24 17:59:4912237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312239
Matthias Kloseb9621712010-04-24 17:59:4912240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12241$as_echo_n "checking for inet_aton... " >&6; }
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412243/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512244
Martin v. Löwis86d66262006-02-17 08:40:1112245#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512246#include <sys/socket.h>
12247#include <netinet/in.h>
12248#include <arpa/inet.h>
12249
Martin v. Löwise9416172003-05-03 10:12:4512250int
12251main ()
12252{
Martin v. Löwis95c419b2003-05-03 12:10:4812253void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:4512254 ;
12255 return 0;
12256}
12257_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912258if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512259
Matthias Kloseb9621712010-04-24 17:59:4912260$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512261
Matthias Kloseb159a552010-04-25 21:00:4412262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912263$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512264else
Matthias Kloseb9621712010-04-24 17:59:4912265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512267
12268fi
Matthias Kloseb9621712010-04-24 17:59:4912269rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312271
Matthias Kloseb9621712010-04-24 17:59:4912272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12273$as_echo_n "checking for inet_pton... " >&6; }
12274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412275/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512276
Martin v. Löwisf2e488d2003-05-05 22:00:1112277#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512278#include <sys/socket.h>
12279#include <netinet/in.h>
12280#include <arpa/inet.h>
12281
Martin v. Löwise9416172003-05-03 10:12:4512282int
12283main ()
12284{
12285void* p = inet_pton
12286 ;
12287 return 0;
12288}
12289_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912290if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512291
Matthias Kloseb9621712010-04-24 17:59:4912292$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512293
Matthias Kloseb159a552010-04-25 21:00:4412294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912295$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512296else
Matthias Kloseb9621712010-04-24 17:59:4912297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512299
12300fi
Thomas Wouters47b49bf2007-08-30 22:15:3312301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:4512302
Martin v. Löwisd6640d42003-07-06 09:29:5212303# On some systems, setgroups is in unistd.h, on others, in grp.h
Matthias Kloseb9621712010-04-24 17:59:4912304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12305$as_echo_n "checking for setgroups... " >&6; }
12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412307/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2812308
Martin v. Löwisf2e488d2003-05-05 22:00:1112309#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:5212310#ifdef HAVE_GRP_H
12311#include <grp.h>
12312#endif
Martin v. Löwisd5843682002-11-21 20:41:2812313
Martin v. Löwisd5843682002-11-21 20:41:2812314int
12315main ()
12316{
12317void* p = setgroups
12318 ;
12319 return 0;
12320}
12321_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912322if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2812323
Matthias Kloseb9621712010-04-24 17:59:4912324$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2812325
Matthias Kloseb159a552010-04-25 21:00:4412326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912327$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812328else
Matthias Kloseb9621712010-04-24 17:59:4912329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812331
12332fi
Thomas Wouters47b49bf2007-08-30 22:15:3312333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:2812334
Guido van Rossumd0b69ec2001-09-10 14:10:5412335# check for openpty and forkpty
12336
12337for ac_func in openpty
Matthias Kloseb9621712010-04-24 17:59:4912338do :
12339 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Victor Stinnere0be4232011-10-25 11:06:0912340if test "x$ac_cv_func_openpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312341 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912342#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312343_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:5412344
Guido van Rossumd0b69ec2001-09-10 14:10:5412345else
Matthias Kloseb9621712010-04-24 17:59:4912346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12347$as_echo_n "checking for openpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912348if ${ac_cv_lib_util_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912349 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812350else
Martin v. Löwis11437992002-04-12 09:54:0312351 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812352LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412354/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312355
Thomas Wouters47b49bf2007-08-30 22:15:3312356/* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312359#ifdef __cplusplus
12360extern "C"
12361#endif
Martin v. Löwis11437992002-04-12 09:54:0312362char openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312363int
12364main ()
12365{
Thomas Wouters47b49bf2007-08-30 22:15:3312366return openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312367 ;
12368 return 0;
12369}
12370_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912371if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312372 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812373else
Matthias Kloseb9621712010-04-24 17:59:4912374 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812375fi
Matthias Kloseb9621712010-04-24 17:59:4912376rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312378LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812379fi
Matthias Kloseb9621712010-04-24 17:59:4912380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12381$as_echo "$ac_cv_lib_util_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912382if test "x$ac_cv_lib_util_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912383 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812384 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312385else
Matthias Kloseb9621712010-04-24 17:59:4912386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12387$as_echo_n "checking for openpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912388if ${ac_cv_lib_bsd_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912389 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312390else
12391 ac_check_lib_save_LIBS=$LIBS
12392LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312394/* end confdefs.h. */
12395
Thomas Wouters47b49bf2007-08-30 22:15:3312396/* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312399#ifdef __cplusplus
12400extern "C"
12401#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312402char openpty ();
12403int
12404main ()
12405{
Thomas Wouters47b49bf2007-08-30 22:15:3312406return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312407 ;
12408 return 0;
12409}
12410_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912411if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312412 ac_cv_lib_bsd_openpty=yes
12413else
Matthias Kloseb9621712010-04-24 17:59:4912414 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812415fi
Matthias Kloseb9621712010-04-24 17:59:4912416rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312418LIBS=$ac_check_lib_save_LIBS
12419fi
Matthias Kloseb9621712010-04-24 17:59:4912420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12421$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912422if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912423 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312424 LIBS="$LIBS -lbsd"
12425fi
12426
12427
12428fi
12429
Fred Drake8cef4cf2000-06-28 16:40:3812430
12431fi
12432done
12433
12434for ac_func in forkpty
Matthias Kloseb9621712010-04-24 17:59:4912435do :
12436 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
Victor Stinnere0be4232011-10-25 11:06:0912437if test "x$ac_cv_func_forkpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312438 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912439#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312440_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3812441
Fred Drake8cef4cf2000-06-28 16:40:3812442else
Matthias Kloseb9621712010-04-24 17:59:4912443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12444$as_echo_n "checking for forkpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912445if ${ac_cv_lib_util_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912446 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812447else
Martin v. Löwis11437992002-04-12 09:54:0312448 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812449LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412451/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312452
Thomas Wouters47b49bf2007-08-30 22:15:3312453/* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312456#ifdef __cplusplus
12457extern "C"
12458#endif
Martin v. Löwis11437992002-04-12 09:54:0312459char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312460int
12461main ()
12462{
Thomas Wouters47b49bf2007-08-30 22:15:3312463return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312464 ;
12465 return 0;
12466}
12467_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912468if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312469 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812470else
Matthias Kloseb9621712010-04-24 17:59:4912471 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812472fi
Matthias Kloseb9621712010-04-24 17:59:4912473rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312475LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812476fi
Matthias Kloseb9621712010-04-24 17:59:4912477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12478$as_echo "$ac_cv_lib_util_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912479if test "x$ac_cv_lib_util_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912480 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812481 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312482else
Matthias Kloseb9621712010-04-24 17:59:4912483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12484$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912485if ${ac_cv_lib_bsd_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912486 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312487else
12488 ac_check_lib_save_LIBS=$LIBS
12489LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312491/* end confdefs.h. */
12492
Thomas Wouters47b49bf2007-08-30 22:15:3312493/* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312496#ifdef __cplusplus
12497extern "C"
12498#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312499char forkpty ();
12500int
12501main ()
12502{
Thomas Wouters47b49bf2007-08-30 22:15:3312503return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312504 ;
12505 return 0;
12506}
12507_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912508if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312509 ac_cv_lib_bsd_forkpty=yes
12510else
Matthias Kloseb9621712010-04-24 17:59:4912511 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812512fi
Matthias Kloseb9621712010-04-24 17:59:4912513rm -f core conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312515LIBS=$ac_check_lib_save_LIBS
12516fi
Matthias Kloseb9621712010-04-24 17:59:4912517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12518$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912519if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912520 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312521 LIBS="$LIBS -lbsd"
12522fi
12523
12524
12525fi
12526
Fred Drake8cef4cf2000-06-28 16:40:3812527
12528fi
12529done
12530
Jack Jansendd19cf82001-12-06 22:36:1712531
Christian Heimesb186d002008-03-18 15:15:0112532# Stuff for expat.
Christian Heimesb186d002008-03-18 15:15:0112533for ac_func in memmove
Matthias Kloseb9621712010-04-24 17:59:4912534do :
12535 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
Victor Stinnere0be4232011-10-25 11:06:0912536if test "x$ac_cv_func_memmove" = xyes; then :
Christian Heimesb186d002008-03-18 15:15:0112537 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912538#define HAVE_MEMMOVE 1
Christian Heimesb186d002008-03-18 15:15:0112539_ACEOF
12540
12541fi
12542done
12543
12544
Michael W. Hudson54241132001-12-07 15:38:2612545# check for long file support functions
Fred Drake8cef4cf2000-06-28 16:40:3812546for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
Matthias Kloseb9621712010-04-24 17:59:4912547do :
12548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3012550if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0312551 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0312553_ACEOF
Michael W. Hudson54241132001-12-07 15:38:2612554
Guido van Rossum76be6ed1995-01-02 18:33:5412555fi
Guido van Rossum627b2d71993-12-24 10:39:1612556done
12557
Michael W. Hudson54241132001-12-07 15:38:2612558
Ross Lagerwallb0ae53d2011-06-10 05:30:3012559ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
Victor Stinnere0be4232011-10-25 11:06:0912560if test "x$ac_cv_func_dup2" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012561 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
Martin v. Löwis1142de32002-03-29 16:28:3112562
Martin v. Löwis1142de32002-03-29 16:28:3112563else
Thomas Wouters47b49bf2007-08-30 22:15:3312564 case " $LIBOBJS " in
Ross Lagerwallb0ae53d2011-06-10 05:30:3012565 *" dup2.$ac_objext "* ) ;;
12566 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
Thomas Wouters47b49bf2007-08-30 22:15:3312567 ;;
Skip Montanarof0d5f792004-08-15 14:08:2312568esac
12569
Martin v. Löwis1142de32002-03-29 16:28:3112570fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3012571
Ross Lagerwallb0ae53d2011-06-10 05:30:3012572ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
Victor Stinnere0be4232011-10-25 11:06:0912573if test "x$ac_cv_func_strdup" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012574 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12575
12576else
12577 case " $LIBOBJS " in
12578 *" strdup.$ac_objext "* ) ;;
12579 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12580 ;;
12581esac
12582
12583fi
Martin v. Löwis1142de32002-03-29 16:28:3112584
12585
12586for ac_func in getpgrp
Matthias Kloseb9621712010-04-24 17:59:4912587do :
12588 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912589if test "x$ac_cv_func_getpgrp" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312590 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912591#define HAVE_GETPGRP 1
Martin v. Löwis11437992002-04-12 09:54:0312592_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412594/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412595#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:0312596int
12597main ()
12598{
Guido van Rossum76be6ed1995-01-02 18:33:5412599getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:0312600 ;
12601 return 0;
12602}
12603_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912604if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312605
Matthias Kloseb9621712010-04-24 17:59:4912606$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412607
Guido van Rossum627b2d71993-12-24 10:39:1612608fi
Thomas Wouters47b49bf2007-08-30 22:15:3312609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912610
Guido van Rossum627b2d71993-12-24 10:39:1612611fi
Thomas Wouters3a584202000-08-05 23:28:5112612done
Guido van Rossum627b2d71993-12-24 10:39:1612613
Jack Jansen150753c2003-03-29 22:07:4712614for ac_func in setpgrp
Matthias Kloseb9621712010-04-24 17:59:4912615do :
12616 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912617if test "x$ac_cv_func_setpgrp" = xyes; then :
Jack Jansen150753c2003-03-29 22:07:4712618 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912619#define HAVE_SETPGRP 1
Jack Jansen150753c2003-03-29 22:07:4712620_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412622/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:4712623#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:4712624int
12625main ()
12626{
12627setpgrp(0,0);
12628 ;
12629 return 0;
12630}
12631_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912632if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312633
Matthias Kloseb9621712010-04-24 17:59:4912634$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412635
Guido van Rossum8eee56f1994-10-20 22:18:3712636fi
Thomas Wouters47b49bf2007-08-30 22:15:3312637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:4712638
12639fi
12640done
Guido van Rossum8eee56f1994-10-20 22:18:3712641
Thomas Wouters3a584202000-08-05 23:28:5112642for ac_func in gettimeofday
Matthias Kloseb9621712010-04-24 17:59:4912643do :
12644 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Victor Stinnere0be4232011-10-25 11:06:0912645if test "x$ac_cv_func_gettimeofday" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312646 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912647#define HAVE_GETTIMEOFDAY 1
Martin v. Löwis11437992002-04-12 09:54:0312648_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412650/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1612651#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:0312652int
12653main ()
12654{
Guido van Rossum76be6ed1995-01-02 18:33:5412655gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:0312656 ;
12657 return 0;
12658}
12659_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912660if ac_fn_c_try_compile "$LINENO"; then :
12661
Guido van Rossum627b2d71993-12-24 10:39:1612662else
Skip Montanaro6dead952003-09-25 14:50:0412663
Matthias Kloseb9621712010-04-24 17:59:4912664$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1612665
Martin v. Löwis11437992002-04-12 09:54:0312666
Guido van Rossum627b2d71993-12-24 10:39:1612667fi
Thomas Wouters47b49bf2007-08-30 22:15:3312668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912669
Guido van Rossum76be6ed1995-01-02 18:33:5412670fi
Thomas Wouters3a584202000-08-05 23:28:5112671done
Guido van Rossum76be6ed1995-01-02 18:33:5412672
Michael W. Hudson54241132001-12-07 15:38:2612673
Victor Stinnere0be4232011-10-25 11:06:0912674for ac_func in clock_gettime
12675do :
12676 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12677if test "x$ac_cv_func_clock_gettime" = xyes; then :
12678 cat >>confdefs.h <<_ACEOF
12679#define HAVE_CLOCK_GETTIME 1
12680_ACEOF
12681
12682else
12683
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12685$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12686if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688else
12689 ac_check_lib_save_LIBS=$LIBS
12690LIBS="-lrt $LIBS"
12691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692/* end confdefs.h. */
12693
12694/* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12697#ifdef __cplusplus
12698extern "C"
12699#endif
12700char clock_gettime ();
12701int
12702main ()
12703{
12704return clock_gettime ();
12705 ;
12706 return 0;
12707}
12708_ACEOF
12709if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_lib_rt_clock_gettime=yes
12711else
12712 ac_cv_lib_rt_clock_gettime=no
12713fi
12714rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716LIBS=$ac_check_lib_save_LIBS
12717fi
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12719$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12720if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12721
Victor Stinner7efb8332014-08-29 13:41:0812722 LIBS="$LIBS -lrt"
Victor Stinnere0be4232011-10-25 11:06:0912723 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12724
12725
12726$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
12727
12728
12729fi
12730
12731
12732fi
12733done
12734
12735
12736for ac_func in clock_getres
12737do :
12738 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
12739if test "x$ac_cv_func_clock_getres" = xyes; then :
12740 cat >>confdefs.h <<_ACEOF
12741#define HAVE_CLOCK_GETRES 1
12742_ACEOF
12743
12744else
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
12747$as_echo_n "checking for clock_getres in -lrt... " >&6; }
12748if ${ac_cv_lib_rt_clock_getres+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750else
12751 ac_check_lib_save_LIBS=$LIBS
12752LIBS="-lrt $LIBS"
12753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754/* end confdefs.h. */
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char clock_getres ();
12763int
12764main ()
12765{
12766return clock_getres ();
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771if ac_fn_c_try_link "$LINENO"; then :
12772 ac_cv_lib_rt_clock_getres=yes
12773else
12774 ac_cv_lib_rt_clock_getres=no
12775fi
12776rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778LIBS=$ac_check_lib_save_LIBS
12779fi
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
12781$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
12782if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
12783
12784 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
12785
12786
12787fi
12788
12789
12790fi
12791done
12792
12793
Benjamin Peterson37098cd2016-09-14 05:55:0912794for ac_func in clock_settime
12795do :
12796 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
12797if test "x$ac_cv_func_clock_settime" = xyes; then :
12798 cat >>confdefs.h <<_ACEOF
12799#define HAVE_CLOCK_SETTIME 1
12800_ACEOF
12801
12802else
12803
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
12805$as_echo_n "checking for clock_settime in -lrt... " >&6; }
12806if ${ac_cv_lib_rt_clock_settime+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808else
12809 ac_check_lib_save_LIBS=$LIBS
12810LIBS="-lrt $LIBS"
12811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h. */
12813
12814/* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820char clock_settime ();
12821int
12822main ()
12823{
12824return clock_settime ();
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829if ac_fn_c_try_link "$LINENO"; then :
12830 ac_cv_lib_rt_clock_settime=yes
12831else
12832 ac_cv_lib_rt_clock_settime=no
12833fi
12834rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836LIBS=$ac_check_lib_save_LIBS
12837fi
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
12839$as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
12840if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
12841
12842 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
12843
12844
12845fi
12846
12847
12848fi
12849done
12850
12851
Matthias Kloseb9621712010-04-24 17:59:4912852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
12853$as_echo_n "checking for major... " >&6; }
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412855/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:3012856
Neal Norwitz6eb37f02003-02-23 23:28:1512857#if defined(MAJOR_IN_MKDEV)
12858#include <sys/mkdev.h>
12859#elif defined(MAJOR_IN_SYSMACROS)
12860#include <sys/sysmacros.h>
12861#else
12862#include <sys/types.h>
12863#endif
Martin v. Löwisdbe3f762002-10-10 14:27:3012864
Martin v. Löwisdbe3f762002-10-10 14:27:3012865int
12866main ()
12867{
12868
12869 makedev(major(0),minor(0));
12870
12871 ;
12872 return 0;
12873}
12874_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912875if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:3012876
12877
Matthias Kloseb9621712010-04-24 17:59:4912878$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:3012879
Matthias Kloseb9621712010-04-24 17:59:4912880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12881$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3012882
12883else
Skip Montanaro6dead952003-09-25 14:50:0412884
Matthias Kloseb9621712010-04-24 17:59:4912885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3012887
12888fi
Matthias Kloseb9621712010-04-24 17:59:4912889rm -f core conftest.err conftest.$ac_objext \
12890 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2612891
Xavier de Gaye40e320b2016-12-21 16:29:5912892# On Android API level 24 with android-ndk-r13, if_nameindex() is available,
12893# but the if_nameindex structure is not defined.
Xavier de Gaye70878422016-12-21 11:46:3612894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5
12895$as_echo_n "checking for if_nameindex... " >&6; }
12896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h. */
12898
Xavier de Gaye40e320b2016-12-21 16:29:5912899#include <stdio.h>
12900#ifdef STDC_HEADERS
12901# include <stdlib.h>
12902# include <stddef.h>
12903#else
12904# ifdef HAVE_STDLIB_H
12905# include <stdlib.h>
12906# endif
12907#endif
12908#ifdef HAVE_SYS_SOCKET_H
12909# include <sys/socket.h>
12910#endif
Xavier de Gaye70878422016-12-21 11:46:3612911#ifdef HAVE_NET_IF_H
12912# include <net/if.h>
12913#endif
12914
12915int
12916main ()
12917{
12918struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index;
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_link "$LINENO"; then :
12924
12925$as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
12926
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12928$as_echo "yes" >&6; }
12929else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931$as_echo "no" >&6; }
12932
12933fi
12934rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936
Xavier de Gayebdf0d0f2016-12-22 09:38:5912937# Issue #28762: lockf() is available on Android API level 24, but the F_LOCK
12938# macro is not defined in android-ndk-r13.
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
12940$as_echo_n "checking for lockf... " >&6; }
12941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942/* end confdefs.h. */
12943#include <unistd.h>
12944int
12945main ()
12946{
12947lockf(0, F_LOCK, 0);
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952if ac_fn_c_try_link "$LINENO"; then :
12953
12954$as_echo "#define HAVE_LOCKF 1" >>confdefs.h
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12957$as_echo "yes" >&6; }
12958else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961
12962fi
12963rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965
Martin v. Löwis861a65b2001-10-24 14:36:0012966# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:0312967# for [no]getaddrinfo in netdb.h.
Matthias Kloseb9621712010-04-24 17:59:4912968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
12969$as_echo_n "checking for getaddrinfo... " >&6; }
12970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412971/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:0012972
Martin v. Löwisc010b6d2001-11-09 17:50:5212973#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:0012974#include <sys/socket.h>
12975#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:5212976#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1312977
Martin v. Löwis11437992002-04-12 09:54:0312978int
12979main ()
12980{
Martin v. Löwis861a65b2001-10-24 14:36:0012981getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:0312982 ;
12983 return 0;
12984}
12985_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912986if ac_fn_c_try_link "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712987 have_getaddrinfo=yes
12988else
Matthias Kloseb9621712010-04-24 17:59:4912989 have_getaddrinfo=no
Alexandre Vassalottib0a61d72009-07-17 23:19:3712990fi
Matthias Kloseb9621712010-04-24 17:59:4912991rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
12994$as_echo "$have_getaddrinfo" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3712995if test $have_getaddrinfo = yes
12996then
Matthias Kloseb9621712010-04-24 17:59:4912997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
12998$as_echo_n "checking getaddrinfo bug... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912999 if ${ac_cv_buggy_getaddrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913000 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3713001else
Matthias Kloseb9621712010-04-24 17:59:4913002 if test "$cross_compiling" = yes; then :
Matthias Klose96350132012-03-15 19:42:2313003
13004if test "${enable_ipv6+set}" = set; then
13005 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13006else
Alexandre Vassalottib0a61d72009-07-17 23:19:3713007 ac_cv_buggy_getaddrinfo=yes
Matthias Klose96350132012-03-15 19:42:2313008fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313009else
Matthias Kloseb9621712010-04-24 17:59:4913010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413011/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313012
Stefan Krah19c21392012-11-22 22:47:3213013#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1313014#include <sys/types.h>
13015#include <netdb.h>
13016#include <string.h>
13017#include <sys/socket.h>
13018#include <netinet/in.h>
13019
Alexandre Vassalottib0a61d72009-07-17 23:19:3713020int main()
Martin v. Löwis01dfdb32001-06-23 16:30:1313021{
13022 int passive, gaierr, inet4 = 0, inet6 = 0;
13023 struct addrinfo hints, *ai, *aitop;
13024 char straddr[INET6_ADDRSTRLEN], strport[16];
13025
13026 for (passive = 0; passive <= 1; passive++) {
13027 memset(&hints, 0, sizeof(hints));
13028 hints.ai_family = AF_UNSPEC;
13029 hints.ai_flags = passive ? AI_PASSIVE : 0;
13030 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:3113031 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:1313032 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13033 (void)gai_strerror(gaierr);
13034 goto bad;
13035 }
13036 for (ai = aitop; ai; ai = ai->ai_next) {
13037 if (ai->ai_addr == NULL ||
13038 ai->ai_addrlen == 0 ||
13039 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13040 straddr, sizeof(straddr), strport, sizeof(strport),
13041 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13042 goto bad;
13043 }
13044 switch (ai->ai_family) {
13045 case AF_INET:
13046 if (strcmp(strport, "54321") != 0) {
13047 goto bad;
13048 }
13049 if (passive) {
13050 if (strcmp(straddr, "0.0.0.0") != 0) {
13051 goto bad;
13052 }
13053 } else {
13054 if (strcmp(straddr, "127.0.0.1") != 0) {
13055 goto bad;
13056 }
13057 }
13058 inet4++;
13059 break;
13060 case AF_INET6:
13061 if (strcmp(strport, "54321") != 0) {
13062 goto bad;
13063 }
13064 if (passive) {
13065 if (strcmp(straddr, "::") != 0) {
13066 goto bad;
13067 }
13068 } else {
13069 if (strcmp(straddr, "::1") != 0) {
13070 goto bad;
13071 }
13072 }
13073 inet6++;
13074 break;
13075 case AF_UNSPEC:
13076 goto bad;
13077 break;
13078 default:
13079 /* another family support? */
13080 break;
13081 }
13082 }
Benjamin Peterson01c340d2016-09-06 22:54:2413083 freeaddrinfo(aitop);
13084 aitop = NULL;
Martin v. Löwis01dfdb32001-06-23 16:30:1313085 }
13086
13087 if (!(inet4 == 0 || inet4 == 2))
13088 goto bad;
13089 if (!(inet6 == 0 || inet6 == 2))
13090 goto bad;
13091
13092 if (aitop)
13093 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713094 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:1313095
13096 bad:
13097 if (aitop)
13098 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713099 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:1313100}
13101
Martin v. Löwis11437992002-04-12 09:54:0313102_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913103if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3713104 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313105else
Matthias Kloseb9621712010-04-24 17:59:4913106 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:1313107fi
Matthias Kloseb9621712010-04-24 17:59:4913108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13109 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1313110fi
Thomas Wouters47b49bf2007-08-30 22:15:3313111
Alexandre Vassalottib0a61d72009-07-17 23:19:3713112fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313113
Martin v. Löwis861a65b2001-10-24 14:36:0013114fi
Thomas Wouters47b49bf2007-08-30 22:15:3313115
Benjamin Petersond4694ed2010-11-01 01:44:3013116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13117$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
13118
doko@ubuntu.com9c7817e2012-06-30 15:05:1313119if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
Alexandre Vassalottib0a61d72009-07-17 23:19:3713120then
13121 if test $ipv6 = yes
13122 then
Martin v. Löwis01dfdb32001-06-23 16:30:1313123 echo 'Fatal: You must get working getaddrinfo() function.'
13124 echo ' or you can specify "--disable-ipv6"'.
13125 exit 1
13126 fi
Martin v. Löwis861a65b2001-10-24 14:36:0013127else
Martin v. Löwis11437992002-04-12 09:54:0313128
Matthias Kloseb9621712010-04-24 17:59:4913129$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
Martin v. Löwis861a65b2001-10-24 14:36:0013130
Martin v. Löwis01dfdb32001-06-23 16:30:1313131fi
Benjamin Petersond4694ed2010-11-01 01:44:3013132
Jack Jansen9a66b6d2001-08-08 13:56:1413133for ac_func in getnameinfo
Matthias Kloseb9621712010-04-24 17:59:4913134do :
13135 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
Victor Stinnere0be4232011-10-25 11:06:0913136if test "x$ac_cv_func_getnameinfo" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313137 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913138#define HAVE_GETNAMEINFO 1
Martin v. Löwis11437992002-04-12 09:54:0313139_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:1313140
Martin v. Löwis01dfdb32001-06-23 16:30:1313141fi
13142done
13143
Michael W. Hudson54241132001-12-07 15:38:2613144
Guido van Rossum76be6ed1995-01-02 18:33:5413145# checks for structures
Matthias Kloseb9621712010-04-24 17:59:4913146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13147$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913148if ${ac_cv_header_time+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913149 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413150else
Matthias Kloseb9621712010-04-24 17:59:4913151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413152/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413153#include <sys/types.h>
13154#include <sys/time.h>
13155#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313156
Martin v. Löwis11437992002-04-12 09:54:0313157int
13158main ()
13159{
13160if ((struct tm *) 0)
13161return 0;
13162 ;
13163 return 0;
13164}
13165_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913166if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413167 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:1613168else
Matthias Kloseb9621712010-04-24 17:59:4913169 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:1613170fi
Thomas Wouters47b49bf2007-08-30 22:15:3313171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413172fi
Matthias Kloseb9621712010-04-24 17:59:4913173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13174$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613175if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313176
Matthias Kloseb9621712010-04-24 17:59:4913177$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413178
13179fi
13180
Matthias Kloseb9621712010-04-24 17:59:4913181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13182$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913183if ${ac_cv_struct_tm+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913184 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413185else
Matthias Kloseb9621712010-04-24 17:59:4913186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413187/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413188#include <sys/types.h>
13189#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313190
Martin v. Löwis11437992002-04-12 09:54:0313191int
13192main ()
13193{
Thomas Wouters47b49bf2007-08-30 22:15:3313194struct tm tm;
13195 int *p = &tm.tm_sec;
Matthias Kloseb9621712010-04-24 17:59:4913196 return !p;
Martin v. Löwis11437992002-04-12 09:54:0313197 ;
13198 return 0;
13199}
13200_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913201if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413202 ac_cv_struct_tm=time.h
13203else
Matthias Kloseb9621712010-04-24 17:59:4913204 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:5413205fi
Thomas Wouters47b49bf2007-08-30 22:15:3313206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413207fi
Matthias Kloseb9621712010-04-24 17:59:4913208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13209$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613210if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:0313211
Matthias Kloseb9621712010-04-24 17:59:4913212$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413213
13214fi
13215
Matthias Kloseb9621712010-04-24 17:59:4913216ac_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:5413217#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:0313218
Matthias Kloseb9621712010-04-24 17:59:4913219"
Victor Stinnere0be4232011-10-25 11:06:0913220if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313221
13222cat >>confdefs.h <<_ACEOF
13223#define HAVE_STRUCT_TM_TM_ZONE 1
13224_ACEOF
13225
13226
Guido van Rossum76be6ed1995-01-02 18:33:5413227fi
Guido van Rossum48bdbfc1996-05-28 22:53:4813228
Martin v. Löwis11437992002-04-12 09:54:0313229if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13230
Matthias Kloseb9621712010-04-24 17:59:4913231$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413232
13233else
Matthias Kloseb9621712010-04-24 17:59:4913234 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13235"
Victor Stinnere0be4232011-10-25 11:06:0913236if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4913237 ac_have_decl=1
Thomas Wouters47b49bf2007-08-30 22:15:3313238else
Matthias Kloseb9621712010-04-24 17:59:4913239 ac_have_decl=0
Thomas Wouters47b49bf2007-08-30 22:15:3313240fi
13241
Thomas Wouters47b49bf2007-08-30 22:15:3313242cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913243#define HAVE_DECL_TZNAME $ac_have_decl
Thomas Wouters47b49bf2007-08-30 22:15:3313244_ACEOF
13245
Matthias Kloseb9621712010-04-24 17:59:4913246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13247$as_echo_n "checking for tzname... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913248if ${ac_cv_var_tzname+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913249 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:3313250else
Matthias Kloseb9621712010-04-24 17:59:4913251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413252/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1613253#include <time.h>
Thomas Wouters47b49bf2007-08-30 22:15:3313254#if !HAVE_DECL_TZNAME
13255extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:1613256#endif
Martin v. Löwis11437992002-04-12 09:54:0313257
Martin v. Löwis11437992002-04-12 09:54:0313258int
13259main ()
13260{
Thomas Wouters47b49bf2007-08-30 22:15:3313261return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:0313262 ;
13263 return 0;
13264}
13265_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913266if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413267 ac_cv_var_tzname=yes
13268else
Matthias Kloseb9621712010-04-24 17:59:4913269 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:1613270fi
Matthias Kloseb9621712010-04-24 17:59:4913271rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:1613273fi
Matthias Kloseb9621712010-04-24 17:59:4913274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13275$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613276 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313277
Matthias Kloseb9621712010-04-24 17:59:4913278$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1613279
Guido van Rossum76be6ed1995-01-02 18:33:5413280 fi
13281fi
13282
Matthias Kloseb9621712010-04-24 17:59:4913283ac_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:0913284if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313285
13286cat >>confdefs.h <<_ACEOF
13287#define HAVE_STRUCT_STAT_ST_RDEV 1
13288_ACEOF
13289
13290
Guido van Rossum98bf58f2001-10-18 20:34:2513291fi
13292
Matthias Kloseb9621712010-04-24 17:59:4913293ac_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:0913294if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713295
Martin v. Löwis11437992002-04-12 09:54:0313296cat >>confdefs.h <<_ACEOF
13297#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13298_ACEOF
13299
13300
Guido van Rossum98bf58f2001-10-18 20:34:2513301fi
13302
Matthias Kloseb9621712010-04-24 17:59:4913303ac_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:0913304if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
Hye-Shik Chang5f937a72005-06-02 13:09:3013305
13306cat >>confdefs.h <<_ACEOF
13307#define HAVE_STRUCT_STAT_ST_FLAGS 1
13308_ACEOF
13309
13310
13311fi
13312
Matthias Kloseb9621712010-04-24 17:59:4913313ac_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:0913314if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913315
13316cat >>confdefs.h <<_ACEOF
13317#define HAVE_STRUCT_STAT_ST_GEN 1
13318_ACEOF
13319
13320
13321fi
13322
Matthias Kloseb9621712010-04-24 17:59:4913323ac_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:0913324if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913325
13326cat >>confdefs.h <<_ACEOF
13327#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13328_ACEOF
13329
13330
13331fi
13332
Matthias Kloseb9621712010-04-24 17:59:4913333ac_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:0913334if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713335
Martin v. Löwis11437992002-04-12 09:54:0313336cat >>confdefs.h <<_ACEOF
13337#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13338_ACEOF
13339
13340
Guido van Rossum98bf58f2001-10-18 20:34:2513341fi
13342
Stefan Krah267b6392016-04-25 23:09:1813343ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
13344 #include <sys/types.h>
13345 #include <pwd.h>
13346
13347"
13348if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
13349
13350cat >>confdefs.h <<_ACEOF
13351#define HAVE_STRUCT_PASSWD_PW_GECOS 1
13352_ACEOF
13353
13354
13355fi
13356ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
13357 #include <sys/types.h>
13358 #include <pwd.h>
13359
13360"
13361if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
13362
13363cat >>confdefs.h <<_ACEOF
13364#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
13365_ACEOF
13366
13367
13368fi
13369
Michael W. Hudson54241132001-12-07 15:38:2613370
Matthias Kloseb9621712010-04-24 17:59:4913371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13372$as_echo_n "checking for time.h that defines altzone... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913373if ${ac_cv_header_time_altzone+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913374 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413375else
Matthias Kloseb159a552010-04-25 21:00:4413376
Matthias Kloseb9621712010-04-24 17:59:4913377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413378/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013379#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313380int
13381main ()
13382{
Guido van Rossum76be6ed1995-01-02 18:33:5413383return altzone;
Martin v. Löwis11437992002-04-12 09:54:0313384 ;
13385 return 0;
13386}
13387_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913388if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413389 ac_cv_header_time_altzone=yes
13390else
Matthias Kloseb9621712010-04-24 17:59:4913391 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:3013392fi
Thomas Wouters47b49bf2007-08-30 22:15:3313393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:4413394
Thomas Wouters47b49bf2007-08-30 22:15:3313395fi
13396
Matthias Kloseb9621712010-04-24 17:59:4913397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13398$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413399if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313400
Matthias Kloseb9621712010-04-24 17:59:4913401$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413402
13403fi
13404
Guido van Rossumda88dad1995-01-26 00:46:2913405was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:4913406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13407$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413409/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013410
13411#include <sys/types.h>
13412#include <sys/select.h>
13413#include <sys/time.h>
13414
Martin v. Löwis11437992002-04-12 09:54:0313415int
13416main ()
13417{
Guido van Rossum76be6ed1995-01-02 18:33:5413418;
Martin v. Löwis11437992002-04-12 09:54:0313419 ;
13420 return 0;
13421}
13422_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913423if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313424
13425
Matthias Kloseb9621712010-04-24 17:59:4913426$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313427
Martin v. Löwisc45929e2002-04-06 10:10:4913428 was_it_defined=yes
13429
Thomas Wouters47b49bf2007-08-30 22:15:3313430fi
Thomas Wouters47b49bf2007-08-30 22:15:3313431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13433$as_echo "$was_it_defined" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3313434
Matthias Kloseb9621712010-04-24 17:59:4913435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13436$as_echo_n "checking for addrinfo... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913437if ${ac_cv_struct_addrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913438 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313439else
Matthias Kloseb9621712010-04-24 17:59:4913440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413441/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4413442#include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313443int
13444main ()
13445{
Martin v. Löwis01dfdb32001-06-23 16:30:1313446struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:0313447 ;
13448 return 0;
13449}
13450_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913451if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313452 ac_cv_struct_addrinfo=yes
13453else
Matthias Kloseb9621712010-04-24 17:59:4913454 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313455fi
Thomas Wouters47b49bf2007-08-30 22:15:3313456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457fi
13458
Matthias Kloseb9621712010-04-24 17:59:4913459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13460$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313461if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313462
Matthias Kloseb9621712010-04-24 17:59:4913463$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313464
13465fi
13466
Matthias Kloseb9621712010-04-24 17:59:4913467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13468$as_echo_n "checking for sockaddr_storage... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913469if ${ac_cv_struct_sockaddr_storage+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913470 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313471else
Matthias Kloseb9621712010-04-24 17:59:4913472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413473/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313474
13475# include <sys/types.h>
13476# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0313477int
13478main ()
13479{
Martin v. Löwis01dfdb32001-06-23 16:30:1313480struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:0313481 ;
13482 return 0;
13483}
13484_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913485if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313486 ac_cv_struct_sockaddr_storage=yes
13487else
Matthias Kloseb9621712010-04-24 17:59:4913488 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313489fi
Thomas Wouters47b49bf2007-08-30 22:15:3313490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491fi
13492
Matthias Kloseb9621712010-04-24 17:59:4913493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13494$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313495if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313496
Matthias Kloseb9621712010-04-24 17:59:4913497$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313498
13499fi
13500
Christian Heimesdffa3942016-09-05 21:54:4113501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
13502$as_echo_n "checking for sockaddr_alg... " >&6; }
13503if ${ac_cv_struct_sockaddr_alg+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505else
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h. */
13508
13509# include <sys/types.h>
13510# include <sys/socket.h>
13511# include <linux/if_alg.h>
13512int
13513main ()
13514{
13515struct sockaddr_alg s
13516 ;
13517 return 0;
13518}
13519_ACEOF
13520if ac_fn_c_try_compile "$LINENO"; then :
13521 ac_cv_struct_sockaddr_alg=yes
13522else
13523 ac_cv_struct_sockaddr_alg=no
13524fi
13525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526fi
13527
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
13529$as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
13530if test $ac_cv_struct_sockaddr_alg = yes; then
13531
13532$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
13533
13534fi
13535
Guido van Rossum627b2d71993-12-24 10:39:1613536# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:3013537
Matthias Kloseb9621712010-04-24 17:59:4913538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13539$as_echo_n "checking whether char is unsigned... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913540if ${ac_cv_c_char_unsigned+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913541 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:1713542else
Matthias Kloseb9621712010-04-24 17:59:4913543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413544/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0313545$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0313546int
13547main ()
13548{
13549static int test_array [1 - 2 * !(((char) -1) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:5413550test_array [0] = 0;
13551return test_array [0];
Martin v. Löwis11437992002-04-12 09:54:0313552
13553 ;
13554 return 0;
Michael W. Hudson54241132001-12-07 15:38:2613555}
Martin v. Löwis11437992002-04-12 09:54:0313556_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913557if ac_fn_c_try_compile "$LINENO"; then :
Michael W. Hudson54241132001-12-07 15:38:2613558 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:0313559else
Matthias Kloseb9621712010-04-24 17:59:4913560 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:5413561fi
Thomas Wouters47b49bf2007-08-30 22:15:3313562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2613563fi
Matthias Kloseb9621712010-04-24 17:59:4913564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13565$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413566if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Matthias Kloseb9621712010-04-24 17:59:4913567 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413568
13569fi
Guido van Rossum7f43da71994-08-01 12:15:3013570
Matthias Kloseb9621712010-04-24 17:59:4913571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13572$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913573if ${ac_cv_c_const+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913574 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0313575else
Matthias Kloseb9621712010-04-24 17:59:4913576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413577/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413578
Martin v. Löwis11437992002-04-12 09:54:0313579int
13580main ()
13581{
Ross Lagerwall1b863eb2012-10-29 17:31:5413582
Martin v. Löwis11437992002-04-12 09:54:0313583#ifndef __cplusplus
Ross Lagerwall1b863eb2012-10-29 17:31:5413584 /* Ultrix mips cc rejects this sort of thing. */
Martin v. Löwis11437992002-04-12 09:54:0313585 typedef int charset[2];
Ross Lagerwall1b863eb2012-10-29 17:31:5413586 const charset cs = { 0, 0 };
Martin v. Löwis11437992002-04-12 09:54:0313587 /* SunOS 4.1.1 cc rejects this. */
Thomas Wouters47b49bf2007-08-30 22:15:3313588 char const *const *pcpcc;
13589 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:0313590 /* NEC SVR4.0.2 mips cc rejects this. */
13591 struct point {int x, y;};
13592 static struct point const zero = {0,0};
13593 /* AIX XL C 1.02.0.0 rejects this.
13594 It does not let you subtract one const X* pointer from another in
13595 an arm of an if-expression whose if-part is not a constant
13596 expression */
13597 const char *g = "string";
Thomas Wouters47b49bf2007-08-30 22:15:3313598 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:0313599 /* HPUX 7.0 cc rejects these. */
Thomas Wouters47b49bf2007-08-30 22:15:3313600 ++pcpcc;
13601 ppc = (char**) pcpcc;
13602 pcpcc = (char const *const *) ppc;
Ross Lagerwall1b863eb2012-10-29 17:31:5413603 { /* SCO 3.2v4 cc rejects this sort of thing. */
13604 char tx;
13605 char *t = &tx;
Martin v. Löwis11437992002-04-12 09:54:0313606 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:5413607
Martin v. Löwis11437992002-04-12 09:54:0313608 *t++ = 0;
Thomas Wouters47b49bf2007-08-30 22:15:3313609 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313610 }
13611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13612 int x[] = {25, 17};
13613 const int *foo = &x[0];
13614 ++foo;
13615 }
13616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13617 typedef const int *iptr;
13618 iptr p = 0;
13619 ++p;
13620 }
Ross Lagerwall1b863eb2012-10-29 17:31:5413621 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Martin v. Löwis11437992002-04-12 09:54:0313622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Ross Lagerwall1b863eb2012-10-29 17:31:5413623 struct s { int j; const int *ap[3]; } bx;
13624 struct s *b = &bx; b->j = 5;
Martin v. Löwis11437992002-04-12 09:54:0313625 }
13626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13627 const int foo = 10;
Thomas Wouters47b49bf2007-08-30 22:15:3313628 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313629 }
Thomas Wouters47b49bf2007-08-30 22:15:3313630 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:0313631#endif
Guido van Rossum627b2d71993-12-24 10:39:1613632
Martin v. Löwis11437992002-04-12 09:54:0313633 ;
13634 return 0;
Guido van Rossum627b2d71993-12-24 10:39:1613635}
Martin v. Löwis11437992002-04-12 09:54:0313636_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913637if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413638 ac_cv_c_const=yes
13639else
Matthias Kloseb9621712010-04-24 17:59:4913640 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:5413641fi
Thomas Wouters47b49bf2007-08-30 22:15:3313642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413643fi
Matthias Kloseb9621712010-04-24 17:59:4913644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13645$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413646if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:0313647
Matthias Kloseb9621712010-04-24 17:59:4913648$as_echo "#define const /**/" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413649
13650fi
13651
Michael W. Hudson54241132001-12-07 15:38:2613652
Guido van Rossumda88dad1995-01-26 00:46:2913653works=no
Matthias Kloseb9621712010-04-24 17:59:4913654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13655$as_echo_n "checking for working volatile... " >&6; }
13656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413657/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1613658
Martin v. Löwis11437992002-04-12 09:54:0313659int
13660main ()
13661{
Guido van Rossum76be6ed1995-01-02 18:33:5413662volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:0313663 ;
13664 return 0;
13665}
13666_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913667if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2913668 works=yes
Guido van Rossum627b2d71993-12-24 10:39:1613669else
Skip Montanaro6dead952003-09-25 14:50:0413670
Matthias Kloseb9621712010-04-24 17:59:4913671$as_echo "#define volatile /**/" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1613672
Martin v. Löwisc45929e2002-04-06 10:10:4913673
Guido van Rossum627b2d71993-12-24 10:39:1613674fi
Thomas Wouters47b49bf2007-08-30 22:15:3313675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13677$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3013678
Guido van Rossumda88dad1995-01-26 00:46:2913679works=no
Matthias Kloseb9621712010-04-24 17:59:4913680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13681$as_echo_n "checking for working signed char... " >&6; }
13682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413683/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:2713684
Martin v. Löwis11437992002-04-12 09:54:0313685int
13686main ()
13687{
Guido van Rossum76be6ed1995-01-02 18:33:5413688signed char c;
Martin v. Löwis11437992002-04-12 09:54:0313689 ;
13690 return 0;
13691}
13692_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913693if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2913694 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:2713695else
Skip Montanaro6dead952003-09-25 14:50:0413696
Matthias Kloseb9621712010-04-24 17:59:4913697$as_echo "#define signed /**/" >>confdefs.h
Guido van Rossum7f43da71994-08-01 12:15:3013698
Martin v. Löwisc45929e2002-04-06 10:10:4913699
Guido van Rossum7f43da71994-08-01 12:15:3013700fi
Thomas Wouters47b49bf2007-08-30 22:15:3313701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13703$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3013704
Guido van Rossumda88dad1995-01-26 00:46:2913705have_prototypes=no
Matthias Kloseb9621712010-04-24 17:59:4913706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13707$as_echo_n "checking for prototypes... " >&6; }
13708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413709/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013710int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:0313711int
13712main ()
13713{
Guido van Rossum76be6ed1995-01-02 18:33:5413714return foo(10);
Martin v. Löwis11437992002-04-12 09:54:0313715 ;
13716 return 0;
13717}
13718_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913719if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313720
Matthias Kloseb9621712010-04-24 17:59:4913721$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313722
Matthias Kloseb159a552010-04-25 21:00:4413723 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:3013724fi
Thomas Wouters47b49bf2007-08-30 22:15:3313725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13727$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413728
Guido van Rossumda88dad1995-01-26 00:46:2913729works=no
Matthias Kloseb9621712010-04-24 17:59:4913730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13731$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413733/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013734
13735#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:5713736int foo(int x, ...) {
13737 va_list va;
13738 va_start(va, x);
13739 va_arg(va, int);
13740 va_arg(va, char *);
13741 va_arg(va, double);
13742 return 0;
13743}
Guido van Rossum7f43da71994-08-01 12:15:3013744
Martin v. Löwis11437992002-04-12 09:54:0313745int
13746main ()
13747{
Guido van Rossum90eea071996-08-30 20:58:5713748return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:0313749 ;
13750 return 0;
13751}
13752_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913753if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313754
13755
Matthias Kloseb9621712010-04-24 17:59:4913756$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313757
Martin v. Löwisc45929e2002-04-06 10:10:4913758 works=yes
13759
Guido van Rossum627b2d71993-12-24 10:39:1613760fi
Thomas Wouters47b49bf2007-08-30 22:15:3313761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13763$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413764
Martin v. Löwisd6320502004-08-12 13:45:0813765# check for socketpair
Matthias Kloseb9621712010-04-24 17:59:4913766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13767$as_echo_n "checking for socketpair... " >&6; }
13768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0813769/* end confdefs.h. */
13770
13771#include <sys/types.h>
13772#include <sys/socket.h>
13773
13774int
13775main ()
13776{
13777void *x=socketpair
13778 ;
13779 return 0;
13780}
13781_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913782if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd6320502004-08-12 13:45:0813783
Matthias Kloseb9621712010-04-24 17:59:4913784$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:0813785
Matthias Kloseb159a552010-04-25 21:00:4413786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4913787$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0813788else
Matthias Kloseb9621712010-04-24 17:59:4913789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0813791
13792fi
Thomas Wouters47b49bf2007-08-30 22:15:3313793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0813794
Martin v. Löwis01dfdb32001-06-23 16:30:1313795# check if sockaddr has sa_len member
Matthias Kloseb9621712010-04-24 17:59:4913796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
13797$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
13798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413799/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313800#include <sys/types.h>
13801#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0313802int
13803main ()
13804{
Martin v. Löwis01dfdb32001-06-23 16:30:1313805struct sockaddr x;
13806x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:0313807 ;
13808 return 0;
13809}
13810_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913811if ac_fn_c_try_compile "$LINENO"; then :
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13813$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313814
Matthias Kloseb9621712010-04-24 17:59:4913815$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313816
13817else
Matthias Kloseb9621712010-04-24 17:59:4913818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4413820
Martin v. Löwis01dfdb32001-06-23 16:30:1313821fi
Thomas Wouters47b49bf2007-08-30 22:15:3313822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1313823
Guido van Rossuma96f0ba1999-03-22 21:49:5113824# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:0313825
13826
Matthias Kloseb9621712010-04-24 17:59:4913827ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
Victor Stinnere0be4232011-10-25 11:06:0913828if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313829
Matthias Kloseb9621712010-04-24 17:59:4913830 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Martin v. Löwis4ddc78a2006-01-29 09:53:4413831
Matthias Kloseb9621712010-04-24 17:59:4913832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
13833$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:5113834 OLD_CFLAGS=$CFLAGS
13835 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4913836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413837/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5113838
13839# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313840
Martin v. Löwis11437992002-04-12 09:54:0313841int
13842main ()
13843{
Guido van Rossuma96f0ba1999-03-22 21:49:5113844
13845 char *name;
13846 struct hostent *he, *res;
13847 char buffer[2048];
13848 int buflen = 2048;
13849 int h_errnop;
13850
13851 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0313852
13853 ;
13854 return 0;
13855}
13856_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913857if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313858
Matthias Kloseb9621712010-04-24 17:59:4913859 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3313860
Martin v. Löwis11437992002-04-12 09:54:0313861
Matthias Kloseb9621712010-04-24 17:59:4913862$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5113863
Matthias Kloseb9621712010-04-24 17:59:4913864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13865$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313866
Guido van Rossuma96f0ba1999-03-22 21:49:5113867else
Skip Montanaro6dead952003-09-25 14:50:0413868
Matthias Kloseb9621712010-04-24 17:59:4913869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
13872$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413874/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5113875
Guido van Rossuma96f0ba1999-03-22 21:49:5113876# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313877
Martin v. Löwis11437992002-04-12 09:54:0313878int
13879main ()
13880{
Guido van Rossuma96f0ba1999-03-22 21:49:5113881
13882 char *name;
13883 struct hostent *he;
Matthias Kloseb159a552010-04-25 21:00:4413884 char buffer[2048];
13885 int buflen = 2048;
13886 int h_errnop;
Guido van Rossuma96f0ba1999-03-22 21:49:5113887
Matthias Kloseb159a552010-04-25 21:00:4413888 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0313889
13890 ;
13891 return 0;
13892}
13893_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913894if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313895
Matthias Kloseb9621712010-04-24 17:59:4913896 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3313897
Martin v. Löwis11437992002-04-12 09:54:0313898
Matthias Kloseb159a552010-04-25 21:00:4413899$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5113900
Matthias Kloseb9621712010-04-24 17:59:4913901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313903
Guido van Rossuma96f0ba1999-03-22 21:49:5113904else
Skip Montanaro6dead952003-09-25 14:50:0413905
Matthias Kloseb9621712010-04-24 17:59:4913906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4413908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
13909$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911/* end confdefs.h. */
13912
13913# include <netdb.h>
13914
13915int
13916main ()
13917{
13918
13919 char *name;
13920 struct hostent *he;
13921 struct hostent_data data;
13922
13923 (void) gethostbyname_r(name, he, &data);
13924
13925 ;
13926 return 0;
13927}
13928_ACEOF
13929if ac_fn_c_try_compile "$LINENO"; then :
13930
13931 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13932
13933
13934$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13937$as_echo "yes" >&6; }
13938
13939else
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313943
Guido van Rossuma96f0ba1999-03-22 21:49:5113944fi
Thomas Wouters47b49bf2007-08-30 22:15:3313945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0313946
Guido van Rossuma96f0ba1999-03-22 21:49:5113947fi
Thomas Wouters47b49bf2007-08-30 22:15:3313948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0313949
Guido van Rossuma96f0ba1999-03-22 21:49:5113950fi
Thomas Wouters47b49bf2007-08-30 22:15:3313951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:5113952 CFLAGS=$OLD_CFLAGS
13953
13954else
Guido van Rossuma96f0ba1999-03-22 21:49:5113955
Matthias Kloseb9621712010-04-24 17:59:4913956 for ac_func in gethostbyname
13957do :
13958 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Victor Stinnere0be4232011-10-25 11:06:0913959if test "x$ac_cv_func_gethostbyname" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313960 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913961#define HAVE_GETHOSTBYNAME 1
Martin v. Löwis11437992002-04-12 09:54:0313962_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:5113963
Guido van Rossuma96f0ba1999-03-22 21:49:5113964fi
Thomas Wouters3a584202000-08-05 23:28:5113965done
Guido van Rossuma96f0ba1999-03-22 21:49:5113966
Michael W. Hudson54241132001-12-07 15:38:2613967
Guido van Rossuma96f0ba1999-03-22 21:49:5113968fi
13969
Michael W. Hudson54241132001-12-07 15:38:2613970
13971
13972
13973
13974
13975
Guido van Rossum627b2d71993-12-24 10:39:1613976# checks for system services
13977# (none yet)
13978
Guido van Rossum76be6ed1995-01-02 18:33:5413979# Linux requires this for correct f.p. operations
Matthias Kloseb9621712010-04-24 17:59:4913980ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
Victor Stinnere0be4232011-10-25 11:06:0913981if test "x$ac_cv_func___fpu_control" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4913982
Jeremy Hyltonbe28f5b2000-07-27 21:03:0413983else
Matthias Kloseb9621712010-04-24 17:59:4913984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
13985$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913986if ${ac_cv_lib_ieee___fpu_control+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913987 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413988else
Martin v. Löwis11437992002-04-12 09:54:0313989 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2813990LIBS="-lieee $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4913991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413992/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0313993
Thomas Wouters47b49bf2007-08-30 22:15:3313994/* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0313997#ifdef __cplusplus
13998extern "C"
13999#endif
Martin v. Löwis11437992002-04-12 09:54:0314000char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314001int
14002main ()
14003{
Thomas Wouters47b49bf2007-08-30 22:15:3314004return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314005 ;
14006 return 0;
14007}
14008_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914009if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314010 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:1614011else
Matthias Kloseb9621712010-04-24 17:59:4914012 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:1614013fi
Matthias Kloseb9621712010-04-24 17:59:4914014rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314016LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5414017fi
Matthias Kloseb9621712010-04-24 17:59:4914018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14019$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914020if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314021 cat >>confdefs.h <<_ACEOF
14022#define HAVE_LIBIEEE 1
14023_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5414024
Guido van Rossum8ddd0ad1995-06-14 23:10:2814025 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:5414026
Guido van Rossum627b2d71993-12-24 10:39:1614027fi
14028
Michael W. Hudson54241132001-12-07 15:38:2614029
Jeremy Hyltonbe28f5b2000-07-27 21:03:0414030fi
14031
Michael W. Hudson54241132001-12-07 15:38:2614032
Guido van Rossum7f253911997-05-09 02:42:4814033# Check for --with-fpectl
Matthias Kloseb9621712010-04-24 17:59:4914034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
14035$as_echo_n "checking for --with-fpectl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314036
Thomas Wouters47b49bf2007-08-30 22:15:3314037# Check whether --with-fpectl was given.
Matthias Kloseb9621712010-04-24 17:59:4914038if test "${with_fpectl+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314039 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:4814040if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:0314041then
14042
Matthias Kloseb9621712010-04-24 17:59:4914043$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314044
Matthias Kloseb9621712010-04-24 17:59:4914045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14046$as_echo "yes" >&6; }
14047else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048$as_echo "no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814049fi
Guido van Rossumef2255b2000-03-10 22:30:2914050else
Matthias Kloseb9621712010-04-24 17:59:4914051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314053fi
14054
Guido van Rossum7f253911997-05-09 02:42:4814055
Guido van Rossum7f43da71994-08-01 12:15:3014056# check for --with-libm=...
14057
Guido van Rossum563e7081996-09-10 18:20:4814058case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:0614059Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:4814060*) LIBM=-lm
14061esac
Matthias Kloseb9621712010-04-24 17:59:4914062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14063$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314064
Thomas Wouters47b49bf2007-08-30 22:15:3314065# Check whether --with-libm was given.
Matthias Kloseb9621712010-04-24 17:59:4914066if test "${with_libm+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314067 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:4814068if test "$withval" = no
14069then LIBM=
Matthias Kloseb9621712010-04-24 17:59:4914070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14071$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814072elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014073then LIBM=$withval
Matthias Kloseb9621712010-04-24 17:59:4914074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14075$as_echo "set LIBM=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014076else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014077fi
Guido van Rossum7f253911997-05-09 02:42:4814078else
Matthias Kloseb9621712010-04-24 17:59:4914079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14080$as_echo "default LIBM=\"$LIBM\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314081fi
14082
Guido van Rossum7f43da71994-08-01 12:15:3014083
14084# check for --with-libc=...
14085
Matthias Kloseb9621712010-04-24 17:59:4914086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14087$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314088
Thomas Wouters47b49bf2007-08-30 22:15:3314089# Check whether --with-libc was given.
Matthias Kloseb9621712010-04-24 17:59:4914090if test "${with_libc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314091 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:4814092if test "$withval" = no
14093then LIBC=
Matthias Kloseb9621712010-04-24 17:59:4914094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14095$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814096elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014097then LIBC=$withval
Matthias Kloseb9621712010-04-24 17:59:4914098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14099$as_echo "set LIBC=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014100else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014101fi
Guido van Rossum7f253911997-05-09 02:42:4814102else
Matthias Kloseb9621712010-04-24 17:59:4914103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14104$as_echo "default LIBC=\"$LIBC\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314105fi
14106
Guido van Rossum7f43da71994-08-01 12:15:3014107
Stefan Krah1919b7e2012-03-21 17:25:2314108# **************************************
14109# * Check for gcc x64 inline assembler *
14110# **************************************
14111
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14113$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h. */
14116
14117int
14118main ()
14119{
14120
14121 __asm__ __volatile__ ("movq %rcx, %rax");
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614127if ac_fn_c_try_link "$LINENO"; then :
Stefan Krah1919b7e2012-03-21 17:25:2314128 have_gcc_asm_for_x64=yes
14129else
14130 have_gcc_asm_for_x64=no
14131fi
Stefan Krahe31db2a2015-07-02 18:27:5614132rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
Stefan Krah1919b7e2012-03-21 17:25:2314134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14135$as_echo "$have_gcc_asm_for_x64" >&6; }
14136if test "$have_gcc_asm_for_x64" = yes
14137then
14138
14139$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
14140
14141fi
14142
Mark Dickinsonb08a53a2009-04-16 19:52:0914143# **************************************************
14144# * Check for various properties of floating point *
14145# **************************************************
Christian Heimes81ee3ef2008-05-04 22:42:0114146
Matthias Kloseb9621712010-04-24 17:59:4914147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
14148$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914149if ${ac_cv_little_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914150 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914151else
14152
Matthias Kloseb9621712010-04-24 17:59:4914153if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914154 ac_cv_little_endian_double=no
14155else
Matthias Kloseb9621712010-04-24 17:59:4914156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914157/* end confdefs.h. */
14158
14159#include <string.h>
14160int main() {
14161 double x = 9006104071832581.0;
14162 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
14163 return 0;
14164 else
14165 return 1;
14166}
14167
14168_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914169if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914170 ac_cv_little_endian_double=yes
14171else
Matthias Kloseb9621712010-04-24 17:59:4914172 ac_cv_little_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914173fi
Matthias Kloseb9621712010-04-24 17:59:4914174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14175 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914176fi
14177
Mark Dickinsonb08a53a2009-04-16 19:52:0914178fi
14179
Matthias Kloseb9621712010-04-24 17:59:4914180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
14181$as_echo "$ac_cv_little_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914182if test "$ac_cv_little_endian_double" = yes
14183then
14184
Matthias Kloseb9621712010-04-24 17:59:4914185$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914186
14187fi
14188
Matthias Kloseb9621712010-04-24 17:59:4914189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
14190$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914191if ${ac_cv_big_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914192 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914193else
14194
Matthias Kloseb9621712010-04-24 17:59:4914195if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914196 ac_cv_big_endian_double=no
14197else
Matthias Kloseb9621712010-04-24 17:59:4914198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914199/* end confdefs.h. */
14200
14201#include <string.h>
14202int main() {
14203 double x = 9006104071832581.0;
14204 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
14205 return 0;
14206 else
14207 return 1;
14208}
14209
14210_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914211if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914212 ac_cv_big_endian_double=yes
14213else
Matthias Kloseb9621712010-04-24 17:59:4914214 ac_cv_big_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914215fi
Matthias Kloseb9621712010-04-24 17:59:4914216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14217 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914218fi
14219
Mark Dickinsonb08a53a2009-04-16 19:52:0914220fi
14221
Matthias Kloseb9621712010-04-24 17:59:4914222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
14223$as_echo "$ac_cv_big_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914224if test "$ac_cv_big_endian_double" = yes
14225then
14226
Matthias Kloseb9621712010-04-24 17:59:4914227$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914228
14229fi
14230
14231# Some ARM platforms use a mixed-endian representation for doubles.
14232# While Python doesn't currently have full support for these platforms
14233# (see e.g., issue 1762561), we can at least make sure that float <-> string
14234# conversions work.
Matthias Kloseb9621712010-04-24 17:59:4914235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
14236$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914237if ${ac_cv_mixed_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914238 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914239else
14240
Matthias Kloseb9621712010-04-24 17:59:4914241if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914242 ac_cv_mixed_endian_double=no
14243else
Matthias Kloseb9621712010-04-24 17:59:4914244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914245/* end confdefs.h. */
14246
14247#include <string.h>
14248int main() {
14249 double x = 9006104071832581.0;
14250 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
14251 return 0;
14252 else
14253 return 1;
14254}
14255
14256_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914257if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914258 ac_cv_mixed_endian_double=yes
14259else
Matthias Kloseb9621712010-04-24 17:59:4914260 ac_cv_mixed_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914261fi
Matthias Kloseb9621712010-04-24 17:59:4914262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14263 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914264fi
14265
Mark Dickinsonb08a53a2009-04-16 19:52:0914266fi
14267
Matthias Kloseb9621712010-04-24 17:59:4914268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
14269$as_echo "$ac_cv_mixed_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914270if test "$ac_cv_mixed_endian_double" = yes
14271then
14272
Matthias Kloseb9621712010-04-24 17:59:4914273$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914274
14275fi
14276
Mark Dickinson7abf8d42009-04-18 20:17:5214277# The short float repr introduced in Python 3.1 requires the
Mark Dickinson10683072009-04-18 21:18:1914278# correctly-rounded string <-> double conversion functions from
Mark Dickinson7abf8d42009-04-18 20:17:5214279# Python/dtoa.c, which in turn require that the FPU uses 53-bit
Mark Dickinson10683072009-04-18 21:18:1914280# rounding; this is a problem on x86, where the x87 FPU has a default
Mark Dickinsonf4243f62009-11-15 13:47:2714281# rounding precision of 64 bits. For gcc/x86, we can fix this by
Mark Dickinson10683072009-04-18 21:18:1914282# using inline assembler to get and set the x87 FPU control word.
Mark Dickinsonf4243f62009-11-15 13:47:2714283
14284# This inline assembler syntax may also work for suncc and icc,
14285# so we try it on all platforms.
14286
Matthias Kloseb9621712010-04-24 17:59:4914287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
14288$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
14289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914290/* end confdefs.h. */
14291
14292int
14293main ()
14294{
14295
Mark Dickinsonf4243f62009-11-15 13:47:2714296 unsigned short cw;
14297 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
14298 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
Mark Dickinsonb08a53a2009-04-16 19:52:0914299
14300 ;
14301 return 0;
14302}
14303_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614304if ac_fn_c_try_link "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914305 have_gcc_asm_for_x87=yes
14306else
Matthias Kloseb9621712010-04-24 17:59:4914307 have_gcc_asm_for_x87=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914308fi
Stefan Krahe31db2a2015-07-02 18:27:5614309rm -f core conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14312$as_echo "$have_gcc_asm_for_x87" >&6; }
Mark Dickinsonf4243f62009-11-15 13:47:2714313if test "$have_gcc_asm_for_x87" = yes
14314then
Mark Dickinsonb08a53a2009-04-16 19:52:0914315
Matthias Kloseb9621712010-04-24 17:59:4914316$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914317
Mark Dickinsonb08a53a2009-04-16 19:52:0914318fi
Martin v. Löwis11437992002-04-12 09:54:0314319
Benjamin Peterson8bdeb162014-04-17 04:00:3114320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
14321$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
14322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h. */
14324
14325int
14326main ()
14327{
14328
14329 unsigned int fpcr;
14330 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
14331 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
14332
14333 ;
14334 return 0;
14335}
14336_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614337if ac_fn_c_try_link "$LINENO"; then :
Benjamin Peterson8bdeb162014-04-17 04:00:3114338 have_gcc_asm_for_mc68881=yes
14339else
14340 have_gcc_asm_for_mc68881=no
14341fi
Stefan Krahe31db2a2015-07-02 18:27:5614342rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
Benjamin Peterson8bdeb162014-04-17 04:00:3114344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14345$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14346if test "$have_gcc_asm_for_mc68881" = yes
14347then
14348
14349$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14350
14351fi
14352
Mark Dickinson3dc7c6a2009-01-04 15:09:0214353# Detect whether system arithmetic is subject to x87-style double
14354# rounding issues. The result of this test has little meaning on non
14355# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
14356# mode is round-to-nearest and double rounding issues are present, and
14357# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Matthias Kloseb9621712010-04-24 17:59:4914358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14359$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914360# $BASECFLAGS may affect the result
14361ac_save_cc="$CC"
14362CC="$CC $BASECFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4914363if test "$cross_compiling" = yes; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214364 ac_cv_x87_double_rounding=no
14365else
Matthias Kloseb9621712010-04-24 17:59:4914366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214367/* end confdefs.h. */
14368
14369#include <stdlib.h>
14370#include <math.h>
14371int main() {
14372 volatile double x, y, z;
14373 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14374 x = 0.99999999999999989; /* 1-2**-53 */
14375 y = 1./x;
14376 if (y != 1.)
14377 exit(0);
14378 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14379 x = 1e16;
14380 y = 2.99999;
14381 z = x + y;
14382 if (z != 1e16+4.)
14383 exit(0);
14384 /* both tests show evidence of double rounding */
14385 exit(1);
14386}
14387
14388_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914389if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214390 ac_cv_x87_double_rounding=no
14391else
Matthias Kloseb9621712010-04-24 17:59:4914392 ac_cv_x87_double_rounding=yes
Mark Dickinson3dc7c6a2009-01-04 15:09:0214393fi
Matthias Kloseb9621712010-04-24 17:59:4914394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14395 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214396fi
14397
Mark Dickinsonb08a53a2009-04-16 19:52:0914398CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:4914399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14400$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson3dc7c6a2009-01-04 15:09:0214401if test "$ac_cv_x87_double_rounding" = yes
14402then
14403
Matthias Kloseb9621712010-04-24 17:59:4914404$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
Mark Dickinson3dc7c6a2009-01-04 15:09:0214405
14406fi
14407
Mark Dickinsonb08a53a2009-04-16 19:52:0914408# ************************************
14409# * Check for mathematical functions *
14410# ************************************
14411
14412LIBS_SAVE=$LIBS
14413LIBS="$LIBS $LIBM"
14414
Mark Dickinsonec0d3552010-11-20 10:29:1214415for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14416do :
14417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014419if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214420 cat >>confdefs.h <<_ACEOF
14421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14422_ACEOF
14423
14424fi
14425done
14426
Victor Stinner8f9f8d62011-05-09 10:45:4114427for ac_func in hypot lgamma log1p log2 round tgamma
Mark Dickinsonec0d3552010-11-20 10:29:1214428do :
14429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14430ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014431if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214432 cat >>confdefs.h <<_ACEOF
14433#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434_ACEOF
14435
14436fi
14437done
14438
14439ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14440"
Victor Stinnere0be4232011-10-25 11:06:0914441if test "x$ac_cv_have_decl_isinf" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214442 ac_have_decl=1
14443else
14444 ac_have_decl=0
14445fi
14446
14447cat >>confdefs.h <<_ACEOF
14448#define HAVE_DECL_ISINF $ac_have_decl
14449_ACEOF
14450ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14451"
Victor Stinnere0be4232011-10-25 11:06:0914452if test "x$ac_cv_have_decl_isnan" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214453 ac_have_decl=1
14454else
14455 ac_have_decl=0
14456fi
14457
14458cat >>confdefs.h <<_ACEOF
14459#define HAVE_DECL_ISNAN $ac_have_decl
14460_ACEOF
14461ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14462"
Victor Stinnere0be4232011-10-25 11:06:0914463if test "x$ac_cv_have_decl_isfinite" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214464 ac_have_decl=1
14465else
14466 ac_have_decl=0
14467fi
14468
14469cat >>confdefs.h <<_ACEOF
14470#define HAVE_DECL_ISFINITE $ac_have_decl
14471_ACEOF
14472
14473
Christian Heimes81ee3ef2008-05-04 22:42:0114474# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
14475# -0. on some architectures.
Matthias Kloseb9621712010-04-24 17:59:4914476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
14477$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914478if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914479 $as_echo_n "(cached) " >&6
Christian Heimes81ee3ef2008-05-04 22:42:0114480else
14481
Matthias Kloseb9621712010-04-24 17:59:4914482if test "$cross_compiling" = yes; then :
Christian Heimes81ee3ef2008-05-04 22:42:0114483 ac_cv_tanh_preserves_zero_sign=no
14484else
Matthias Kloseb9621712010-04-24 17:59:4914485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:0114486/* end confdefs.h. */
14487
14488#include <math.h>
14489#include <stdlib.h>
14490int main() {
14491 /* return 0 if either negative zeros don't exist
14492 on this platform or if negative zeros exist
14493 and tanh(-0.) == -0. */
14494 if (atan2(0., -1.) == atan2(-0., -1.) ||
14495 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
14496 else exit(1);
14497}
14498
14499_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914500if ac_fn_c_try_run "$LINENO"; then :
Christian Heimes81ee3ef2008-05-04 22:42:0114501 ac_cv_tanh_preserves_zero_sign=yes
14502else
Matthias Kloseb9621712010-04-24 17:59:4914503 ac_cv_tanh_preserves_zero_sign=no
Christian Heimes81ee3ef2008-05-04 22:42:0114504fi
Matthias Kloseb9621712010-04-24 17:59:4914505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14506 conftest.$ac_objext conftest.beam conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:0114507fi
14508
Christian Heimes81ee3ef2008-05-04 22:42:0114509fi
14510
Matthias Kloseb9621712010-04-24 17:59:4914511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
14512$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
Christian Heimes81ee3ef2008-05-04 22:42:0114513if test "$ac_cv_tanh_preserves_zero_sign" = yes
14514then
14515
Matthias Kloseb9621712010-04-24 17:59:4914516$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
Christian Heimes81ee3ef2008-05-04 22:42:0114517
14518fi
14519
Mark Dickinsonec0d3552010-11-20 10:29:1214520if test "$ac_cv_func_log1p" = yes
14521then
14522 # On some versions of AIX, log1p(-0.) returns 0. instead of
14523 # -0. See issue #9920.
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5
14525$as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914526 if ${ac_cv_log1p_drops_zero_sign+:} false; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214527 $as_echo_n "(cached) " >&6
Mark Dickinson3dc7c6a2009-01-04 15:09:0214528else
Mark Dickinson3dc7c6a2009-01-04 15:09:0214529
Mark Dickinsonec0d3552010-11-20 10:29:1214530 if test "$cross_compiling" = yes; then :
14531 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:0214532else
Mark Dickinsonec0d3552010-11-20 10:29:1214533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534/* end confdefs.h. */
Mark Dickinson3dc7c6a2009-01-04 15:09:0214535
Mark Dickinsonec0d3552010-11-20 10:29:1214536 #include <math.h>
14537 #include <stdlib.h>
14538 int main() {
14539 /* Fail if the signs of log1p(-0.) and -0. can be
14540 distinguished. */
14541 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.))
14542 return 0;
14543 else
14544 return 1;
14545 }
14546
Mark Dickinson3dc7c6a2009-01-04 15:09:0214547_ACEOF
Mark Dickinsonec0d3552010-11-20 10:29:1214548if ac_fn_c_try_run "$LINENO"; then :
14549 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:0214550else
Mark Dickinsonec0d3552010-11-20 10:29:1214551 ac_cv_log1p_drops_zero_sign=yes
14552fi
14553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14554 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214555fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214556
Mark Dickinsonec0d3552010-11-20 10:29:1214557fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214558
Mark Dickinsonec0d3552010-11-20 10:29:1214559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5
14560$as_echo "$ac_cv_log1p_drops_zero_sign" >&6; }
14561fi
14562if test "$ac_cv_log1p_drops_zero_sign" = yes
14563then
14564
14565$as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h
14566
14567fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214568
Guido van Rossumaf5b83e1995-01-04 19:02:3514569LIBS=$LIBS_SAVE
14570
Mark Dickinsona614f042009-11-28 12:48:4314571# For multiprocessing module, check that sem_open
14572# actually works. For FreeBSD versions <= 7.2,
14573# the kernel module that provides POSIX semaphores
14574# isn't loaded by default, so an attempt to call
14575# sem_open results in a 'Signal 12' error.
Matthias Kloseb9621712010-04-24 17:59:4914576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14577$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914578if ${ac_cv_posix_semaphores_enabled+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914579 $as_echo_n "(cached) " >&6
Mark Dickinsona614f042009-11-28 12:48:4314580else
Matthias Kloseb9621712010-04-24 17:59:4914581 if test "$cross_compiling" = yes; then :
Mark Dickinsona614f042009-11-28 12:48:4314582 ac_cv_posix_semaphores_enabled=yes
14583else
Matthias Kloseb9621712010-04-24 17:59:4914584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314585/* end confdefs.h. */
14586
14587#include <unistd.h>
14588#include <fcntl.h>
14589#include <stdio.h>
14590#include <semaphore.h>
14591#include <sys/stat.h>
14592
14593int main(void) {
14594 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
14595 if (a == SEM_FAILED) {
14596 perror("sem_open");
14597 return 1;
14598 }
14599 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714600 sem_unlink("/autoconf");
Mark Dickinsona614f042009-11-28 12:48:4314601 return 0;
14602}
14603
14604_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914605if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsona614f042009-11-28 12:48:4314606 ac_cv_posix_semaphores_enabled=yes
14607else
Matthias Kloseb9621712010-04-24 17:59:4914608 ac_cv_posix_semaphores_enabled=no
Mark Dickinsona614f042009-11-28 12:48:4314609fi
Matthias Kloseb9621712010-04-24 17:59:4914610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14611 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314612fi
14613
14614
Mark Dickinsona614f042009-11-28 12:48:4314615fi
14616
Matthias Kloseb9621712010-04-24 17:59:4914617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14618$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
Mark Dickinsona614f042009-11-28 12:48:4314619if test $ac_cv_posix_semaphores_enabled = no
14620then
14621
Matthias Kloseb9621712010-04-24 17:59:4914622$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
Mark Dickinsona614f042009-11-28 12:48:4314623
14624fi
14625
Mark Dickinson10683072009-04-18 21:18:1914626# Multiprocessing check for broken sem_getvalue
Matthias Kloseb9621712010-04-24 17:59:4914627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14628$as_echo_n "checking for broken sem_getvalue... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914629if ${ac_cv_broken_sem_getvalue+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914630 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3714631else
Matthias Kloseb9621712010-04-24 17:59:4914632 if test "$cross_compiling" = yes; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714633 ac_cv_broken_sem_getvalue=yes
Mark Dickinson10683072009-04-18 21:18:1914634else
Matthias Kloseb9621712010-04-24 17:59:4914635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson10683072009-04-18 21:18:1914636/* end confdefs.h. */
14637
14638#include <unistd.h>
14639#include <fcntl.h>
14640#include <stdio.h>
14641#include <semaphore.h>
14642#include <sys/stat.h>
14643
14644int main(void){
Mark Dickinsonba79b352009-12-13 21:10:5714645 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
Mark Dickinson10683072009-04-18 21:18:1914646 int count;
14647 int res;
14648 if(a==SEM_FAILED){
14649 perror("sem_open");
14650 return 1;
14651
14652 }
14653 res = sem_getvalue(a, &count);
14654 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714655 sem_unlink("/autocftw");
Mark Dickinson10683072009-04-18 21:18:1914656 return res==-1 ? 1 : 0;
14657}
14658
Mark Dickinson10683072009-04-18 21:18:1914659_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914660if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714661 ac_cv_broken_sem_getvalue=no
Mark Dickinson10683072009-04-18 21:18:1914662else
Matthias Kloseb9621712010-04-24 17:59:4914663 ac_cv_broken_sem_getvalue=yes
Alexandre Vassalotti19142282009-07-17 23:11:5214664fi
Matthias Kloseb9621712010-04-24 17:59:4914665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14666 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5314667fi
14668
Alexandre Vassalotti19142282009-07-17 23:11:5214669
Alexandre Vassalottib0a61d72009-07-17 23:19:3714670fi
14671
Matthias Kloseb9621712010-04-24 17:59:4914672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14673$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3714674if test $ac_cv_broken_sem_getvalue = yes
14675then
14676
Matthias Kloseb9621712010-04-24 17:59:4914677$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3714678
14679fi
14680
Serhiy Storchakac2f7d872016-05-04 06:44:4414681ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
14682"
14683if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
14684 ac_have_decl=1
14685else
14686 ac_have_decl=0
14687fi
14688
14689cat >>confdefs.h <<_ACEOF
14690#define HAVE_DECL_RTLD_LAZY $ac_have_decl
14691_ACEOF
14692ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
14693"
14694if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
14695 ac_have_decl=1
14696else
14697 ac_have_decl=0
14698fi
14699
14700cat >>confdefs.h <<_ACEOF
14701#define HAVE_DECL_RTLD_NOW $ac_have_decl
14702_ACEOF
14703ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
14704"
14705if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
14706 ac_have_decl=1
14707else
14708 ac_have_decl=0
14709fi
14710
14711cat >>confdefs.h <<_ACEOF
14712#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
14713_ACEOF
14714ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
14715"
14716if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
14717 ac_have_decl=1
14718else
14719 ac_have_decl=0
14720fi
14721
14722cat >>confdefs.h <<_ACEOF
14723#define HAVE_DECL_RTLD_LOCAL $ac_have_decl
14724_ACEOF
14725ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
14726"
14727if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
14728 ac_have_decl=1
14729else
14730 ac_have_decl=0
14731fi
14732
14733cat >>confdefs.h <<_ACEOF
14734#define HAVE_DECL_RTLD_NODELETE $ac_have_decl
14735_ACEOF
14736ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
14737"
14738if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
14739 ac_have_decl=1
14740else
14741 ac_have_decl=0
14742fi
14743
14744cat >>confdefs.h <<_ACEOF
14745#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
14746_ACEOF
14747ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
14748"
14749if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
14750 ac_have_decl=1
14751else
14752 ac_have_decl=0
14753fi
14754
14755cat >>confdefs.h <<_ACEOF
14756#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
14757_ACEOF
14758
14759
Mark Dickinsonbd792642009-03-18 20:06:1214760# determine what size digit to use for Python's longs
Matthias Kloseb9621712010-04-24 17:59:4914761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14762$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214763# Check whether --enable-big-digits was given.
Matthias Kloseb9621712010-04-24 17:59:4914764if test "${enable_big_digits+set}" = set; then :
Mark Dickinsonbd792642009-03-18 20:06:1214765 enableval=$enable_big_digits; case $enable_big_digits in
14766yes)
14767 enable_big_digits=30 ;;
14768no)
14769 enable_big_digits=15 ;;
1477015|30)
14771 ;;
14772*)
Victor Stinnere0be4232011-10-25 11:06:0914773 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:1214774esac
Matthias Kloseb9621712010-04-24 17:59:4914775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14776$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214777
14778cat >>confdefs.h <<_ACEOF
14779#define PYLONG_BITS_IN_DIGIT $enable_big_digits
14780_ACEOF
14781
14782
14783else
Matthias Kloseb9621712010-04-24 17:59:4914784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14785$as_echo "no value specified" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214786fi
14787
14788
Guido van Rossumef2255b2000-03-10 22:30:2914789# check for wchar.h
Matthias Kloseb9621712010-04-24 17:59:4914790ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0914791if test "x$ac_cv_header_wchar_h" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314792
14793
Matthias Kloseb9621712010-04-24 17:59:4914794$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314795
Martin v. Löwisc45929e2002-04-06 10:10:4914796 wchar_h="yes"
14797
Guido van Rossumef2255b2000-03-10 22:30:2914798else
Martin v. Löwis11437992002-04-12 09:54:0314799 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:2914800
14801fi
14802
Michael W. Hudson54241132001-12-07 15:38:2614803
Martin v. Löwis11437992002-04-12 09:54:0314804
Martin v. Löwis0ba70cc2001-06-26 22:22:3714805# determine wchar_t size
14806if test "$wchar_h" = yes
14807then
Matthias Kloseb9621712010-04-24 17:59:4914808 # The cast to long int works around a bug in the HP C Compiler
Thomas Wouters47b49bf2007-08-30 22:15:3314809# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14810# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14811# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:4914812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14813$as_echo_n "checking size of wchar_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914814if ${ac_cv_sizeof_wchar_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914815 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0314816else
Matthias Kloseb9621712010-04-24 17:59:4914817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
14818"; then :
Martin v. Löwis11437992002-04-12 09:54:0314819
Martin v. Löwis11437992002-04-12 09:54:0314820else
Matthias Kloseb9621712010-04-24 17:59:4914821 if test "$ac_cv_type_wchar_t" = yes; then
14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:3014824as_fn_error 77 "cannot compute sizeof (wchar_t)
Victor Stinnere0be4232011-10-25 11:06:0914825See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:3314826 else
14827 ac_cv_sizeof_wchar_t=0
14828 fi
Martin v. Löwis11437992002-04-12 09:54:0314829fi
Matthias Kloseb9621712010-04-24 17:59:4914830
Martin v. Löwis11437992002-04-12 09:54:0314831fi
Matthias Kloseb9621712010-04-24 17:59:4914832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14833$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314834
14835
14836
Martin v. Löwis11437992002-04-12 09:54:0314837cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714838#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:0314839_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714840
Michael W. Hudson54241132001-12-07 15:38:2614841
Martin v. Löwis0ba70cc2001-06-26 22:22:3714842fi
14843
Matthias Kloseb9621712010-04-24 17:59:4914844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14845$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414846have_ucs4_tcl=no
Matthias Kloseb9621712010-04-24 17:59:4914847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414848/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:5414849
14850#include <tcl.h>
14851#if TCL_UTF_MAX != 6
14852# error "NOT UCS4_TCL"
14853#endif
14854int
14855main ()
14856{
14857
14858 ;
14859 return 0;
14860}
14861_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914862if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisfa3bdea2003-09-04 18:50:5414863
14864
Matthias Kloseb9621712010-04-24 17:59:4914865$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
Martin v. Löwisfa3bdea2003-09-04 18:50:5414866
14867 have_ucs4_tcl=yes
14868
Martin v. Löwisfa3bdea2003-09-04 18:50:5414869fi
Thomas Wouters47b49bf2007-08-30 22:15:3314870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14872$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414873
Skip Montanaro6dead952003-09-25 14:50:0414874# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:4014875if test "$wchar_h" = yes
14876then
14877 # check whether wchar_t is signed or not
Matthias Kloseb9621712010-04-24 17:59:4914878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14879$as_echo_n "checking whether wchar_t is signed... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914880 if ${ac_cv_wchar_t_signed+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914881 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:4014882else
14883
Matthias Kloseb9621712010-04-24 17:59:4914884 if test "$cross_compiling" = yes; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4014885 ac_cv_wchar_t_signed=yes
14886else
Matthias Kloseb9621712010-04-24 17:59:4914887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414888/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:4014889
14890 #include <wchar.h>
14891 int main()
14892 {
Thomas Wouters49fd7fa2006-04-21 10:40:5814893 /* Success: exit code 0 */
14894 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:4014895 }
14896
14897_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914898if ac_fn_c_try_run "$LINENO"; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4014899 ac_cv_wchar_t_signed=yes
14900else
Matthias Kloseb9621712010-04-24 17:59:4914901 ac_cv_wchar_t_signed=no
Marc-André Lemburgd7160f82003-09-22 11:14:4014902fi
Matthias Kloseb9621712010-04-24 17:59:4914903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14904 conftest.$ac_objext conftest.beam conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:4014905fi
14906
Marc-André Lemburgd7160f82003-09-22 11:14:4014907fi
14908
Matthias Kloseb9621712010-04-24 17:59:4914909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
14910$as_echo "$ac_cv_wchar_t_signed" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314911fi
14912
Georg Brandl52d168a2008-01-07 18:10:2414913# wchar_t is only usable if it maps to an unsigned type
Martin v. Löwisd63a3b82011-09-28 05:41:5414914if test "$ac_cv_sizeof_wchar_t" -ge 2 \
Matthias Klose7dbeed72004-12-24 08:22:1714915 -a "$ac_cv_wchar_t_signed" = "no"
Georg Brandl52d168a2008-01-07 18:10:2414916then
Martin v. Löwisd63a3b82011-09-28 05:41:5414917 HAVE_USABLE_WCHAR_T="yes"
Martin v. Löwis0ba70cc2001-06-26 22:22:3714918
Matthias Kloseb9621712010-04-24 17:59:4914919$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314920
Georg Brandl52d168a2008-01-07 18:10:2414921else
Martin v. Löwisd63a3b82011-09-28 05:41:5414922 HAVE_USABLE_WCHAR_T="no usable wchar_t found"
Martin v. Löwis0ba70cc2001-06-26 22:22:3714923fi
Martin v. Löwisd63a3b82011-09-28 05:41:5414924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5
14925$as_echo "$HAVE_USABLE_WCHAR_T" >&6; }
Guido van Rossumef2255b2000-03-10 22:30:2914926
14927# check for endianness
Matthias Kloseb9621712010-04-24 17:59:4914928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14929$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914930if ${ac_cv_c_bigendian+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914931 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:2914932else
Matthias Kloseb9621712010-04-24 17:59:4914933 ac_cv_c_bigendian=unknown
14934 # See if we're dealing with a universal compiler.
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936/* end confdefs.h. */
14937#ifndef __APPLE_CC__
14938 not a universal capable compiler
14939 #endif
14940 typedef int dummy;
14941
Skip Montanaro6dead952003-09-25 14:50:0414942_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914943if ac_fn_c_try_compile "$LINENO"; then :
14944
14945 # Check for potential -arch flags. It is not universal unless
14946 # there are at least two -arch flags with different values.
14947 ac_arch=
14948 ac_prev=
14949 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14950 if test -n "$ac_prev"; then
14951 case $ac_word in
14952 i?86 | x86_64 | ppc | ppc64)
14953 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14954 ac_arch=$ac_word
14955 else
14956 ac_cv_c_bigendian=universal
14957 break
14958 fi
14959 ;;
14960 esac
14961 ac_prev=
14962 elif test "x$ac_word" = "x-arch"; then
14963 ac_prev=arch
14964 fi
14965 done
14966fi
14967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 if test $ac_cv_c_bigendian = unknown; then
14969 # See if sys/param.h defines the BYTE_ORDER macro.
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414971/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2914972#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4914973 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2914974
Martin v. Löwis11437992002-04-12 09:54:0314975int
14976main ()
14977{
Matthias Kloseb9621712010-04-24 17:59:4914978#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14979 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14980 && LITTLE_ENDIAN)
14981 bogus endian macros
14982 #endif
Martin v. Löwis11437992002-04-12 09:54:0314983
14984 ;
14985 return 0;
14986}
14987_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914988if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2914989 # It does; now see whether it defined to BIG_ENDIAN or not.
Matthias Kloseb9621712010-04-24 17:59:4914990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414991/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2914992#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4914993 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2914994
Martin v. Löwis11437992002-04-12 09:54:0314995int
14996main ()
14997{
Guido van Rossumef2255b2000-03-10 22:30:2914998#if BYTE_ORDER != BIG_ENDIAN
Matthias Kloseb9621712010-04-24 17:59:4914999 not big endian
15000 #endif
Martin v. Löwis11437992002-04-12 09:54:0315001
15002 ;
15003 return 0;
15004}
15005_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915006if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915007 ac_cv_c_bigendian=yes
15008else
Matthias Kloseb9621712010-04-24 17:59:4915009 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:2915010fi
Thomas Wouters47b49bf2007-08-30 22:15:3315011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4915012fi
15013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 if test $ac_cv_c_bigendian = unknown; then
15016 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415018/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:4915019#include <limits.h>
15020
Martin v. Löwis11437992002-04-12 09:54:0315021int
15022main ()
15023{
Matthias Kloseb9621712010-04-24 17:59:4915024#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15025 bogus endian macros
15026 #endif
15027
Martin v. Löwis11437992002-04-12 09:54:0315028 ;
15029 return 0;
15030}
15031_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915032if ac_fn_c_try_compile "$LINENO"; then :
15033 # It does; now see whether it defined to _BIG_ENDIAN or not.
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h. */
15036#include <limits.h>
15037
15038int
15039main ()
15040{
15041#ifndef _BIG_ENDIAN
15042 not big endian
15043 #endif
15044
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315050 ac_cv_c_bigendian=yes
Benjamin Peterson8719ad52009-09-11 22:24:0215051else
Matthias Kloseb9621712010-04-24 17:59:4915052 ac_cv_c_bigendian=no
Martin v. Löwis11437992002-04-12 09:54:0315053fi
Matthias Kloseb9621712010-04-24 17:59:4915054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055fi
15056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 fi
15058 if test $ac_cv_c_bigendian = unknown; then
15059 # Compile a test program.
15060 if test "$cross_compiling" = yes; then :
15061 # Try to guess by grepping values from an object file.
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063/* end confdefs.h. */
15064short int ascii_mm[] =
15065 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15066 short int ascii_ii[] =
15067 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15068 int use_ascii (int i) {
15069 return ascii_mm[i] + ascii_ii[i];
15070 }
15071 short int ebcdic_ii[] =
15072 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15073 short int ebcdic_mm[] =
15074 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15075 int use_ebcdic (int i) {
15076 return ebcdic_mm[i] + ebcdic_ii[i];
15077 }
15078 extern int foo;
Thomas Wouters47b49bf2007-08-30 22:15:3315079
Matthias Kloseb9621712010-04-24 17:59:4915080int
15081main ()
15082{
15083return use_ascii (foo) == use_ebcdic (foo);
15084 ;
15085 return 0;
15086}
15087_ACEOF
15088if ac_fn_c_try_compile "$LINENO"; then :
15089 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15090 ac_cv_c_bigendian=yes
15091 fi
15092 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15093 if test "$ac_cv_c_bigendian" = unknown; then
15094 ac_cv_c_bigendian=no
15095 else
15096 # finding both strings is unlikely to happen, but who knows?
15097 ac_cv_c_bigendian=unknown
15098 fi
15099 fi
15100fi
Thomas Wouters47b49bf2007-08-30 22:15:3315101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315102else
Matthias Kloseb9621712010-04-24 17:59:4915103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415104/* end confdefs.h. */
Thomas Wouters47b49bf2007-08-30 22:15:3315105$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0315106int
15107main ()
15108{
Thomas Wouters47b49bf2007-08-30 22:15:3315109
Matthias Kloseb9621712010-04-24 17:59:4915110 /* Are we little or big endian? From Harbison&Steele. */
15111 union
15112 {
15113 long int l;
15114 char c[sizeof (long int)];
15115 } u;
15116 u.l = 1;
15117 return u.c[sizeof (long int) - 1] == 1;
Thomas Wouters47b49bf2007-08-30 22:15:3315118
15119 ;
15120 return 0;
Guido van Rossumef2255b2000-03-10 22:30:2915121}
Martin v. Löwis11437992002-04-12 09:54:0315122_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915123if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915124 ac_cv_c_bigendian=no
15125else
Matthias Kloseb9621712010-04-24 17:59:4915126 ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:2915127fi
Matthias Kloseb9621712010-04-24 17:59:4915128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15129 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:2915130fi
Thomas Wouters47b49bf2007-08-30 22:15:3315131
Matthias Kloseb9621712010-04-24 17:59:4915132 fi
Martin v. Löwis11437992002-04-12 09:54:0315133fi
Matthias Kloseb9621712010-04-24 17:59:4915134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15135$as_echo "$ac_cv_c_bigendian" >&6; }
15136 case $ac_cv_c_bigendian in #(
15137 yes)
15138 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15139;; #(
15140 no)
15141 ;; #(
15142 universal)
Ronald Oussoren74f29b42009-09-20 20:09:2615143
Matthias Kloseb9621712010-04-24 17:59:4915144$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benjamin Peterson8719ad52009-09-11 22:24:0215145
Matthias Kloseb9621712010-04-24 17:59:4915146 ;; #(
15147 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:3015148 as_fn_error $? "unknown endianness
Victor Stinnere0be4232011-10-25 11:06:0915149 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Matthias Kloseb9621712010-04-24 17:59:4915150 esac
Guido van Rossumef2255b2000-03-10 22:30:2915151
Michael W. Hudson54241132001-12-07 15:38:2615152
Barry Warsaw35f3a2c2010-09-03 18:30:3015153# ABI version string for Python extension modules. This appears between the
15154# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
15155# from the following attributes which affect the ABI of this Python build (in
15156# this order):
15157#
15158# * The Python implementation (always 'cpython-' for us)
15159# * The major and minor version numbers
15160# * --with-pydebug (adds a 'd')
15161# * --with-pymalloc (adds a 'm')
15162# * --with-wide-unicode (adds a 'u')
15163#
15164# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
Benjamin Petersond7f73e92010-09-05 00:09:0715165# would get a shared library ABI version tag of 'cpython-32dmu' and shared
15166# libraries would be named 'foo.cpython-32dmu.so'.
Barry Warsaw35f3a2c2010-09-03 18:30:3015167
Barry Warsaw8cf4eae2010-10-16 01:04:0715168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15169$as_echo_n "checking ABIFLAGS... " >&6; }
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15171$as_echo "$ABIFLAGS" >&6; }
Barry Warsaw35f3a2c2010-09-03 18:30:3015172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15173$as_echo_n "checking SOABI... " >&6; }
doko@ubuntu.comd3899c12015-04-15 18:23:1415174SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
Barry Warsaw35f3a2c2010-09-03 18:30:3015175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15176$as_echo "$SOABI" >&6; }
15177
doko@ubuntu.comd5537d02013-03-21 20:21:4915178
15179case $ac_sys_system in
Ned Deily3b812482015-04-16 00:11:4715180 Linux*|GNU*|Darwin)
doko@ubuntu.comd5537d02013-03-21 20:21:4915181 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
15182 *)
15183 EXT_SUFFIX=${SHLIB_SUFFIX};;
15184esac
15185
Barry Warsaw8cf4eae2010-10-16 01:04:0715186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15187$as_echo_n "checking LDVERSION... " >&6; }
15188LDVERSION='$(VERSION)$(ABIFLAGS)'
15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15190$as_echo "$LDVERSION" >&6; }
15191
doko@python.org87421192013-01-26 10:39:3115192
doko@ubuntu.com55532312016-06-14 06:55:1915193if test x$PLATFORM_TRIPLET = x; then
15194 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
15195else
15196 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15197fi
doko@python.org87421192013-01-26 10:39:3115198
15199
Vladimir Marangozov676aa882000-07-12 03:02:4315200# Check whether right shifting a negative integer extends the sign bit
15201# or fills with zeros (like the Cray J90, according to Tim Peters).
Matthias Kloseb9621712010-04-24 17:59:4915202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15203$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915204if ${ac_cv_rshift_extends_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915205 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:0615206else
Martin v. Löwis11437992002-04-12 09:54:0315207
Matthias Kloseb9621712010-04-24 17:59:4915208if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415209 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:4315210else
Matthias Kloseb9621712010-04-24 17:59:4915211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415212/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:4315213
15214int main()
15215{
Vladimir Marangozova6180282000-07-12 05:05:0615216 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:4315217}
15218
Martin v. Löwis11437992002-04-12 09:54:0315219_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915220if ac_fn_c_try_run "$LINENO"; then :
Vladimir Marangozova6180282000-07-12 05:05:0615221 ac_cv_rshift_extends_sign=yes
15222else
Matthias Kloseb9621712010-04-24 17:59:4915223 ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:0615224fi
Matthias Kloseb9621712010-04-24 17:59:4915225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15226 conftest.$ac_objext conftest.beam conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:0615227fi
15228
Thomas Wouters47b49bf2007-08-30 22:15:3315229fi
15230
Matthias Kloseb9621712010-04-24 17:59:4915231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15232$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:0615233if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:4315234then
Martin v. Löwis11437992002-04-12 09:54:0315235
Matthias Kloseb9621712010-04-24 17:59:4915236$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
Vladimir Marangozov676aa882000-07-12 03:02:4315237
Vladimir Marangozov676aa882000-07-12 03:02:4315238fi
15239
Guido van Rossumcadfaec2001-01-05 14:45:4915240# check for getc_unlocked and related locking functions
Matthias Kloseb9621712010-04-24 17:59:4915241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15242$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915243if ${ac_cv_have_getc_unlocked+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915244 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:4915245else
Martin v. Löwis11437992002-04-12 09:54:0315246
Matthias Kloseb9621712010-04-24 17:59:4915247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415248/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:4915249#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:0315250int
15251main ()
15252{
Guido van Rossumcadfaec2001-01-05 14:45:4915253
15254 FILE *f = fopen("/dev/null", "r");
15255 flockfile(f);
15256 getc_unlocked(f);
15257 funlockfile(f);
15258
Martin v. Löwis11437992002-04-12 09:54:0315259 ;
15260 return 0;
15261}
15262_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915263if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossumcadfaec2001-01-05 14:45:4915264 ac_cv_have_getc_unlocked=yes
15265else
Matthias Kloseb9621712010-04-24 17:59:4915266 ac_cv_have_getc_unlocked=no
15267fi
15268rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:4915270fi
Thomas Wouters47b49bf2007-08-30 22:15:3315271
Matthias Kloseb9621712010-04-24 17:59:4915272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15273$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:4915274if test "$ac_cv_have_getc_unlocked" = yes
15275then
Martin v. Löwis11437992002-04-12 09:54:0315276
Matthias Kloseb9621712010-04-24 17:59:4915277$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
Guido van Rossumcadfaec2001-01-05 14:45:4915278
15279fi
Vladimir Marangozov676aa882000-07-12 03:02:4315280
Neal Norwitzfe8e3d92006-01-07 21:07:2015281# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:3015282# save the value of LIBS so we don't actually link Python with readline
15283LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:2015284
Gregory P. Smith18820942008-09-07 06:24:4915285# On some systems we need to link readline to a termcap compatible
15286# library. NOTE: Keep the precedence of listed libraries synchronised
15287# with setup.py.
15288py_cv_lib_readline=no
Matthias Kloseb9621712010-04-24 17:59:4915289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15290$as_echo_n "checking how to link readline libs... " >&6; }
doko@ubuntu.comf2967c72012-06-30 15:32:2315291for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
Gregory P. Smith18820942008-09-07 06:24:4915292 if test -z "$py_libtermcap"; then
15293 READLINE_LIBS="-lreadline"
15294 else
15295 READLINE_LIBS="-lreadline -l$py_libtermcap"
15296 fi
15297 LIBS="$READLINE_LIBS $LIBS_no_readline"
Matthias Kloseb9621712010-04-24 17:59:4915298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitzfe8e3d92006-01-07 21:07:2015299/* end confdefs.h. */
15300
Thomas Wouters47b49bf2007-08-30 22:15:3315301/* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:2015304#ifdef __cplusplus
15305extern "C"
15306#endif
Neal Norwitzfe8e3d92006-01-07 21:07:2015307char readline ();
15308int
15309main ()
15310{
Thomas Wouters47b49bf2007-08-30 22:15:3315311return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:2015312 ;
15313 return 0;
15314}
15315_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915316if ac_fn_c_try_link "$LINENO"; then :
Gregory P. Smith18820942008-09-07 06:24:4915317 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:2015318fi
Matthias Kloseb9621712010-04-24 17:59:4915319rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smith18820942008-09-07 06:24:4915321 if test $py_cv_lib_readline = yes; then
15322 break
15323 fi
15324done
15325# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
15326#AC_SUBST([READLINE_LIBS])
Gregory P. Smith3856c372008-09-07 19:24:0015327if test $py_cv_lib_readline = no; then
Matthias Kloseb9621712010-04-24 17:59:4915328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15329$as_echo "none" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915330else
Matthias Kloseb9621712010-04-24 17:59:4915331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15332$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915333
Matthias Kloseb9621712010-04-24 17:59:4915334$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
Neal Norwitzfe8e3d92006-01-07 21:07:2015335
Neal Norwitzfe8e3d92006-01-07 21:07:2015336fi
15337
Michael W. Hudson30ea2f22004-07-07 17:44:1215338# check for readline 2.1
Matthias Kloseb9621712010-04-24 17:59:4915339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
15340$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915341if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915342 $as_echo_n "(cached) " >&6
Michael W. Hudson30ea2f22004-07-07 17:44:1215343else
15344 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915345LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215347/* end confdefs.h. */
15348
Thomas Wouters47b49bf2007-08-30 22:15:3315349/* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:1215352#ifdef __cplusplus
15353extern "C"
15354#endif
Michael W. Hudson30ea2f22004-07-07 17:44:1215355char rl_callback_handler_install ();
15356int
15357main ()
15358{
Thomas Wouters47b49bf2007-08-30 22:15:3315359return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:1215360 ;
15361 return 0;
15362}
15363_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915364if ac_fn_c_try_link "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215365 ac_cv_lib_readline_rl_callback_handler_install=yes
15366else
Matthias Kloseb9621712010-04-24 17:59:4915367 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:1215368fi
Matthias Kloseb9621712010-04-24 17:59:4915369rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215371LIBS=$ac_check_lib_save_LIBS
15372fi
Matthias Kloseb9621712010-04-24 17:59:4915373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
15374$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915375if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215376
Matthias Kloseb9621712010-04-24 17:59:4915377$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1215378
15379fi
15380
15381
Guido van Rossumfaf5e4d2002-12-30 16:25:4115382# check for readline 2.2
Matthias Kloseb9621712010-04-24 17:59:4915383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415384/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115385#include <readline/readline.h>
15386_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915387if ac_fn_c_try_cpp "$LINENO"; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115388 have_readline=yes
15389else
Guido van Rossumfaf5e4d2002-12-30 16:25:4115390 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415391
Guido van Rossumfaf5e4d2002-12-30 16:25:4115392fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015393rm -f conftest.err conftest.i conftest.$ac_ext
Guido van Rossumfaf5e4d2002-12-30 16:25:4115394if test $have_readline = yes
15395then
Matthias Kloseb9621712010-04-24 17:59:4915396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415397/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115398#include <readline/readline.h>
15399
15400_ACEOF
15401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915402 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115403
Matthias Kloseb9621712010-04-24 17:59:4915404$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
Guido van Rossumfaf5e4d2002-12-30 16:25:4115405
15406fi
Matthias Klosec80c93f2010-04-24 17:04:3515407rm -f conftest*
Guido van Rossumfaf5e4d2002-12-30 16:25:4115408
Matthias Kloseb9621712010-04-24 17:59:4915409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroud5131772009-10-26 19:22:1415410/* end confdefs.h. */
15411#include <readline/readline.h>
15412
15413_ACEOF
15414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915415 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
Antoine Pitroud5131772009-10-26 19:22:1415416
Matthias Kloseb9621712010-04-24 17:59:4915417$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
Antoine Pitroud5131772009-10-26 19:22:1415418
15419fi
Matthias Klosec80c93f2010-04-24 17:04:3515420rm -f conftest*
Antoine Pitroud5131772009-10-26 19:22:1415421
Guido van Rossumfaf5e4d2002-12-30 16:25:4115422fi
15423
Martin v. Löwis0daad592001-09-30 21:09:5915424# check for readline 4.0
Matthias Kloseb9621712010-04-24 17:59:4915425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15426$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915427if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915428 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:3215429else
Martin v. Löwis11437992002-04-12 09:54:0315430 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915431LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415433/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315434
Thomas Wouters47b49bf2007-08-30 22:15:3315435/* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315438#ifdef __cplusplus
15439extern "C"
15440#endif
Martin v. Löwis11437992002-04-12 09:54:0315441char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315442int
15443main ()
15444{
Thomas Wouters47b49bf2007-08-30 22:15:3315445return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315446 ;
15447 return 0;
15448}
15449_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915450if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315451 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:5915452else
Matthias Kloseb9621712010-04-24 17:59:4915453 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:5915454fi
Matthias Kloseb9621712010-04-24 17:59:4915455rm -f core conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315457LIBS=$ac_check_lib_save_LIBS
15458fi
Matthias Kloseb9621712010-04-24 17:59:4915459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15460$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915461if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615462
Matthias Kloseb9621712010-04-24 17:59:4915463$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
Martin v. Löwis0daad592001-09-30 21:09:5915464
Martin v. Löwis0daad592001-09-30 21:09:5915465fi
15466
Michael W. Hudson54241132001-12-07 15:38:2615467
Thomas Wouters89d996e2007-09-08 17:39:2815468# also in 4.0
Matthias Kloseb9621712010-04-24 17:59:4915469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
15470$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915471if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915472 $as_echo_n "(cached) " >&6
Thomas Wouters89d996e2007-09-08 17:39:2815473else
15474 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915475LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815477/* end confdefs.h. */
15478
15479/* Override any GCC internal prototype to avoid an error.
15480 Use char because int might match the return type of a GCC
15481 builtin and then its argument prototype would still apply. */
15482#ifdef __cplusplus
15483extern "C"
15484#endif
15485char rl_completion_display_matches_hook ();
15486int
15487main ()
15488{
15489return rl_completion_display_matches_hook ();
15490 ;
15491 return 0;
15492}
15493_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915494if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters89d996e2007-09-08 17:39:2815495 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
15496else
Matthias Kloseb9621712010-04-24 17:59:4915497 ac_cv_lib_readline_rl_completion_display_matches_hook=no
Thomas Wouters89d996e2007-09-08 17:39:2815498fi
Matthias Kloseb9621712010-04-24 17:59:4915499rm -f core conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815501LIBS=$ac_check_lib_save_LIBS
15502fi
Matthias Kloseb9621712010-04-24 17:59:4915503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
15504$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915505if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
Thomas Wouters89d996e2007-09-08 17:39:2815506
Matthias Kloseb9621712010-04-24 17:59:4915507$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
Thomas Wouters89d996e2007-09-08 17:39:2815508
15509fi
15510
15511
Martin Panter5dbbf1a2016-04-03 02:54:5815512# also in 4.0, but not in editline
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15514$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15515if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
15516 $as_echo_n "(cached) " >&6
15517else
15518 ac_check_lib_save_LIBS=$LIBS
15519LIBS="-lreadline $READLINE_LIBS $LIBS"
15520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521/* end confdefs.h. */
15522
15523/* Override any GCC internal prototype to avoid an error.
15524 Use char because int might match the return type of a GCC
15525 builtin and then its argument prototype would still apply. */
15526#ifdef __cplusplus
15527extern "C"
15528#endif
15529char rl_resize_terminal ();
15530int
15531main ()
15532{
15533return rl_resize_terminal ();
15534 ;
15535 return 0;
15536}
15537_ACEOF
15538if ac_fn_c_try_link "$LINENO"; then :
15539 ac_cv_lib_readline_rl_resize_terminal=yes
15540else
15541 ac_cv_lib_readline_rl_resize_terminal=no
15542fi
15543rm -f core conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
15545LIBS=$ac_check_lib_save_LIBS
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15548$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
15549if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
15550
15551$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
15552
15553fi
15554
15555
Martin v. Löwis0daad592001-09-30 21:09:5915556# check for readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15558$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915559if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915560 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:5915561else
Martin v. Löwis11437992002-04-12 09:54:0315562 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915563LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415565/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315566
Thomas Wouters47b49bf2007-08-30 22:15:3315567/* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315570#ifdef __cplusplus
15571extern "C"
15572#endif
Martin v. Löwis11437992002-04-12 09:54:0315573char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315574int
15575main ()
15576{
Thomas Wouters47b49bf2007-08-30 22:15:3315577return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315578 ;
15579 return 0;
15580}
15581_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915582if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315583 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:3215584else
Matthias Kloseb9621712010-04-24 17:59:4915585 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:3215586fi
Matthias Kloseb9621712010-04-24 17:59:4915587rm -f core conftest.err conftest.$ac_objext \
15588 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315589LIBS=$ac_check_lib_save_LIBS
15590fi
Matthias Kloseb9621712010-04-24 17:59:4915591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15592$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915593if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615594
Matthias Kloseb9621712010-04-24 17:59:4915595$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
Guido van Rossum353ae582001-07-10 16:45:3215596
Guido van Rossum353ae582001-07-10 16:45:3215597fi
15598
Jack Jansendd19cf82001-12-06 22:36:1715599
Michael W. Hudson30ea2f22004-07-07 17:44:1215600# also in readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215602/* end confdefs.h. */
15603#include <readline/readline.h>
15604_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915605if ac_fn_c_try_cpp "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215606 have_readline=yes
15607else
Michael W. Hudson30ea2f22004-07-07 17:44:1215608 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415609
Michael W. Hudson30ea2f22004-07-07 17:44:1215610fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015611rm -f conftest.err conftest.i conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215612if test $have_readline = yes
15613then
Matthias Kloseb9621712010-04-24 17:59:4915614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215615/* end confdefs.h. */
15616#include <readline/readline.h>
15617
15618_ACEOF
15619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915620 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215621
Matthias Kloseb9621712010-04-24 17:59:4915622$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1215623
15624fi
Matthias Klosec80c93f2010-04-24 17:04:3515625rm -f conftest*
Michael W. Hudson30ea2f22004-07-07 17:44:1215626
15627fi
15628
Benjamin Petersond1e22ba2014-11-26 20:35:1215629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15630$as_echo_n "checking for append_history in -lreadline... " >&6; }
15631if ${ac_cv_lib_readline_append_history+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633else
15634 ac_check_lib_save_LIBS=$LIBS
15635LIBS="-lreadline $READLINE_LIBS $LIBS"
15636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h. */
15638
15639/* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15642#ifdef __cplusplus
15643extern "C"
15644#endif
15645char append_history ();
15646int
15647main ()
15648{
15649return append_history ();
15650 ;
15651 return 0;
15652}
15653_ACEOF
15654if ac_fn_c_try_link "$LINENO"; then :
15655 ac_cv_lib_readline_append_history=yes
15656else
15657 ac_cv_lib_readline_append_history=no
15658fi
15659rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661LIBS=$ac_check_lib_save_LIBS
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15664$as_echo "$ac_cv_lib_readline_append_history" >&6; }
15665if test "x$ac_cv_lib_readline_append_history" = xyes; then :
15666
15667$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
15668
15669fi
15670
15671
Martin v. Löwis82bca632006-02-10 20:49:3015672# End of readline checks: restore LIBS
15673LIBS=$LIBS_no_readline
15674
Matthias Kloseb9621712010-04-24 17:59:4915675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15676$as_echo_n "checking for broken nice()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915677if ${ac_cv_broken_nice+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915678 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:2615679else
Martin v. Löwis11437992002-04-12 09:54:0315680
Matthias Kloseb9621712010-04-24 17:59:4915681if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415682 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115683else
Matthias Kloseb9621712010-04-24 17:59:4915684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415685/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:3115686
15687int main()
15688{
15689 int val1 = nice(1);
15690 if (val1 != -1 && val1 == nice(2))
15691 exit(0);
15692 exit(1);
15693}
15694
Martin v. Löwis11437992002-04-12 09:54:0315695_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915696if ac_fn_c_try_run "$LINENO"; then :
Thomas Wouterse38b2f12001-07-11 22:35:3115697 ac_cv_broken_nice=yes
15698else
Matthias Kloseb9621712010-04-24 17:59:4915699 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115700fi
Matthias Kloseb9621712010-04-24 17:59:4915701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15702 conftest.$ac_objext conftest.beam conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:3115703fi
15704
Thomas Wouters47b49bf2007-08-30 22:15:3315705fi
15706
Matthias Kloseb9621712010-04-24 17:59:4915707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15708$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:3115709if test "$ac_cv_broken_nice" = yes
15710then
Martin v. Löwis11437992002-04-12 09:54:0315711
Matthias Kloseb9621712010-04-24 17:59:4915712$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
Thomas Wouterse38b2f12001-07-11 22:35:3115713
15714fi
15715
Matthias Kloseb9621712010-04-24 17:59:4915716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15717$as_echo_n "checking for broken poll()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915718if ${ac_cv_broken_poll+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915719 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3715720else
Matthias Kloseb9621712010-04-24 17:59:4915721 if test "$cross_compiling" = yes; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215722 ac_cv_broken_poll=no
15723else
Matthias Kloseb9621712010-04-24 17:59:4915724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215725/* end confdefs.h. */
15726
15727#include <poll.h>
15728
Alexandre Vassalottib0a61d72009-07-17 23:19:3715729int main()
15730{
Nicholas Bastine62c5c82004-03-21 23:45:4215731 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalottib0a61d72009-07-17 23:19:3715732 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:4215733
15734 close (42);
15735
Alexandre Vassalottib0a61d72009-07-17 23:19:3715736 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:4215737 if (poll_test < 0)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715738 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215739 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715740 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215741 else
Alexandre Vassalottib0a61d72009-07-17 23:19:3715742 return 1;
15743}
Nicholas Bastine62c5c82004-03-21 23:45:4215744
15745_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915746if ac_fn_c_try_run "$LINENO"; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215747 ac_cv_broken_poll=yes
15748else
Matthias Kloseb9621712010-04-24 17:59:4915749 ac_cv_broken_poll=no
Nicholas Bastine62c5c82004-03-21 23:45:4215750fi
Matthias Kloseb9621712010-04-24 17:59:4915751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215753fi
Thomas Wouters47b49bf2007-08-30 22:15:3315754
Alexandre Vassalottib0a61d72009-07-17 23:19:3715755fi
15756
Matthias Kloseb9621712010-04-24 17:59:4915757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15758$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:4215759if test "$ac_cv_broken_poll" = yes
15760then
15761
Matthias Kloseb9621712010-04-24 17:59:4915762$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
Nicholas Bastine62c5c82004-03-21 23:45:4215763
15764fi
15765
Martin v. Löwis1d459062005-03-14 21:23:3315766# check tzset(3) exists and works like we expect it to
Matthias Kloseb9621712010-04-24 17:59:4915767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15768$as_echo_n "checking for working tzset()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915769if ${ac_cv_working_tzset+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915770 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:3615771else
15772
Matthias Kloseb9621712010-04-24 17:59:4915773if test "$cross_compiling" = yes; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615774 ac_cv_working_tzset=no
15775else
Matthias Kloseb9621712010-04-24 17:59:4915776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415777/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:3615778
15779#include <stdlib.h>
15780#include <time.h>
Brett Cannon18367812003-09-19 00:59:1615781#include <string.h>
Brett Cannon43802422005-02-10 20:48:0315782
15783#if HAVE_TZNAME
15784extern char *tzname[];
15785#endif
15786
Guido van Rossumd11b62e2003-03-14 21:51:3615787int main()
15788{
Brett Cannon18367812003-09-19 00:59:1615789 /* Note that we need to ensure that not only does tzset(3)
15790 do 'something' with localtime, but it works as documented
15791 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:3315792 This includes making sure that tzname is set properly if
15793 tm->tm_zone does not exist since it is the alternative way
15794 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:1615795
15796 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:3315797 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:1615798 */
15799
Martin v. Löwis1d459062005-03-14 21:23:3315800 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:1615801 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
15802
Neal Norwitz7f2588c2003-04-11 15:35:5315803 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:3615804 tzset();
Brett Cannon18367812003-09-19 00:59:1615805 if (localtime(&groundhogday)->tm_hour != 0)
15806 exit(1);
Brett Cannon43802422005-02-10 20:48:0315807#if HAVE_TZNAME
15808 /* For UTC, tzname[1] is sometimes "", sometimes " " */
15809 if (strcmp(tzname[0], "UTC") ||
15810 (tzname[1][0] != 0 && tzname[1][0] != ' '))
15811 exit(1);
15812#endif
Brett Cannon18367812003-09-19 00:59:1615813
Neal Norwitz7f2588c2003-04-11 15:35:5315814 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:3615815 tzset();
Brett Cannon18367812003-09-19 00:59:1615816 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:3615817 exit(1);
Brett Cannon43802422005-02-10 20:48:0315818#if HAVE_TZNAME
15819 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
15820 exit(1);
15821#endif
Brett Cannon18367812003-09-19 00:59:1615822
15823 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15824 tzset();
15825 if (localtime(&groundhogday)->tm_hour != 11)
15826 exit(1);
Brett Cannon43802422005-02-10 20:48:0315827#if HAVE_TZNAME
15828 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
15829 exit(1);
15830#endif
15831
15832#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:1615833 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15834 exit(1);
15835 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15836 exit(1);
Brett Cannon43802422005-02-10 20:48:0315837#endif
Brett Cannon18367812003-09-19 00:59:1615838
Guido van Rossumd11b62e2003-03-14 21:51:3615839 exit(0);
15840}
15841
15842_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915843if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615844 ac_cv_working_tzset=yes
15845else
Matthias Kloseb9621712010-04-24 17:59:4915846 ac_cv_working_tzset=no
Guido van Rossumd11b62e2003-03-14 21:51:3615847fi
Matthias Kloseb9621712010-04-24 17:59:4915848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15849 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:3615850fi
15851
Thomas Wouters47b49bf2007-08-30 22:15:3315852fi
15853
Matthias Kloseb9621712010-04-24 17:59:4915854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15855$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:3615856if test "$ac_cv_working_tzset" = yes
15857then
15858
Matthias Kloseb9621712010-04-24 17:59:4915859$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
Guido van Rossumd11b62e2003-03-14 21:51:3615860
15861fi
15862
Martin v. Löwis94717ed2002-09-09 14:24:1615863# Look for subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15865$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915866if ${ac_cv_stat_tv_nsec+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915867 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:1615868else
Matthias Kloseb9621712010-04-24 17:59:4915869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415870/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:1615871#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:1615872int
15873main ()
15874{
15875
15876struct stat st;
15877st.st_mtim.tv_nsec = 1;
15878
15879 ;
15880 return 0;
15881}
15882_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915883if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa32c9942002-09-09 16:17:4715884 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:1615885else
Matthias Kloseb9621712010-04-24 17:59:4915886 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:1615887fi
Thomas Wouters47b49bf2007-08-30 22:15:3315888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889fi
15890
Matthias Kloseb9621712010-04-24 17:59:4915891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15892$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:1615893if test "$ac_cv_stat_tv_nsec" = yes
15894then
15895
Matthias Kloseb9621712010-04-24 17:59:4915896$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
Martin v. Löwis94717ed2002-09-09 14:24:1615897
15898fi
15899
Martin v. Löwisebd9d5b2005-08-09 15:00:5915900# Look for BSD style subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15902$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915903if ${ac_cv_stat_tv_nsec2+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915904 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:5915905else
Matthias Kloseb9621712010-04-24 17:59:4915906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:5915907/* end confdefs.h. */
15908#include <sys/stat.h>
15909int
15910main ()
15911{
15912
15913struct stat st;
15914st.st_mtimespec.tv_nsec = 1;
15915
15916 ;
15917 return 0;
15918}
15919_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915920if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5915921 ac_cv_stat_tv_nsec2=yes
15922else
Matthias Kloseb9621712010-04-24 17:59:4915923 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:5915924fi
Thomas Wouters47b49bf2007-08-30 22:15:3315925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926fi
15927
Matthias Kloseb9621712010-04-24 17:59:4915928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15929$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:5915930if test "$ac_cv_stat_tv_nsec2" = yes
15931then
15932
Matthias Kloseb9621712010-04-24 17:59:4915933$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
Martin v. Löwisebd9d5b2005-08-09 15:00:5915934
15935fi
15936
doko@ubuntu.com1a4f5612014-04-17 18:13:4415937# first curses header check
doko@ubuntu.com9dc823d2012-07-07 01:06:4215938ac_save_cppflags="$CPPFLAGS"
Xavier de Gayee13c3202016-12-13 15:04:1415939if test "$cross_compiling" = no; then
15940 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15941fi
doko@ubuntu.com1a4f5612014-04-17 18:13:4415942
15943for ac_header in curses.h ncurses.h
15944do :
15945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15948 cat >>confdefs.h <<_ACEOF
15949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950_ACEOF
15951
15952fi
15953
15954done
15955
15956
15957# On Solaris, term.h requires curses.h
15958for ac_header in term.h
15959do :
15960 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
15961#ifdef HAVE_CURSES_H
15962#include <curses.h>
15963#endif
15964
15965"
15966if test "x$ac_cv_header_term_h" = xyes; then :
15967 cat >>confdefs.h <<_ACEOF
15968#define HAVE_TERM_H 1
15969_ACEOF
15970
15971fi
15972
15973done
15974
15975
Jack Jansen666b1e72001-10-31 12:11:4815976# On HP/UX 11.0, mvwdelch is a block with a return statement
Matthias Kloseb9621712010-04-24 17:59:4915977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
15978$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915979if ${ac_cv_mvwdelch_is_expression+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915980 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4815981else
Matthias Kloseb9621712010-04-24 17:59:4915982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415983/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:4815984#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:0315985int
15986main ()
15987{
Jack Jansen666b1e72001-10-31 12:11:4815988
15989 int rtn;
15990 rtn = mvwdelch(0,0,0);
15991
Martin v. Löwis11437992002-04-12 09:54:0315992 ;
15993 return 0;
15994}
15995_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915996if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4815997 ac_cv_mvwdelch_is_expression=yes
15998else
Matthias Kloseb9621712010-04-24 17:59:4915999 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:4816000fi
Thomas Wouters47b49bf2007-08-30 22:15:3316001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002fi
16003
Matthias Kloseb9621712010-04-24 17:59:4916004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
16005$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:4816006
16007if test "$ac_cv_mvwdelch_is_expression" = yes
16008then
Martin v. Löwis11437992002-04-12 09:54:0316009
Matthias Kloseb9621712010-04-24 17:59:4916010$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816011
16012fi
16013
Miss Islington (bot)ff6ae4d2017-11-01 12:35:4116014# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
16015# structs since version 5.7. If the macro is defined as zero before including
16016# [n]curses.h, ncurses will expose fields of the structs regardless of the
16017# configuration.
Matthias Kloseb9621712010-04-24 17:59:4916018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16019$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916020if ${ac_cv_window_has_flags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916021 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4816022else
Matthias Kloseb9621712010-04-24 17:59:4916023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0416024/* end confdefs.h. */
Miss Islington (bot)ff6ae4d2017-11-01 12:35:4116025
16026 #define NCURSES_OPAQUE 0
16027 #include <curses.h>
16028
Martin v. Löwis11437992002-04-12 09:54:0316029int
16030main ()
16031{
Jack Jansen666b1e72001-10-31 12:11:4816032
16033 WINDOW *w;
16034 w->_flags = 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_window_has_flags=yes
16042else
Matthias Kloseb9621712010-04-24 17:59:4916043 ac_cv_window_has_flags=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_window_has_flags" >&5
16049$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2616050
Jack Jansen666b1e72001-10-31 12:11:4816051
16052if test "$ac_cv_window_has_flags" = yes
16053then
Martin v. Löwis11437992002-04-12 09:54:0316054
Matthias Kloseb9621712010-04-24 17:59:4916055$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816056
16057fi
16058
Miss Islington (bot)ff6ae4d2017-11-01 12:35:4116059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16060$as_echo_n "checking for is_pad... " >&6; }
16061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062/* end confdefs.h. */
16063#include <curses.h>
16064int
16065main ()
16066{
16067
16068#ifndef is_pad
16069void *x=is_pad
16070#endif
16071
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076if ac_fn_c_try_compile "$LINENO"; then :
16077
16078$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
16079
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16081$as_echo "yes" >&6; }
16082else
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084$as_echo "no" >&6; }
16085
16086fi
16087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088
Matthias Kloseb9621712010-04-24 17:59:4916089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16090$as_echo_n "checking for is_term_resized... " >&6; }
16091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216092/* end confdefs.h. */
16093#include <curses.h>
16094int
16095main ()
16096{
16097void *x=is_term_resized
16098 ;
16099 return 0;
16100}
16101_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916102if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis24a880b2002-12-31 12:55:1516103
Matthias Kloseb9621712010-04-24 17:59:4916104$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216105
Matthias Kloseb159a552010-04-25 21:00:4416106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916107$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216108else
Matthias Kloseb9621712010-04-24 17:59:4916109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216111
16112fi
Thomas Wouters47b49bf2007-08-30 22:15:3316113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114
Matthias Kloseb9621712010-04-24 17:59:4916115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16116$as_echo_n "checking for resize_term... " >&6; }
16117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216118/* end confdefs.h. */
16119#include <curses.h>
16120int
16121main ()
16122{
16123void *x=resize_term
16124 ;
16125 return 0;
16126}
16127_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916128if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216129
Matthias Kloseb9621712010-04-24 17:59:4916130$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216131
Matthias Kloseb159a552010-04-25 21:00:4416132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916133$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216134else
Matthias Kloseb9621712010-04-24 17:59:4916135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216137
16138fi
Thomas Wouters47b49bf2007-08-30 22:15:3316139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140
Matthias Kloseb9621712010-04-24 17:59:4916141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16142$as_echo_n "checking for resizeterm... " >&6; }
16143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216144/* end confdefs.h. */
16145#include <curses.h>
16146int
16147main ()
16148{
16149void *x=resizeterm
16150 ;
16151 return 0;
16152}
16153_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916154if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216155
Matthias Kloseb9621712010-04-24 17:59:4916156$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216157
Matthias Kloseb159a552010-04-25 21:00:4416158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916159$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216160else
Matthias Kloseb9621712010-04-24 17:59:4916161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216163
16164fi
Thomas Wouters47b49bf2007-08-30 22:15:3316165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Miss Islington (bot)5db32082017-10-31 12:33:0916166
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16168$as_echo_n "checking for immedok... " >&6; }
16169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170/* end confdefs.h. */
16171#include <curses.h>
16172int
16173main ()
16174{
16175
16176#ifndef immedok
16177void *x=immedok
16178#endif
16179
16180 ;
16181 return 0;
16182}
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"; then :
16185
16186$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
16187
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16189$as_echo "yes" >&6; }
16190else
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
16193
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16198$as_echo_n "checking for syncok... " >&6; }
16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h. */
16201#include <curses.h>
16202int
16203main ()
16204{
16205
16206#ifndef syncok
16207void *x=syncok
16208#endif
16209
16210 ;
16211 return 0;
16212}
16213_ACEOF
16214if ac_fn_c_try_compile "$LINENO"; then :
16215
16216$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
16217
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16219$as_echo "yes" >&6; }
16220else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
16223
16224fi
16225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226
Miss Islington (bot)2be9a312017-11-01 13:11:1216227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16228$as_echo_n "checking for wchgat... " >&6; }
16229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h. */
16231#include <curses.h>
16232int
16233main ()
16234{
16235
16236#ifndef wchgat
16237void *x=wchgat
16238#endif
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244if ac_fn_c_try_compile "$LINENO"; then :
16245
16246$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16249$as_echo "yes" >&6; }
16250else
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252$as_echo "no" >&6; }
16253
16254fi
16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256
Miss Islington (bot)5db32082017-10-31 12:33:0916257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16258$as_echo_n "checking for filter... " >&6; }
16259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h. */
16261#include <curses.h>
16262int
16263main ()
16264{
16265
16266#ifndef filter
16267void *x=filter
16268#endif
16269
16270 ;
16271 return 0;
16272}
16273_ACEOF
16274if ac_fn_c_try_compile "$LINENO"; then :
16275
16276$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279$as_echo "yes" >&6; }
16280else
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282$as_echo "no" >&6; }
16283
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16288$as_echo_n "checking for has_key... " >&6; }
16289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h. */
16291#include <curses.h>
16292int
16293main ()
16294{
16295
16296#ifndef has_key
16297void *x=has_key
16298#endif
16299
16300 ;
16301 return 0;
16302}
16303_ACEOF
16304if ac_fn_c_try_compile "$LINENO"; then :
16305
16306$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
16307
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16309$as_echo "yes" >&6; }
16310else
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
16313
16314fi
16315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316
16317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16318$as_echo_n "checking for typeahead... " >&6; }
16319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320/* end confdefs.h. */
16321#include <curses.h>
16322int
16323main ()
16324{
16325
16326#ifndef typeahead
16327void *x=typeahead
16328#endif
16329
16330 ;
16331 return 0;
16332}
16333_ACEOF
16334if ac_fn_c_try_compile "$LINENO"; then :
16335
16336$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339$as_echo "yes" >&6; }
16340else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342$as_echo "no" >&6; }
16343
16344fi
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346
16347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16348$as_echo_n "checking for use_env... " >&6; }
16349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h. */
16351#include <curses.h>
16352int
16353main ()
16354{
16355
16356#ifndef use_env
16357void *x=use_env
16358#endif
16359
16360 ;
16361 return 0;
16362}
16363_ACEOF
16364if ac_fn_c_try_compile "$LINENO"; then :
16365
16366$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16369$as_echo "yes" >&6; }
16370else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372$as_echo "no" >&6; }
16373
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
doko@ubuntu.com9dc823d2012-07-07 01:06:4216376# last curses configure check
16377CPPFLAGS=$ac_save_cppflags
Thomas Wouters47b49bf2007-08-30 22:15:3316378
doko@ubuntu.comb457b9b2012-06-30 17:28:1616379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16380$as_echo "$as_me: checking for device files" >&6;}
16381
16382if test "x$cross_compiling" = xyes; then
16383 if test "${ac_cv_file__dev_ptmx+set}" != set; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16385$as_echo_n "checking for /dev/ptmx... " >&6; }
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16387$as_echo "not set" >&6; }
16388 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16389 fi
16390 if test "${ac_cv_file__dev_ptc+set}" != set; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16392$as_echo_n "checking for /dev/ptc... " >&6; }
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16394$as_echo "not set" >&6; }
16395 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16396 fi
16397fi
16398
Matthias Kloseb9621712010-04-24 17:59:4916399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16400$as_echo_n "checking for /dev/ptmx... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616401if ${ac_cv_file__dev_ptmx+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403else
16404 test "$cross_compiling" = yes &&
16405 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16406if test -r "/dev/ptmx"; then
16407 ac_cv_file__dev_ptmx=yes
16408else
16409 ac_cv_file__dev_ptmx=no
16410fi
16411fi
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16413$as_echo "$ac_cv_file__dev_ptmx" >&6; }
16414if test "x$ac_cv_file__dev_ptmx" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016415
doko@ubuntu.comb457b9b2012-06-30 17:28:1616416fi
16417
16418if test "x$ac_cv_file__dev_ptmx" = xyes; then
Martin v. Löwis24a880b2002-12-31 12:55:1516419
Matthias Kloseb9621712010-04-24 17:59:4916420$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
Martin v. Löwis24a880b2002-12-31 12:55:1516421
Martin v. Löwis24a880b2002-12-31 12:55:1516422fi
Matthias Kloseb9621712010-04-24 17:59:4916423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16424$as_echo_n "checking for /dev/ptc... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616425if ${ac_cv_file__dev_ptc+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427else
16428 test "$cross_compiling" = yes &&
16429 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16430if test -r "/dev/ptc"; then
16431 ac_cv_file__dev_ptc=yes
16432else
16433 ac_cv_file__dev_ptc=no
16434fi
16435fi
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16437$as_echo "$ac_cv_file__dev_ptc" >&6; }
16438if test "x$ac_cv_file__dev_ptc" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016439
doko@ubuntu.comb457b9b2012-06-30 17:28:1616440fi
16441
16442if test "x$ac_cv_file__dev_ptc" = xyes; then
Neal Norwitz865400f2003-03-21 01:42:5816443
Matthias Kloseb9621712010-04-24 17:59:4916444$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
Neal Norwitz865400f2003-03-21 01:42:5816445
Neal Norwitz865400f2003-03-21 01:42:5816446fi
16447
Ronald Oussoren3c1928a2009-11-19 17:15:3116448if test $ac_sys_system = Darwin
16449then
16450 LIBS="$LIBS -framework CoreFoundation"
16451fi
Mark Dickinson6ce4a9a2009-11-16 17:00:1116452
Matthias Kloseb9621712010-04-24 17:59:4916453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16454$as_echo_n "checking for %zd printf() format support... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916455if ${ac_cv_have_size_t_format+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916456 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716457else
Matthias Kloseb9621712010-04-24 17:59:4916458 if test "$cross_compiling" = yes; then :
Benjamin Peterson8f326b22009-12-13 02:10:3616459 ac_cv_have_size_t_format="cross -- assuming yes"
16460
Thomas Wouters477c8d52006-05-27 19:21:4716461else
Matthias Kloseb9621712010-04-24 17:59:4916462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters477c8d52006-05-27 19:21:4716463/* end confdefs.h. */
Alexandre Vassalottib0a61d72009-07-17 23:19:3716464
Thomas Wouters477c8d52006-05-27 19:21:4716465#include <stdio.h>
16466#include <stddef.h>
16467#include <string.h>
16468
Christian Heimes2c181612007-12-17 20:04:1316469#ifdef HAVE_SYS_TYPES_H
16470#include <sys/types.h>
16471#endif
Thomas Wouters89f507f2006-12-13 04:49:3016472
16473#ifdef HAVE_SSIZE_T
16474typedef ssize_t Py_ssize_t;
16475#elif SIZEOF_VOID_P == SIZEOF_LONG
16476typedef long Py_ssize_t;
16477#else
16478typedef int Py_ssize_t;
16479#endif
Thomas Wouters477c8d52006-05-27 19:21:4716480
Christian Heimes2c181612007-12-17 20:04:1316481int main()
16482{
16483 char buffer[256];
16484
Thomas Wouters477c8d52006-05-27 19:21:4716485 if(sprintf(buffer, "%zd", (size_t)123) < 0)
16486 return 1;
16487
Thomas Wouters89f507f2006-12-13 04:49:3016488 if (strcmp(buffer, "123"))
16489 return 1;
16490
16491 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16492 return 1;
16493
16494 if (strcmp(buffer, "-123"))
Thomas Wouters477c8d52006-05-27 19:21:4716495 return 1;
16496
16497 return 0;
16498}
Alexandre Vassalottib0a61d72009-07-17 23:19:3716499
Thomas Wouters477c8d52006-05-27 19:21:4716500_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916501if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3716502 ac_cv_have_size_t_format=yes
Alexandre Vassalotti19142282009-07-17 23:11:5216503else
Matthias Kloseb9621712010-04-24 17:59:4916504 ac_cv_have_size_t_format=no
Alexandre Vassalotti19142282009-07-17 23:11:5216505fi
Matthias Kloseb9621712010-04-24 17:59:4916506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5316508fi
16509
Alexandre Vassalottib0a61d72009-07-17 23:19:3716510fi
Matthias Kloseb9621712010-04-24 17:59:4916511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16512$as_echo "$ac_cv_have_size_t_format" >&6; }
Benjamin Peterson8f326b22009-12-13 02:10:3616513if test "$ac_cv_have_size_t_format" != no ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3716514
Matthias Kloseb9621712010-04-24 17:59:4916515$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3716516
16517fi
16518
Matthias Kloseb9621712010-04-24 17:59:4916519ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
Martin v. Löwis01c04012002-11-11 14:58:4416520#ifdef HAVE_SYS_TYPES_H
16521#include <sys/types.h>
16522#endif
16523#ifdef HAVE_SYS_SOCKET_H
16524#include <sys/socket.h>
16525#endif
16526
Matthias Kloseb9621712010-04-24 17:59:4916527"
Victor Stinnere0be4232011-10-25 11:06:0916528if test "x$ac_cv_type_socklen_t" = xyes; then :
Martin v. Löwis01c04012002-11-11 14:58:4416529
Martin v. Löwis11437992002-04-12 09:54:0316530else
Guido van Rossum95713eb2000-05-18 20:53:3116531
Matthias Kloseb9621712010-04-24 17:59:4916532$as_echo "#define socklen_t int" >>confdefs.h
Guido van Rossum95713eb2000-05-18 20:53:3116533
16534fi
16535
Michael W. Hudson54241132001-12-07 15:38:2616536
Matthias Kloseb9621712010-04-24 17:59:4916537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16538$as_echo_n "checking for broken mbstowcs... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916539if ${ac_cv_broken_mbstowcs+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916540 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716541else
Matthias Kloseb9621712010-04-24 17:59:4916542 if test "$cross_compiling" = yes; then :
Antoine Pitroufff95302008-09-03 18:58:5116543 ac_cv_broken_mbstowcs=no
16544else
Matthias Kloseb9621712010-04-24 17:59:4916545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116546/* end confdefs.h. */
16547
Stefan Krah19c21392012-11-22 22:47:3216548#include <stdio.h>
Antoine Pitroufff95302008-09-03 18:58:5116549#include<stdlib.h>
16550int main() {
16551 size_t len = -1;
16552 const char *str = "text";
16553 len = mbstowcs(NULL, str, 0);
16554 return (len != 4);
16555}
16556
16557_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916558if ac_fn_c_try_run "$LINENO"; then :
Antoine Pitroufff95302008-09-03 18:58:5116559 ac_cv_broken_mbstowcs=no
16560else
Matthias Kloseb9621712010-04-24 17:59:4916561 ac_cv_broken_mbstowcs=yes
Antoine Pitroufff95302008-09-03 18:58:5116562fi
Matthias Kloseb9621712010-04-24 17:59:4916563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16564 conftest.$ac_objext conftest.beam conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116565fi
16566
Alexandre Vassalottib0a61d72009-07-17 23:19:3716567fi
16568
Matthias Kloseb9621712010-04-24 17:59:4916569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16570$as_echo "$ac_cv_broken_mbstowcs" >&6; }
Antoine Pitroufff95302008-09-03 18:58:5116571if test "$ac_cv_broken_mbstowcs" = yes
16572then
16573
Matthias Kloseb9621712010-04-24 17:59:4916574$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
Antoine Pitroufff95302008-09-03 18:58:5116575
16576fi
16577
Antoine Pitroub52ec782009-01-25 16:34:2316578# Check for --with-computed-gotos
Matthias Kloseb9621712010-04-24 17:59:4916579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16580$as_echo_n "checking for --with-computed-gotos... " >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316581
16582# Check whether --with-computed-gotos was given.
Matthias Kloseb9621712010-04-24 17:59:4916583if test "${with_computed_gotos+set}" = set; then :
Antoine Pitroub52ec782009-01-25 16:34:2316584 withval=$with_computed_gotos;
Antoine Pitrou042b1282010-08-13 21:15:5816585if test "$withval" = yes
Antoine Pitroub52ec782009-01-25 16:34:2316586then
16587
Matthias Kloseb9621712010-04-24 17:59:4916588$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
Antoine Pitroub52ec782009-01-25 16:34:2316589
Matthias Kloseb9621712010-04-24 17:59:4916590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16591$as_echo "yes" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316592fi
Antoine Pitrou042b1282010-08-13 21:15:5816593if test "$withval" = no
16594then
16595
16596$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
16597
Matthias Kloseb9621712010-04-24 17:59:4916598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599$as_echo "no" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316600fi
16601
Antoine Pitrou042b1282010-08-13 21:15:5816602else
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16604$as_echo "no value specified" >&6; }
16605fi
16606
Antoine Pitroub52ec782009-01-25 16:34:2316607
Matthias Kloseb17289e2012-03-15 18:51:3416608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16609$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
16610if ${ac_cv_computed_gotos+:} false; then :
16611 $as_echo_n "(cached) " >&6
16612else
16613 if test "$cross_compiling" = yes; then :
16614 if test "${with_computed_gotos+set}" = set; then
16615 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16616 else
16617 ac_cv_computed_gotos=no
16618 fi
16619else
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621/* end confdefs.h. */
16622
16623int main(int argc, char **argv)
16624{
16625 static void *targets[1] = { &&LABEL1 };
16626 goto LABEL2;
16627LABEL1:
16628 return 0;
16629LABEL2:
16630 goto *targets[0];
16631 return 1;
16632}
16633
16634_ACEOF
16635if ac_fn_c_try_run "$LINENO"; then :
16636 ac_cv_computed_gotos=yes
16637else
16638 ac_cv_computed_gotos=no
16639fi
16640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16641 conftest.$ac_objext conftest.beam conftest.$ac_ext
16642fi
16643
16644fi
16645
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16647$as_echo "$ac_cv_computed_gotos" >&6; }
16648case "$ac_cv_computed_gotos" in yes*)
16649
16650$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
16651
16652esac
16653
Benjamin Petersond8d835b2010-10-15 23:14:4616654case $ac_sys_system in
16655AIX*)
16656
16657$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
16658 ;;
16659esac
Antoine Pitroub52ec782009-01-25 16:34:2316660
Michael W. Hudson54241132001-12-07 15:38:2616661
Mark Dickinsonb2153e92010-05-05 22:31:3616662
16663
Martin v. Löwis06f15bb2001-12-02 13:02:3216664for h in `(cd $srcdir;echo Python/thread_*.h)`
16665do
16666 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16667done
16668
Michael W. Hudson54241132001-12-07 15:38:2616669
Victor Stinner29cb50b2017-11-30 22:34:2116670SRCDIRS="Parser Objects Python Modules Programs"
Matthias Kloseb9621712010-04-24 17:59:4916671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16672$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:2816673for dir in $SRCDIRS; do
16674 if test ! -d $dir; then
16675 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:5316676 fi
Neil Schemenauerd32c2492001-01-24 17:25:2816677done
Matthias Kloseb9621712010-04-24 17:59:4916678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16679$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:3516680
Stefan Krah1919b7e2012-03-21 17:25:2316681# Availability of -O2:
16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16683$as_echo_n "checking for -O2... " >&6; }
16684saved_cflags="$CFLAGS"
16685CFLAGS="-O2"
16686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h. */
16688
16689int
16690main ()
16691{
16692
16693
16694 ;
16695 return 0;
16696}
16697_ACEOF
16698if ac_fn_c_try_compile "$LINENO"; then :
16699 have_O2=yes
16700else
16701 have_O2=no
16702fi
16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16705$as_echo "$have_O2" >&6; }
16706CFLAGS="$saved_cflags"
16707
16708# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16709# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16711$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16712saved_cflags="$CFLAGS"
16713CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16714if test "$have_O2" = no; then
16715 CFLAGS=""
16716fi
16717if test "$cross_compiling" = yes; then :
16718 have_glibc_memmove_bug=undefined
16719else
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h. */
16722
16723#include <stdio.h>
16724#include <stdlib.h>
16725#include <string.h>
16726void foo(void *p, void *q) { memmove(p, q, 19); }
16727int main() {
16728 char a[32] = "123456789000000000";
16729 foo(&a[9], a);
16730 if (strcmp(a, "123456789123456789000000000") != 0)
16731 return 1;
16732 foo(a, &a[9]);
16733 if (strcmp(a, "123456789000000000") != 0)
16734 return 1;
16735 return 0;
16736}
16737
16738_ACEOF
16739if ac_fn_c_try_run "$LINENO"; then :
16740 have_glibc_memmove_bug=no
16741else
16742 have_glibc_memmove_bug=yes
16743fi
16744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16745 conftest.$ac_objext conftest.beam conftest.$ac_ext
16746fi
16747
16748CFLAGS="$saved_cflags"
16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16750$as_echo "$have_glibc_memmove_bug" >&6; }
16751if test "$have_glibc_memmove_bug" = yes; then
16752
16753$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
16754
16755fi
16756
16757if test "$have_gcc_asm_for_x87" = yes; then
16758 # Some versions of gcc miscompile inline asm:
16759 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16760 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16761 case $CC in
16762 *gcc*)
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16764$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16765 saved_cflags="$CFLAGS"
16766 CFLAGS="-O2"
16767 if test "$cross_compiling" = yes; then :
16768 have_ipa_pure_const_bug=undefined
16769else
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771/* end confdefs.h. */
16772
16773 __attribute__((noinline)) int
16774 foo(int *p) {
16775 int r;
16776 asm ( "movl \$6, (%1)\n\t"
16777 "xorl %0, %0\n\t"
16778 : "=r" (r) : "r" (p) : "memory"
16779 );
16780 return r;
16781 }
16782 int main() {
16783 int p = 8;
16784 if ((foo(&p) ? : p) != 6)
16785 return 1;
16786 return 0;
16787 }
16788
16789_ACEOF
16790if ac_fn_c_try_run "$LINENO"; then :
16791 have_ipa_pure_const_bug=no
16792else
16793 have_ipa_pure_const_bug=yes
16794fi
16795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16796 conftest.$ac_objext conftest.beam conftest.$ac_ext
16797fi
16798
16799 CFLAGS="$saved_cflags"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16801$as_echo "$have_ipa_pure_const_bug" >&6; }
16802 if test "$have_ipa_pure_const_bug" = yes; then
16803
16804$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
16805
16806 fi
16807 ;;
16808 esac
16809fi
16810
Victor Stinner4f5366e2015-01-09 01:13:1916811# Check for stdatomic.h
16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16813$as_echo_n "checking for stdatomic.h... " >&6; }
16814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815/* end confdefs.h. */
16816
16817
16818 #include <stdatomic.h>
Victor Stinner923e06f2015-01-14 15:01:4616819 atomic_int value = ATOMIC_VAR_INIT(1);
Victor Stinner4f5366e2015-01-09 01:13:1916820 int main() {
16821 int loaded_value = atomic_load(&value);
16822 return 0;
16823 }
16824
16825
16826_ACEOF
16827if ac_fn_c_try_link "$LINENO"; then :
16828 have_stdatomic_h=yes
16829else
16830 have_stdatomic_h=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext \
16833 conftest$ac_exeext conftest.$ac_ext
16834
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16836$as_echo "$have_stdatomic_h" >&6; }
16837
16838if test "$have_stdatomic_h" = yes; then
16839
16840$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
16841
16842fi
16843
16844# Check for GCC >= 4.7 __atomic builtins
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16846$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848/* end confdefs.h. */
16849
16850
16851 volatile int val = 1;
16852 int main() {
16853 __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16854 return 0;
16855 }
16856
16857
16858_ACEOF
16859if ac_fn_c_try_link "$LINENO"; then :
16860 have_builtin_atomic=yes
16861else
16862 have_builtin_atomic=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext \
16865 conftest$ac_exeext conftest.$ac_ext
16866
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16868$as_echo "$have_builtin_atomic" >&6; }
16869
16870if test "$have_builtin_atomic" = yes; then
16871
16872$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
16873
16874fi
16875
Ned Deily322f5ba2013-11-22 07:01:5916876# ensurepip option
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16878$as_echo_n "checking for ensurepip... " >&6; }
16879
16880# Check whether --with-ensurepip was given.
16881if test "${with_ensurepip+set}" = set; then :
16882 withval=$with_ensurepip;
16883else
16884 with_ensurepip=upgrade
16885fi
16886
16887case $with_ensurepip in #(
16888 yes|upgrade) :
16889 ENSUREPIP=upgrade ;; #(
16890 install) :
16891 ENSUREPIP=install ;; #(
16892 no) :
16893 ENSUREPIP=no ;; #(
16894 *) :
16895 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16896esac
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16898$as_echo "$ENSUREPIP" >&6; }
16899
16900
Victor Stinner35a97c02015-03-08 01:59:0916901# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16903$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
16904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906
16907
16908 #include <dirent.h>
16909
16910 int main() {
16911 struct dirent entry;
16912 return entry.d_type == DT_UNKNOWN;
16913 }
16914
16915
16916_ACEOF
16917if ac_fn_c_try_link "$LINENO"; then :
16918 have_dirent_d_type=yes
16919else
16920 have_dirent_d_type=no
16921fi
16922rm -f core conftest.err conftest.$ac_objext \
16923 conftest$ac_exeext conftest.$ac_ext
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16925$as_echo "$have_dirent_d_type" >&6; }
16926
16927if test "$have_dirent_d_type" = yes; then
16928
16929$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16930
16931fi
16932
Victor Stinner9eb57c52015-03-19 21:21:4916933# check if the Linux getrandom() syscall is available
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
16935$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
16936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h. */
16938
16939
Victor Stinner1b80b242016-04-12 20:34:5816940 #include <unistd.h>
Victor Stinner9eb57c52015-03-19 21:21:4916941 #include <sys/syscall.h>
Victor Stinnerdddf4842016-06-07 09:21:4216942 #include <linux/random.h>
Victor Stinner9eb57c52015-03-19 21:21:4916943
16944 int main() {
Victor Stinner9eb57c52015-03-19 21:21:4916945 char buffer[1];
Victor Stinner3abf44e2015-09-18 13:38:3716946 const size_t buflen = sizeof(buffer);
Victor Stinnerdddf4842016-06-07 09:21:4216947 const int flags = GRND_NONBLOCK;
16948 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
Victor Stinner3abf44e2015-09-18 13:38:3716949 (void)syscall(SYS_getrandom, buffer, buflen, flags);
Victor Stinner9eb57c52015-03-19 21:21:4916950 return 0;
16951 }
16952
16953
16954_ACEOF
16955if ac_fn_c_try_link "$LINENO"; then :
16956 have_getrandom_syscall=yes
16957else
16958 have_getrandom_syscall=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
16963$as_echo "$have_getrandom_syscall" >&6; }
16964
16965if test "$have_getrandom_syscall" = yes; then
16966
16967$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
16968
16969fi
16970
Victor Stinner3abf44e2015-09-18 13:38:3716971# check if the getrandom() function is available
16972# the test was written for the Solaris function of <sys/random.h>
16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
16974$as_echo_n "checking for the getrandom() function... " >&6; }
16975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976/* end confdefs.h. */
16977
16978
16979 #include <sys/random.h>
16980
16981 int main() {
16982 char buffer[1];
16983 const size_t buflen = sizeof(buffer);
16984 const int flags = 0;
16985 /* ignore the result, Python checks for ENOSYS at runtime */
16986 (void)getrandom(buffer, buflen, flags);
16987 return 0;
16988 }
16989
16990
16991_ACEOF
16992if ac_fn_c_try_link "$LINENO"; then :
16993 have_getrandom=yes
16994else
16995 have_getrandom=no
16996fi
16997rm -f core conftest.err conftest.$ac_objext \
16998 conftest$ac_exeext conftest.$ac_ext
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
17000$as_echo "$have_getrandom" >&6; }
17001
17002if test "$have_getrandom" = yes; then
17003
17004$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
17005
17006fi
17007
Guido van Rossum627b2d71993-12-24 10:39:1617008# generate output files
doko@python.org87421192013-01-26 10:39:3117009ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh"
Martin v. Löwis88afe662002-10-26 13:47:4417010
Antoine Pitrou8e6b4072010-09-10 19:44:4417011ac_config_files="$ac_config_files Modules/ld_so_aix"
17012
Martin v. Löwis11437992002-04-12 09:54:0317013cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5417014# This file is a shell script that caches the results of configure
17015# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:0317016# scripts and configure runs, see configure's option --config-cache.
17017# It is not useful on other systems. If it contains results you don't
17018# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:5417019#
Martin v. Löwis11437992002-04-12 09:54:0317020# config.status only pays attention to the cache file if you give it
17021# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:5417022#
Skip Montanaro6dead952003-09-25 14:50:0417023# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:0317024# loading this file, other *unset* `ac_cv_foo' will be assigned the
17025# following values.
17026
17027_ACEOF
17028
Guido van Rossumf78abae1997-01-21 22:02:3617029# The following way of writing the cache mishandles newlines in values,
17030# but we know of no workaround that is simple, portable, and efficient.
Thomas Wouters47b49bf2007-08-30 22:15:3317031# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:2817032# Ultrix sh set writes to stderr and can't be redirected directly,
17033# and sets the high bit in the cache file unless we assign to the vars.
Thomas Wouters47b49bf2007-08-30 22:15:3317034(
17035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17036 eval ac_val=\$$ac_var
17037 case $ac_val in #(
17038 *${as_nl}*)
17039 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:4917040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317042 esac
17043 case $ac_var in #(
17044 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:4917045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17046 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317047 esac ;;
17048 esac
17049 done
17050
Martin v. Löwis11437992002-04-12 09:54:0317051 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:3317052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17053 *${as_nl}ac_space=\ *)
Matthias Kloseb9621712010-04-24 17:59:4917054 # `set' does not quote correctly, so add quotes: double-quote
17055 # substitution turns \\\\ into \\, and sed turns \\ into \.
Martin v. Löwis11437992002-04-12 09:54:0317056 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:2317057 "s/'/'\\\\''/g;
17058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Thomas Wouters47b49bf2007-08-30 22:15:3317059 ;; #(
Martin v. Löwis11437992002-04-12 09:54:0317060 *)
17061 # `set' quotes correctly as required by POSIX, so do not add quotes.
Thomas Wouters47b49bf2007-08-30 22:15:3317062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:0317063 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317064 esac |
17065 sort
17066) |
Martin v. Löwis11437992002-04-12 09:54:0317067 sed '
Thomas Wouters47b49bf2007-08-30 22:15:3317068 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:0317069 t clear
Thomas Wouters47b49bf2007-08-30 22:15:3317070 :clear
Martin v. Löwis11437992002-04-12 09:54:0317071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17072 t end
Thomas Wouters47b49bf2007-08-30 22:15:3317073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17074 :end' >>confcache
17075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17076 if test -w "$cache_file"; then
Victor Stinnere0be4232011-10-25 11:06:0917077 if test "x$cache_file" != "x/dev/null"; then
Matthias Kloseb9621712010-04-24 17:59:4917078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17079$as_echo "$as_me: updating cache $cache_file" >&6;}
Victor Stinnere0be4232011-10-25 11:06:0917080 if test ! -f "$cache_file" || test -h "$cache_file"; then
17081 cat confcache >"$cache_file"
17082 else
17083 case $cache_file in #(
17084 */* | ?:*)
17085 mv -f confcache "$cache_file"$$ &&
17086 mv -f "$cache_file"$$ "$cache_file" ;; #(
17087 *)
17088 mv -f confcache "$cache_file" ;;
17089 esac
17090 fi
17091 fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817092 else
Matthias Kloseb9621712010-04-24 17:59:4917093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17094$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:2817095 fi
Guido van Rossum76be6ed1995-01-02 18:33:5417096fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817097rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:4017098
Guido van Rossum76be6ed1995-01-02 18:33:5417099test "x$prefix" = xNONE && prefix=$ac_default_prefix
17100# Let make expand exec_prefix.
17101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:4017102
Guido van Rossum76be6ed1995-01-02 18:33:5417103DEFS=-DHAVE_CONFIG_H
17104
Skip Montanaro6dead952003-09-25 14:50:0417105ac_libobjs=
17106ac_ltlibobjs=
Ross Lagerwallb0ae53d2011-06-10 05:30:3017107U=
Skip Montanaro6dead952003-09-25 14:50:0417108for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17109 # 1. Remove the extension, and $U if already installed.
Thomas Wouters47b49bf2007-08-30 22:15:3317110 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Matthias Kloseb9621712010-04-24 17:59:4917111 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Thomas Wouters47b49bf2007-08-30 22:15:3317112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17113 # will be set to the directory where LIBOBJS objects are built.
Matthias Kloseb9621712010-04-24 17:59:4917114 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17115 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:0417116done
17117LIBOBJS=$ac_libobjs
17118
17119LTLIBOBJS=$ac_ltlibobjs
17120
17121
Martin v. Löwis11437992002-04-12 09:54:0317122
Matthias Kloseb9621712010-04-24 17:59:4917123
Victor Stinnere0be4232011-10-25 11:06:0917124: "${CONFIG_STATUS=./config.status}"
Matthias Kloseb9621712010-04-24 17:59:4917125ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:0317126ac_clean_files_save=$ac_clean_files
17127ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Matthias Kloseb9621712010-04-24 17:59:4917128{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17129$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17130as_write_fail=0
17131cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317132#! $SHELL
17133# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:1617134# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:5417135# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:0317136# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:1617137
Martin v. Löwis11437992002-04-12 09:54:0317138debug=false
Skip Montanaro6dead952003-09-25 14:50:0417139ac_cs_recheck=false
17140ac_cs_silent=false
Jack Jansendd19cf82001-12-06 22:36:1717141
Matthias Kloseb9621712010-04-24 17:59:4917142SHELL=\${CONFIG_SHELL-$SHELL}
17143export SHELL
17144_ASEOF
17145cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17146## -------------------- ##
17147## M4sh Initialization. ##
17148## -------------------- ##
Jack Jansendd19cf82001-12-06 22:36:1717149
Thomas Wouters47b49bf2007-08-30 22:15:3317150# Be more Bourne compatible
17151DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:4917152if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0317153 emulate sh
17154 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:4917155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0417156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:3317158 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:4117159else
Matthias Kloseb9621712010-04-24 17:59:4917160 case `(set -o) 2>/dev/null` in #(
17161 *posix*) :
17162 set -o posix ;; #(
17163 *) :
17164 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317165esac
Michael W. Hudson54241132001-12-07 15:38:2617166fi
Thomas Wouters89f507f2006-12-13 04:49:3017167
17168
Matthias Kloseb9621712010-04-24 17:59:4917169as_nl='
17170'
17171export as_nl
17172# Printing a long string crashes Solaris 7 /usr/bin/printf.
17173as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17174as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17175as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17176# Prefer a ksh shell builtin over an external printf program on Solaris,
17177# but without wasting forks for bash or zsh.
17178if test -z "$BASH_VERSION$ZSH_VERSION" \
17179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17180 as_echo='print -r --'
17181 as_echo_n='print -rn --'
17182elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17183 as_echo='printf %s\n'
17184 as_echo_n='printf %s'
17185else
17186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17187 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17188 as_echo_n='/usr/ucb/echo -n'
17189 else
17190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17191 as_echo_n_body='eval
17192 arg=$1;
17193 case $arg in #(
17194 *"$as_nl"*)
17195 expr "X$arg" : "X\\(.*\\)$as_nl";
17196 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17197 esac;
17198 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17199 '
17200 export as_echo_n_body
17201 as_echo_n='sh -c $as_echo_n_body as_echo'
17202 fi
17203 export as_echo_body
17204 as_echo='sh -c $as_echo_body as_echo'
17205fi
Martin v. Löwis11437992002-04-12 09:54:0317206
17207# The user is always right.
17208if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:4917209 PATH_SEPARATOR=:
17210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17211 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17212 PATH_SEPARATOR=';'
17213 }
Thomas Wouters47b49bf2007-08-30 22:15:3317214fi
Martin v. Löwis11437992002-04-12 09:54:0317215
Thomas Wouters47b49bf2007-08-30 22:15:3317216
17217# IFS
17218# We need space, tab and new line, in precisely that order. Quoting is
17219# there to prevent editors from complaining about space-tab.
17220# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17221# splitting by setting IFS to empty value.)
Thomas Wouters47b49bf2007-08-30 22:15:3317222IFS=" "" $as_nl"
17223
17224# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 11:06:0917225as_myself=
Matthias Kloseb9621712010-04-24 17:59:4917226case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:3317227 *[\\/]* ) as_myself=$0 ;;
17228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0317229for as_dir in $PATH
17230do
17231 IFS=$as_save_IFS
17232 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4917233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17234 done
Thomas Wouters47b49bf2007-08-30 22:15:3317235IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:0317236
Thomas Wouters47b49bf2007-08-30 22:15:3317237 ;;
17238esac
17239# We did not find ourselves, most probably we were run as `sh COMMAND'
17240# in which case we are not to be found in the path.
17241if test "x$as_myself" = x; then
17242 as_myself=$0
17243fi
17244if test ! -f "$as_myself"; then
Matthias Kloseb9621712010-04-24 17:59:4917245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17246 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:3317247fi
17248
Matthias Kloseb9621712010-04-24 17:59:4917249# Unset variables that we do not need and which cause bugs (e.g. in
17250# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17251# suppresses any "Segmentation fault" message there. '((' could
17252# trigger a bug in pdksh 5.2.14.
17253for as_var in BASH_ENV ENV MAIL MAILPATH
17254do eval test x\${$as_var+set} = xset \
17255 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Thomas Wouters47b49bf2007-08-30 22:15:3317256done
17257PS1='$ '
17258PS2='> '
17259PS4='+ '
17260
17261# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:4917262LC_ALL=C
17263export LC_ALL
17264LANGUAGE=C
17265export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:3317266
Matthias Kloseb9621712010-04-24 17:59:4917267# CDPATH.
17268(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17269
17270
Ross Lagerwallb0ae53d2011-06-10 05:30:3017271# as_fn_error STATUS ERROR [LINENO LOG_FD]
17272# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:4917273# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17274# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Ross Lagerwallb0ae53d2011-06-10 05:30:3017275# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:4917276as_fn_error ()
17277{
Ross Lagerwallb0ae53d2011-06-10 05:30:3017278 as_status=$1; test $as_status -eq 0 && as_status=1
17279 if test "$4"; then
17280 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Kloseb9621712010-04-24 17:59:4917282 fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3017283 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:4917284 as_fn_exit $as_status
17285} # as_fn_error
17286
17287
17288# as_fn_set_status STATUS
17289# -----------------------
17290# Set $? to STATUS, without forking.
17291as_fn_set_status ()
17292{
17293 return $1
17294} # as_fn_set_status
17295
17296# as_fn_exit STATUS
17297# -----------------
17298# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17299as_fn_exit ()
17300{
17301 set +e
17302 as_fn_set_status $1
17303 exit $1
17304} # as_fn_exit
17305
17306# as_fn_unset VAR
17307# ---------------
17308# Portably unset VAR.
17309as_fn_unset ()
17310{
17311 { eval $1=; unset $1;}
17312}
17313as_unset=as_fn_unset
17314# as_fn_append VAR VALUE
17315# ----------------------
17316# Append the text in VALUE to the end of the definition contained in VAR. Take
17317# advantage of any shell optimizations that allow amortized linear growth over
17318# repeated appends, instead of the typical quadratic growth present in naive
17319# implementations.
17320if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17321 eval 'as_fn_append ()
17322 {
17323 eval $1+=\$2
17324 }'
17325else
17326 as_fn_append ()
17327 {
17328 eval $1=\$$1\$2
17329 }
17330fi # as_fn_append
17331
17332# as_fn_arith ARG...
17333# ------------------
17334# Perform arithmetic evaluation on the ARGs, and store the result in the
17335# global $as_val. Take advantage of shells that can avoid forks. The arguments
17336# must be portable across $(()) and expr.
17337if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17338 eval 'as_fn_arith ()
17339 {
17340 as_val=$(( $* ))
17341 }'
17342else
17343 as_fn_arith ()
17344 {
17345 as_val=`expr "$@" || test $? -eq 1`
17346 }
17347fi # as_fn_arith
17348
17349
Thomas Wouters47b49bf2007-08-30 22:15:3317350if expr a : '\(a\)' >/dev/null 2>&1 &&
17351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17352 as_expr=expr
17353else
17354 as_expr=false
17355fi
17356
17357if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17358 as_basename=basename
17359else
17360 as_basename=false
17361fi
17362
Matthias Kloseb9621712010-04-24 17:59:4917363if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17364 as_dirname=dirname
17365else
17366 as_dirname=false
17367fi
Thomas Wouters47b49bf2007-08-30 22:15:3317368
Thomas Wouters47b49bf2007-08-30 22:15:3317369as_me=`$as_basename -- "$0" ||
17370$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4917373$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:3317374 sed '/^.*\/\([^/][^/]*\)\/*$/{
17375 s//\1/
17376 q
17377 }
17378 /^X\/\(\/\/\)$/{
17379 s//\1/
17380 q
17381 }
17382 /^X\/\(\/\).*/{
17383 s//\1/
17384 q
17385 }
17386 s/.*/./; q'`
17387
Matthias Kloseb9621712010-04-24 17:59:4917388# Avoid depending upon Character Ranges.
17389as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17391as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17392as_cr_digits='0123456789'
17393as_cr_alnum=$as_cr_Letters$as_cr_digits
Thomas Wouters47b49bf2007-08-30 22:15:3317394
17395ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:4917396case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:3317397-n*)
Matthias Kloseb9621712010-04-24 17:59:4917398 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:3317399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:4917400 xy) ECHO_C='\c';;
17401 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17402 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:3317403 esac;;
17404*)
17405 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:0317406esac
Ronald Oussoren74f29b42009-09-20 20:09:2617407
Martin v. Löwis11437992002-04-12 09:54:0317408rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:3317409if test -d conf$$.dir; then
17410 rm -f conf$$.dir/conf$$.file
17411else
17412 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:4917413 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:3317414fi
Matthias Kloseb9621712010-04-24 17:59:4917415if (echo >conf$$.file) 2>/dev/null; then
17416 if ln -s conf$$.file conf$$ 2>/dev/null; then
17417 as_ln_s='ln -s'
17418 # ... but there are two gotchas:
17419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ross Lagerwall1b863eb2012-10-29 17:31:5417421 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:4917422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:5417423 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917424 elif ln conf$$.file conf$$ 2>/dev/null; then
17425 as_ln_s=ln
17426 else
Ross Lagerwall1b863eb2012-10-29 17:31:5417427 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917428 fi
Martin v. Löwis11437992002-04-12 09:54:0317429else
Ross Lagerwall1b863eb2012-10-29 17:31:5417430 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:0317431fi
Thomas Wouters47b49bf2007-08-30 22:15:3317432rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17433rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:0317434
Matthias Kloseb9621712010-04-24 17:59:4917435
17436# as_fn_mkdir_p
17437# -------------
17438# Create "$as_dir" as a directory, including parents if necessary.
17439as_fn_mkdir_p ()
17440{
17441
17442 case $as_dir in #(
17443 -*) as_dir=./$as_dir;;
17444 esac
17445 test -d "$as_dir" || eval $as_mkdir_p || {
17446 as_dirs=
17447 while :; do
17448 case $as_dir in #(
17449 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17450 *) as_qdir=$as_dir;;
17451 esac
17452 as_dirs="'$as_qdir' $as_dirs"
17453 as_dir=`$as_dirname -- "$as_dir" ||
17454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17455 X"$as_dir" : 'X\(//\)[^/]' \| \
17456 X"$as_dir" : 'X\(//\)$' \| \
17457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17458$as_echo X"$as_dir" |
17459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17460 s//\1/
17461 q
17462 }
17463 /^X\(\/\/\)[^/].*/{
17464 s//\1/
17465 q
17466 }
17467 /^X\(\/\/\)$/{
17468 s//\1/
17469 q
17470 }
17471 /^X\(\/\).*/{
17472 s//\1/
17473 q
17474 }
17475 s/.*/./; q'`
17476 test -d "$as_dir" && break
17477 done
17478 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 05:30:3017479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:4917480
17481
17482} # as_fn_mkdir_p
Skip Montanaro6dead952003-09-25 14:50:0417483if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:4917484 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:0417485else
Skip Montanarof0d5f792004-08-15 14:08:2317486 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:0417487 as_mkdir_p=false
17488fi
17489
Ross Lagerwall1b863eb2012-10-29 17:31:5417490
17491# as_fn_executable_p FILE
17492# -----------------------
17493# Test if FILE is an executable regular file.
17494as_fn_executable_p ()
17495{
17496 test -f "$1" && test -x "$1"
17497} # as_fn_executable_p
17498as_test_x='test -x'
17499as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:0317500
17501# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:2317502as_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:0317503
17504# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:2317505as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0317506
17507
Martin v. Löwis11437992002-04-12 09:54:0317508exec 6>&1
Matthias Kloseb9621712010-04-24 17:59:4917509## ----------------------------------- ##
17510## Main body of $CONFIG_STATUS script. ##
17511## ----------------------------------- ##
17512_ASEOF
17513test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317514
Matthias Kloseb9621712010-04-24 17:59:4917515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516# Save the log message, to keep $0 and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:0317517# report actual input values of CONFIG_FILES etc. instead of their
Thomas Wouters47b49bf2007-08-30 22:15:3317518# values after options handling.
17519ac_log="
Benjamin Petersona8c22a02015-05-28 04:29:0017520This file was extended by python $as_me 3.6, which was
Ross Lagerwall1b863eb2012-10-29 17:31:5417521generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:0317522
17523 CONFIG_FILES = $CONFIG_FILES
17524 CONFIG_HEADERS = $CONFIG_HEADERS
17525 CONFIG_LINKS = $CONFIG_LINKS
17526 CONFIG_COMMANDS = $CONFIG_COMMANDS
17527 $ $0 $@
17528
Thomas Wouters47b49bf2007-08-30 22:15:3317529on `(hostname || uname -n) 2>/dev/null | sed 1q`
17530"
17531
Martin v. Löwis11437992002-04-12 09:54:0317532_ACEOF
17533
Matthias Kloseb9621712010-04-24 17:59:4917534case $ac_config_files in *"
17535"*) set x $ac_config_files; shift; ac_config_files=$*;;
17536esac
17537
17538case $ac_config_headers in *"
17539"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17540esac
17541
17542
17543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317544# Files that config.status was made for.
Charles-François Natali6613c182011-11-27 11:41:0617545config_files="$ac_config_files"
17546config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:0317547
Thomas Wouters47b49bf2007-08-30 22:15:3317548_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0317549
Matthias Kloseb9621712010-04-24 17:59:4917550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317551ac_cs_usage="\
Matthias Kloseb9621712010-04-24 17:59:4917552\`$as_me' instantiates files and other configuration actions
17553from templates according to the current configuration. Unless the files
17554and actions are specified as TAGs, all are instantiated by default.
Martin v. Löwis11437992002-04-12 09:54:0317555
Matthias Kloseb9621712010-04-24 17:59:4917556Usage: $0 [OPTION]... [TAG]...
Martin v. Löwis11437992002-04-12 09:54:0317557
17558 -h, --help print this help, then exit
Thomas Wouters47b49bf2007-08-30 22:15:3317559 -V, --version print version number and configuration settings, then exit
Matthias Kloseb9621712010-04-24 17:59:4917560 --config print configuration, then exit
17561 -q, --quiet, --silent
17562 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:0317563 -d, --debug don't remove temporary files
17564 --recheck update $as_me by reconfiguring in the same conditions
Matthias Kloseb9621712010-04-24 17:59:4917565 --file=FILE[:TEMPLATE]
17566 instantiate the configuration file FILE
17567 --header=FILE[:TEMPLATE]
17568 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:0317569
17570Configuration files:
17571$config_files
17572
17573Configuration headers:
17574$config_headers
17575
Benjamin Petersonc2fcbf42016-08-04 05:01:3217576Report bugs to <https://bugs.python.org/>."
Skip Montanaroeb33e5a2007-08-17 12:57:4117577
Thomas Wouters47b49bf2007-08-30 22:15:3317578_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Martin v. Löwis11437992002-04-12 09:54:0317581ac_cs_version="\\
Benjamin Petersona8c22a02015-05-28 04:29:0017582python config.status 3.6
Ross Lagerwall1b863eb2012-10-29 17:31:5417583configured by $0, generated by GNU Autoconf 2.69,
Matthias Kloseb9621712010-04-24 17:59:4917584 with options \\"\$ac_cs_config\\"
Martin v. Löwis11437992002-04-12 09:54:0317585
Ross Lagerwall1b863eb2012-10-29 17:31:5417586Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:0317587This config.status script is free software; the Free Software Foundation
17588gives unlimited permission to copy, distribute and modify it."
Thomas Wouters47b49bf2007-08-30 22:15:3317589
17590ac_pwd='$ac_pwd'
17591srcdir='$srcdir'
17592INSTALL='$INSTALL'
Matthias Klose93a0ef12012-03-15 17:08:3417593MKDIR_P='$MKDIR_P'
Matthias Kloseb9621712010-04-24 17:59:4917594test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:0317595_ACEOF
17596
Matthias Kloseb9621712010-04-24 17:59:4917597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:0317599ac_need_defaults=:
17600while test $# != 0
17601do
17602 case $1 in
Ross Lagerwallb0ae53d2011-06-10 05:30:3017603 --*=?*)
Thomas Wouters47b49bf2007-08-30 22:15:3317604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:0417606 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:0317607 ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3017608 --*=)
17609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17610 ac_optarg=
17611 ac_shift=:
17612 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317613 *)
Skip Montanaro6dead952003-09-25 14:50:0417614 ac_option=$1
17615 ac_optarg=$2
17616 ac_shift=shift
17617 ;;
Martin v. Löwis11437992002-04-12 09:54:0317618 esac
17619
Skip Montanaro6dead952003-09-25 14:50:0417620 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:0317621 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:0417622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17623 ac_cs_recheck=: ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Matthias Kloseb9621712010-04-24 17:59:4917625 $as_echo "$ac_cs_version"; exit ;;
17626 --config | --confi | --conf | --con | --co | --c )
17627 $as_echo "$ac_cs_config"; exit ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317628 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:0317629 debug=: ;;
17630 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:0417631 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4917632 case $ac_optarg in
17633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3017634 '') as_fn_error $? "missing file argument" ;;
Matthias Kloseb9621712010-04-24 17:59:4917635 esac
17636 as_fn_append CONFIG_FILES " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0317637 ac_need_defaults=false;;
17638 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:0417639 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4917640 case $ac_optarg in
17641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17642 esac
17643 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0317644 ac_need_defaults=false;;
Thomas Wouters47b49bf2007-08-30 22:15:3317645 --he | --h)
17646 # Conflict between --help and --header
Ross Lagerwallb0ae53d2011-06-10 05:30:3017647 as_fn_error $? "ambiguous option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4917648Try \`$0 --help' for more information.";;
Thomas Wouters47b49bf2007-08-30 22:15:3317649 --help | --hel | -h )
Matthias Kloseb9621712010-04-24 17:59:4917650 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:0417651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17653 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:0317654
17655 # This is an error.
Ross Lagerwallb0ae53d2011-06-10 05:30:3017656 -*) as_fn_error $? "unrecognized option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4917657Try \`$0 --help' for more information." ;;
Martin v. Löwis11437992002-04-12 09:54:0317658
Matthias Kloseb9621712010-04-24 17:59:4917659 *) as_fn_append ac_config_targets " $1"
Thomas Wouters47b49bf2007-08-30 22:15:3317660 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:0317661
17662 esac
17663 shift
17664done
17665
Skip Montanaro6dead952003-09-25 14:50:0417666ac_configure_extra_args=
17667
17668if $ac_cs_silent; then
17669 exec 6>/dev/null
17670 ac_configure_extra_args="$ac_configure_extra_args --silent"
17671fi
17672
17673_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:0417675if \$ac_cs_recheck; then
Ross Lagerwall1b863eb2012-10-29 17:31:5417676 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Matthias Kloseb9621712010-04-24 17:59:4917677 shift
17678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17679 CONFIG_SHELL='$SHELL'
Thomas Wouters47b49bf2007-08-30 22:15:3317680 export CONFIG_SHELL
Matthias Kloseb9621712010-04-24 17:59:4917681 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:0417682fi
17683
Martin v. Löwis11437992002-04-12 09:54:0317684_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3317686exec 5>>config.log
17687{
17688 echo
17689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17690## Running $as_me. ##
17691_ASBOX
Matthias Kloseb9621712010-04-24 17:59:4917692 $as_echo "$ac_log"
Thomas Wouters47b49bf2007-08-30 22:15:3317693} >&5
Martin v. Löwis11437992002-04-12 09:54:0317694
Thomas Wouters47b49bf2007-08-30 22:15:3317695_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3317697_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0317698
Matthias Kloseb9621712010-04-24 17:59:4917699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3317700
17701# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:0317702for ac_config_target in $ac_config_targets
17703do
Thomas Wouters47b49bf2007-08-30 22:15:3317704 case $ac_config_target in
17705 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
17706 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
17707 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
Christian Heimes81ee3ef2008-05-04 22:42:0117708 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
17709 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317710 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
17711 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
Antoine Pitrou20327222009-05-24 20:39:1117712 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
doko@python.org87421192013-01-26 10:39:3117713 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
Antoine Pitrou8e6b4072010-09-10 19:44:4417714 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317715
Victor Stinnere0be4232011-10-25 11:06:0917716 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Martin v. Löwis11437992002-04-12 09:54:0317717 esac
17718done
17719
Thomas Wouters47b49bf2007-08-30 22:15:3317720
Martin v. Löwis11437992002-04-12 09:54:0317721# If the user did not use the arguments to specify the items to instantiate,
17722# then the envvar interface is used. Set only those that are not.
17723# We use the long form for the default assignment because of an extremely
17724# bizarre bug on SunOS 4.1.3.
17725if $ac_need_defaults; then
17726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17728fi
17729
Skip Montanaro6dead952003-09-25 14:50:0417730# Have a temporary directory for convenience. Make it in the build tree
Thomas Wouters47b49bf2007-08-30 22:15:3317731# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:0417732# creating and moving files from /tmp can sometimes cause problems.
Thomas Wouters47b49bf2007-08-30 22:15:3317733# Hook for its removal unless debugging.
17734# Note that there is a small window in which the directory will not be cleaned:
17735# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:0317736$debug ||
17737{
Victor Stinnere0be4232011-10-25 11:06:0917738 tmp= ac_tmp=
Thomas Wouters47b49bf2007-08-30 22:15:3317739 trap 'exit_status=$?
Victor Stinnere0be4232011-10-25 11:06:0917740 : "${ac_tmp:=$tmp}"
17741 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:3317742' 0
Matthias Kloseb9621712010-04-24 17:59:4917743 trap 'as_fn_exit 1' 1 2 13 15
Martin v. Löwis11437992002-04-12 09:54:0317744}
Martin v. Löwis11437992002-04-12 09:54:0317745# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:0417746
Martin v. Löwis11437992002-04-12 09:54:0317747{
Thomas Wouters47b49bf2007-08-30 22:15:3317748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Victor Stinnere0be4232011-10-25 11:06:0917749 test -d "$tmp"
Martin v. Löwis11437992002-04-12 09:54:0317750} ||
17751{
Thomas Wouters47b49bf2007-08-30 22:15:3317752 tmp=./conf$$-$RANDOM
17753 (umask 077 && mkdir "$tmp")
Ross Lagerwallb0ae53d2011-06-10 05:30:3017754} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0917755ac_tmp=$tmp
Martin v. Löwis11437992002-04-12 09:54:0317756
Matthias Kloseb9621712010-04-24 17:59:4917757# Set up the scripts for CONFIG_FILES section.
17758# No need to generate them if there are no CONFIG_FILES.
17759# This happens for instance with `./config.status config.h'.
Thomas Wouters47b49bf2007-08-30 22:15:3317760if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:0317761
Matthias Kloseb9621712010-04-24 17:59:4917762
17763ac_cr=`echo X | tr X '\015'`
17764# On cygwin, bash can eat \r inside `` if the user requested igncr.
17765# But we know of no other shell where ac_cr would be empty at this
17766# point, so we can use a bashism as a fallback.
17767if test "x$ac_cr" = x; then
17768 eval ac_cr=\$\'\\r\'
17769fi
17770ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17771if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3017772 ac_cs_awk_cr='\\r'
Matthias Kloseb9621712010-04-24 17:59:4917773else
17774 ac_cs_awk_cr=$ac_cr
17775fi
17776
Victor Stinnere0be4232011-10-25 11:06:0917777echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:0317778_ACEOF
17779
Thomas Wouters47b49bf2007-08-30 22:15:3317780
Matthias Kloseb9621712010-04-24 17:59:4917781{
17782 echo "cat >conf$$subs.awk <<_ACEOF" &&
17783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17784 echo "_ACEOF"
17785} >conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3017786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17787ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Thomas Wouters47b49bf2007-08-30 22:15:3317788ac_delim='%!_!# '
17789for ac_last_try in false false false false false :; do
Matthias Kloseb9621712010-04-24 17:59:4917790 . ./conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3017791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3317792
Matthias Kloseb9621712010-04-24 17:59:4917793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17794 if test $ac_delim_n = $ac_delim_num; then
Thomas Wouters47b49bf2007-08-30 22:15:3317795 break
17796 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3017797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3317798 else
17799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:0317800 fi
Thomas Wouters47b49bf2007-08-30 22:15:3317801done
Matthias Kloseb9621712010-04-24 17:59:4917802rm -f conf$$subs.sh
Thomas Wouters47b49bf2007-08-30 22:15:3317803
Matthias Kloseb9621712010-04-24 17:59:4917804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Victor Stinnere0be4232011-10-25 11:06:0917805cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Thomas Wouters47b49bf2007-08-30 22:15:3317806_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917807sed -n '
17808h
17809s/^/S["/; s/!.*/"]=/
17810p
17811g
17812s/^[^!]*!//
17813:repl
17814t repl
17815s/'"$ac_delim"'$//
17816t delim
17817:nl
17818h
17819s/\(.\{148\}\)..*/\1/
17820t more1
17821s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17822p
17823n
17824b repl
17825:more1
17826s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17827p
17828g
17829s/.\{148\}//
17830t nl
17831:delim
17832h
17833s/\(.\{148\}\)..*/\1/
17834t more2
17835s/["\\]/\\&/g; s/^/"/; s/$/"/
17836p
17837b
17838:more2
17839s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17840p
17841g
17842s/.\{148\}//
17843t delim
17844' <conf$$subs.awk | sed '
17845/^[^""]/{
17846 N
17847 s/\n//
17848}
17849' >>$CONFIG_STATUS || ac_write_fail=1
17850rm -f conf$$subs.awk
17851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17852_ACAWK
Victor Stinnere0be4232011-10-25 11:06:0917853cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Matthias Kloseb9621712010-04-24 17:59:4917854 for (key in S) S_is_set[key] = 1
17855 FS = ""
17856
17857}
17858{
17859 line = $ 0
17860 nfields = split(line, field, "@")
17861 substed = 0
17862 len = length(field[1])
17863 for (i = 2; i < nfields; i++) {
17864 key = field[i]
17865 keylen = length(key)
17866 if (S_is_set[key]) {
17867 value = S[key]
17868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17869 len += length(value) + length(field[++i])
17870 substed = 1
17871 } else
17872 len += 1 + keylen
17873 }
17874
17875 print line
17876}
17877
17878_ACAWK
Thomas Wouters47b49bf2007-08-30 22:15:3317879_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17881if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17883else
17884 cat
Victor Stinnere0be4232011-10-25 11:06:0917885fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3017886 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Ronald Oussoren74f29b42009-09-20 20:09:2617887_ACEOF
17888
Ross Lagerwallb0ae53d2011-06-10 05:30:3017889# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17890# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Thomas Wouters47b49bf2007-08-30 22:15:3317891# trailing colons and then remove the whole line if VPATH becomes empty
17892# (actually we leave an empty line to preserve line numbers).
17893if test "x$srcdir" = x.; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3017894 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17895h
17896s///
17897s/^/:/
17898s/[ ]*$/:/
17899s/:\$(srcdir):/:/g
17900s/:\${srcdir}:/:/g
17901s/:@srcdir@:/:/g
17902s/^:*//
Thomas Wouters47b49bf2007-08-30 22:15:3317903s/:*$//
Ross Lagerwallb0ae53d2011-06-10 05:30:3017904x
17905s/\(=[ ]*\).*/\1/
17906G
17907s/\n//
Thomas Wouters47b49bf2007-08-30 22:15:3317908s/^[^=]*=[ ]*$//
17909}'
17910fi
17911
Matthias Kloseb9621712010-04-24 17:59:4917912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317913fi # test -n "$CONFIG_FILES"
17914
Matthias Kloseb9621712010-04-24 17:59:4917915# Set up the scripts for CONFIG_HEADERS section.
17916# No need to generate them if there are no CONFIG_HEADERS.
17917# This happens for instance with `./config.status Makefile'.
17918if test -n "$CONFIG_HEADERS"; then
Victor Stinnere0be4232011-10-25 11:06:0917919cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Matthias Kloseb9621712010-04-24 17:59:4917920BEGIN {
17921_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3317922
Matthias Kloseb9621712010-04-24 17:59:4917923# Transform confdefs.h into an awk script `defines.awk', embedded as
17924# here-document in config.status, that substitutes the proper values into
17925# config.h.in to produce config.h.
17926
17927# Create a delimiter string that does not exist in confdefs.h, to ease
17928# handling of long lines.
17929ac_delim='%!_!# '
17930for ac_last_try in false false :; do
Victor Stinnere0be4232011-10-25 11:06:0917931 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17932 if test -z "$ac_tt"; then
Matthias Kloseb9621712010-04-24 17:59:4917933 break
17934 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3017935 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4917936 else
17937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17938 fi
17939done
17940
17941# For the awk script, D is an array of macro values keyed by name,
17942# likewise P contains macro parameters if any. Preserve backslash
17943# newline sequences.
17944
17945ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17946sed -n '
17947s/.\{148\}/&'"$ac_delim"'/g
17948t rset
17949:rset
17950s/^[ ]*#[ ]*define[ ][ ]*/ /
17951t def
17952d
17953:def
17954s/\\$//
17955t bsnl
17956s/["\\]/\\&/g
17957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17958D["\1"]=" \3"/p
17959s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17960d
17961:bsnl
17962s/["\\]/\\&/g
17963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17964D["\1"]=" \3\\\\\\n"\\/p
17965t cont
17966s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17967t cont
17968d
17969:cont
17970n
17971s/.\{148\}/&'"$ac_delim"'/g
17972t clear
17973:clear
17974s/\\$//
17975t bsnlc
17976s/["\\]/\\&/g; s/^/"/; s/$/"/p
17977d
17978:bsnlc
17979s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17980b cont
17981' <confdefs.h | sed '
17982s/'"$ac_delim"'/"\\\
17983"/g' >>$CONFIG_STATUS || ac_write_fail=1
17984
17985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17986 for (key in D) D_is_set[key] = 1
17987 FS = ""
17988}
17989/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17990 line = \$ 0
17991 split(line, arg, " ")
17992 if (arg[1] == "#") {
17993 defundef = arg[2]
17994 mac1 = arg[3]
17995 } else {
17996 defundef = substr(arg[1], 2)
17997 mac1 = arg[2]
17998 }
17999 split(mac1, mac2, "(") #)
18000 macro = mac2[1]
18001 prefix = substr(line, 1, index(line, defundef) - 1)
18002 if (D_is_set[macro]) {
18003 # Preserve the white space surrounding the "#".
18004 print prefix "define", macro P[macro] D[macro]
18005 next
18006 } else {
18007 # Replace #undef with comments. This is necessary, for example,
18008 # in the case of _POSIX_SOURCE, which is predefined and required
18009 # on some systems where configure will not decide to define it.
18010 if (defundef == "undef") {
18011 print "/*", prefix defundef, macro, "*/"
18012 next
18013 }
18014 }
18015}
18016{ print }
18017_ACAWK
18018_ACEOF
18019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Ross Lagerwallb0ae53d2011-06-10 05:30:3018020 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918021fi # test -n "$CONFIG_HEADERS"
18022
18023
18024eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18025shift
18026for ac_tag
Thomas Wouters47b49bf2007-08-30 22:15:3318027do
18028 case $ac_tag in
18029 :[FHLC]) ac_mode=$ac_tag; continue;;
18030 esac
18031 case $ac_mode$ac_tag in
18032 :[FHL]*:*);;
Victor Stinnere0be4232011-10-25 11:06:0918033 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318034 :[FH]-) ac_tag=-:-;;
18035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18036 esac
18037 ac_save_IFS=$IFS
18038 IFS=:
18039 set x $ac_tag
18040 IFS=$ac_save_IFS
18041 shift
18042 ac_file=$1
18043 shift
18044
18045 case $ac_mode in
18046 :L) ac_source=$1;;
18047 :[FH])
18048 ac_file_inputs=
18049 for ac_f
18050 do
18051 case $ac_f in
Victor Stinnere0be4232011-10-25 11:06:0918052 -) ac_f="$ac_tmp/stdin";;
Thomas Wouters47b49bf2007-08-30 22:15:3318053 *) # Look for the file first in the build tree, then in the source tree
18054 # (if the path is not absolute). The absolute path cannot be DOS-style,
18055 # because $ac_f cannot contain `:'.
18056 test -f "$ac_f" ||
18057 case $ac_f in
18058 [\\/$]*) false;;
18059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18060 esac ||
Victor Stinnere0be4232011-10-25 11:06:0918061 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318062 esac
Matthias Kloseb9621712010-04-24 17:59:4918063 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18064 as_fn_append ac_file_inputs " '$ac_f'"
Thomas Wouters47b49bf2007-08-30 22:15:3318065 done
18066
18067 # Let's still pretend it is `configure' which instantiates (i.e., don't
18068 # use $as_me), people would be surprised to read:
18069 # /* config.h. Generated by config.status. */
Matthias Kloseb9621712010-04-24 17:59:4918070 configure_input='Generated from '`
18071 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18072 `' by configure.'
Thomas Wouters47b49bf2007-08-30 22:15:3318073 if test x"$ac_file" != x-; then
18074 configure_input="$ac_file. $configure_input"
Matthias Kloseb9621712010-04-24 17:59:4918075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18076$as_echo "$as_me: creating $ac_file" >&6;}
Thomas Wouters47b49bf2007-08-30 22:15:3318077 fi
Matthias Kloseb9621712010-04-24 17:59:4918078 # Neutralize special characters interpreted by sed in replacement strings.
18079 case $configure_input in #(
18080 *\&* | *\|* | *\\* )
18081 ac_sed_conf_input=`$as_echo "$configure_input" |
18082 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18083 *) ac_sed_conf_input=$configure_input;;
18084 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318085
18086 case $ac_tag in
Victor Stinnere0be4232011-10-25 11:06:0918087 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318089 esac
18090 ;;
Martin v. Löwis11437992002-04-12 09:54:0318091 esac
18092
Thomas Wouters47b49bf2007-08-30 22:15:3318093 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:0318094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:2318095 X"$ac_file" : 'X\(//\)[^/]' \| \
18096 X"$ac_file" : 'X\(//\)$' \| \
Thomas Wouters47b49bf2007-08-30 22:15:3318097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4918098$as_echo X"$ac_file" |
Thomas Wouters47b49bf2007-08-30 22:15:3318099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18100 s//\1/
18101 q
18102 }
18103 /^X\(\/\/\)[^/].*/{
18104 s//\1/
18105 q
18106 }
18107 /^X\(\/\/\)$/{
18108 s//\1/
18109 q
18110 }
18111 /^X\(\/\).*/{
18112 s//\1/
18113 q
18114 }
18115 s/.*/./; q'`
Matthias Kloseb9621712010-04-24 17:59:4918116 as_dir="$ac_dir"; as_fn_mkdir_p
Martin v. Löwis11437992002-04-12 09:54:0318117 ac_builddir=.
18118
Thomas Wouters47b49bf2007-08-30 22:15:3318119case "$ac_dir" in
18120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18121*)
Matthias Kloseb9621712010-04-24 17:59:4918122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318123 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:4918124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318125 case $ac_top_builddir_sub in
18126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18128 esac ;;
18129esac
18130ac_abs_top_builddir=$ac_pwd
18131ac_abs_builddir=$ac_pwd$ac_dir_suffix
18132# for backward compatibility:
18133ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:0318134
18135case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:3318136 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:0318137 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:3318138 ac_top_srcdir=$ac_top_builddir_sub
18139 ac_abs_top_srcdir=$ac_pwd ;;
18140 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:0318141 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:3318142 ac_top_srcdir=$srcdir
18143 ac_abs_top_srcdir=$srcdir ;;
18144 *) # Relative name.
18145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18146 ac_top_srcdir=$ac_top_build_prefix$srcdir
18147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:0318148esac
Thomas Wouters47b49bf2007-08-30 22:15:3318149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:2318150
Martin v. Löwis11437992002-04-12 09:54:0318151
Thomas Wouters47b49bf2007-08-30 22:15:3318152 case $ac_mode in
18153 :F)
18154 #
18155 # CONFIG_FILE
18156 #
Martin v. Löwis11437992002-04-12 09:54:0318157
18158 case $INSTALL in
18159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318160 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:0318161 esac
Matthias Klose93a0ef12012-03-15 17:08:3418162 ac_MKDIR_P=$MKDIR_P
18163 case $MKDIR_P in
18164 [\\/$]* | ?:[\\/]* ) ;;
18165 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18166 esac
Thomas Wouters477c8d52006-05-27 19:21:4718167_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3318168
Matthias Kloseb9621712010-04-24 17:59:4918169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318170# If the template does not know about datarootdir, expand it.
18171# FIXME: This hack should be removed a few years after 2.60.
18172ac_datarootdir_hack=; ac_datarootdir_seen=
Matthias Kloseb9621712010-04-24 17:59:4918173ac_sed_dataroot='
18174/datarootdir/ {
Thomas Wouters47b49bf2007-08-30 22:15:3318175 p
18176 q
18177}
18178/@datadir@/p
18179/@docdir@/p
18180/@infodir@/p
18181/@localedir@/p
Matthias Kloseb9621712010-04-24 17:59:4918182/@mandir@/p'
18183case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Thomas Wouters47b49bf2007-08-30 22:15:3318184*datarootdir*) ac_datarootdir_seen=yes;;
18185*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Matthias Kloseb9621712010-04-24 17:59:4918186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18187$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:3318188_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318190 ac_datarootdir_hack='
18191 s&@datadir@&$datadir&g
18192 s&@docdir@&$docdir&g
18193 s&@infodir@&$infodir&g
18194 s&@localedir@&$localedir&g
18195 s&@mandir@&$mandir&g
Matthias Kloseb9621712010-04-24 17:59:4918196 s&\\\${datarootdir}&$datarootdir&g' ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318197esac
18198_ACEOF
18199
18200# Neutralize VPATH when `$srcdir' = `.'.
18201# Shell code in configure.ac might set extrasub.
18202# FIXME: do we really want to maintain this feature?
Matthias Kloseb9621712010-04-24 17:59:4918203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18204ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:0318205$extrasub
18206_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318208:t
18209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Matthias Kloseb9621712010-04-24 17:59:4918210s|@configure_input@|$ac_sed_conf_input|;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318211s&@top_builddir@&$ac_top_builddir_sub&;t t
Matthias Kloseb9621712010-04-24 17:59:4918212s&@top_build_prefix@&$ac_top_build_prefix&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318213s&@srcdir@&$ac_srcdir&;t t
18214s&@abs_srcdir@&$ac_abs_srcdir&;t t
18215s&@top_srcdir@&$ac_top_srcdir&;t t
18216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18217s&@builddir@&$ac_builddir&;t t
18218s&@abs_builddir@&$ac_abs_builddir&;t t
18219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18220s&@INSTALL@&$ac_INSTALL&;t t
Matthias Klose93a0ef12012-03-15 17:08:3418221s&@MKDIR_P@&$ac_MKDIR_P&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318222$ac_datarootdir_hack
Matthias Kloseb9621712010-04-24 17:59:4918223"
Victor Stinnere0be4232011-10-25 11:06:0918224eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18225 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:5418226
Thomas Wouters47b49bf2007-08-30 22:15:3318227test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Victor Stinnere0be4232011-10-25 11:06:0918228 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18230 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Matthias Kloseb9621712010-04-24 17:59:4918231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018232which seems to be undefined. Please make sure it is defined" >&5
Matthias Kloseb9621712010-04-24 17:59:4918233$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018234which seems to be undefined. Please make sure it is defined" >&2;}
Thomas Wouters1ba5b3b2006-06-08 14:52:4718235
Victor Stinnere0be4232011-10-25 11:06:0918236 rm -f "$ac_tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:0318237 case $ac_file in
Victor Stinnere0be4232011-10-25 11:06:0918238 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18239 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Matthias Kloseb9621712010-04-24 17:59:4918240 esac \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318242 ;;
18243 :H)
18244 #
18245 # CONFIG_HEADER
18246 #
Martin v. Löwis11437992002-04-12 09:54:0318247 if test x"$ac_file" != x-; then
Matthias Kloseb9621712010-04-24 17:59:4918248 {
18249 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18251 } >"$ac_tmp/config.h" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0918253 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Matthias Kloseb9621712010-04-24 17:59:4918254 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18255$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:0318256 else
Matthias Kloseb9621712010-04-24 17:59:4918257 rm -f "$ac_file"
Victor Stinnere0be4232011-10-25 11:06:0918258 mv "$ac_tmp/config.h" "$ac_file" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318260 fi
18261 else
Matthias Kloseb9621712010-04-24 17:59:4918262 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018264 || as_fn_error $? "could not create -" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318265 fi
Thomas Wouters47b49bf2007-08-30 22:15:3318266 ;;
Guido van Rossum7f43da71994-08-01 12:15:3018267
Thomas Wouters47b49bf2007-08-30 22:15:3318268
18269 esac
18270
Antoine Pitrou8e6b4072010-09-10 19:44:4418271
18272 case $ac_file$ac_mode in
18273 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
18274
18275 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318276done # for ac_tag
18277
Guido van Rossum627b2d71993-12-24 10:39:1618278
Matthias Kloseb9621712010-04-24 17:59:4918279as_fn_exit 0
Martin v. Löwis11437992002-04-12 09:54:0318280_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0318281ac_clean_files=$ac_clean_files_save
18282
Matthias Kloseb9621712010-04-24 17:59:4918283test $ac_write_fail = 0 ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918285
Martin v. Löwis11437992002-04-12 09:54:0318286
18287# configure is writing to config.log, and then calls config.status.
18288# config.status does its own redirection, appending to config.log.
18289# Unfortunately, on DOS this fails, as config.log is still kept open
18290# by configure, so config.status won't be able to write to it; its
18291# output is simply discarded. So we exec the FD to /dev/null,
18292# effectively closing config.log, so it can be properly (re)opened and
18293# appended to by config.status. When coming back to configure, we
18294# need to make the FD available again.
18295if test "$no_create" != yes; then
18296 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:0418297 ac_config_status_args=
18298 test "$silent" = yes &&
18299 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:0318300 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:0418301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:0318302 exec 5>>config.log
18303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18304 # would make configure fail if this is the last instruction.
Ross Lagerwallb0ae53d2011-06-10 05:30:3018305 $ac_cs_success || as_fn_exit 1
Matthias Kloseb9621712010-04-24 17:59:4918306fi
18307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Martin v. Löwis11437992002-04-12 09:54:0318310fi
Guido van Rossum627b2d71993-12-24 10:39:1618311
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018312
Christian Heimes75ed8902013-11-20 00:11:1818313echo "creating Modules/Setup" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018314if test ! -f Modules/Setup
18315then
18316 cp $srcdir/Modules/Setup.dist Modules/Setup
18317fi
18318
Christian Heimes75ed8902013-11-20 00:11:1818319echo "creating Modules/Setup.local" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018320if test ! -f Modules/Setup.local
18321then
18322 echo "# Edit this file for local setup changes" >Modules/Setup.local
18323fi
18324
Christian Heimes75ed8902013-11-20 00:11:1818325echo "creating Makefile" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018326$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
18327 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:1618328 Modules/Setup.local Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:4918329mv config.c Modules
Brett Cannon63d98bc2016-09-07 00:12:4018330
18331if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
18332 echo "" >&6
18333 echo "" >&6
Brett Cannond24429a2017-06-09 21:34:3218334 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:4218335 echo "please run ./configure --enable-optimizations" >&6
Brett Cannon63d98bc2016-09-07 00:12:4018336 echo "" >&6
18337 echo "" >&6
18338fi
18339